Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

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