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 Lazor LTE SKUs and also configure it properly so
it works.

Cc: Douglas Anderson <dianders@chromium.org>
Cc: Matthias Kaehlcke <mka@chromium.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Link: https://lore.kernel.org/r/20201120183825.547310-1-swboyd@chromium.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
This commit is contained in:
Stephen Boyd 2020-11-20 10:38:25 -08:00 committed by Bjorn Andersson
parent d5276bfa0c
commit fee5dc31a5
5 changed files with 22 additions and 7 deletions

View File

@ -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";
};

View File

@ -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";
};

View File

@ -30,7 +30,12 @@ ap_h1_spi: &spi0 {};
};
&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 {

View File

@ -34,11 +34,6 @@ ap_h1_spi: &spi0 {};
};
};
&ap_sar_sensor_i2c {
/* Not hooked up */
status = "disabled";
};
ap_ts_pen_1v8: &i2c4 {
status = "okay";
clock-frequency = <400000>;

View File

@ -654,7 +654,6 @@ edp_brij_i2c: &i2c2 {
};
ap_sar_sensor_i2c: &i2c5 {
status = "okay";
clock-frequency = <400000>;
ap_sar_sensor: proximity@28 {