From e30a89f393a8399655fda7a3b4a4a00df242c4e1 Mon Sep 17 00:00:00 2001 From: Ye Zhang Date: Mon, 17 Jun 2024 11:46:01 +0800 Subject: [PATCH] ARM: dts: rk3506: Add tsadc/thermal_zones node Signed-off-by: Ye Zhang Change-Id: I888cb1e358cf018c2c1ae406110c28b96a6c3a1c --- arch/arm/boot/dts/rk3506.dtsi | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/arch/arm/boot/dts/rk3506.dtsi b/arch/arm/boot/dts/rk3506.dtsi index 0e0c5781bbcd..27fe997f7505 100644 --- a/arch/arm/boot/dts/rk3506.dtsi +++ b/arch/arm/boot/dts/rk3506.dtsi @@ -101,6 +101,23 @@ method = "smc"; }; + thermal_zones: thermal-zones { + soc_thermal: soc-thermal { + polling-delay-passive = <20>; /* milliseconds */ + polling-delay = <1000>; /* milliseconds */ + thermal-sensors = <&tsadc 0>; + trips { + soc_crit: soc-crit { + /* millicelsius */ + temperature = <115000>; + /* millicelsius */ + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + }; + timer { compatible = "arm,armv7-timer"; interrupts = , @@ -443,6 +460,24 @@ status = "disabled"; }; + tsadc: tsadc@ff650000 { + compatible = "rockchip,rk3506-tsadc"; + reg = <0xff650000 0x400>; + interrupts = ; + clocks = <&cru CLK_TSADC>, <&cru PCLK_TSADC>, <&cru CLK_TSADC_TSEN>; + clock-names = "tsadc", "apb_pclk", "tsen"; + assigned-clocks = <&cru CLK_TSADC>, <&cru CLK_TSADC_TSEN>; + assigned-clock-rates = <1000000>, <12000000>; + resets = <&cru SRST_TSADC>, <&cru SRST_P_TSADC>; + reset-names = "tsadc", "tsadc-apb"; + #thermal-sensor-cells = <1>; + rockchip,grf = <&grf>; + rockchip,hw-tshut-temp = <120000>; + rockchip,hw-tshut-mode = <0>; /* tshut mode 0:CRU 1:GPIO */ + rockchip,hw-tshut-polarity = <0>; /* tshut polarity 0:LOW 1:HIGH */ + status = "disabled"; + }; + ioc1: syscon@ff660000 { compatible = "rockchip,rk3506-ioc1", "syscon"; reg = <0xff660000 0x10000>;