Loading Documentation/devicetree/bindings/thermal/qoriq-thermal.txt +7 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,12 @@ Required properties: calibration data, as specified by the SoC reference manual. The first cell of each pair is the value to be written to TTCFGR, and the second is the value to be written to TSCFGR. - #thermal-sensor-cells : Must be 1. The sensor specifier is the monitoring site ID, and represents the "n" in TRITSRn and TRATSRn. Optional property: - little-endian : If present, the TMU registers are little endian. If absent, the default is big endian. Example: Loading Loading @@ -60,4 +66,5 @@ tmu@f0000 { 0x00030000 0x00000012 0x00030001 0x0000001d>; #thermal-sensor-cells = <1>; }; Documentation/devicetree/bindings/thermal/rcar-gen3-thermal.txt 0 → 100644 +56 −0 Original line number Diff line number Diff line * DT bindings for Renesas R-Car Gen3 Thermal Sensor driver On R-Car Gen3 SoCs, the thermal sensor controllers (TSC) control the thermal sensors (THS) which are the analog circuits for measuring temperature (Tj) inside the LSI. Required properties: - compatible : "renesas,<soctype>-thermal", Examples with soctypes are: - "renesas,r8a7795-thermal" (R-Car H3) - "renesas,r8a7796-thermal" (R-Car M3-W) - reg : Address ranges of the thermal registers. Each sensor needs one address range. Sorting must be done in increasing order according to datasheet, i.e. TSC1, TSC2, ... - clocks : Must contain a reference to the functional clock. - #thermal-sensor-cells : must be <1>. Optional properties: - interrupts : interrupts routed to the TSC (3 for H3 and M3-W) - power-domain : Must contain a reference to the power domain. This property is mandatory if the thermal sensor instance is part of a controllable power domain. Example: tsc: thermal@e6198000 { compatible = "renesas,r8a7795-thermal"; reg = <0 0xe6198000 0 0x68>, <0 0xe61a0000 0 0x5c>, <0 0xe61a8000 0 0x5c>; interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>; clocks = <&cpg CPG_MOD 522>; power-domains = <&sysc R8A7795_PD_ALWAYS_ON>; #thermal-sensor-cells = <1>; status = "okay"; }; thermal-zones { sensor_thermal1: sensor-thermal1 { polling-delay-passive = <250>; polling-delay = <1000>; thermal-sensors = <&tsc 0>; trips { sensor1_crit: sensor1-crit { temperature = <90000>; hysteresis = <2000>; type = "critical"; }; }; }; }; Documentation/devicetree/bindings/thermal/zx2967-thermal.txt 0 → 100644 +116 −0 Original line number Diff line number Diff line * ZTE zx2967 family Thermal Required Properties: - compatible: should be one of the following. * zte,zx296718-thermal - reg: physical base address of the controller and length of memory mapped region. - clocks : Pairs of phandle and specifier referencing the controller's clocks. - clock-names: "topcrm" for the topcrm clock. "apb" for the apb clock. - #thermal-sensor-cells: must be 0. Please note: slope coefficient defined in thermal-zones section need to be multiplied by 1000. Example for tempsensor: tempsensor: tempsensor@148a000 { compatible = "zte,zx296718-thermal"; reg = <0x0148a000 0x20>; clocks = <&topcrm TEMPSENSOR_GATE>, <&audiocrm AUDIO_TS_PCLK>; clock-names = "topcrm", "apb"; #thermal-sensor-cells = <0>; }; Example for cooling device: cooling_dev: cooling_dev { cluster0_cooling_dev: cluster0-cooling-dev { #cooling-cells = <2>; cpumask = <0xf>; capacitance = <1500>; }; cluster1_cooling_dev: cluster1-cooling-dev { #cooling-cells = <2>; cpumask = <0x30>; capacitance = <2000>; }; }; Example for thermal zones: thermal-zones { zx296718_thermal: zx296718_thermal { polling-delay-passive = <500>; polling-delay = <1000>; sustainable-power = <6500>; thermal-sensors = <&tempsensor 0>; /* * slope need to be multiplied by 1000. */ coefficients = <1951 (-922)>; trips { trip0: switch_on_temperature { temperature = <90000>; hysteresis = <2000>; type = "passive"; }; trip1: desired_temperature { temperature = <100000>; hysteresis = <2000>; type = "passive"; }; crit: critical_temperature { temperature = <110000>; hysteresis = <2000>; type = "critical"; }; }; cooling-maps { map0 { trip = <&trip0>; cooling-device = <&gpu 2 5>; }; map1 { trip = <&trip0>; cooling-device = <&cluster0_cooling_dev 1 2>; }; map2 { trip = <&trip1>; cooling-device = <&cluster0_cooling_dev 1 2>; }; map3 { trip = <&crit>; cooling-device = <&cluster0_cooling_dev 1 2>; }; map4 { trip = <&trip0>; cooling-device = <&cluster1_cooling_dev 1 2>; contribution = <9000>; }; map5 { trip = <&trip1>; cooling-device = <&cluster1_cooling_dev 1 2>; contribution = <4096>; }; map6 { trip = <&crit>; cooling-device = <&cluster1_cooling_dev 1 2>; contribution = <4096>; }; }; }; }; arch/powerpc/boot/dts/fsl/t1023si-post.dtsi +2 −2 Original line number Diff line number Diff line Loading @@ -422,7 +422,7 @@ 0x00030001 0x0000000d 0x00030002 0x00000019 0x00030003 0x00000024>; #thermal-sensor-cells = <0>; #thermal-sensor-cells = <1>; }; thermal-zones { Loading @@ -430,7 +430,7 @@ polling-delay-passive = <1000>; polling-delay = <5000>; thermal-sensors = <&tmu>; thermal-sensors = <&tmu 0>; trips { cpu_alert: cpu-alert { Loading arch/powerpc/boot/dts/fsl/t1040si-post.dtsi +2 −2 Original line number Diff line number Diff line Loading @@ -526,7 +526,7 @@ 0x00030000 0x00000012 0x00030001 0x0000001d>; #thermal-sensor-cells = <0>; #thermal-sensor-cells = <1>; }; thermal-zones { Loading @@ -534,7 +534,7 @@ polling-delay-passive = <1000>; polling-delay = <5000>; thermal-sensors = <&tmu>; thermal-sensors = <&tmu 2>; trips { cpu_alert: cpu-alert { Loading Loading
Documentation/devicetree/bindings/thermal/qoriq-thermal.txt +7 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,12 @@ Required properties: calibration data, as specified by the SoC reference manual. The first cell of each pair is the value to be written to TTCFGR, and the second is the value to be written to TSCFGR. - #thermal-sensor-cells : Must be 1. The sensor specifier is the monitoring site ID, and represents the "n" in TRITSRn and TRATSRn. Optional property: - little-endian : If present, the TMU registers are little endian. If absent, the default is big endian. Example: Loading Loading @@ -60,4 +66,5 @@ tmu@f0000 { 0x00030000 0x00000012 0x00030001 0x0000001d>; #thermal-sensor-cells = <1>; };
Documentation/devicetree/bindings/thermal/rcar-gen3-thermal.txt 0 → 100644 +56 −0 Original line number Diff line number Diff line * DT bindings for Renesas R-Car Gen3 Thermal Sensor driver On R-Car Gen3 SoCs, the thermal sensor controllers (TSC) control the thermal sensors (THS) which are the analog circuits for measuring temperature (Tj) inside the LSI. Required properties: - compatible : "renesas,<soctype>-thermal", Examples with soctypes are: - "renesas,r8a7795-thermal" (R-Car H3) - "renesas,r8a7796-thermal" (R-Car M3-W) - reg : Address ranges of the thermal registers. Each sensor needs one address range. Sorting must be done in increasing order according to datasheet, i.e. TSC1, TSC2, ... - clocks : Must contain a reference to the functional clock. - #thermal-sensor-cells : must be <1>. Optional properties: - interrupts : interrupts routed to the TSC (3 for H3 and M3-W) - power-domain : Must contain a reference to the power domain. This property is mandatory if the thermal sensor instance is part of a controllable power domain. Example: tsc: thermal@e6198000 { compatible = "renesas,r8a7795-thermal"; reg = <0 0xe6198000 0 0x68>, <0 0xe61a0000 0 0x5c>, <0 0xe61a8000 0 0x5c>; interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>; clocks = <&cpg CPG_MOD 522>; power-domains = <&sysc R8A7795_PD_ALWAYS_ON>; #thermal-sensor-cells = <1>; status = "okay"; }; thermal-zones { sensor_thermal1: sensor-thermal1 { polling-delay-passive = <250>; polling-delay = <1000>; thermal-sensors = <&tsc 0>; trips { sensor1_crit: sensor1-crit { temperature = <90000>; hysteresis = <2000>; type = "critical"; }; }; }; };
Documentation/devicetree/bindings/thermal/zx2967-thermal.txt 0 → 100644 +116 −0 Original line number Diff line number Diff line * ZTE zx2967 family Thermal Required Properties: - compatible: should be one of the following. * zte,zx296718-thermal - reg: physical base address of the controller and length of memory mapped region. - clocks : Pairs of phandle and specifier referencing the controller's clocks. - clock-names: "topcrm" for the topcrm clock. "apb" for the apb clock. - #thermal-sensor-cells: must be 0. Please note: slope coefficient defined in thermal-zones section need to be multiplied by 1000. Example for tempsensor: tempsensor: tempsensor@148a000 { compatible = "zte,zx296718-thermal"; reg = <0x0148a000 0x20>; clocks = <&topcrm TEMPSENSOR_GATE>, <&audiocrm AUDIO_TS_PCLK>; clock-names = "topcrm", "apb"; #thermal-sensor-cells = <0>; }; Example for cooling device: cooling_dev: cooling_dev { cluster0_cooling_dev: cluster0-cooling-dev { #cooling-cells = <2>; cpumask = <0xf>; capacitance = <1500>; }; cluster1_cooling_dev: cluster1-cooling-dev { #cooling-cells = <2>; cpumask = <0x30>; capacitance = <2000>; }; }; Example for thermal zones: thermal-zones { zx296718_thermal: zx296718_thermal { polling-delay-passive = <500>; polling-delay = <1000>; sustainable-power = <6500>; thermal-sensors = <&tempsensor 0>; /* * slope need to be multiplied by 1000. */ coefficients = <1951 (-922)>; trips { trip0: switch_on_temperature { temperature = <90000>; hysteresis = <2000>; type = "passive"; }; trip1: desired_temperature { temperature = <100000>; hysteresis = <2000>; type = "passive"; }; crit: critical_temperature { temperature = <110000>; hysteresis = <2000>; type = "critical"; }; }; cooling-maps { map0 { trip = <&trip0>; cooling-device = <&gpu 2 5>; }; map1 { trip = <&trip0>; cooling-device = <&cluster0_cooling_dev 1 2>; }; map2 { trip = <&trip1>; cooling-device = <&cluster0_cooling_dev 1 2>; }; map3 { trip = <&crit>; cooling-device = <&cluster0_cooling_dev 1 2>; }; map4 { trip = <&trip0>; cooling-device = <&cluster1_cooling_dev 1 2>; contribution = <9000>; }; map5 { trip = <&trip1>; cooling-device = <&cluster1_cooling_dev 1 2>; contribution = <4096>; }; map6 { trip = <&crit>; cooling-device = <&cluster1_cooling_dev 1 2>; contribution = <4096>; }; }; }; };
arch/powerpc/boot/dts/fsl/t1023si-post.dtsi +2 −2 Original line number Diff line number Diff line Loading @@ -422,7 +422,7 @@ 0x00030001 0x0000000d 0x00030002 0x00000019 0x00030003 0x00000024>; #thermal-sensor-cells = <0>; #thermal-sensor-cells = <1>; }; thermal-zones { Loading @@ -430,7 +430,7 @@ polling-delay-passive = <1000>; polling-delay = <5000>; thermal-sensors = <&tmu>; thermal-sensors = <&tmu 0>; trips { cpu_alert: cpu-alert { Loading
arch/powerpc/boot/dts/fsl/t1040si-post.dtsi +2 −2 Original line number Diff line number Diff line Loading @@ -526,7 +526,7 @@ 0x00030000 0x00000012 0x00030001 0x0000001d>; #thermal-sensor-cells = <0>; #thermal-sensor-cells = <1>; }; thermal-zones { Loading @@ -534,7 +534,7 @@ polling-delay-passive = <1000>; polling-delay = <5000>; thermal-sensors = <&tmu>; thermal-sensors = <&tmu 2>; trips { cpu_alert: cpu-alert { Loading