From patchwork Sun Feb 4 17:35:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marijn Suijten X-Patchwork-Id: 196552 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp457466dyb; Sun, 4 Feb 2024 09:36:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IGAfDp1k95Tr1qpBCQhzvETI9kTidipvPE1Q7xIOnwcsfs/gP1spaqMBMkP+Ix1PUbfMgzG X-Received: by 2002:a17:906:6849:b0:a35:3718:997c with SMTP id a9-20020a170906684900b00a353718997cmr3822353ejs.28.1707068178794; Sun, 04 Feb 2024 09:36:18 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707068178; cv=pass; d=google.com; s=arc-20160816; b=TOYNl6nOi2d6CrhQwbVGTLxgWn+7RvESm0QuTPBj0a1nkLMO2aD0LglF5BWiFl2+B0 wueoYbzjFcIXbiKpUf0kMEcV4CSvfNeSZ7Int5CkmQ1+b6srbjBJ8ORbcUvyw6GGceGG 9WLLHy/LKgOrAqrsKHFTcxEFuv9Yuw48b5HYsrh0hvvAwU4MA8GzNHVoiuWzHGriUIlL 9mgdZAjbdYNLFkmGXXKP5GhvIVqHADdY7nY8pMU/BEz3dfqRo6JFdzO6gZQAzSZZ+LcO 93Q1s2IQvu2Ncu6Ppjjr9cT929RyhAQyJeIyfC8z1u1qCg9Unh8dpR6JyLhUK1L5MW/L FNWA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:message-id:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:subject:date :from; bh=Hkwg4q7ICYJx7whK9gT2TukKsdB5ob4bpr+RYNwv/wI=; fh=TMxyc8wW/O8gi5K7DQDP+SFxpumVxqk9Sh13CC+Yn3M=; b=R/FIs82GF87J1Eh3kihMR9YdNSuapx6u+twkYEM/lRmv6jmyWAJJ+OLATaVCD5iyX0 Q/hy53iPtyDs34t8fw5A7JFxnyk5RoZTe0CIM+KVmJzlrC6UrX7bQfs65VxWAej4T0Ap cepSV9ZPGHeH9Oh1JWHIWkYnS+PPHUOT2aZcxRnGuQzNZkOOPDCd3fDMCLDJGQiwZCTj IsLVIXPHWS63wP/vNxoPbJ+3SvbXpKfiYGp6EGIoca4kGzgwfs5gjKOmlhI8tJ8lkFt6 tp18KNyIEuYL8iNqkjZdQ5zFnOnFPpLz8vZNZedyUE8ygJNOEDvzl57XBysJdB6EvMM/ X8Hg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=somainline.org); spf=pass (google.com: domain of linux-kernel+bounces-51831-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51831-ouuuleilei=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCXrkqm6Eif9rN7uf6sSxNpr52Qdcgz96poeNW2sd5/pK1UJ8rYHe2Ig+oVp+XXGQoDTzSYpens77sdoUWuX7cwkc+Ob9w== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id h24-20020a17090619d800b00a37a5644eefsi480632ejd.652.2024.02.04.09.36.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Feb 2024 09:36:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-51831-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=somainline.org); spf=pass (google.com: domain of linux-kernel+bounces-51831-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51831-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id BC7F41F218D3 for ; Sun, 4 Feb 2024 17:36:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 073D424A1D; Sun, 4 Feb 2024 17:35:53 +0000 (UTC) Received: from m-r2.th.seeweb.it (m-r2.th.seeweb.it [5.144.164.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C20F524211 for ; Sun, 4 Feb 2024 17:35:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=5.144.164.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707068151; cv=none; b=PuI+YwMf5xPRTUgivOzfCRiEilSXU9/RUcOItVjyPGUwWxSxT1R1gVYrNAF84zpfojxa6rr1XqHZRWLEcqDCRLnVXUapkxSgfqvIBGBKvtANndPQovfPpdkHeQkfnAaiuy8o3JDQVZMzLTNZGSKkezvbCDYFZcWENFQE+e9q6EI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707068151; c=relaxed/simple; bh=oYJMOCwPyaX5sr3C8ht02ltCESTYiMyacCQTJL4xgEk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=XXxcCcbyUfeAk+/IEz1ZA9FQz8zmMhGaBiKcDLXIQSmcOcx3dFBdbZCtRKxJnGnUDw1yWrQnlJ/pPhMzM8Mw9grVw/Art0xQ/ibbAoHhVX+ieHkE9gmrM188WmiICwSAv373PoselMcCDa2F2WLwyegcWuBfHgx2w5OCXacOppQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=somainline.org; spf=pass smtp.mailfrom=somainline.org; arc=none smtp.client-ip=5.144.164.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=somainline.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=somainline.org Received: from Marijn-Arch-Book.localdomain (2a02-a420-67-c93f-164f-8aff-fee4-5930.mobile6.kpn.net [IPv6:2a02:a420:67:c93f:164f:8aff:fee4:5930]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r2.th.seeweb.it (Postfix) with ESMTPSA id 2A7E73F0C8; Sun, 4 Feb 2024 18:35:47 +0100 (CET) From: Marijn Suijten Date: Sun, 04 Feb 2024 18:35:22 +0100 Subject: [PATCH] arm64: dts: qcom: sdm630-nile: Enable and configure PM660L WLED Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240204-sdm630-nile-wled-v1-1-9f5c4f8147f2@somainline.org> X-B4-Tracking: v=1; b=H4sIANnKv2UC/x3M0QpAQBBG4VfRXJsaS5RXkQuZH1Ms7RZK3t3m8 rs456GIYIjUZg8FnBZt9wlFntG4DH4GmyaTE1eJk4qjbnUp7G0FXyuU4UpthkInGUEpOwImu/9 l17/vB03ahC9iAAAA To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Marijn Suijten X-Mailer: b4 0.12.4 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789990722426381516 X-GMAIL-MSGID: 1789990722426381516 The board-specific (electrical) configuration was removed from PM660L in 90ba636e40cb ("arm64: dts: qcom: pm660l: Remove board-specific WLED configuration") as it is platform-dependent. We reintroduce it here in the Nile board configuration (with a slightly lower current limit, as per downstream DT sources) and enable it for use in the dsi0 node. Signed-off-by: Marijn Suijten --- arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) --- base-commit: 01af33cc9894b4489fb68fa35c40e9fe85df63dc change-id: 20240204-sdm630-nile-wled-e23d7a1df0ce Best regards, diff --git a/arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile.dtsi b/arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile.dtsi index 87d0293c728d..852aecfba95a 100644 --- a/arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile.dtsi @@ -241,6 +241,16 @@ led@3 { }; }; +&pm660l_wled { + status = "okay"; + + qcom,switching-freq = <800>; + qcom,ovp-millivolt = <29600>; + qcom,current-boost-limit = <970>; + qcom,current-limit-microamp = <17500>; + qcom,num-strings = <2>; +}; + &pon_pwrkey { status = "okay"; };