diff mbox series

[v3,1/2] arm64: dts: qcom: sc7280: Add SAR sensors for herobrine

Message ID 20220329105854.v3.1.Icedb2e3cd5e21f3a4ec535ddf756fa44d053b6ed@changeid (mailing list archive)
State Accepted
Commit 70137d1d8a63d5bbb1ad8bf8181299dbc3aab3e7
Headers show
Series [v3,1/2] arm64: dts: qcom: sc7280: Add SAR sensors for herobrine | expand

Commit Message

Matthias Kaehlcke March 29, 2022, 5:59 p.m. UTC
Add nodes for the two SX9324 SAR proximity sensors. Not all herobrine
boards have these sensors, so leave them disabled by default.

Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
---
Depends on 'arm64: dts: qcom: sc7280: Fix sar1_irq_odl node name' [1] for
the second SAR sensor to be probed successfully.

[1] https://patchwork.kernel.org/project/linux-arm-msm/patch/20220324223331.876199-1-swboyd@chromium.org/

Changes in v3:
- added patch to the series

 .../arm64/boot/dts/qcom/sc7280-herobrine.dtsi | 37 +++++++++++++++++++
 1 file changed, 37 insertions(+)

Comments

Stephen Boyd March 29, 2022, 6:43 p.m. UTC | #1
Quoting Matthias Kaehlcke (2022-03-29 10:59:33)
> Add nodes for the two SX9324 SAR proximity sensors. Not all herobrine
> boards have these sensors, so leave them disabled by default.
>
> Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
> ---

Reviewed-by: Stephen Boyd <swboyd@chromium.org>
patchwork-bot+linux-arm-msm@kernel.org April 11, 2022, 9 p.m. UTC | #2
Hello:

This series was applied to qcom/linux.git (for-next)
by Bjorn Andersson <bjorn.andersson@linaro.org>:

On Tue, 29 Mar 2022 10:59:33 -0700 you wrote:
> Add nodes for the two SX9324 SAR proximity sensors. Not all herobrine
> boards have these sensors, so leave them disabled by default.
> 
> Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
> ---
> Depends on 'arm64: dts: qcom: sc7280: Fix sar1_irq_odl node name' [1] for
> the second SAR sensor to be probed successfully.
> 
> [...]

Here is the summary with links:
  - [v3,1/2] arm64: dts: qcom: sc7280: Add SAR sensors for herobrine
    https://git.kernel.org/qcom/c/70137d1d8a63
  - [v3,2/2] arm64: dts: qcom: sc7280: Add device tree for herobrine villager
    https://git.kernel.org/qcom/c/ee2a62116015

You are awesome, thank you!
diff mbox series

Patch

diff --git a/arch/arm64/boot/dts/qcom/sc7280-herobrine.dtsi b/arch/arm64/boot/dts/qcom/sc7280-herobrine.dtsi
index dc17f2079695..812080e6178b 100644
--- a/arch/arm64/boot/dts/qcom/sc7280-herobrine.dtsi
+++ b/arch/arm64/boot/dts/qcom/sc7280-herobrine.dtsi
@@ -341,6 +341,43 @@  keyboard_backlight: keyboard-backlight {
 
 /* ADDITIONS TO NODES DEFINED IN PARENT DEVICE TREE FILES */
 
+ap_sar_sensor_i2c: &i2c1 {
+	clock-frequency = <400000>;
+	status = "disabled";
+
+	ap_sar_sensor0: proximity@28 {
+		compatible = "semtech,sx9324";
+		reg = <0x28>;
+		#io-channel-cells = <1>;
+		pinctrl-names = "default";
+		pinctrl-0 = <&sar0_irq_odl>;
+
+		interrupt-parent = <&tlmm>;
+		interrupts = <141 IRQ_TYPE_LEVEL_LOW>;
+
+		vdd-supply = <&pp1800_prox>;
+
+		label = "proximity-wifi-lte0";
+		status = "disabled";
+	};
+
+	ap_sar_sensor1: proximity@2c {
+		compatible = "semtech,sx9324";
+		reg = <0x2c>;
+		#io-channel-cells = <1>;
+		pinctrl-names = "default";
+		pinctrl-0 = <&sar1_irq_odl>;
+
+		interrupt-parent = <&tlmm>;
+		interrupts = <140 IRQ_TYPE_LEVEL_LOW>;
+
+		vdd-supply = <&pp1800_prox>;
+
+		label = "proximity-wifi-lte1";
+		status = "disabled";
+	};
+};
+
 ap_i2c_tpm: &i2c14 {
 	status = "okay";
 	clock-frequency = <400000>;