From: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> To: matthias.bgg@gmail.com Cc: qii.wang@mediatek.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, jassisinghbrar@gmail.com, houlong.wei@mediatek.com, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, kernel@collabora.com, phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Subject: [PATCH v2 16/17] arm64: dts: mediatek: mt6795-xperia-m5: Add Sensortek STK3310 Proximity Date: Mon, 27 Mar 2023 10:36:46 +0200 [thread overview] Message-ID: <20230327083647.22017-17-angelogioacchino.delregno@collabora.com> (raw) In-Reply-To: <20230327083647.22017-1-angelogioacchino.delregno@collabora.com> Add the STK3310 Proximity sensor and its pins. Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> --- .../boot/dts/mediatek/mt6795-sony-xperia-m5.dts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt6795-sony-xperia-m5.dts b/arch/arm64/boot/dts/mediatek/mt6795-sony-xperia-m5.dts index bda14c74a8af..bff0760cc1c8 100644 --- a/arch/arm64/boot/dts/mediatek/mt6795-sony-xperia-m5.dts +++ b/arch/arm64/boot/dts/mediatek/mt6795-sony-xperia-m5.dts @@ -111,6 +111,14 @@ magnetometer@0x12 { compatible = "bosch,bmm150"; reg = <0x12>; }; + + proximity@48 { + compatible = "sensortek,stk3310"; + reg = <0x48>; + interrupts-extended = <&pio 8 IRQ_TYPE_EDGE_FALLING>; + pinctrl-names = "default"; + pinctrl-0 = <&proximity_pins>; + }; }; &pio { @@ -127,6 +135,14 @@ pins-rst { }; }; + proximity_pins: proximity-pins { + pins-irq { + pinmux = <PINMUX_GPIO8__FUNC_GPIO8>; + bias-pull-up; + input-enable; + }; + }; + accel_pins: accelerometer-pins { pins-irq { pinmux = <PINMUX_GPIO12__FUNC_GPIO12>; -- 2.40.0
WARNING: multiple messages have this Message-ID (diff)
From: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> To: matthias.bgg@gmail.com Cc: qii.wang@mediatek.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, jassisinghbrar@gmail.com, houlong.wei@mediatek.com, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, kernel@collabora.com, phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Subject: [PATCH v2 16/17] arm64: dts: mediatek: mt6795-xperia-m5: Add Sensortek STK3310 Proximity Date: Mon, 27 Mar 2023 10:36:46 +0200 [thread overview] Message-ID: <20230327083647.22017-17-angelogioacchino.delregno@collabora.com> (raw) In-Reply-To: <20230327083647.22017-1-angelogioacchino.delregno@collabora.com> Add the STK3310 Proximity sensor and its pins. Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> --- .../boot/dts/mediatek/mt6795-sony-xperia-m5.dts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt6795-sony-xperia-m5.dts b/arch/arm64/boot/dts/mediatek/mt6795-sony-xperia-m5.dts index bda14c74a8af..bff0760cc1c8 100644 --- a/arch/arm64/boot/dts/mediatek/mt6795-sony-xperia-m5.dts +++ b/arch/arm64/boot/dts/mediatek/mt6795-sony-xperia-m5.dts @@ -111,6 +111,14 @@ magnetometer@0x12 { compatible = "bosch,bmm150"; reg = <0x12>; }; + + proximity@48 { + compatible = "sensortek,stk3310"; + reg = <0x48>; + interrupts-extended = <&pio 8 IRQ_TYPE_EDGE_FALLING>; + pinctrl-names = "default"; + pinctrl-0 = <&proximity_pins>; + }; }; &pio { @@ -127,6 +135,14 @@ pins-rst { }; }; + proximity_pins: proximity-pins { + pins-irq { + pinmux = <PINMUX_GPIO8__FUNC_GPIO8>; + bias-pull-up; + input-enable; + }; + }; + accel_pins: accelerometer-pins { pins-irq { pinmux = <PINMUX_GPIO12__FUNC_GPIO12>; -- 2.40.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2023-03-27 8:40 UTC|newest] Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-03-27 8:36 [PATCH v2 00/17] MT6795 Helio X10 and Sony Xperia M5: DT step 2! AngeloGioacchino Del Regno 2023-03-27 8:36 ` AngeloGioacchino Del Regno 2023-03-27 8:36 ` [PATCH v2 01/17] arm64: dts: mediatek: mt6795: Add Frequency Hopping Controller node AngeloGioacchino Del Regno 2023-03-27 8:36 ` AngeloGioacchino Del Regno 2023-03-27 8:36 ` [PATCH v2 02/17] arm64: dts: mediatek: mt6795: Add apmixedsys syscon node AngeloGioacchino Del Regno 2023-03-27 8:36 ` AngeloGioacchino Del Regno 2023-04-02 17:08 ` Matthias Brugger 2023-04-02 17:08 ` Matthias Brugger 2023-03-27 8:36 ` [PATCH v2 03/17] arm64: dts: mediatek: mt6795: xperia-m5: Enable Frequency Hopping AngeloGioacchino Del Regno 2023-03-27 8:36 ` AngeloGioacchino Del Regno 2023-03-27 8:36 ` [PATCH v2 04/17] dt-bindings: i2c: i2c-mt65xx: Add compatible for MT6795 Helio X10 AngeloGioacchino Del Regno 2023-03-27 8:36 ` AngeloGioacchino Del Regno 2023-03-27 8:36 ` [PATCH v2 05/17] arm64: dts: mediatek: mt6795: Add nodes for I2C controllers AngeloGioacchino Del Regno 2023-03-27 8:36 ` AngeloGioacchino Del Regno 2023-03-27 8:36 ` [PATCH v2 06/17] arm64: dts: mediatek: mt6795: Add SoC power domains AngeloGioacchino Del Regno 2023-03-27 8:36 ` AngeloGioacchino Del Regno 2023-03-27 8:36 ` [PATCH v2 07/17] dt-bindings: mailbox: mediatek,gce-mailbox: Add support for MT6795 AngeloGioacchino Del Regno 2023-03-27 8:36 ` AngeloGioacchino Del Regno 2023-04-05 9:42 ` AngeloGioacchino Del Regno 2023-04-05 9:42 ` AngeloGioacchino Del Regno 2023-03-27 8:36 ` [PATCH v2 08/17] arm64: dts: mediatek: mt6795: Add support for the CMDQ/GCE mailbox AngeloGioacchino Del Regno 2023-03-27 8:36 ` AngeloGioacchino Del Regno 2023-03-27 8:36 ` [PATCH v2 09/17] arm64: dts: mediatek: mt6795: Add MMSYS node for multimedia clocks AngeloGioacchino Del Regno 2023-03-27 8:36 ` AngeloGioacchino Del Regno 2023-03-27 8:36 ` [PATCH v2 10/17] arm64: dts: mediatek: mt6795: Add VDECSYS and VENCSYS clocks AngeloGioacchino Del Regno 2023-03-27 8:36 ` AngeloGioacchino Del Regno 2023-03-27 8:36 ` [PATCH v2 11/17] arm64: dts: mediatek: mt6795: Add support for IOMMU and LARBs AngeloGioacchino Del Regno 2023-03-27 8:36 ` AngeloGioacchino Del Regno 2023-03-27 8:36 ` [PATCH v2 12/17] arm64: dts: mediatek: mt6795-xperia-m5: Enable I2C 0-3 busses AngeloGioacchino Del Regno 2023-03-27 8:36 ` AngeloGioacchino Del Regno 2023-03-27 8:36 ` [PATCH v2 13/17] arm64: dts: mediatek: mt6795-xperia-m5: Add Synaptics RMI4 Touchscreen AngeloGioacchino Del Regno 2023-03-27 8:36 ` AngeloGioacchino Del Regno 2023-03-27 8:36 ` [PATCH v2 14/17] arm64: dts: mediatek: mt6795-xperia-m5: Add Bosch BMA255 Accelerometer AngeloGioacchino Del Regno 2023-03-27 8:36 ` AngeloGioacchino Del Regno 2023-03-27 8:36 ` [PATCH v2 15/17] arm64: dts: mediatek: mt6795-xperia-m5: Add Bosch BMM050 Magnetometer AngeloGioacchino Del Regno 2023-03-27 8:36 ` AngeloGioacchino Del Regno 2023-03-27 8:36 ` AngeloGioacchino Del Regno [this message] 2023-03-27 8:36 ` [PATCH v2 16/17] arm64: dts: mediatek: mt6795-xperia-m5: Add Sensortek STK3310 Proximity AngeloGioacchino Del Regno 2023-03-27 8:36 ` [PATCH v2 17/17] arm64: dts: mediatek: mt6795-xperia-m5: Add NXP PN547 NFC on I2C3 AngeloGioacchino Del Regno 2023-03-27 8:36 ` AngeloGioacchino Del Regno 2023-04-02 17:26 ` [PATCH v2 00/17] MT6795 Helio X10 and Sony Xperia M5: DT step 2! Matthias Brugger 2023-04-02 17:26 ` Matthias Brugger 2023-04-11 16:48 ` Matthias Brugger 2023-04-11 16:48 ` Matthias Brugger
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20230327083647.22017-17-angelogioacchino.delregno@collabora.com \ --to=angelogioacchino.delregno@collabora.com \ --cc=devicetree@vger.kernel.org \ --cc=houlong.wei@mediatek.com \ --cc=jassisinghbrar@gmail.com \ --cc=kernel@collabora.com \ --cc=krzysztof.kozlowski+dt@linaro.org \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-i2c@vger.kernel.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-mediatek@lists.infradead.org \ --cc=matthias.bgg@gmail.com \ --cc=phone-devel@vger.kernel.org \ --cc=qii.wang@mediatek.com \ --cc=robh+dt@kernel.org \ --cc=~postmarketos/upstreaming@lists.sr.ht \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.