diff options
author | Arnd Bergmann <arnd@arndb.de> | 2016-05-10 16:19:00 -0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2016-05-10 16:19:00 -0400 |
commit | 19d91c04af478522d2382a3a8edaedef60af57f6 (patch) | |
tree | d35636487588fb021ee58420a623988343aac09a | |
parent | 8ed589854a3e3daa030660e7688eb8348e03ffe1 (diff) | |
parent | 962f5143b30568bf67be97365d0616b0050ddaa5 (diff) |
Merge tag 'v4.6-next-dts64' of https://github.com/mbgg/linux-mediatek into next/dt64
Merge "ARM: mediatek: dts64 updates for v4.7" from Matthias Brugger:
- add thermal and auxadc device nodes to mt8173
- add thermal zone nodes to mt8173
* tag 'v4.6-next-dts64' of https://github.com/mbgg/linux-mediatek:
arm64: dts: mt8173: Add thermal zone node.
ARM64: dts: mt8173: Add thermal/auxadc device nodes
-rw-r--r-- | arch/arm64/boot/dts/mediatek/mt8173.dtsi | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi index eab7efc2302d..05f89c4a5413 100644 --- a/arch/arm64/boot/dts/mediatek/mt8173.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8173.dtsi | |||
@@ -125,6 +125,49 @@ | |||
125 | clock-output-names = "cpum_ck"; | 125 | clock-output-names = "cpum_ck"; |
126 | }; | 126 | }; |
127 | 127 | ||
128 | thermal-zones { | ||
129 | cpu_thermal: cpu_thermal { | ||
130 | polling-delay-passive = <1000>; /* milliseconds */ | ||
131 | polling-delay = <1000>; /* milliseconds */ | ||
132 | |||
133 | thermal-sensors = <&thermal>; | ||
134 | sustainable-power = <1500>; /* milliwatts */ | ||
135 | |||
136 | trips { | ||
137 | threshold: trip-point@0 { | ||
138 | temperature = <68000>; | ||
139 | hysteresis = <2000>; | ||
140 | type = "passive"; | ||
141 | }; | ||
142 | |||
143 | target: trip-point@1 { | ||
144 | temperature = <85000>; | ||
145 | hysteresis = <2000>; | ||
146 | type = "passive"; | ||
147 | }; | ||
148 | |||
149 | cpu_crit: cpu_crit@0 { | ||
150 | temperature = <115000>; | ||
151 | hysteresis = <2000>; | ||
152 | type = "critical"; | ||
153 | }; | ||
154 | }; | ||
155 | |||
156 | cooling-maps { | ||
157 | map@0 { | ||
158 | trip = <&target>; | ||
159 | cooling-device = <&cpu0 0 0>; | ||
160 | contribution = <1024>; | ||
161 | }; | ||
162 | map@1 { | ||
163 | trip = <&target>; | ||
164 | cooling-device = <&cpu2 0 0>; | ||
165 | contribution = <2048>; | ||
166 | }; | ||
167 | }; | ||
168 | }; | ||
169 | }; | ||
170 | |||
128 | timer { | 171 | timer { |
129 | compatible = "arm,armv8-timer"; | 172 | compatible = "arm,armv8-timer"; |
130 | interrupt-parent = <&gic>; | 173 | interrupt-parent = <&gic>; |
@@ -313,6 +356,11 @@ | |||
313 | (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>; | 356 | (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>; |
314 | }; | 357 | }; |
315 | 358 | ||
359 | auxadc: auxadc@11001000 { | ||
360 | compatible = "mediatek,mt8173-auxadc"; | ||
361 | reg = <0 0x11001000 0 0x1000>; | ||
362 | }; | ||
363 | |||
316 | uart0: serial@11002000 { | 364 | uart0: serial@11002000 { |
317 | compatible = "mediatek,mt8173-uart", | 365 | compatible = "mediatek,mt8173-uart", |
318 | "mediatek,mt6577-uart"; | 366 | "mediatek,mt6577-uart"; |
@@ -414,6 +462,18 @@ | |||
414 | status = "disabled"; | 462 | status = "disabled"; |
415 | }; | 463 | }; |
416 | 464 | ||
465 | thermal: thermal@1100b000 { | ||
466 | #thermal-sensor-cells = <0>; | ||
467 | compatible = "mediatek,mt8173-thermal"; | ||
468 | reg = <0 0x1100b000 0 0x1000>; | ||
469 | interrupts = <0 70 IRQ_TYPE_LEVEL_LOW>; | ||
470 | clocks = <&pericfg CLK_PERI_THERM>, <&pericfg CLK_PERI_AUXADC>; | ||
471 | clock-names = "therm", "auxadc"; | ||
472 | resets = <&pericfg MT8173_PERI_THERM_SW_RST>; | ||
473 | mediatek,auxadc = <&auxadc>; | ||
474 | mediatek,apmixedsys = <&apmixedsys>; | ||
475 | }; | ||
476 | |||
417 | nor_flash: spi@1100d000 { | 477 | nor_flash: spi@1100d000 { |
418 | compatible = "mediatek,mt8173-nor"; | 478 | compatible = "mediatek,mt8173-nor"; |
419 | reg = <0 0x1100d000 0 0xe0>; | 479 | reg = <0 0x1100d000 0 0xe0>; |