From patchwork Fri Oct 13 20:51:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Apitzsch?= X-Patchwork-Id: 152733 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp2147659vqb; Fri, 13 Oct 2023 13:53:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFH701KYLkvywddH8lEaZCAL5LgwYoZcmowpkvBUentpiA7XowDDrVE/mpg6kSXHzpG+dP+ X-Received: by 2002:a9d:51cb:0:b0:6bf:5010:9d35 with SMTP id d11-20020a9d51cb000000b006bf50109d35mr28063781oth.3.1697230385075; Fri, 13 Oct 2023 13:53:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697230385; cv=none; d=google.com; s=arc-20160816; b=YFI/zcK8gL8gweJlV5kPdQ5j5u1h6Fu30OepkDc/zSnrEIEtfe/210hcjEkzlXdYKg xEUo4HalX9weWFBnCx5z5K1SHE9Ra0gLj+UTvxmCvXNCsUcL0XVtMd4ThWQpA6EnuNR+ +kdoNpR2q74yeXDjMdCuZIHTqVyUVEz1rWYTwGAZi5x7fPc2270UPmRqJi0wHD/EQ9by vjDHw0KqD9CMwi4jDXl0x0iWekkArxV1Lqe42IukT8gdXNp5bbSzL1gxIc7qCTGVkGPZ P/cM33sq1z3zDTNnLwpm80TFgZ5sju7WKVp9/Jm6xP2A53fgPUak0GSDlLIjSMHVi+tp XU6w== 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 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id b1-20020a056a000cc100b0068c7033a5f5si18148925pfv.74.2023.10.13.13.53.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 13:53:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 141E98038908; Fri, 13 Oct 2023 13:53:03 -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 S231967AbjJMUwn (ORCPT + 19 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 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 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:03 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779675048189149503 X-GMAIL-MSGID: 1779675048189149503 l8910 uses KTD2026 LED driver. Add it to the device tree. Tested-by: Stephan Gerhold Signed-off-by: André 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/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 = ;