mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-23 00:06:51 +07:00
0fe4d2181c
As suggested by Eduardo Valentin this adds the thermal zone for the bcm2835 SoC with its single thermal sensor. We start with the criticial trip point and leave the cooling devices empty since we don't have any at the moment. Since the coefficients could vary depending on the SoC we need to define them separate. Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com> Signed-off-by: Eric Anholt <eric@anholt.net> Acked-by: Eduardo Valentin <edubezval@gmail.com>
36 lines
567 B
Plaintext
36 lines
567 B
Plaintext
#include "bcm283x.dtsi"
|
|
|
|
/ {
|
|
compatible = "brcm,bcm2835";
|
|
|
|
cpus {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
cpu@0 {
|
|
device_type = "cpu";
|
|
compatible = "arm,arm1176jzf-s";
|
|
reg = <0x0>;
|
|
};
|
|
};
|
|
|
|
soc {
|
|
ranges = <0x7e000000 0x20000000 0x02000000>;
|
|
dma-ranges = <0x40000000 0x00000000 0x20000000>;
|
|
|
|
arm-pmu {
|
|
compatible = "arm,arm1176-pmu";
|
|
};
|
|
};
|
|
};
|
|
|
|
&cpu_thermal {
|
|
coefficients = <(-538) 407000>;
|
|
};
|
|
|
|
/* enable thermal sensor with the correct compatible property set */
|
|
&thermal {
|
|
compatible = "brcm,bcm2835-thermal";
|
|
status = "okay";
|
|
};
|