mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
thermal: G12A: add tsensor and cooldev dts.
PD#156734: add tsensor and cooling devices dts. Change-Id: Ia6875a5f06c225bb034c5301e14fb3bc3191aa14 Signed-off-by: huan.biao <huan.biao@amlogic.com>
This commit is contained in:
@@ -34,6 +34,8 @@
|
||||
serial2 = &uart_B;
|
||||
serial3 = &uart_C;
|
||||
serial4 = &uart_AO_B;
|
||||
tsensor0 = &p_tsensor;
|
||||
tsensor1 = &d_tsensor;
|
||||
};
|
||||
|
||||
memory@00000000 {
|
||||
@@ -1271,6 +1273,86 @@
|
||||
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
meson_cooldev: meson-cooldev@0 {
|
||||
status = "okay";
|
||||
compatible = "amlogic, meson-cooldev";
|
||||
device_name = "mcooldev";
|
||||
cooling_devices {
|
||||
cpucore_cool_cluster0 {
|
||||
min_state = <1>;
|
||||
dyn_coeff = <0>;
|
||||
cluster_id = <0>;
|
||||
node_name = "cpucore_cool0";
|
||||
device_type = "cpucore";
|
||||
};
|
||||
};
|
||||
cpucore_cool0:cpucore_cool0 {
|
||||
#cooling-cells = <2>; /* min followed by max */
|
||||
};
|
||||
};
|
||||
/*meson cooling devices end*/
|
||||
|
||||
thermal-zones {
|
||||
soc_thermal: soc_thermal {
|
||||
polling-delay = <1000>;
|
||||
polling-delay-passive = <100>;
|
||||
sustainable-power = <1050>;
|
||||
thermal-sensors = <&p_tsensor 0>;
|
||||
trips {
|
||||
switch_on: trip-point@0 {
|
||||
temperature = <60000>;
|
||||
hysteresis = <2000>;
|
||||
type = "passive";
|
||||
};
|
||||
control: trip-point@1 {
|
||||
temperature = <75000>;
|
||||
hysteresis = <2000>;
|
||||
type = "passive";
|
||||
};
|
||||
hot: trip-point@2 {
|
||||
temperature = <85000>;
|
||||
hysteresis = <3000>;
|
||||
type = "hot";
|
||||
};
|
||||
critical: trip-point@3 {
|
||||
temperature = <150000>;
|
||||
hysteresis = <1000>;
|
||||
type = "critical";
|
||||
};
|
||||
};
|
||||
};
|
||||
ddr_thermal: ddr_thermal {
|
||||
polling-delay = <1000>;
|
||||
polling-delay-passive = <100>;
|
||||
sustainable-power = <1050>;
|
||||
thermal-sensors = <&d_tsensor 1>;
|
||||
trips {
|
||||
dswitch_on: trip-point@0 {
|
||||
temperature = <60000>;
|
||||
hysteresis = <2000>;
|
||||
type = "passive";
|
||||
};
|
||||
dcontrol: trip-point@1 {
|
||||
temperature = <75000>;
|
||||
hysteresis = <2000>;
|
||||
type = "passive";
|
||||
};
|
||||
dhot: trip-point@2 {
|
||||
temperature = <85000>;
|
||||
hysteresis = <3000>;
|
||||
type = "hot";
|
||||
};
|
||||
dcritical: trip-point@3 {
|
||||
temperature = <150000>;
|
||||
hysteresis = <1000>;
|
||||
type = "critical";
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
/*thermal zone end*/
|
||||
}; /* end of / */
|
||||
|
||||
&pwm_AO_cd {
|
||||
|
||||
@@ -331,6 +331,42 @@
|
||||
reg = <0x0 0xff809000 0x0 0x48>;
|
||||
};
|
||||
|
||||
p_tsensor: p_tsensor@ff634594 {
|
||||
compatible = "amlogic, r1p1-tsensor";
|
||||
device_name = "meson-pthermal";
|
||||
status = "okay";
|
||||
reg = <0x0 0xff634800 0x0 0x50>,
|
||||
<0x0 0xff800268 0x0 0x4>;
|
||||
cal_type = <0x1>;
|
||||
cal_a = <324>;
|
||||
cal_b = <424>;
|
||||
cal_c = <3159>;
|
||||
cal_d = <9411>;
|
||||
rtemp = <130000>;
|
||||
interrupts = <0 35 0>;
|
||||
clocks = <&clkc CLKID_TS_COMP>; /* CLKID_TS_COMP>;*/
|
||||
clock-names = "ts_comp";
|
||||
#thermal-sensor-cells = <1>;
|
||||
};
|
||||
|
||||
d_tsensor: d_tsensor@ff800228 {
|
||||
compatible = "amlogic, r1p1-tsensor";
|
||||
device_name = "meson-dthermal";
|
||||
status = "okay";
|
||||
reg = <0x0 0xff634c00 0x0 0x50>,
|
||||
<0x0 0xff800230 0x0 0x4>;
|
||||
cal_type = <0x1>;
|
||||
cal_a = <324>;
|
||||
cal_b = <424>;
|
||||
cal_c = <3159>;
|
||||
cal_d = <9411>;
|
||||
rtemp = <130000>;
|
||||
interrupts = <0 36 0>;
|
||||
clocks = <&clkc CLKID_TS_COMP>; /* CLKID_TS_COMP>;*/
|
||||
clock-names = "ts_comp";
|
||||
#thermal-sensor-cells = <1>;
|
||||
};
|
||||
|
||||
soc {
|
||||
compatible = "simple-bus";
|
||||
#address-cells = <2>;
|
||||
|
||||
Reference in New Issue
Block a user