arm64: dts: qcom: sc7180: Add prox sensor to LTE sku Lazor boards
Subsystems (4)
PATCH v2 1/1 arm64: dts: qcom: sc7180: Add prox sensor to LTE sku Lazor boards
There's a proximity sensor on Lazor devices, but only for LTE SKUs. Enable it only on the LTE SKUs and also configure it properly so it works.
---
Changes from v1 (https://lore.kernel.org/r/[email protected]):
* Fixed startup-sensor property to be 0 instead of 1
* Fixed proxraw-strength to be 8 instead of 2
arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r1-lte.dts | 8 ++++++++ arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r3-lte.dts | 8 ++++++++ arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor.dtsi | 7 ++++++- 3 files changed, 22 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r1-lte.dts +8 -0
@@ -13,6 +13,14 @@ / { compatible = "google,lazor-rev1-sku0", "google,lazor-rev2-sku0", "qcom,sc7180"; }; +&ap_sar_sensor { + status = "okay"; +}; + +&ap_sar_sensor_i2c { + status = "okay"; +}; + &keyboard_backlight { status = "okay"; };
arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r3-lte.dts +8 -0
@@ -13,6 +13,14 @@ / { compatible = "google,lazor-sku0", "qcom,sc7180"; }; +&ap_sar_sensor { + status = "okay"; +}; + +&ap_sar_sensor_i2c { + status = "okay"; +}; + &keyboard_backlight { status = "okay"; };
arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor.dtsi +6 -1
@@ -30,7 +30,12 @@ panel_in_edp: endpoint { }; &ap_sar_sensor { - status = "okay"; + semtech,cs0-ground; + semtech,combined-sensors = <3>; + semtech,resolution = "fine"; + semtech,startup-sensor = <0>; + semtech,proxraw-strength = <8>; + semtech,avg-pos-strength = <64>; }; ap_ts_pen_1v8: &i2c4 {
base-commit: ead9f7d7ea9e20843e29e688b53859cea20044ee
Signature · 1 line
https://chromeos.dev
Hi,
arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r1-lte.dts / { · line 21
Quoted 13 lines · Stephen Boyd
arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r1-lte.dts +6
-0@@ -13,6 +13,14 @@ / { compatible = "google,lazor-rev1-sku0", "google,lazor-rev2-sku0", "qcom,sc7180"; }; +&ap_sar_sensor { + status = "okay"; +}; + +&ap_sar_sensor_i2c { + status = "okay";
Technically you don't need to mark the i2c bus as "okay" upstream because it's already "okay" in "sc7180-trogdor.dtsi". ...or perhaps you should add a patch that changes that and makes us match downstream. ;-)
Quoting Doug Anderson (2020-11-20 09:50:38)
Quoted 10 lines
Hi,
Quoted 7 lines · Stephen Boyd
arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r1-lte.dts +0
-0@@ -13,6 +13,14 @@ / { compatible = "google,lazor-rev1-sku0", "google,lazor-rev2-sku0", "qcom,sc7180"; };
Quoted 11 lines
arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r1-lte.dts / { · line 21
Quoted 6 lines
arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r1-lte.dts +6
-0+&ap_sar_sensor { + status = "okay"; +}; + +&ap_sar_sensor_i2c { + status = "okay";Technically you don't need to mark the i2c bus as "okay" upstream because it's already "okay" in "
sc7180-trogdor.dtsi". ...or perhaps you should add a patch that changes that and makes us match downstream. ;-)
Ok I will resend with that extra part too.