Skip to content

Commit 32641b8

Browse files
sremmind
authored andcommitted
arm64: dts: rockchip: add rk3588 thermal sensor
Add thermal sensor IP, which allows monitoring temperatures at seven different places in the SoC: * Chip Center * CPU Cluster 1 (Dual A76 "Big" Cores) * CPU Cluster 2 (Dual A76 "Big" Cores) * CPU Cluster 0 (Quad A55 "Little" Cores) * Power Domain Center * Graphics Processing Unit * Neural Processing Unit Signed-off-by: Sebastian Reichel <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Heiko Stuebner <[email protected]>
1 parent f36bb17 commit 32641b8

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

arch/arm64/boot/dts/rockchip/rk3588s.dtsi

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1580,6 +1580,26 @@
15801580
status = "disabled";
15811581
};
15821582

1583+
tsadc: tsadc@fec00000 {
1584+
compatible = "rockchip,rk3588-tsadc";
1585+
reg = <0x0 0xfec00000 0x0 0x400>;
1586+
interrupts = <GIC_SPI 397 IRQ_TYPE_LEVEL_HIGH 0>;
1587+
clocks = <&cru CLK_TSADC>, <&cru PCLK_TSADC>;
1588+
clock-names = "tsadc", "apb_pclk";
1589+
assigned-clocks = <&cru CLK_TSADC>;
1590+
assigned-clock-rates = <2000000>;
1591+
resets = <&cru SRST_P_TSADC>, <&cru SRST_TSADC>;
1592+
reset-names = "tsadc-apb", "tsadc";
1593+
rockchip,hw-tshut-temp = <120000>;
1594+
rockchip,hw-tshut-mode = <0>; /* tshut mode 0:CRU 1:GPIO */
1595+
rockchip,hw-tshut-polarity = <0>; /* tshut polarity 0:LOW 1:HIGH */
1596+
pinctrl-0 = <&tsadc_gpio_func>;
1597+
pinctrl-1 = <&tsadc_shut>;
1598+
pinctrl-names = "gpio", "otpout";
1599+
#thermal-sensor-cells = <1>;
1600+
status = "disabled";
1601+
};
1602+
15831603
i2c6: i2c@fec80000 {
15841604
compatible = "rockchip,rk3588-i2c", "rockchip,rk3399-i2c";
15851605
reg = <0x0 0xfec80000 0x0 0x1000>;

0 commit comments

Comments
 (0)