1*4882a593Smuzhiyun* Temperature Sensor on hisilicon SoCs 2*4882a593Smuzhiyun 3*4882a593Smuzhiyun** Required properties : 4*4882a593Smuzhiyun 5*4882a593Smuzhiyun- compatible: "hisilicon,tsensor". 6*4882a593Smuzhiyun- reg: physical base address of thermal sensor and length of memory mapped 7*4882a593Smuzhiyun region. 8*4882a593Smuzhiyun- interrupt: The interrupt number to the cpu. Defines the interrupt used 9*4882a593Smuzhiyun by /SOCTHERM/tsensor. 10*4882a593Smuzhiyun- clock-names: Input clock name, should be 'thermal_clk'. 11*4882a593Smuzhiyun- clocks: phandles for clock specified in "clock-names" property. 12*4882a593Smuzhiyun- #thermal-sensor-cells: Should be 1. See Documentation/devicetree/bindings/thermal/thermal-sensor.yaml for a description. 13*4882a593Smuzhiyun 14*4882a593SmuzhiyunExample : 15*4882a593Smuzhiyun 16*4882a593Smuzhiyunfor Hi6220: 17*4882a593Smuzhiyun tsensor: tsensor@0,f7030700 { 18*4882a593Smuzhiyun compatible = "hisilicon,tsensor"; 19*4882a593Smuzhiyun reg = <0x0 0xf7030700 0x0 0x1000>; 20*4882a593Smuzhiyun interrupts = <0 7 0x4>; 21*4882a593Smuzhiyun clocks = <&sys_ctrl HI6220_TSENSOR_CLK>; 22*4882a593Smuzhiyun clock-names = "thermal_clk"; 23*4882a593Smuzhiyun #thermal-sensor-cells = <1>; 24*4882a593Smuzhiyun } 25*4882a593Smuzhiyun 26*4882a593Smuzhiyunfor Hi3660: 27*4882a593Smuzhiyun tsensor: tsensor@fff30000 { 28*4882a593Smuzhiyun compatible = "hisilicon,hi3660-tsensor"; 29*4882a593Smuzhiyun reg = <0x0 0xfff30000 0x0 0x1000>; 30*4882a593Smuzhiyun interrupts = <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>; 31*4882a593Smuzhiyun #thermal-sensor-cells = <1>; 32*4882a593Smuzhiyun }; 33