]> git.karo-electronics.de Git - linux-beck.git/commitdiff
arm: vt8500: Add SDHC support to WM8505 DT
authorTony Prisk <linux@prisktech.co.nz>
Thu, 11 Apr 2013 19:00:29 +0000 (07:00 +1200)
committerOlof Johansson <olof@lixom.net>
Sat, 13 Apr 2013 05:40:28 +0000 (22:40 -0700)
This patch adds the required node for the SDHC controller on WM8505 SoCs.

Signed-off-by: Tony Prisk <linux@prisktech.co.nz>
Signed-off-by: Olof Johansson <olof@lixom.net>
arch/arm/boot/dts/wm8505.dtsi

index e74a1c0fb9a2998ef91dbf58019850644711465f..388f26d0d44945f2cb1c06b9a5b06c34c09caa60 100644 (file)
                                        clock-frequency = <24000000>;
                                };
 
+                               ref25: ref25M {
+                                       #clock-cells = <0>;
+                                       compatible = "fixed-clock";
+                                       clock-frequency = <25000000>;
+                               };
+
+                               pllb: pllb {
+                                       #clock-cells = <0>;
+                                       compatible = "via,vt8500-pll-clock";
+                                       clocks = <&ref25>;
+                                       reg = <0x204>;
+                               };
+
                                clkuart0: uart0 {
                                        #clock-cells = <0>;
                                        compatible = "via,vt8500-device-clock";
                                        enable-reg = <0x250>;
                                        enable-bit = <23>;
                                };
+
+                               clksdhc: sdhc {
+                                       #clock-cells = <0>;
+                                       compatible = "via,vt8500-device-clock";
+                                       clocks = <&pllb>;
+                                       divisor-reg = <0x328>;
+                                       divisor-mask = <0x3f>;
+                                       enable-reg = <0x254>;
+                                       enable-bit = <18>;
+                               };
                        };
                };
 
                        reg = <0xd8100000 0x10000>;
                        interrupts = <48>;
                };
+
+               sdhc@d800a000 {
+                       compatible = "wm,wm8505-sdhc";
+                       reg = <0xd800a000 0x1000>;
+                       interrupts = <20 21>;
+                       clocks = <&clksdhc>;
+                       bus-width = <4>;
+               };
        };
 };