From patchwork Fri Nov 4 13:23:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Knecht X-Patchwork-Id: 15516 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp400842wru; Fri, 4 Nov 2022 06:27:03 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6gmFdGFjsPcn5HShKPuFIhe/zG1Nt/sOeI5cR2q3xO5Typg0oZmVK2OB8DviQwaCOwXEY7 X-Received: by 2002:a63:2c0b:0:b0:434:ebb6:7594 with SMTP id s11-20020a632c0b000000b00434ebb67594mr29809950pgs.245.1667568422856; Fri, 04 Nov 2022 06:27:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667568422; cv=none; d=google.com; s=arc-20160816; b=c0O4SRzp6QiPaW3pYrJnv3YHcrkVcOFpkAV7iDD4D4nqqrEOR6NYTeEWduZ4zXa+t7 SZf03HPv4Mos6hiA60XksuTokkHL6Z9UxKk0yIP+6Y5B9MFBpt8gwgqqN+erfzDZV1ep +GM41d8MPM8UzmJvXWrtFiuZdZ4TaX6eud4lohjX0LU28bgxFmCf0plhL/pI/KJZcWii +/AzZYI0tzaUcDbRlBsyzUNWEML7n8DRUh3rKiJMtP65rBGGotGl+fH4dGOJSZgyKknv uzBA/LoY3ef8hOuPXieHwp+hLrwoOLUNManNPP19wsa51jis71ay9l8Icgucizoc/jAa W7JA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=2rKk1JZg8rBfbgyDviaSEYBUctN5DFu8qQasjFm4bwU=; b=A/CQtfalqWNgNAij4nMcs0GzkRE4Udr/zVTKyhi4nOZd3tF+zDyGo5S9xMU2rzQbl1 QhftowRSaeJm4p0XfijLaEn5I0atCr/a6g1JUI/m5QNQYGl3BVUaRYi8kCKBLuVJGgYW C6HrSvjI7tFwAReRl8RptqTK2sti8Xyh2e7cup4VrdnO0hYx4cq+IxH4kxRI/2PmpeYF W2G3BlSaTWVhS4ISk6EkoW2LwLqY3g1yzHweXXZ04KLO1EUWeFbz6OwFSI0sDqiN+1Zp KKh5NmmC5dbSTsU0zQjgqUx5/tgByz6cnqhvHY/rzKgih0UMzoWdcE4g3Ll4dl2P6e/P Myiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mailoo.org header.s=mailo header.b=KYqX6YxK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mailoo.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c8-20020aa78c08000000b0056bf15d0cbfsi4058791pfd.308.2022.11.04.06.26.48; Fri, 04 Nov 2022 06:27:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@mailoo.org header.s=mailo header.b=KYqX6YxK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mailoo.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230402AbiKDNZZ (ORCPT + 99 others); Fri, 4 Nov 2022 09:25:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231388AbiKDNYx (ORCPT ); Fri, 4 Nov 2022 09:24:53 -0400 Received: from msg-1.mailo.com (msg-1.mailo.com [213.182.54.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AAD492EF2D; Fri, 4 Nov 2022 06:24:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mailoo.org; s=mailo; t=1667568258; bh=VpeM8QHNgIDViZAVdCgdIsI8ValCbkXsYMsD6mNoyqk=; h=X-EA-Auth:From:To:Cc:Subject:Date:Message-Id:X-Mailer:In-Reply-To: References:MIME-Version:Content-Transfer-Encoding; b=KYqX6YxKYOlY+VBrpDvLOGbdWCsyk78pz1iAYeB9ugxIw9/PYlI1R2kIFReDyoGqT uouI9/AaslWlW/54wyJo1Q3sYfgABQRWFlbAsrZAIqCE7kqGiaBHwWATG1iEA+P4ZO woPRT9l880tdIrTZxXMCstzn4jtMt+BvSbiQLDKI= Received: by b-6.in.mailobj.net [192.168.90.16] with ESMTP via proxy.mailoo.org [213.182.55.207] Fri, 4 Nov 2022 14:24:18 +0100 (CET) X-EA-Auth: vZ1oDn2afiJgqWUk+guD7nKtwcloj0jSwho/kvrC7C0/Zk1iLTdGs+yGJnwz7tnNkWdjw1srmj2cDigqAq0Pl+enY85kCS/wD7Iq3fepqIQ= From: Vincent Knecht To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Vincent Knecht Subject: [PATCH v2 1/3] arm64: dts: qcom: msm8916-alcatel-idol347: Add GPIOs -state suffix Date: Fri, 4 Nov 2022 14:23:58 +0100 Message-Id: <20221104132400.1763218-2-vincent.knecht@mailoo.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221104132400.1763218-1-vincent.knecht@mailoo.org> References: <20221104132400.1763218-1-vincent.knecht@mailoo.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748572226169875576?= X-GMAIL-MSGID: =?utf-8?q?1748572226169875576?= Add -state suffix to GPIOs states node names as required by dt-bindings. Signed-off-by: Vincent Knecht --- .../boot/dts/qcom/msm8916-alcatel-idol347.dts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/msm8916-alcatel-idol347.dts b/arch/arm64/boot/dts/qcom/msm8916-alcatel-idol347.dts index 3dc9619fde6e..668f8ff53229 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-alcatel-idol347.dts +++ b/arch/arm64/boot/dts/qcom/msm8916-alcatel-idol347.dts @@ -260,7 +260,7 @@ l18 { }; &msmgpio { - accel_int_default: accel-int-default { + accel_int_default: accel-int-default-state { pins = "gpio31"; function = "gpio"; @@ -268,7 +268,7 @@ accel_int_default: accel-int-default { bias-disable; }; - gpio_keys_default: gpio-keys-default { + gpio_keys_default: gpio-keys-default-state { pins = "gpio107"; function = "gpio"; @@ -276,7 +276,7 @@ gpio_keys_default: gpio-keys-default { bias-pull-up; }; - gyro_int_default: gyro-int-default { + gyro_int_default: gyro-int-default-state { pins = "gpio97", "gpio98"; function = "gpio"; @@ -284,7 +284,7 @@ gyro_int_default: gyro-int-default { bias-disable; }; - mag_reset_default: mag-reset-default { + mag_reset_default: mag-reset-default-state { pins = "gpio8"; function = "gpio"; @@ -292,7 +292,7 @@ mag_reset_default: mag-reset-default { bias-disable; }; - proximity_int_default: proximity-int-default { + proximity_int_default: proximity-int-default-state { pins = "gpio12"; function = "gpio"; @@ -300,7 +300,7 @@ proximity_int_default: proximity-int-default { bias-pull-up; }; - ts_int_reset_default: ts-int-reset-default { + ts_int_reset_default: ts-int-reset-default-state { pins = "gpio13", "gpio100"; function = "gpio"; @@ -308,7 +308,7 @@ ts_int_reset_default: ts-int-reset-default { bias-disable; }; - usb_id_default: usb-id-default { + usb_id_default: usb-id-default-state { pins = "gpio69"; function = "gpio"; From patchwork Fri Nov 4 13:23:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Knecht X-Patchwork-Id: 15519 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp401571wru; Fri, 4 Nov 2022 06:28:42 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6p0vMvdJAp++hOp5UGxBMpGn4/56Vk/e5PaPzMvX4kcd5OnUwpHPoECehU1rUOsqYm9v3g X-Received: by 2002:a17:906:7948:b0:7ac:d6f9:eb3e with SMTP id l8-20020a170906794800b007acd6f9eb3emr33572696ejo.350.1667568522108; Fri, 04 Nov 2022 06:28:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667568522; cv=none; d=google.com; s=arc-20160816; b=IJg1G7dUy/Z+tQXX9VAkA8tLk+7ADfzwmBrG1Twi0HX+v5urO/I//7BTpw6y9MzRI6 LsGnsoZdZ2Hsexekyt1EJsBokIlzBWZyMFRKXB8mQ6nT7gnFBqEaYa8mSTRMVvX44iBj QSKuPHuaFI9+tvhBDXle5eEBc1M/l5KSr4gqewKlfScer5eD90PCfbdKq1YTEOAVfd+m g1Sn6VGfdtghrqWSl52cMIPJO7lr81n8Agsiryi2pbdZFh1+yUR9J0Kz9WEUQ/VsS+do LP+GZgdOSs1d4Iexy2/41FwYC+YpTORME5rmb4l5CJs88He3y/MgmmWAovgU1Xdlt72g TCEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=KDmQQPVKbQuVc8h8Ht9FG8CkZGcpb3J+slpdbOhsaRQ=; b=kA6hTMEPqzH3Upz+0rZipThmaGONeUsyMDBnJr31J954Eq/RmrJhLeek3GgS/ejLqF iOHmqFrkIaS93f5cPNY4wIWdRh2biZnfHDBtaVecvv4DV0NDKuDcUJnXOsVCwH2e7AsL M2INycu4Ljm082Qe/vvxSGnr7+Q8hNmJQUysEjg3IrIDOjniGT9j0NqLhlecMJqnPcOs Yq3MoRDsPF2GVe4fO4HbibTW5tSlqqlh6uB7Mj3BBinRO4hdnYRP+2su7GdYo5mdOoPy exQDX1m5gjqZgxVINRvBxfYtfmtqzeiD2F3urSpr4JE4sJYOrpFksMcO/Fxf/d9UX8v/ avPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mailoo.org header.s=mailo header.b=POxlVPOz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mailoo.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id wy8-20020a170906fe0800b007801a579899si5153578ejb.448.2022.11.04.06.28.18; Fri, 04 Nov 2022 06:28:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@mailoo.org header.s=mailo header.b=POxlVPOz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mailoo.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230428AbiKDN0B (ORCPT + 99 others); Fri, 4 Nov 2022 09:26:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231806AbiKDNZM (ORCPT ); Fri, 4 Nov 2022 09:25:12 -0400 Received: from msg-4.mailo.com (msg-4.mailo.com [213.182.54.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 859F62EF53; Fri, 4 Nov 2022 06:24:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mailoo.org; s=mailo; t=1667568259; bh=UgO1xNnlTSFaN2qgupbbM8Ur3DOStS+vykVPuifYPLo=; h=X-EA-Auth:From:To:Cc:Subject:Date:Message-Id:X-Mailer:In-Reply-To: References:MIME-Version:Content-Transfer-Encoding; b=POxlVPOzyuqsAyHRx/0M92+BPkcY59Ddwh0JhArQ2LWPBuADYp95DX8DqXGoRmDt8 ePMJ8gpMJhbIsHOsy5XrAAhWuk40WrCDjVzicU4ALZJ0bDclzPVw2PB5F1gIWU9lSN JpytAxF/elmeNr3oZwbgwjU9lI+y442Lvt+Dso58= Received: by b-6.in.mailobj.net [192.168.90.16] with ESMTP via proxy.mailoo.org [213.182.55.207] Fri, 4 Nov 2022 14:24:19 +0100 (CET) X-EA-Auth: 4p+PYttiXqTiCOGG50FOja6s6oKhTxS56lC5svw7yIr4FnkQPn3cryCjUKrBJ2w9pr1Aif9YF+wg8uiJ7kMWNSjJISFkiE1sr/OByAIgpU8= From: Vincent Knecht To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Vincent Knecht Subject: [PATCH v2 2/3] arm64: dts: qcom: msm8916-alcatel-idol347: add GPIO torch LED Date: Fri, 4 Nov 2022 14:23:59 +0100 Message-Id: <20221104132400.1763218-3-vincent.knecht@mailoo.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221104132400.1763218-1-vincent.knecht@mailoo.org> References: <20221104132400.1763218-1-vincent.knecht@mailoo.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748572330475444961?= X-GMAIL-MSGID: =?utf-8?q?1748572330475444961?= Add support for torch LED on GPIO 32. Signed-off-by: Vincent Knecht Reviewed-by: Krzysztof Kozlowski Reviewed-by: Konrad Dybcio --- .../boot/dts/qcom/msm8916-alcatel-idol347.dts | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916-alcatel-idol347.dts b/arch/arm64/boot/dts/qcom/msm8916-alcatel-idol347.dts index 668f8ff53229..eadeb1a445fd 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-alcatel-idol347.dts +++ b/arch/arm64/boot/dts/qcom/msm8916-alcatel-idol347.dts @@ -5,6 +5,7 @@ #include "msm8916-pm8916.dtsi" #include #include +#include / { model = "Alcatel OneTouch Idol 3 (4.7)"; @@ -34,6 +35,19 @@ button-volume-up { }; }; + gpio-leds { + compatible = "gpio-leds"; + + pinctrl-names = "default"; + pinctrl-0 = <&gpio_leds_default>; + + led-0 { + gpios = <&msmgpio 32 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "torch"; + function = LED_FUNCTION_TORCH; + }; + }; + usb_id: usb-id { compatible = "linux,extcon-usb-gpio"; id-gpio = <&msmgpio 69 GPIO_ACTIVE_HIGH>; @@ -276,6 +290,14 @@ gpio_keys_default: gpio-keys-default-state { bias-pull-up; }; + gpio_leds_default: gpio-leds-default-state { + pins = "gpio32"; + function = "gpio"; + + drive-strength = <2>; + bias-disable; + }; + gyro_int_default: gyro-int-default-state { pins = "gpio97", "gpio98"; function = "gpio"; From patchwork Fri Nov 4 13:24:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Knecht X-Patchwork-Id: 15518 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp401017wru; Fri, 4 Nov 2022 06:27:24 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4lovaE+haPHK5CXyuRyOPERBBSbZ2RzMrINQ9q8BoteZVEcGTDD79NxoGHK6dpEwawT2FT X-Received: by 2002:a17:907:1dec:b0:7aa:6262:f23f with SMTP id og44-20020a1709071dec00b007aa6262f23fmr754586ejc.38.1667568444522; Fri, 04 Nov 2022 06:27:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667568444; cv=none; d=google.com; s=arc-20160816; b=yDqi+gSZAuTxaJ3SGUNuMuvzEsbNm6IrDHkgjrHGh+aj12osqXV8cP82rMs0cAEdn+ ZaYj0fjLjcLU37JfjILSP+Vrp7aG6UiZr0yCKTQ/hMDRGpUNcfLT3BKQW5/NfixzRQD6 /D81Xol74agp2uHZ5b47YzcItkR/KWMkXpiTqFd0RZMAGG5Xud+VcjV4jXZ9zz+YF3Ul +yZ0Zxbn9Ow4TLjuAiPjXV3nA0h2vA+9qS5UO6DHDs41ZGiMqgmc1kvHrOeBgeLc3a0X CTG15sbUfFMnvmB7XBiCE8xEZF2b5B5vCfuJX5YrSvFCMM596aCjYzLg1DGmJr4/dF2U Egig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=QgCzrzwN9XIvSUkivo2/hyrRh7YfghP6V8F2WTKw/nA=; b=qkG7wyGZRs5+/E5Zr7ms4w6CYfv4NFs+pK083lZxnTRKtvycN7IOxCbxHpbi/sd7DX N6Su475Vi/BiG+LhrI/UU/QVcxxmbJlXtC0apP4BeqFSv6kaNSFknSY9iAPfth2pT8SF N2U9N+24i0V523EEEsATOPimzq4N53/5+8Z/mYM1KDhExji2t0WHt6VtQU4INfpwFr96 Sw5jv90IzmYPYsAJ+wP+OlW4sbIukGlsOkr1zVLZeM3XtT5IQwVYRfq9vRZ4bZnjUowM 0KRrdm2SI1M66i01YyiknI8crSRVarG+vWJesCiQXnnjFpjvm0KBSHJoHt8YutfoFCUO +vMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mailoo.org header.s=mailo header.b="X7k/7N+V"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mailoo.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dr14-20020a170907720e00b007a2d966eeccsi5354629ejc.686.2022.11.04.06.27.00; Fri, 04 Nov 2022 06:27:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@mailoo.org header.s=mailo header.b="X7k/7N+V"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mailoo.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231302AbiKDNZf (ORCPT + 99 others); Fri, 4 Nov 2022 09:25:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231567AbiKDNYy (ORCPT ); Fri, 4 Nov 2022 09:24:54 -0400 Received: from msg-1.mailo.com (msg-1.mailo.com [213.182.54.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE1412FC30; Fri, 4 Nov 2022 06:24:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mailoo.org; s=mailo; t=1667568260; bh=/VuTcksTYzQcmTVddTorAaSINvFG5kEAozPNxmP6P0k=; h=X-EA-Auth:From:To:Cc:Subject:Date:Message-Id:X-Mailer:In-Reply-To: References:MIME-Version:Content-Transfer-Encoding; b=X7k/7N+Vu71B3AuVpAKMN44ePg8unhWCDJK5VnPVpvEtC0fIxFbmCXrrC1rmUNouh ovC7E1G7tWzOWew5cXzKcHJI+3D7tiTypW2Dp8H7zmxbbEeakXjzmGdyvp5ZttgaTR kKGEKVKi2go630EvVCseM8Rq2wgxJ/RtP2ZJUzsE= Received: by b-6.in.mailobj.net [192.168.90.16] with ESMTP via proxy.mailoo.org [213.182.55.207] Fri, 4 Nov 2022 14:24:20 +0100 (CET) X-EA-Auth: MBXKOFvLNcjuDq1qBH+FDXkViUMQsA7Hp6gAIFNEdb1ykPMxL1HfK1DFo7RY5OsAe4h/EV1PvpkfwVbk083EliZqx1ANLoHEIK3S6UucV5A= From: Vincent Knecht To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Vincent Knecht Subject: [PATCH v2 3/3] arm64: dts: qcom: msm8916-alcatel-idol347: add LED indicator Date: Fri, 4 Nov 2022 14:24:00 +0100 Message-Id: <20221104132400.1763218-4-vincent.knecht@mailoo.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221104132400.1763218-1-vincent.knecht@mailoo.org> References: <20221104132400.1763218-1-vincent.knecht@mailoo.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748572249447242227?= X-GMAIL-MSGID: =?utf-8?q?1748572249447242227?= Add si-en,sn3190 LED controller to enable white LED indicator. This requires adding the additional "enable" gpio that the OEM choose to use, despite it not being mentioned in si-en,sn3190 datasheet nor supported by the driver. Signed-off-by: Vincent Knecht Reviewed-by: Krzysztof Kozlowski Reviewed-by: Konrad Dybcio --- .../boot/dts/qcom/msm8916-alcatel-idol347.dts | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916-alcatel-idol347.dts b/arch/arm64/boot/dts/qcom/msm8916-alcatel-idol347.dts index eadeb1a445fd..701a5585d77e 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-alcatel-idol347.dts +++ b/arch/arm64/boot/dts/qcom/msm8916-alcatel-idol347.dts @@ -130,6 +130,27 @@ gyroscope@68 { }; }; +&blsp_i2c6 { + status = "okay"; + + led-controller@68 { + compatible = "si-en,sn3190"; + reg = <0x68>; + shutdown-gpios = <&msmgpio 89 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&led_enable_default &led_shutdown_default>; + #address-cells = <1>; + #size-cells = <0>; + + led@1 { + reg = <1>; + led-max-microamp = <5000>; + function = LED_FUNCTION_INDICATOR; + color = ; + }; + }; +}; + &pm8916_resin { status = "okay"; linux,code = ; @@ -306,6 +327,29 @@ gyro_int_default: gyro-int-default-state { bias-disable; }; + /* + * The OEM wired an additional GPIO to be asserted so that + * the si-en,sn3190 LED IC works. Since this GPIO is not + * part of the IC datasheet nor supported by the driver, + * force it asserted here. + */ + led_enable_default: led-enable-default-state { + pins = "gpio102"; + function = "gpio"; + + drive-strength = <2>; + bias-disable; + output-high; + }; + + led_shutdown_default: led-shutdown-default-state { + pins = "gpio89"; + function = "gpio"; + + drive-strength = <2>; + bias-disable; + }; + mag_reset_default: mag-reset-default-state { pins = "gpio8"; function = "gpio";