aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeerthy <j-keerthy@ti.com>2015-03-23 15:39:38 -0400
committerTony Lindgren <tony@atomide.com>2015-03-26 15:02:02 -0400
commitf7397edf47ecc859fa69c15c4f9cefc8f2ee00c8 (patch)
tree87e4727072747fd547b126044501743f01731497
parente129fdb9b2dc49e7be62eb1626ae8b8c84f41c59 (diff)
ARM: dts: DRA7: Add bandgap and related thermal nodes
Add bandgap and related thermal nodes. The patch adds 5 thermal sensors. Only one cooling device for mpu as of now. The sensors are the exact same on both dra72 and dra7. Introduce CPU, GPU, core nodes for the moment as they are direct reuse of OMAP5 entities. NOTE: OMAP4 has a finer counter granularity, which allows for a delay of 1000ms in the thermal zone polling intervals. DRA7 have different counter mechanism, which allows at maximum a 500ms timer. Adjust the cpu thermal zone accordingly for DRA7. Signed-off-by: Keerthy <j-keerthy@ti.com> [t-kristo@ti.com: few reuse from OMAP5 entities] Signed-off-by: Tero Kristo <t-kristo@ti.com> Signed-off-by: Nishanth Menon <nm@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-rw-r--r--arch/arm/boot/dts/dra7.dtsi23
-rw-r--r--arch/arm/boot/dts/dra72x.dtsi5
-rw-r--r--arch/arm/boot/dts/dra74x.dtsi5
3 files changed, 33 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/dra7.dtsi b/arch/arm/boot/dts/dra7.dtsi
index 5827fedafd43..098916f93811 100644
--- a/arch/arm/boot/dts/dra7.dtsi
+++ b/arch/arm/boot/dts/dra7.dtsi
@@ -177,6 +177,18 @@
177 }; 177 };
178 }; 178 };
179 179
180 bandgap: bandgap@4a0021e0 {
181 reg = <0x4a0021e0 0xc
182 0x4a00232c 0xc
183 0x4a002380 0x2c
184 0x4a0023C0 0x3c
185 0x4a002564 0x8
186 0x4a002574 0x50>;
187 compatible = "ti,dra752-bandgap";
188 interrupts = <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
189 #thermal-sensor-cells = <1>;
190 };
191
180 cm_core_aon: cm_core_aon@4a005000 { 192 cm_core_aon: cm_core_aon@4a005000 {
181 compatible = "ti,dra7-cm-core-aon"; 193 compatible = "ti,dra7-cm-core-aon";
182 reg = <0x4a005000 0x2000>; 194 reg = <0x4a005000 0x2000>;
@@ -1426,6 +1438,17 @@
1426 status = "disabled"; 1438 status = "disabled";
1427 }; 1439 };
1428 }; 1440 };
1441
1442 thermal_zones: thermal-zones {
1443 #include "omap4-cpu-thermal.dtsi"
1444 #include "omap5-gpu-thermal.dtsi"
1445 #include "omap5-core-thermal.dtsi"
1446 };
1447
1448};
1449
1450&cpu_thermal {
1451 polling-delay = <500>; /* milliseconds */
1429}; 1452};
1430 1453
1431/include/ "dra7xx-clocks.dtsi" 1454/include/ "dra7xx-clocks.dtsi"
diff --git a/arch/arm/boot/dts/dra72x.dtsi b/arch/arm/boot/dts/dra72x.dtsi
index e5a3d23a3df1..6ac8e3601499 100644
--- a/arch/arm/boot/dts/dra72x.dtsi
+++ b/arch/arm/boot/dts/dra72x.dtsi
@@ -20,6 +20,11 @@
20 device_type = "cpu"; 20 device_type = "cpu";
21 compatible = "arm,cortex-a15"; 21 compatible = "arm,cortex-a15";
22 reg = <0>; 22 reg = <0>;
23
24 /* cooling options */
25 cooling-min-level = <0>;
26 cooling-max-level = <2>;
27 #cooling-cells = <2>; /* min followed by max */
23 }; 28 };
24 }; 29 };
25 30
diff --git a/arch/arm/boot/dts/dra74x.dtsi b/arch/arm/boot/dts/dra74x.dtsi
index 10173fab1a15..eef981f4bcd5 100644
--- a/arch/arm/boot/dts/dra74x.dtsi
+++ b/arch/arm/boot/dts/dra74x.dtsi
@@ -31,6 +31,11 @@
31 clock-names = "cpu"; 31 clock-names = "cpu";
32 32
33 clock-latency = <300000>; /* From omap-cpufreq driver */ 33 clock-latency = <300000>; /* From omap-cpufreq driver */
34
35 /* cooling options */
36 cooling-min-level = <0>;
37 cooling-max-level = <2>;
38 #cooling-cells = <2>; /* min followed by max */
34 }; 39 };
35 cpu@1 { 40 cpu@1 {
36 device_type = "cpu"; 41 device_type = "cpu";