ARM: SPEAr: DT: Fix existing DT support
authorVipul Kumar Samar <vipulkumar.samar@st.com>
Thu, 5 Jul 2012 03:51:47 +0000 (11:51 +0800)
committerViresh Kumar <viresh.kumar@linaro.org>
Mon, 26 Nov 2012 10:23:48 +0000 (15:53 +0530)
This patch fixes existing DT support for all SPEAr SoC's. This includes:
- Removing few nodes from board files
- Updating DT data of few nodes
- Updating ranges of few busses
- Moving devices to correct parent bus

Signed-off-by: Bhavna Yadav <bhavna.yadav@st.com>
Signed-off-by: Deepak Sikri <deepak.sikri@st.com>
Signed-off-by: Rajeev Kumar <rajeev-dlh.kumar@st.com>
Signed-off-by: Shiraz Hashim <shiraz.hashim@st.com>
Signed-off-by: Vijay Kumar Mishra <vijay.kumar@st.com>
Signed-off-by: Vipin Kumar <vipin.kumar@st.com>
Signed-off-by: Vipul Kumar Samar <vipulkumar.samar@st.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
arch/arm/boot/dts/spear1310-evb.dts
arch/arm/boot/dts/spear1310.dtsi
arch/arm/boot/dts/spear1340-evb.dts
arch/arm/boot/dts/spear1340.dtsi
arch/arm/boot/dts/spear13xx.dtsi
arch/arm/boot/dts/spear300.dtsi
arch/arm/boot/dts/spear320-evb.dts
arch/arm/boot/dts/spear320.dtsi
arch/arm/boot/dts/spear3xx.dtsi

index 010e21deb8670dcc639a993a7ef8115279df6679..668dcb27dafddbe273d56aee163404ebd7ab058e 100644 (file)
                        };
                };
 
-               spi0: spi@e0100000 {
-                       status = "okay";
-               };
-
                ehci@e4800000 {
                        status = "okay";
                };
                               status = "okay";
                        };
 
-                       i2c1: i2c@5cd00000 {
-                              status = "okay";
-                       };
-
                        kbd@e0300000 {
                                linux,keymap = < 0x00000001
                                                 0x00010002
                                                 0x08080052 >;
                               autorepeat;
                               st,mode = <0>;
+                              suspended_rate = <2000000>;
                               status = "okay";
                        };
 
                               status = "okay";
                        };
 
+                       spi0: spi@e0100000 {
+                               status = "okay";
+                       };
+
                        wdt@ec800620 {
                               status = "okay";
                        };
index f489f648c6ebd9127771125f5f5fc303e765aca6..b2479be7590524e05215a9110711342be2121468 100644 (file)
                        #gpio-range-cells = <2>;
                };
 
-               spi1: spi@5d400000 {
-                       compatible = "arm,pl022", "arm,primecell";
-                       reg = <0x5d400000 0x1000>;
-                       interrupts = <0 99 0x4>;
-                       status = "disabled";
-               };
-
                apb {
                        i2c1: i2c@5cd00000 {
                                #address-cells = <1>;
                                status = "disabled";
                        };
 
+                       spi1: spi@5d400000 {
+                               compatible = "arm,pl022", "arm,primecell";
+                               reg = <0x5d400000 0x1000>;
+                               interrupts = <0 99 0x4>;
+                               status = "disabled";
+                       };
+
                        serial@5c800000 {
                                compatible = "arm,pl011", "arm,primecell";
                                reg = <0x5c800000 0x1000>;
index b16f7569bf5b1655fb71169d295b663281d3ee42..015601360f733f3d39edf8efe7a4302381c33630 100644 (file)
                        };
                };
 
-               spi0: spi@e0100000 {
-                       status = "okay";
-               };
-
                ehci@e4800000 {
                        status = "okay";
                };
                                                 0x08080052 >;
                               autorepeat;
                               st,mode = <0>;
+                              suspended_rate = <2000000>;
                               status = "okay";
                        };
 
                               status = "okay";
                        };
 
+                       spi0: spi@e0100000 {
+                               status = "okay";
+                       };
+
                        wdt@ec800620 {
                               status = "okay";
                        };
index 64d14fde215d4f5dd6ba03bedaac3b9993a36643..c49781e196b644c6f209610efb8a821b5debe11e 100644 (file)
@@ -58,6 +58,7 @@
                                compatible = "snps,designware-i2c";
                                reg = <0xb4000000 0x1000>;
                                interrupts = <0 104 0x4>;
+                               write-16bit;
                                status = "disabled";
                        };
 
index f7b84aced654ca643bc49ebe83b376425a6b893f..4d351442e58177ba69532d3f078c4182f66497b8 100644 (file)
@@ -70,6 +70,8 @@
                compatible = "simple-bus";
                ranges = <0x50000000 0x50000000 0x10000000
                          0xb0000000 0xb0000000 0x10000000
+                         0xd0000000 0xd0000000 0x02000000
+                         0xd8000000 0xd8000000 0x01000000
                          0xe0000000 0xe0000000 0x10000000>;
 
                sdhci@b3000000 {
@@ -81,7 +83,7 @@
 
                cf@b2800000 {
                        compatible = "arasan,cf-spear1340";
-                       reg = <0xb2800000 0x100>;
+                       reg = <0xb2800000 0x1000>;
                        interrupts = <0 29 0x4>;
                        status = "disabled";
                };
                                      0 23 0x4>;
                        st,ale-off = <0x20000>;
                        st,cle-off = <0x10000>;
+                       st,mode = <2>;
                        status = "disabled";
                };
 
                        status = "disabled";
                };
 
-               spi0: spi@e0100000 {
-                       compatible = "arm,pl022", "arm,primecell";
-                       reg = <0xe0100000 0x1000>;
-                       interrupts = <0 31 0x4>;
-                       status = "disabled";
-               };
-
                ehci@e4800000 {
                        compatible = "st,spear600-ehci", "usb-ehci";
                        reg = <0xe4800000 0x1000>;
                        interrupts = <0 64 0x4>;
+                       usbh0_id = <0>;
                        status = "disabled";
                };
 
                        compatible = "st,spear600-ehci", "usb-ehci";
                        reg = <0xe5800000 0x1000>;
                        interrupts = <0 66 0x4>;
+                       usbh1_id = <1>;
                        status = "disabled";
                };
 
                        compatible = "st,spear600-ohci", "usb-ohci";
                        reg = <0xe4000000 0x1000>;
                        interrupts = <0 65 0x4>;
+                       usbh0_id = <0>;
                        status = "disabled";
                };
 
                        compatible = "st,spear600-ohci", "usb-ohci";
                        reg = <0xe5000000 0x1000>;
                        interrupts = <0 67 0x4>;
+                       usbh1_id = <1>;
                        status = "disabled";
                };
 
                        compatible = "simple-bus";
                        ranges = <0x50000000 0x50000000 0x10000000
                                  0xb0000000 0xb0000000 0x10000000
+                                 0xd0000000 0xd0000000 0x02000000
+                                 0xd8000000 0xd8000000 0x01000000
                                  0xe0000000 0xe0000000 0x10000000>;
 
                        gpio0: gpio@e0600000 {
                                status = "disabled";
                        };
 
+                       spi0: spi@e0100000 {
+                               compatible = "arm,pl022", "arm,primecell";
+                               reg = <0xe0100000 0x1000>;
+                               interrupts = <0 31 0x4>;
+                               status = "disabled";
+                       };
+
                        rtc@e0580000 {
-                               compatible = "st,spear-rtc";
+                               compatible = "st,spear600-rtc";
                                reg = <0xe0580000 0x1000>;
                                interrupts = <0 36 0x4>;
                                status = "disabled";
                        adc@e0080000 {
                                compatible = "st,spear600-adc";
                                reg = <0xe0080000 0x1000>;
-                               interrupts = <0 44 0x4>;
+                               interrupts = <0 12 0x4>;
                                status = "disabled";
                        };
 
                        timer@ec800600 {
                                compatible = "arm,cortex-a9-twd-timer";
                                reg = <0xec800600 0x20>;
-                               interrupts = <1 13 0x301>;
+                               interrupts = <1 13 0x4>;
+                               status = "disabled";
                        };
 
                        wdt@ec800620 {
                        thermal@e07008c4 {
                                compatible = "st,thermal-spear1340";
                                reg = <0xe07008c4 0x4>;
+                               thermal_flags = <0x7000>;
                        };
                };
        };
index ed3627c116ccbd7c5e8f90208fab4c37ef7a97d0..fdac8713367a3b306b2276eab668166b09f7ee20 100644 (file)
@@ -27,7 +27,7 @@
                };
 
                clcd@60000000 {
-                       compatible = "arm,clcd-pl110", "arm,primecell";
+                       compatible = "arm,pl110", "arm,primecell";
                        reg = <0x60000000 0x1000>;
                        interrupts = <30>;
                        status = "disabled";
index 5b73d9c805d9ca9aeccacc0402cc7fac8acf0f2e..bf5848d9aa2b81c76e3ce68b658be9ffb3ebd2b2 100644 (file)
                        };
                };
 
-               clcd@90000000 {
-                       status = "okay";
-               };
-
                dma@fc400000 {
                        status = "okay";
                };
@@ -99,6 +95,7 @@
                };
 
                sdhci@70000000 {
+                       power-gpio = <&gpiopinctrl 61 1>;
                        status = "okay";
                };
 
index 67d7ada7127556eb5b5264ae171145744f82b36d..da29afba54e65eadadec45176dd4cbba33f801ee 100644 (file)
@@ -28,7 +28,7 @@
                };
 
                clcd@90000000 {
-                       compatible = "arm,clcd-pl110", "arm,primecell";
+                       compatible = "arm,pl110", "arm,primecell";
                        reg = <0x90000000 0x1000>;
                        interrupts = <33>;
                        status = "disabled";
@@ -69,7 +69,7 @@
                        #address-cells = <1>;
                        #size-cells = <1>;
                        compatible = "simple-bus";
-                       ranges = <0xa0000000 0xa0000000 0x10000000
+                       ranges = <0xa0000000 0xa0000000 0x20000000
                                  0xd0000000 0xd0000000 0x30000000>;
 
                        i2c1: i2c@a7000000 {
index 3a8bb5736928292b1a78359342550e709e052a2d..b02721fed16658bfa687fbde7ad8e00f98e1f9d8 100644 (file)
                        };
 
                        rtc@fc900000 {
-                               compatible = "st,spear-rtc";
+                               compatible = "st,spear600-rtc";
                                reg = <0xfc900000 0x1000>;
                                interrupts = <10>;
                                status = "disabled";