From nobody Fri May 3 13:23:40 2024 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 ACCD5C04A95 for ; Wed, 28 Sep 2022 18:44:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233959AbiI1SoX (ORCPT ); Wed, 28 Sep 2022 14:44:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232180AbiI1SoU (ORCPT ); Wed, 28 Sep 2022 14:44:20 -0400 Received: from mail-4324.protonmail.ch (mail-4324.protonmail.ch [185.70.43.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15B529C7C4; Wed, 28 Sep 2022 11:44:19 -0700 (PDT) Date: Wed, 28 Sep 2022 18:44:04 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1664390658; x=1664649858; bh=bx6LkYA6tSEHnMC6YQRX0QPXJeIZTYibdxAR1z0B574=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID; b=w9dsfzQwEO276D6FEKsnvmWdEg6TrXvVGXWJKEq0Mp2IbzDoyo8fB+92f7UomDyzV ZBEAK+cZI44zTw9tcmcqRPu86yV1/uiZqumDQ9iJjadfYdPDwfCAhN2+3b1bu1L0PU 0DGm3B0WheQ66pzFeyGkXTxoDm9W4Tr4qbZ6HhtYBbMaZky3GaW7MgahPWYrEP94wC nRSp7pkFrj7iZkIM9Rk657YdDbTl5JNKioCZR/FMhbDjIpLRzpSbb6ApUCgv4GPqsX CDyH1l7BLjlpIakLLLqD/uKoQ4WkUspzVH0qjI+xZpZKbdNOfcuwQaLy/EVF42qb5i Qdu+uLZgQ/PNg== To: devicetree@vger.kernel.org From: "Lin, Meng-Bo" Cc: Stephan Gerhold , Nikita Travkin , Julian Ribbeck , Josef W Menad , Markuss Broks , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Subject: [PATCH v5 1/4] dt-bindings: qcom: Document bindings for new msm8916-samsung-j5 devices Message-ID: <20220928184251.186687-1-linmengbo0689@protonmail.com> In-Reply-To: <20220928184155.186632-1-linmengbo0689@protonmail.com> References: <20220928184155.186632-1-linmengbo0689@protonmail.com> Feedback-ID: 40467236:user:proton MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Document the new samsung-j3/j5x device tree bindings used in their device trees. Signed-off-by: Lin, Meng-Bo Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/arm/qcom.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/qcom.yaml b/Documentatio= n/devicetree/bindings/arm/qcom.yaml index fb1d00bcc847..b1c69d4d9a9a 100644 --- a/Documentation/devicetree/bindings/arm/qcom.yaml +++ b/Documentation/devicetree/bindings/arm/qcom.yaml @@ -176,7 +176,9 @@ properties: - longcheer,l8910 - samsung,a3u-eur - samsung,a5u-eur + - samsung,j3 - samsung,j5 + - samsung,j5x - samsung,serranove - wingtech,wt88047 - const: qcom,msm8916 --=20 2.30.2 From nobody Fri May 3 13:23:40 2024 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 349CEC04A95 for ; Wed, 28 Sep 2022 18:44:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232937AbiI1Soh (ORCPT ); Wed, 28 Sep 2022 14:44:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234088AbiI1Soc (ORCPT ); Wed, 28 Sep 2022 14:44:32 -0400 Received: from mail-4324.protonmail.ch (mail-4324.protonmail.ch [185.70.43.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10273E9511 for ; Wed, 28 Sep 2022 11:44:29 -0700 (PDT) Date: Wed, 28 Sep 2022 18:44:23 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1664390667; x=1664649867; bh=J6Q0VuvyIjV0kEqykmiUPF3+T4Y0AOtQNu0NAJk0z28=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID; b=kXwkGUOJdJWiieI+LCuIBsJm/vkGP3peh0Dd/yyy+8Ev6rLkJo7Zau0sdjLTEPsB8 HZgJIUdGKRP/WLd5kFRHWRxUxq+uS5YwR8888kU/AwjGtRL6EraCH+yKxy/fn6HoKF XsFb7ONdfYIhePvuiIy7Cdym7GD3jMSNnUdrfwZEBSxEHlfxNtO9CMHP1v3A8YOOhC VAR7HLGKN0wABtQtPVl/Xo4MsKeo1Ti9pNC2yUOAQv53WFnlLLROk9atWAmaEtxGom Vx8kz5JmWVA+T+MxoAHWqW/2RzIitN/DOt73WaX4q7xUvjWVTxIIP4ViNptLEAL7bk Kjto6eSiW6LSA== To: devicetree@vger.kernel.org From: "Lin, Meng-Bo" Cc: Stephan Gerhold , Nikita Travkin , Julian Ribbeck , Josef W Menad , Markuss Broks , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Subject: [PATCH v5 2/4] arm64: dts: qcom: msm8916-samsung-j5-common: Add initial common device tree Message-ID: <20220928184302.186746-1-linmengbo0689@protonmail.com> In-Reply-To: <20220928184155.186632-1-linmengbo0689@protonmail.com> References: <20220928184155.186632-1-linmengbo0689@protonmail.com> Feedback-ID: 40467236:user:proton MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" The smartphones below are using the MSM8916 SoC, which are released in 2015-2016: Samsung Galaxy J5 2015 (SM-J500*) Samsung Galaxy J5 2016 (SM-J510*) Samsung Galaxy J3 2016 - SM-J3109/SM-J320Y/SM-J320YZ - SM-J320N0/SM-J320ZN - SM-J320P/SM-J320R4/SM-J320V/SM-S320VL Add a common device tree for with initial support for: - GPIO keys - SDHCI (internal and external storage) - USB Device Mode - UART (on USB connector via the SM5703 MUIC) - WCNSS (WiFi/BT) - Regulators The three devices (some varints of J3, all other variants of J5 released in 2015 and J5X released in 2016) are very similar, with some differences in display and GPIO pins. The common parts are shared in msm8916-samsung-j5-common.dtsi to reduce duplication. Signed-off-by: Lin, Meng-Bo Reviewed-by: Krzysztof Kozlowski --- ...-j5.dts =3D> msm8916-samsung-j5-common.dtsi} | 9 +- .../boot/dts/qcom/msm8916-samsung-j5.dts | 224 ++---------------- 2 files changed, 16 insertions(+), 217 deletions(-) copy arch/arm64/boot/dts/qcom/{msm8916-samsung-j5.dts =3D> msm8916-samsung= -j5-common.dtsi} (94%) rewrite arch/arm64/boot/dts/qcom/msm8916-samsung-j5.dts (93%) diff --git a/arch/arm64/boot/dts/qcom/msm8916-samsung-j5.dts b/arch/arm64/b= oot/dts/qcom/msm8916-samsung-j5-common.dtsi similarity index 94% copy from arch/arm64/boot/dts/qcom/msm8916-samsung-j5.dts copy to arch/arm64/boot/dts/qcom/msm8916-samsung-j5-common.dtsi index eabeed18cfaa..502b38d4a61e 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-samsung-j5.dts +++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-j5-common.dtsi @@ -1,15 +1,9 @@ // SPDX-License-Identifier: GPL-2.0-only =20 -/dts-v1/; - #include "msm8916-pm8916.dtsi" #include =20 / { - model =3D "Samsung Galaxy J5 (2015)"; - compatible =3D "samsung,j5", "qcom,msm8916"; - chassis-type =3D "handset"; - aliases { serial0 =3D &blsp1_uart2; }; @@ -92,7 +86,6 @@ &usb { =20 &usb_hs_phy { extcon =3D <&pm8916_usbin>; - qcom,init-seq =3D /bits/ 8 <0x1 0x19 0x2 0x0b>; }; =20 &smd_rpm_regulators { @@ -199,7 +192,7 @@ l18 { }; =20 &msmgpio { - gpio_keys_default: gpio-keys-default { + gpio_keys_default: gpio-keys-default-state { pins =3D "gpio107", "gpio109"; function =3D "gpio"; =20 diff --git a/arch/arm64/boot/dts/qcom/msm8916-samsung-j5.dts b/arch/arm64/b= oot/dts/qcom/msm8916-samsung-j5.dts dissimilarity index 93% index eabeed18cfaa..0a32d33e9778 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-samsung-j5.dts +++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-j5.dts @@ -?,? +1,15 @@ +// SPDX-License-Identifier: GPL-2.0-only + +/dts-v1/; + +#include "msm8916-samsung-j5-common.dtsi" + +/ { + model =3D "Samsung Galaxy J5 (2015)"; + compatible =3D "samsung,j5", "qcom,msm8916"; + chassis-type =3D "handset"; +}; + +&usb_hs_phy { + qcom,init-seq =3D /bits/ 8 <0x1 0x19 0x2 0x0b>; +}; --=20 2.30.2 From nobody Fri May 3 13:23:40 2024 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 9A3F2C04A95 for ; Wed, 28 Sep 2022 18:44:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234247AbiI1Sox (ORCPT ); Wed, 28 Sep 2022 14:44:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234113AbiI1Soq (ORCPT ); Wed, 28 Sep 2022 14:44:46 -0400 Received: from mail-4319.protonmail.ch (mail-4319.protonmail.ch [185.70.43.19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB960DF38; Wed, 28 Sep 2022 11:44:40 -0700 (PDT) Date: Wed, 28 Sep 2022 18:44:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1664390679; x=1664649879; bh=+y/IKTutaewRNTvQIWmB1RXTuElSdtHOydFT1+sPz6c=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID; b=NQOuLeEFZtjWd6r4/ZZm/YSU9mrpsi0KChBKoUmLGxC3cyRjqBNp9l6fPKFAuDrkx sjc8IAorLFJGGYg0mUj2+uO4vflSafvMHYzoi32f1omw0bwohsKWNRPmZbJLczw/dP KcQ/4C3cV0pA/9L7kZxScbTSNV1WHldT/Q1TLcaBGm2iL1GZIVBJ5LDH969brZXLiV h56RCu4uSdiGQYXRZWkDOTvJj3Gk7q0UyTwJws7E1h+tDB8i3bXWCdFyRkjVJdPq89 t1fNSGytCmedCSrUhr/VrM2lrdrN9pAPkjRSAATxBDT/G7W1LB3yGGtUyUQU5jwIZN fuCGJA/7iHvPQ== To: devicetree@vger.kernel.org From: "Lin, Meng-Bo" Cc: Stephan Gerhold , Nikita Travkin , Julian Ribbeck , Josef W Menad , Markuss Broks , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Subject: [PATCH v5 3/4] arm64: dts: qcom: msm8916-samsung-j5-common: Add new device trees Message-ID: <20220928184314.186805-1-linmengbo0689@protonmail.com> In-Reply-To: <20220928184155.186632-1-linmengbo0689@protonmail.com> References: <20220928184155.186632-1-linmengbo0689@protonmail.com> Feedback-ID: 40467236:user:proton MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" After moving msm8916-samsung-j5.dts to msm8916-samsung-j5-common.dtsi, Add new J3 and J5 2016 device trees. [Add j5x device tree] Co-developed-by: Josef W Menad Signed-off-by: Josef W Menad [Use &pm8916_usbin as USB extcon and add chassis-type for j5x] Co-developed-by: Stephan Gerhold Signed-off-by: Stephan Gerhold [Use common init device tree and add j3 device tree] Signed-off-by: Lin, Meng-Bo Reviewed-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/qcom/Makefile | 2 ++ .../boot/dts/qcom/msm8916-samsung-j3.dts | 21 +++++++++++++++++++ .../boot/dts/qcom/msm8916-samsung-j5x.dts | 11 ++++++++++ 3 files changed, 34 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/msm8916-samsung-j3.dts create mode 100644 arch/arm64/boot/dts/qcom/msm8916-samsung-j5x.dts diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/M= akefile index 1d86a33de528..357a2529fe74 100644 --- a/arch/arm64/boot/dts/qcom/Makefile +++ b/arch/arm64/boot/dts/qcom/Makefile @@ -15,7 +15,9 @@ dtb-$(CONFIG_ARCH_QCOM) +=3D msm8916-longcheer-l8910.dtb dtb-$(CONFIG_ARCH_QCOM) +=3D msm8916-mtp.dtb dtb-$(CONFIG_ARCH_QCOM) +=3D msm8916-samsung-a3u-eur.dtb dtb-$(CONFIG_ARCH_QCOM) +=3D msm8916-samsung-a5u-eur.dtb +dtb-$(CONFIG_ARCH_QCOM) +=3D msm8916-samsung-j3.dtb dtb-$(CONFIG_ARCH_QCOM) +=3D msm8916-samsung-j5.dtb +dtb-$(CONFIG_ARCH_QCOM) +=3D msm8916-samsung-j5x.dtb dtb-$(CONFIG_ARCH_QCOM) +=3D msm8916-samsung-serranove.dtb dtb-$(CONFIG_ARCH_QCOM) +=3D msm8916-wingtech-wt88047.dtb dtb-$(CONFIG_ARCH_QCOM) +=3D msm8992-lg-bullhead-rev-10.dtb diff --git a/arch/arm64/boot/dts/qcom/msm8916-samsung-j3.dts b/arch/arm64/b= oot/dts/qcom/msm8916-samsung-j3.dts new file mode 100644 index 000000000000..35d3e9c6d012 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-j3.dts @@ -0,0 +1,21 @@ +// SPDX-License-Identifier: GPL-2.0-only + +/dts-v1/; + +#include "msm8916-samsung-j5-common.dtsi" + +/ { + model =3D "Samsung Galaxy J3 (2016)"; + compatible =3D "samsung,j3", "qcom,msm8916"; + chassis-type =3D "handset"; + + reserved-memory { + /delete-node/ tz-apps@85500000; + + /* Additional memory used by Samsung firmware modifications */ + tz-apps@85800000 { + reg =3D <0x0 0x85800000 0x0 0x800000>; + no-map; + }; + }; +}; diff --git a/arch/arm64/boot/dts/qcom/msm8916-samsung-j5x.dts b/arch/arm64/= boot/dts/qcom/msm8916-samsung-j5x.dts new file mode 100644 index 000000000000..7656ac4508cf --- /dev/null +++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-j5x.dts @@ -0,0 +1,11 @@ +// SPDX-License-Identifier: GPL-2.0-only + +/dts-v1/; + +#include "msm8916-samsung-j5-common.dtsi" + +/ { + model =3D "Samsung Galaxy J5 (2016)"; + compatible =3D "samsung,j5x", "qcom,msm8916"; + chassis-type =3D "handset"; +}; --=20 2.30.2 From nobody Fri May 3 13:23:40 2024 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 7FCCAC04A95 for ; Wed, 28 Sep 2022 18:45:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234069AbiI1SpA (ORCPT ); Wed, 28 Sep 2022 14:45:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234114AbiI1Sos (ORCPT ); Wed, 28 Sep 2022 14:44:48 -0400 Received: from mail-4319.protonmail.ch (mail-4319.protonmail.ch [185.70.43.19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57C7911A0B; Wed, 28 Sep 2022 11:44:42 -0700 (PDT) Date: Wed, 28 Sep 2022 18:44:36 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1664390681; x=1664649881; bh=XpZbDM+upygRTlijf/OSRl41+UlZ87vL8pT9rplz1UM=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID; b=jUQ0ZD9gOj1I7lAJragr/717l3sL05BAR8Qn+ibt4SEq7gVgrajploWcAAhKC0rFs u2k+rAJgLKqAOsXQeubH0K3t3zwQNuTeneIVkYnPt38W8aIae+KiF5zJdd+/z636MY xRkD9uZb9ICPQV5aZ7zr8YZhhwGEXM5MK1xI8GsNEH9F15gR9ZNk+g6lZnDIIXMU/V BlD0qbdXrRnWzFbQauA/1cpbEhEkCRZT1jb32AbOXoTWI4XOmtzC6u7n5d5vNajjK/ gt1V2HF2HDHz8lhJPo0ljT/3p9eJKzbER8t6Spsi8sL8nrt5for3A8s7217urQV3Pl mDCLcxhEXzMCg== To: devicetree@vger.kernel.org From: "Lin, Meng-Bo" Cc: Stephan Gerhold , Nikita Travkin , Julian Ribbeck , Josef W Menad , Markuss Broks , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Subject: [PATCH v5 4/4] arm64: dts: qcom: msm8916-samsung-j5-common: Add Hall sensor Message-ID: <20220928184325.186866-1-linmengbo0689@protonmail.com> In-Reply-To: <20220928184155.186632-1-linmengbo0689@protonmail.com> References: <20220928184155.186632-1-linmengbo0689@protonmail.com> Feedback-ID: 40467236:user:proton MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Samsung Galaxy J5 2015 and 2016 have a Hall sensor on GPIO pin 52. Add GPIO Hall sensor for them. Signed-off-by: Lin, Meng-Bo Reviewed-by: Krzysztof Kozlowski --- .../boot/dts/qcom/msm8916-samsung-j3.dts | 4 +++ .../dts/qcom/msm8916-samsung-j5-common.dtsi | 26 +++++++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916-samsung-j3.dts b/arch/arm64/b= oot/dts/qcom/msm8916-samsung-j3.dts index 35d3e9c6d012..7cfc6f8f5fcf 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-samsung-j3.dts +++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-j3.dts @@ -19,3 +19,7 @@ tz-apps@85800000 { }; }; }; + +&gpio_hall_sensor { + status =3D "disabled"; +}; diff --git a/arch/arm64/boot/dts/qcom/msm8916-samsung-j5-common.dtsi b/arch= /arm64/boot/dts/qcom/msm8916-samsung-j5-common.dtsi index 502b38d4a61e..5755b360c6ed 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-samsung-j5-common.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-j5-common.dtsi @@ -2,6 +2,7 @@ =20 #include "msm8916-pm8916.dtsi" #include +#include =20 / { aliases { @@ -20,6 +21,23 @@ tz-apps@85500000 { }; }; =20 + gpio_hall_sensor: gpio-hall-sensor { + compatible =3D "gpio-keys"; + + pinctrl-names =3D "default"; + pinctrl-0 =3D <&gpio_hall_sensor_default>; + + label =3D "GPIO Hall Effect Sensor"; + + event-hall-sensor { + label =3D "Hall Effect Sensor"; + gpios =3D <&msmgpio 52 GPIO_ACTIVE_LOW>; + linux,input-type =3D ; + linux,code =3D ; + linux,can-disable; + }; + }; + gpio-keys { compatible =3D "gpio-keys"; =20 @@ -192,6 +210,14 @@ l18 { }; =20 &msmgpio { + gpio_hall_sensor_default: gpio-hall-sensor-default-state { + pins =3D "gpio52"; + function =3D "gpio"; + + drive-strength =3D <2>; + bias-disable; + }; + gpio_keys_default: gpio-keys-default-state { pins =3D "gpio107", "gpio109"; function =3D "gpio"; --=20 2.30.2