Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: Document the hi6220 thermal sensor bindings

This adds documentation of device tree bindings for the
thermal sensor controller of hi6220 SoC.

Signed-off-by: Leo Yan <leo.yan@linaro.org>
Signed-off-by: kongxinwei <kong.kongxinwei@hisilicon.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>

authored by

kongxinwei and committed by
Eduardo Valentin
59e85635 a46dbae8

+23
+23
Documentation/devicetree/bindings/thermal/hisilicon-thermal.txt
··· 1 + * Temperature Sensor on hisilicon SoCs 2 + 3 + ** Required properties : 4 + 5 + - compatible: "hisilicon,tsensor". 6 + - reg: physical base address of thermal sensor and length of memory mapped 7 + region. 8 + - interrupt: The interrupt number to the cpu. Defines the interrupt used 9 + by /SOCTHERM/tsensor. 10 + - clock-names: Input clock name, should be 'thermal_clk'. 11 + - clocks: phandles for clock specified in "clock-names" property. 12 + - #thermal-sensor-cells: Should be 1. See ./thermal.txt for a description. 13 + 14 + Example : 15 + 16 + tsensor: tsensor@0,f7030700 { 17 + compatible = "hisilicon,tsensor"; 18 + reg = <0x0 0xf7030700 0x0 0x1000>; 19 + interrupts = <0 7 0x4>; 20 + clocks = <&sys_ctrl HI6220_TSENSOR_CLK>; 21 + clock-names = "thermal_clk"; 22 + #thermal-sensor-cells = <1>; 23 + }