From: Erikas Bitovtas <xerikasxx@gmail.com>
To: Bjorn Andersson <andersson@kernel.org>,
Konrad Dybcio <konradybcio@kernel.org>,
Abel Vesa <abelvesa@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>
Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
Erikas Bitovtas <xerikasxx@gmail.com>
Subject: [PATCH 2/2] arm64: dts: qcom: sm7125-samsung: add grip sensor
Date: Thu, 12 Nov 2026 15:32:59 +0200 [thread overview]
Message-ID: <20261112-sm7125-samsung-grip-sensor-v1-2-d45dd9c845e7@gmail.com> (raw)
In-Reply-To: <20261112-sm7125-samsung-grip-sensor-v1-0-d45dd9c845e7@gmail.com>
Samsung Galaxy A52 and A72 use a Semtech SX9360 SAR sensor to detect if
the phone has been gripped. Add this sensor to the device tree
configuration.
No I2C bus is being muxed on GPIOs 51 and 52 on SM7125, so we bit-bang
instead.
Signed-off-by: Erikas Bitovtas <xerikasxx@gmail.com>
---
.../arm64/boot/dts/qcom/sm7125-samsung-common.dtsi | 47 ++++++++++++++++++++++
1 file changed, 47 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/sm7125-samsung-common.dtsi b/arch/arm64/boot/dts/qcom/sm7125-samsung-common.dtsi
index 5685755a44f6..52fe06303294 100644
--- a/arch/arm64/boot/dts/qcom/sm7125-samsung-common.dtsi
+++ b/arch/arm64/boot/dts/qcom/sm7125-samsung-common.dtsi
@@ -60,6 +60,39 @@ event-hall-sensor {
};
};
+ i2c-grip {
+ compatible = "i2c-gpio";
+ sda-gpios = <&tlmm 51 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
+ scl-gpios = <&tlmm 52 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
+
+ i2c-gpio,delay-us = <2>;
+
+ pinctrl-0 = <&grip_sensor_i2c_default>;
+ pinctrl-names = "default";
+
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ grip-sensor@28 {
+ compatible = "semtech,sx9360";
+ reg = <0x28>;
+
+ interrupts-extended = <&pm6150l_gpios 5 IRQ_TYPE_EDGE_FALLING>;
+
+ vdd-supply = <&vreg_l5a_2p7>;
+ svdd-supply = <&vreg_l8c_1p8>;
+
+ pinctrl-0 = <&grip_sensor_int_default>;
+ pinctrl-names = "default";
+
+ semtech,resolution = <1024>;
+ semtech,proxraw-strength = <2>;
+ semtech,avg-pos-strength = <512>;
+
+ #io-channel-cells = <1>;
+ };
+ };
+
reserved-memory {
#address-cells = <2>;
#size-cells = <2>;
@@ -379,6 +412,14 @@ &dispcc {
};
&pm6150l_gpios {
+ grip_sensor_int_default: grip-sensor-int-default-state {
+ pins = "gpio5";
+ function = "normal";
+ power-source = <0>;
+ input-enable;
+ bias-disable;
+ };
+
key_vol_up_default: key-vol-up-default-state {
pins = "gpio8";
function = "normal";
@@ -434,6 +475,12 @@ &sdhc_2 {
&tlmm {
gpio-reserved-ranges = <59 4>; /* Fingerprint sensor SPI */
+ grip_sensor_i2c_default: grip-sensor-i2c-default-state {
+ pins = "gpio51", "gpio52";
+ function = "gpio";
+ bias-disable;
+ };
+
sdc2_on: sdc2-on-state {
clk-pins {
pins = "sdc2_clk";
--
2.56.1
prev parent reply other threads:[~2026-11-12 13:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-12 13:32 [PATCH 0/2] " Erikas Bitovtas
2026-11-12 13:32 ` [PATCH 1/2] arm64: dts: qcom: sm7125-samsung: drop unused label Erikas Bitovtas
2026-11-13 8:09 ` Konrad Dybcio
2026-11-12 13:32 ` Erikas Bitovtas [this message]
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=20261112-sm7125-samsung-grip-sensor-v1-2-d45dd9c845e7@gmail.com \
--to=xerikasxx@gmail.com \
--cc=abelvesa@kernel.org \
--cc=andersson@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh@kernel.org \
/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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®