18c2ecf20Sopenharmony_ci* Temperature Sensor on hisilicon SoCs
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ci** Required properties :
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci- compatible: "hisilicon,tsensor".
68c2ecf20Sopenharmony_ci- reg: physical base address of thermal sensor and length of memory mapped
78c2ecf20Sopenharmony_ci  region.
88c2ecf20Sopenharmony_ci- interrupt: The interrupt number to the cpu. Defines the interrupt used
98c2ecf20Sopenharmony_ci  by /SOCTHERM/tsensor.
108c2ecf20Sopenharmony_ci- clock-names: Input clock name, should be 'thermal_clk'.
118c2ecf20Sopenharmony_ci- clocks: phandles for clock specified in "clock-names" property.
128c2ecf20Sopenharmony_ci- #thermal-sensor-cells: Should be 1. See Documentation/devicetree/bindings/thermal/thermal-sensor.yaml for a description.
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ciExample :
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_cifor Hi6220:
178c2ecf20Sopenharmony_ci	tsensor: tsensor@0,f7030700 {
188c2ecf20Sopenharmony_ci		compatible = "hisilicon,tsensor";
198c2ecf20Sopenharmony_ci		reg = <0x0 0xf7030700 0x0 0x1000>;
208c2ecf20Sopenharmony_ci		interrupts = <0 7 0x4>;
218c2ecf20Sopenharmony_ci		clocks = <&sys_ctrl HI6220_TSENSOR_CLK>;
228c2ecf20Sopenharmony_ci		clock-names = "thermal_clk";
238c2ecf20Sopenharmony_ci		#thermal-sensor-cells = <1>;
248c2ecf20Sopenharmony_ci	}
258c2ecf20Sopenharmony_ci
268c2ecf20Sopenharmony_cifor Hi3660:
278c2ecf20Sopenharmony_ci	tsensor: tsensor@fff30000 {
288c2ecf20Sopenharmony_ci		compatible = "hisilicon,hi3660-tsensor";
298c2ecf20Sopenharmony_ci		reg = <0x0 0xfff30000 0x0 0x1000>;
308c2ecf20Sopenharmony_ci		interrupts = <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>;
318c2ecf20Sopenharmony_ci		#thermal-sensor-cells = <1>;
328c2ecf20Sopenharmony_ci	};
33