Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp1212371rdg; Fri, 13 Oct 2023 13:53:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEODThd/Od2RJ2p2OJKvTYF85yDXin2wWJ3N2uBXnktUOeksDSfNPFjedbF2sa2ZVPEXDv1 X-Received: by 2002:a05:6358:788:b0:143:383e:5b22 with SMTP id n8-20020a056358078800b00143383e5b22mr31462365rwj.28.1697230395773; Fri, 13 Oct 2023 13:53:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697230395; cv=none; d=google.com; s=arc-20160816; b=KAzXVn+qAKnto6GHHKeAPrhOCd+B2USIrCeaG8FAEBqwyK1pxUy3mb3Z9n9j1iIKqJ eTqYZ+1NNKyLac7lZ7xFESTEpEVAfZGNcMVZqVfN8/U03NhvTE0HH+OIqowpJ9KrquiH eAUnSbJ8KV6ivKOg3Ah2Pkuo4e6Maoe5WGYxom+zeCAgCbCgDvTO5rLnuFkrcXcwEMZ4 AEs7I/QXCAc6zZ4hNPKlD1RUEv2Il6H3VlhjKLjrnopeU+gowUSmolC715087+JiWif6 LlqAsIg6eIeLbMqulDd6DXJT+WG/Al4gNUrTjFiOYhxe800FXEO5EYz6vLVuz1LBRNod Fiww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from; bh=lJOkqydZ5sWisGn5WMCjFmtXTGYfIbuUx7caCO3Jelg=; fh=8USr55cyRB3L2xWXBxf/4MfAWtU249ll4NYd0xhWSg0=; b=zaxrOPYCQ/VUioO4sA/gM/bGshmTsfMBinJyLiHjFAlBU9bRYB3Fmg2L2Fn96kHSwQ k5BfegTxKfTf0kSimnP7xzEsrNLOu9iluEYuevj5RScFnbrn+lgSCSegOPV0emD8twFi Ofb44w1EFL3lvlJuiX7ZGRPGdvUt1O/wRFugtDRxT3m3/QC0K1569dOS7qzwVupxscEV wdZO2HrM6OwBdraE9bYswES5RloiruXzPBrBm3A7+OscFeL9X2r5EDarjIB1QJ95EmRM hfr9iJ2Lk2tcHRTv/OLbDFCkQhvaBguCaXo7tXkErnx6U/53qlQCfmSUyZ6mqJREeeUr OHqw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id i1-20020a635841000000b00578b8d202b0si5507874pgm.536.2023.10.13.13.53.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 13:53:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 8150C803890B; Fri, 13 Oct 2023 13:53:13 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232034AbjJMUwp (ORCPT + 99 others); Fri, 13 Oct 2023 16:52:45 -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: 8bit 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= X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Fri, 13 Oct 2023 13:53:13 -0700 (PDT) l9100 uses KTD2026 LED driver. Add it to the device tree. Signed-off-by: André Apitzsch --- .../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/arm64/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 / { @@ -120,6 +121,46 @@ usb_id: usb-id { }; +&blsp_i2c2 { + status = "okay"; + + led-controller@30 { + compatible = "kinetic,ktd2026"; + reg = <0x30>; + #address-cells = <1>; + #size-cells = <0>; + + vin-supply = <&pm8916_l17>; + vio-supply = <&pm8916_l6>; + + pinctrl-0 = <&status_led_default>; + pinctrl-names = "default"; + + multi-led { + color = ; + function = LED_FUNCTION_STATUS; + + #address-cells = <1>; + #size-cells = <0>; + + led@0 { + reg = <0>; + color = ; + }; + + led@1 { + reg = <1>; + color = ; + }; + + led@2 { + reg = <2>; + color = ; + }; + }; + }; +}; + &blsp_i2c3 { status = "okay"; @@ -184,6 +225,16 @@ &blsp_uart2 { status = "okay"; }; +&pm8916_gpios { + status_led_default: status-led-default-state { + pins = "gpio3"; + function = PMIC_GPIO_FUNC_NORMAL; + power-source = ; + bias-disable; + output-high; + }; +}; + &pm8916_mpps { pwm_out: mpp4-state { pins = "mpp4"; -- 2.42.0