Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
91 changes: 91 additions & 0 deletions arch/arm64/boot/dts/qcom/qrb2210-rb1.dts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/leds/common.h>
#include <dt-bindings/iio/qcom,spmi-vadc.h>
#include "qcm2290.dtsi"
#include "pm4125.dtsi"

Expand All @@ -33,6 +34,68 @@
};
};

msm_therm_bridge: msm-therm-bridge {
compatible = "generic-adc-thermal";
io-channels = <&pm4125_adc ADC5_AMUX_THM3_100K_PU>;
io-channel-names = "sensor-channel";
#thermal-sensor-cells = <0>;
};

quiet_therm_bridge: quiet-therm-bridge {
compatible = "generic-adc-thermal";
io-channels = <&pm4125_adc ADC5_AMUX_THM2_100K_PU>;
io-channel-names = "sensor-channel";
#thermal-sensor-cells = <0>;
};

xo_therm_bridge: xo-therm-bridge {
compatible = "generic-adc-thermal";
io-channels = <&pm4125_adc ADC5_XO_THERM_100K_PU>;
io-channel-names = "sensor-channel";
#thermal-sensor-cells = <0>;
};

thermal-zones {
sys-1-thermal {
polling-delay-passive = <2000>;
thermal-sensors = <&msm_therm_bridge>;

trips {
active-config0 {
temperature = <80000>;
hysteresis = <2000>;
type = "hot";
};
};
};

sys-2-thermal {
polling-delay-passive = <2000>;
thermal-sensors = <&quiet_therm_bridge>;

trips {
active-config0 {
temperature = <80000>;
hysteresis = <2000>;
type = "hot";
};
};
};

sys-3-thermal {
polling-delay-passive = <2000>;
thermal-sensors = <&xo_therm_bridge>;

trips {
active-config0 {
temperature = <80000>;
hysteresis = <2000>;
type = "hot";
};
};
};
};

gpio-keys {
compatible = "gpio-keys";
label = "gpio-keys";
Expand Down Expand Up @@ -220,6 +283,34 @@
};
};

&pm4125_adc {
status = "okay";

channel@4c {
reg = <ADC5_XO_THERM_100K_PU>;
label = "xo_therm";
qcom,ratiometric;
qcom,hw-settle-time = <200>;
qcom,pre-scaling = <1 1>;
};

channel@4e {
reg = <ADC5_AMUX_THM2_100K_PU>;
label = "quiet_therm";
qcom,ratiometric;
qcom,hw-settle-time = <200>;
qcom,pre-scaling = <1 1>;
};

channel@4f {
reg = <ADC5_AMUX_THM3_100K_PU>;
label = "msm_therm";
qcom,ratiometric;
qcom,hw-settle-time = <200>;
qcom,pre-scaling = <1 1>;
};
};

&i2c2_gpio {
clock-frequency = <400000>;
status = "okay";
Expand Down