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

Configure Feed

Select the types of activity you want to include in your feed.

at v4.16 71 lines 1.8 kB view raw
1* Renesas R-Car Thermal 2 3Required properties: 4- compatible : "renesas,thermal-<soctype>", 5 "renesas,rcar-gen2-thermal" (with thermal-zone) or 6 "renesas,rcar-thermal" (without thermal-zone) as fallback. 7 Examples with soctypes are: 8 - "renesas,thermal-r8a73a4" (R-Mobile APE6) 9 - "renesas,thermal-r8a7743" (RZ/G1M) 10 - "renesas,thermal-r8a7779" (R-Car H1) 11 - "renesas,thermal-r8a7790" (R-Car H2) 12 - "renesas,thermal-r8a7791" (R-Car M2-W) 13 - "renesas,thermal-r8a7792" (R-Car V2H) 14 - "renesas,thermal-r8a7793" (R-Car M2-N) 15- reg : Address range of the thermal registers. 16 The 1st reg will be recognized as common register 17 if it has "interrupts". 18 19Option properties: 20 21- interrupts : use interrupt 22 23Example (non interrupt support): 24 25thermal@ffc48000 { 26 compatible = "renesas,thermal-r8a7779", "renesas,rcar-thermal"; 27 reg = <0xffc48000 0x38>; 28}; 29 30Example (interrupt support): 31 32thermal@e61f0000 { 33 compatible = "renesas,thermal-r8a73a4", "renesas,rcar-thermal"; 34 reg = <0xe61f0000 0x14 35 0xe61f0100 0x38 36 0xe61f0200 0x38 37 0xe61f0300 0x38>; 38 interrupts = <0 69 IRQ_TYPE_LEVEL_HIGH>; 39}; 40 41Example (with thermal-zone): 42 43thermal-zones { 44 cpu_thermal: cpu-thermal { 45 polling-delay-passive = <1000>; 46 polling-delay = <5000>; 47 48 thermal-sensors = <&thermal>; 49 50 trips { 51 cpu-crit { 52 temperature = <115000>; 53 hysteresis = <0>; 54 type = "critical"; 55 }; 56 }; 57 cooling-maps { 58 }; 59 }; 60}; 61 62thermal: thermal@e61f0000 { 63 compatible = "renesas,thermal-r8a7790", 64 "renesas,rcar-gen2-thermal", 65 "renesas,rcar-thermal"; 66 reg = <0 0xe61f0000 0 0x14>, <0 0xe61f0100 0 0x38>; 67 interrupts = <0 69 IRQ_TYPE_LEVEL_HIGH>; 68 clocks = <&mstp5_clks R8A7790_CLK_THERMAL>; 69 power-domains = <&cpg_clocks>; 70 #thermal-sensor-cells = <0>; 71};