Thermal driver
The following code block provides an example of the thermal driver.
sfctemp: tmon@120e0000 { compatible = "starfive,jh7110-temp"; reg = <0x0 0x120e0000 0x0 0x10000>; interrupts = <81>; clocks = <&clkgen JH7110_TEMP_SENSOR_CLK_TEMP>, <&clkgen JH7110_TEMP_SENSOR_CLK_APB>; clock-names = "sense", "bus"; resets = <&rstgen RSTN_U0_TEMP_SENSOR_TEMP>, <&rstgen RSTN_U0_TEMP_SENSOR_APB>; reset-names = "sense", "bus"; #thermal-sensor-cells = <0>; status = "disabled"; };
The following list provides explanations for the parameters included in the above code
block.
- compatible: Compatibility information, used to associate the driver and its target device.
- reg: Register base address "0x120e0000" and range "0x10000".
- interrupts: Hardware interrupt ID.
- clocks: The clocks used by the thermal sensor module.
- clock-names: The names of the above clocks.
- resets: The reset signals used by the thermal sensor module.
- reset-names: The names of the above reset signals.
- status: The work status of the thermal sensor module. To enable the module, set this bit as "okay" or to disable the module, set this bit as "disabled".