Skip to content

Commit

Permalink
board-rockpis-0007-arm64-dts-rockchip-add-cpu-s-thermal-config-for-rk…
Browse files Browse the repository at this point in the history
…33(:1)

Original-Subject: arm64: dts: rockchip: add cpu's thermal config for rk3308
None
X-Armbian: Patch-File: board-rockpis-0007-arm64-dts-rockchip-add-cpu-s-thermal-config-for-rk33
X-Armbian: Patch-File-Counter: 1
X-Armbian: Patch-Rel-Directory: patch/kernel/archive/rockchip64-6.1
X-Armbian: Patch-Type: kernel
X-Armbian: Patch-Root-Type: core
X-Armbian: Patch-Sub-Type: common
X-Armbian: Original-Subject: arm64: dts: rockchip: add cpu's thermal config for rk3308
  • Loading branch information
ashthespy authored and Armbian AutoPatcher committed Jan 17, 2020
1 parent 17b7ede commit 922c873
Showing 1 changed file with 64 additions and 0 deletions.
64 changes: 64 additions & 0 deletions arch/arm64/boot/dts/rockchip/rk3308.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,70 @@
status = "disabled";
};

thermal_zones: thermal-zones {

soc_thermal: soc-thermal {
polling-delay-passive = <20>;
polling-delay = <1000>;
sustainable-power = <300>;

thermal-sensors = <&tsadc 1>;

trips {
threshold: trip-point-0 {
temperature = <70000>;
hysteresis = <2000>;
type = "passive";
};
target: trip-point-1 {
temperature = <85000>;
hysteresis = <2000>;
type = "passive";
};
soc_crit: soc-crit {
temperature = <115000>;
hysteresis = <2000>;
type = "critical";
};
};

cooling-maps {
map0 {
trip = <&target>;
cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
contribution = <4096>;
};
};

};

logic_thermal: logic-thermal {
polling-delay-passive = <100>; /* milliseconds */
polling-delay = <1000>; /* milliseconds */

thermal-sensors = <&tsadc 0>;
};
};

tsadc: tsadc@ff1f0000 {
compatible = "rockchip,rk3308-tsadc";
reg = <0x0 0xff1f0000 0x0 0x100>;
interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
rockchip,grf = <&grf>;
clocks = <&cru SCLK_TSADC>, <&cru PCLK_TSADC>;
clock-names = "tsadc", "apb_pclk";
assigned-clocks = <&cru SCLK_TSADC>;
assigned-clock-rates = <50000>;
resets = <&cru SRST_TSADC>;
reset-names = "tsadc-apb";
pinctrl-names = "gpio", "otpout";
pinctrl-0 = <&tsadc_otp_pin>;
pinctrl-1 = <&tsadc_otp_out>;
#thermal-sensor-cells = <1>;
rockchip,hw-tshut-temp = <120000>;
status = "disabled";
};

dmac0: dma-controller@ff2c0000 {
compatible = "arm,pl330", "arm,primecell";
reg = <0x0 0xff2c0000 0x0 0x4000>;
Expand Down

0 comments on commit 922c873

Please sign in to comment.