Commit fee5dc31 authored by Stephen Boyd's avatar Stephen Boyd Committed by Bjorn Andersson

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: default avatarDouglas Anderson <dianders@chromium.org>
Signed-off-by: default avatarStephen Boyd <swboyd@chromium.org>
Link: https://lore.kernel.org/r/20201120183825.547310-1-swboyd@chromium.orgSigned-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
parent d5276bfa
......@@ -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";
};
......@@ -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";
};
......@@ -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 {
......
......@@ -34,11 +34,6 @@ panel_in_edp: endpoint {
};
};
&ap_sar_sensor_i2c {
/* Not hooked up */
status = "disabled";
};
ap_ts_pen_1v8: &i2c4 {
status = "okay";
clock-frequency = <400000>;
......
......@@ -654,7 +654,6 @@ sn65dsi86_out: endpoint {
};
ap_sar_sensor_i2c: &i2c5 {
status = "okay";
clock-frequency = <400000>;
ap_sar_sensor: proximity@28 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment