arm64: dts: qcom: sc7180-trogdor: Simply SAR sensor enabling
Subsystems (4)
PATCH 1/1 arm64: dts: qcom: sc7180-trogdor: Simply SAR sensor enabling
The SAR node, ap_sar_sensor, needs to be enabled in addition to the i2c bus it resides on. Let's simplify this by leaving the sensor node enabled by default while leaving the i2c bus disabled by default. On boards that use the sensor, we already enable the i2c bus so we can simply remove the extra bit that enables the sar sensor node. This saves some lines but is otherwise a non-functional change.
--- arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r1-lte.dts | 4 ---- arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r3-lte.dts | 4 ---- arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r9-lte.dts | 4 ---- arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi | 1 - 4 files changed, 13 deletions(-)
arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r1-lte.dts +0 -4
@@ -13,10 +13,6 @@ / { compatible = "google,lazor-rev1-sku0", "google,lazor-rev2-sku0", "qcom,sc7180"; }; -&ap_sar_sensor { - status = "okay"; -}; - &ap_sar_sensor_i2c { status = "okay"; };
arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r3-lte.dts +0 -4
@@ -20,10 +20,6 @@ / { "qcom,sc7180"; }; -&ap_sar_sensor { - status = "okay"; -}; - &ap_sar_sensor_i2c { status = "okay"; };
arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r9-lte.dts +0 -4
@@ -17,10 +17,6 @@ / { compatible = "google,lazor-sku0", "qcom,sc7180"; }; -&ap_sar_sensor { - status = "okay"; -}; - &ap_sar_sensor_i2c { status = "okay"; };
arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi +0 -1
@@ -722,7 +722,6 @@ ap_sar_sensor: proximity@28 { vdd-supply = <&pp3300_a>; svdd-supply = <&pp1800_prox>; - status = "disabled"; label = "proximity-wifi"; }; };
base-commit: 52deda9551a01879b3562e7b41748e85c591f14c
Signature · 1 line
https://chromeos.dev
Hi,
Quoted 8 lines · Stephen Boyd
The SAR node,
ap_sar_sensor, needs to be enabled in addition to the i2c bus it resides on. Let's simplify this by leaving the sensor node enabled by default while leaving the i2c bus disabled by default. On boards that use the sensor, we already enable the i2c bus so we can simply remove the extra bit that enables the sar sensor node. This saves some lines but is otherwise a non-functional change.
Quoted 8 lines
Cc Douglas Anderson <[email protected]>Signed-off-by Stephen Boyd <[email protected]>--- arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r1-lte.dts | 4 ---- arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r3-lte.dts | 4 ---- arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r9-lte.dts | 4 ---- arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi | 1 - 4 files changed, 13 deletions(-)
Makes sense to me and even saves a byte or two.
-Doug
This patch was applied to qcom/linux.git (for-next) by Bjorn Andersson <[email protected]>:
Hello:
This patch was applied to qcom/linux.git (for-next) by Bjorn Andersson <[email protected]>:
Quoted 8 lines · On Fri, 25 Mar 2022 14:16:40 -0700 you wrote:
The SAR node,
ap_sar_sensor, needs to be enabled in addition to the i2c bus it resides on. Let's simplify this by leaving the sensor node enabled by default while leaving the i2c bus disabled by default. On boards that use the sensor, we already enable the i2c bus so we can simply remove the extra bit that enables the sar sensor node. This saves some lines but is otherwise a non-functional change.[...]
Here is the summary with links:
- arm64: dts: qcom: sc7180-trogdor: Simply SAR sensor enabling
https://git.kernel.org/qcom/c/516ca27b6033
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html