* [PATCH 0/2] arm64: dts: qcom: sm7125-samsung: add grip sensor
@ 2026-11-12 13:32 Erikas Bitovtas
2026-11-12 13:32 ` [PATCH 1/2] arm64: dts: qcom: sm7125-samsung: drop unused label Erikas Bitovtas
2026-11-12 13:32 ` [PATCH 2/2] arm64: dts: qcom: sm7125-samsung: add grip sensor Erikas Bitovtas
0 siblings, 2 replies; 4+ messages in thread
From: Erikas Bitovtas @ 2026-11-12 13:32 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: linux-arm-msm, devicetree, linux-kernel, Erikas Bitovtas
Samsung Galaxy A52 and A72 use Semtech SX9360 SAR sensor to detect if
the phone has been gripped. This sensor was initially added as part of
device introduction series, however, an older revision of the series was
picked up instead, which did not include this sensor. A link to this
series can be found here:
https://lore.kernel.org/linux-arm-msm/20261024-sm7125-samsung-v5-1-5a602ab00626@gmail.com/
This series fixes up issues mentioned in v5 and adds the grip sensor. No
changes from what was submitted before are intended.
Signed-off-by: Erikas Bitovtas <xerikasxx@gmail.com>
---
Erikas Bitovtas (2):
arm64: dts: qcom: sm7125-samsung: drop unused label
arm64: dts: qcom: sm7125-samsung: add grip sensor
.../arm64/boot/dts/qcom/sm7125-samsung-common.dtsi | 48 +++++++++++++++++++++-
1 file changed, 47 insertions(+), 1 deletion(-)
---
base-commit: aaa2f954c21b205a0bcd0961e5b2be4e82e58455
change-id: 20261112-sm7125-samsung-grip-sensor-2a107d537b42
Best regards,
--
Erikas Bitovtas <xerikasxx@gmail.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/2] arm64: dts: qcom: sm7125-samsung: drop unused label
2026-11-12 13:32 [PATCH 0/2] arm64: dts: qcom: sm7125-samsung: add grip sensor Erikas Bitovtas
@ 2026-11-12 13:32 ` Erikas Bitovtas
2026-11-13 8:09 ` Konrad Dybcio
2026-11-12 13:32 ` [PATCH 2/2] arm64: dts: qcom: sm7125-samsung: add grip sensor Erikas Bitovtas
1 sibling, 1 reply; 4+ messages in thread
From: Erikas Bitovtas @ 2026-11-12 13:32 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: linux-arm-msm, devicetree, linux-kernel, Erikas Bitovtas
Drop unused vdd_cx_wlan label for vreg_l9a_0p8 regulator.
Signed-off-by: Erikas Bitovtas <xerikasxx@gmail.com>
---
arch/arm64/boot/dts/qcom/sm7125-samsung-common.dtsi | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/arm64/boot/dts/qcom/sm7125-samsung-common.dtsi b/arch/arm64/boot/dts/qcom/sm7125-samsung-common.dtsi
index 59ef4921f31e..5685755a44f6 100644
--- a/arch/arm64/boot/dts/qcom/sm7125-samsung-common.dtsi
+++ b/arch/arm64/boot/dts/qcom/sm7125-samsung-common.dtsi
@@ -214,7 +214,6 @@ vreg_l6a_0p6: ldo6 {
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
};
- vdd_cx_wlan:
vreg_l9a_0p8: ldo9 {
regulator-min-microvolt = <488000>;
regulator-max-microvolt = <800000>;
--
2.56.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 2/2] arm64: dts: qcom: sm7125-samsung: add grip sensor
2026-11-12 13:32 [PATCH 0/2] arm64: dts: qcom: sm7125-samsung: add grip sensor Erikas Bitovtas
2026-11-12 13:32 ` [PATCH 1/2] arm64: dts: qcom: sm7125-samsung: drop unused label Erikas Bitovtas
@ 2026-11-12 13:32 ` Erikas Bitovtas
1 sibling, 0 replies; 4+ messages in thread
From: Erikas Bitovtas @ 2026-11-12 13:32 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: linux-arm-msm, devicetree, linux-kernel, Erikas Bitovtas
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/2] arm64: dts: qcom: sm7125-samsung: drop unused label
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
0 siblings, 0 replies; 4+ messages in thread
From: Konrad Dybcio @ 2026-11-13 8:09 UTC (permalink / raw)
To: Erikas Bitovtas, Bjorn Andersson, Konrad Dybcio, Abel Vesa,
Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: linux-arm-msm, devicetree, linux-kernel
On 11/12/26 2:32 PM, Erikas Bitovtas wrote:
> Drop unused vdd_cx_wlan label for vreg_l9a_0p8 regulator.
>
> Signed-off-by: Erikas Bitovtas <xerikasxx@gmail.com>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Konrad
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-11-13 8:09 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-12 13:32 [PATCH 0/2] arm64: dts: qcom: sm7125-samsung: add grip sensor 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 ` [PATCH 2/2] arm64: dts: qcom: sm7125-samsung: add grip sensor Erikas Bitovtas
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®