mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-14 22:44:27 +08:00
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:
parent
d5276bfa0c
commit
fee5dc31a5
@ -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 @@ 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 {
|
||||
|
@ -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>;
|
||||
|
@ -654,7 +654,6 @@ edp_brij_i2c: &i2c2 {
|
||||
};
|
||||
|
||||
ap_sar_sensor_i2c: &i2c5 {
|
||||
status = "okay";
|
||||
clock-frequency = <400000>;
|
||||
|
||||
ap_sar_sensor: proximity@28 {
|
||||
|
Loading…
Reference in New Issue
Block a user