Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp1212345rdg; Fri, 13 Oct 2023 13:53:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFxxi3/GSlv8Ev0FrfS3cotjT9H1Y7nJ6PZctW/I/Ec1WSiYOTAuRT7MH71dI29YUU2Qxgy X-Received: by 2002:a05:6a21:1a6:b0:153:4ea6:d12e with SMTP id le38-20020a056a2101a600b001534ea6d12emr1784884pzb.17.1697230392474; Fri, 13 Oct 2023 13:53:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697230392; cv=none; d=google.com; s=arc-20160816; b=dtyE4qYTQiHsMi9CTEbOeHI0NbEty4JTB0vGxnhmP1+cjO2D4+c+0rlQQcbd21rI3f WrV6NtPTUodfhMzPZrgGLeXCRc4A8azo28urGvfEFfOlAwPlP9Ko1362ypj9nsRavHw6 6U5DYxuGXa+BW1kTdkDCf9k/QO7yn69s0v/NCeYT1ehXoB9MfIq6ZNqCC/LEIToMEmtR R9SIcopTLA43gifhdvPn24f4mySDyhRegDw0jj4b8vBTK4uRrNkeJbY++WcOvi1hFUsT YqODxBzVxkY8lLSvxCw7nL45mJMFnyDmlU5GJZVV9J/MzcSolfZ5wuJQOwbrp5d/GqQ6 fvcA== 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=ZD1MciMkfGwIy9jb/3ZjIq2XUW2Wt/V//MVgQj0RSdo=; fh=nquzeIv4ju4GNxu7ydsnm4DFZwz8DTp6jDWyieHvPOg=; b=L2An96zpEfqgqbYbxJRnlzKsRk/qO6IbD+3JMFnqcU3hdW3bBm56C+0anr04js4+3/ bwiL+7HcHueI/oMMDQ9QEQD5iycsV5HnXywFktwfyOgjWjMIJ8cQndEGEBJIzCUf1ZmS bkHQ8owtGaHA9zNnFyLiJNCiT+YOwClJvA1vM548w6EF8u1JwIYstuc4lD5IElUEmfP/ BcH4OrLVQN9X2Y7aiKU0BzGMO31MSQSj76/sWrS+Bjs4nz9EXYWgwzgEmLh1aXvyIsht pxzCILW5YwKMT9vz8gtjmy0C2uOp/5jadWhkQ0EFjT+OAvyzZGnqS89MoskAZ6X0mxsR Iqnw== 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:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id e128-20020a636986000000b00578b6e32b5dsi5290369pgc.405.2023.10.13.13.53.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 13:53:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id 9F9A980C344C; Fri, 13 Oct 2023 13:53:09 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231939AbjJMUwn (ORCPT + 99 others); Fri, 13 Oct 2023 16:52:43 -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: 8bit 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= 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 fry.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 (fry.vger.email [0.0.0.0]); Fri, 13 Oct 2023 13:53:09 -0700 (PDT) l8910 uses KTD2026 LED driver. Add it to the device tree. Tested-by: Stephan Gerhold Signed-off-by: André Apitzsch --- .../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/arm64/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 / { model = "BQ Aquaris X5 (Longcheer L8910)"; @@ -74,6 +75,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"; @@ -107,6 +148,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_resin { status = "okay"; linux,code = ; -- 2.42.0