Skip to contentSkip to conversation

ARM: dts: i.MX27: Using "wdog_ipg_gate" clock source for watchdog

PATCH New Alexander Shiyan 3 participants 8 messages Jul 20, 2013 – Jul 22, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/6 ARM: dts: i.MX27: Using "wdog_ipg_gate" clock source for watchdog

Patch replaces "dummy" clock source for watchdog with "wdog_ipg_gate".

---
 arch/arm/boot/dts/imx27.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/imx27.dtsi +1 -1
index 56b8c97..e9d60ab 100644
@@ -96,7 +96,7 @@
 				compatible = "fsl,imx27-wdt", "fsl,imx21-wdt";
 				reg = <0x10002000 0x1000>;
 				interrupts = <27>;
-				clocks = <&clks 0>;
+				clocks = <&clks 74>;
 			};
 
 			gpt1: timer at 10003000 {
Signature · 1 line
1.8.1.5
#1 lore raw

PATCH 2/6 ARM: dts: i.MX27: Remove optional "ptp" clock source for FEC

Patch removes optional "ptp" clock source for FEC. This clock is missing in i.MX27.

---
 arch/arm/boot/dts/imx27.dtsi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/boot/dts/imx27.dtsi +2 -2
index e9d60ab..7cf954b 100644
@@ -428,8 +428,8 @@
 				compatible = "fsl,imx27-fec";
 				reg = <0x1002b000 0x4000>;
 				interrupts = <50>;
-				clocks = <&clks 48>, <&clks 67>, <&clks 0>;
-				clock-names = "ipg", "ahb", "ptp";
+				clocks = <&clks 48>, <&clks 67>;
+				clock-names = "ipg", "ahb";
 				status = "disabled";
 			};
 		};
Signature · 1 line
1.8.1.5
#2 lore raw

PATCH 3/6 ARM: dts: i.MX27: Add label to CPU node

In reply to Alexander Shiyan

Add a label to i.MX27 CPU node. This change allows the reuse this node in the upper levels of the DTS.

---
 arch/arm/boot/dts/imx27.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/imx27.dtsi +1 -1
index 7cf954b..a8e0c7e 100644
@@ -53,7 +53,7 @@
 		#size-cells = <0>;
 		#address-cells = <1>;
 
-		cpu {
+		cpu: cpu at 0 {
 			device_type = "cpu";
 			compatible = "arm,arm926ej-s";
 			operating-points = <
Signature · 1 line
1.8.1.5
#3 lore raw

PATCH 4/6 ARM: dts: i.MX27: Increase "clock-latency" value

In reply to Alexander Shiyan

i.MX27 CPU can be clocked with a 32 kHz quartz, and not just 32768 Hz, so increase "clock-latency" value, which will ensure that we use two clock cycles on frequency change.

---
 arch/arm/boot/dts/imx27.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/imx27.dtsi +1 -1
index a8e0c7e..c06df85 100644
@@ -61,7 +61,7 @@
 				266000 1300000
 				399000 1450000
 			>;
-			clock-latency = <61036>; /* two CLK32 periods */
+			clock-latency = <62500>;
 			clocks = <&clks 18>;
 			clock-names = "cpu";
 			voltage-tolerance = <5>;
Signature · 1 line
1.8.1.5
#4 lore raw

PATCH 5/6 ARM: dts: i.MX27: Remove clock name from CPU node

In reply to Alexander Shiyan

Clock name is not needed for "cpufreq-cpu0".

---
 arch/arm/boot/dts/imx27.dtsi | 1 -
 1 file changed, 1 deletion(-)
arch/arm/boot/dts/imx27.dtsi +0 -1
index c06df85..76cd89f 100644
@@ -63,7 +63,6 @@
 			>;
 			clock-latency = <62500>;
 			clocks = <&clks 18>;
-			clock-names = "cpu";
 			voltage-tolerance = <5>;
 		};
 	};
Signature · 1 line
1.8.1.5
#5 lore raw

PATCH 6/6 ARM: dts: imx27-phytec-phycore-som: Fix regulator settings

In reply to Alexander Shiyan

Outputs regulator SW1A and SW1A, SW2A and SW2B are connected together, so it determined as "joined" operation for MC13783. Separate work of these outputs in this case would be wrong, so we define only one of the outputs.
Additionally, define the full range of voltages for the CPU (1.2v - 1.52v).

---
 arch/arm/boot/dts/imx27-phytec-phycore-som.dts | 22 +++++-----------------
 1 file changed, 5 insertions(+), 17 deletions(-)
arch/arm/boot/dts/imx27-phytec-phycore-som.dts +5 -17
index 22d0d27..aa70ad7 100644
@@ -38,28 +38,16 @@
 		fsl,mc13xxx-uses-rtc;
 
 		regulators {
-			sw1a_reg: sw1a {
+			/* SW1A and SW1B joined operation */
+			sw1_reg: sw1a {
 				regulator-min-microvolt = <1200000>;
-				regulator-max-microvolt = <1200000>;
+				regulator-max-microvolt = <1520000>;
 				regulator-always-on;
 				regulator-boot-on;
 			};
 
-			sw1b_reg: sw1b {
-				regulator-min-microvolt = <1200000>;
-				regulator-max-microvolt = <1200000>;
-				regulator-always-on;
-				regulator-boot-on;
-			};
-
-			sw2a_reg: sw2a {
-				regulator-min-microvolt = <1800000>;
-				regulator-max-microvolt = <1800000>;
-				regulator-always-on;
-				regulator-boot-on;
-			};
-
-			sw2b_reg: sw2b {
+			/* SW2A and SW2B joined operation */
+			sw2_reg: sw2a {
 				regulator-min-microvolt = <1800000>;
 				regulator-max-microvolt = <1800000>;
 				regulator-always-on;
Signature · 1 line
1.8.1.5
maintainer
#6 lore raw

PATCH 1/6 ARM: dts: i.MX27: Using "wdog_ipg_gate" clock source for watchdog

In reply to Alexander Shiyan
Quoted 3 lines · Alexander Shiyan

Patch replaces "dummy" clock source for watchdog with "wdog_ipg_gate".

The series looks good to me.

Sascha

Quoted 21 lines
---
 arch/arm/boot/dts/imx27.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/imx27.dtsi +1 -1
index 56b8c97..e9d60ab 100644
@@ -96,7 +96,7 @@
 				compatible = "fsl,imx27-wdt", "fsl,imx21-wdt";
 				reg = <0x10002000 0x1000>;
 				interrupts = <27>;
-				clocks = <&clks 0>;
+				clocks = <&clks 74>;
 			};
 
 			gpt1: timer at 10003000 {
Signature · 1 line
1.8.1.5
Signature · 4 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |