From nobody Tue Dec 16 20:00:10 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 24575C41513 for ; Fri, 13 Oct 2023 20:52:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231978AbjJMUwo (ORCPT ); Fri, 13 Oct 2023 16:52:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229704AbjJMUwk (ORCPT ); Fri, 13 Oct 2023 16:52:40 -0400 Received: from smtprelay02.ispgateway.de (smtprelay02.ispgateway.de [80.67.31.40]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F468BB; Fri, 13 Oct 2023 13:52:37 -0700 (PDT) Received: from [92.206.139.21] (helo=note-book.lan) by smtprelay02.ispgateway.de with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.1) (envelope-from ) id 1qrP98-0002ny-2y; Fri, 13 Oct 2023 22:52:34 +0200 From: =?utf-8?q?Andr=C3=A9_Apitzsch?= Date: Fri, 13 Oct 2023 22:51:36 +0200 Subject: [PATCH 1/2] arm64: dts: qcom: msm8916-longcheer-l8910: Enable RGB LED MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20231013-bq_leds-v1-1-cc374369fc56@apitzsch.eu> References: <20231013-bq_leds-v1-0-cc374369fc56@apitzsch.eu> In-Reply-To: <20231013-bq_leds-v1-0-cc374369fc56@apitzsch.eu> To: Andy Gross , 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, phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, =?utf-8?q?Andr=C3=A9_Apitzsch?= , Stephan Gerhold X-Mailer: b4 0.12.3 X-Df-Sender: YW5kcmVAYXBpdHpzY2guZXU= Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org l8910 uses KTD2026 LED driver. Add it to the device tree. Tested-by: Stephan Gerhold Signed-off-by: Andr=C3=A9 Apitzsch Reviewed-by: Konrad Dybcio --- .../boot/dts/qcom/msm8916-longcheer-l8910.dts | 51 ++++++++++++++++++= ++++ 1 file changed, 51 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916-longcheer-l8910.dts b/arch/ar= m64/boot/dts/qcom/msm8916-longcheer-l8910.dts index 41cadb906b98..68258cf4205f 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-longcheer-l8910.dts +++ b/arch/arm64/boot/dts/qcom/msm8916-longcheer-l8910.dts @@ -6,6 +6,7 @@ #include #include #include +#include =20 / { model =3D "BQ Aquaris X5 (Longcheer L8910)"; @@ -74,6 +75,46 @@ usb_id: usb-id { }; }; =20 +&blsp_i2c2 { + status =3D "okay"; + + led-controller@30 { + compatible =3D "kinetic,ktd2026"; + reg =3D <0x30>; + #address-cells =3D <1>; + #size-cells =3D <0>; + + vin-supply =3D <&pm8916_l17>; + vio-supply =3D <&pm8916_l6>; + + pinctrl-0 =3D <&status_led_default>; + pinctrl-names =3D "default"; + + multi-led { + color =3D ; + function =3D LED_FUNCTION_STATUS; + + #address-cells =3D <1>; + #size-cells =3D <0>; + + led@0 { + reg =3D <0>; + color =3D ; + }; + + led@1 { + reg =3D <1>; + color =3D ; + }; + + led@2 { + reg =3D <2>; + color =3D ; + }; + }; + }; +}; + &blsp_i2c3 { status =3D "okay"; =20 @@ -107,6 +148,16 @@ &blsp_uart2 { status =3D "okay"; }; =20 +&pm8916_gpios { + status_led_default: status-led-default-state { + pins =3D "gpio3"; + function =3D PMIC_GPIO_FUNC_NORMAL; + power-source =3D ; + bias-disable; + output-high; + }; +}; + &pm8916_resin { status =3D "okay"; linux,code =3D ; --=20 2.42.0 From nobody Tue Dec 16 20:00:10 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 15BD9CDB482 for ; Fri, 13 Oct 2023 20:52:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232076AbjJMUwq (ORCPT ); Fri, 13 Oct 2023 16:52:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231726AbjJMUwl (ORCPT ); Fri, 13 Oct 2023 16:52:41 -0400 Received: from smtprelay02.ispgateway.de (smtprelay02.ispgateway.de [80.67.18.14]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D82B9BE; Fri, 13 Oct 2023 13:52:37 -0700 (PDT) Received: from [92.206.139.21] (helo=note-book.lan) by smtprelay02.ispgateway.de with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.1) (envelope-from ) id 1qrP9A-0002ny-05; Fri, 13 Oct 2023 22:52:36 +0200 From: =?utf-8?q?Andr=C3=A9_Apitzsch?= Date: Fri, 13 Oct 2023 22:51:37 +0200 Subject: [PATCH 2/2] arm64: dts: qcom: msm8939-longcheer-l9100: Enable RGB LED MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20231013-bq_leds-v1-2-cc374369fc56@apitzsch.eu> References: <20231013-bq_leds-v1-0-cc374369fc56@apitzsch.eu> In-Reply-To: <20231013-bq_leds-v1-0-cc374369fc56@apitzsch.eu> To: Andy Gross , 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, phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, =?utf-8?q?Andr=C3=A9_Apitzsch?= X-Mailer: b4 0.12.3 X-Df-Sender: YW5kcmVAYXBpdHpzY2guZXU= Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org l9100 uses KTD2026 LED driver. Add it to the device tree. Signed-off-by: Andr=C3=A9 Apitzsch Reviewed-by: Konrad Dybcio --- .../boot/dts/qcom/msm8939-longcheer-l9100.dts | 51 ++++++++++++++++++= ++++ 1 file changed, 51 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8939-longcheer-l9100.dts b/arch/ar= m64/boot/dts/qcom/msm8939-longcheer-l9100.dts index 6802714fda3f..4eb33e36a8eb 100644 --- a/arch/arm64/boot/dts/qcom/msm8939-longcheer-l9100.dts +++ b/arch/arm64/boot/dts/qcom/msm8939-longcheer-l9100.dts @@ -8,6 +8,7 @@ #include #include #include +#include #include =20 / { @@ -120,6 +121,46 @@ usb_id: usb-id { =20 }; =20 +&blsp_i2c2 { + status =3D "okay"; + + led-controller@30 { + compatible =3D "kinetic,ktd2026"; + reg =3D <0x30>; + #address-cells =3D <1>; + #size-cells =3D <0>; + + vin-supply =3D <&pm8916_l17>; + vio-supply =3D <&pm8916_l6>; + + pinctrl-0 =3D <&status_led_default>; + pinctrl-names =3D "default"; + + multi-led { + color =3D ; + function =3D LED_FUNCTION_STATUS; + + #address-cells =3D <1>; + #size-cells =3D <0>; + + led@0 { + reg =3D <0>; + color =3D ; + }; + + led@1 { + reg =3D <1>; + color =3D ; + }; + + led@2 { + reg =3D <2>; + color =3D ; + }; + }; + }; +}; + &blsp_i2c3 { status =3D "okay"; =20 @@ -184,6 +225,16 @@ &blsp_uart2 { status =3D "okay"; }; =20 +&pm8916_gpios { + status_led_default: status-led-default-state { + pins =3D "gpio3"; + function =3D PMIC_GPIO_FUNC_NORMAL; + power-source =3D ; + bias-disable; + output-high; + }; +}; + &pm8916_mpps { pwm_out: mpp4-state { pins =3D "mpp4"; --=20 2.42.0