]> git.baikalelectronics.ru Git - arm-tf.git/commitdiff
fdts: tc0: Add node for mmc
authorUsama Arif <usama.arif@arm.com>
Wed, 10 Jun 2020 15:27:53 +0000 (16:27 +0100)
committerUsama Arif <usama.arif@arm.com>
Thu, 27 Aug 2020 10:20:14 +0000 (11:20 +0100)
The pl180 mmc uses 3.3V fixed regulator and vexpress
sysreg for card detection and write protect.

Change-Id: I2513cfcb97217e282a081a700f3a9f723e8207ff
Signed-off-by: Usama Arif <usama.arif@arm.com>
fdts/tc0.dts

index e736e49756db85b50d1d23dd93b099ed63c68bf2..140f47f8283478624524c21fb6b31bda2cfce3a9 100644 (file)
                interrupts = <0 204 4>;
        };
 
+       sysreg: sysreg@1c010000 {
+               compatible = "arm,vexpress-sysreg";
+               reg = <0x0 0x001c010000 0x0 0x1000>;
+               gpio-controller;
+               #gpio-cells = <2>;
+       };
+
+       fixed_3v3: v2m-3v3 {
+               compatible = "regulator-fixed";
+               regulator-name = "3V3";
+               regulator-min-microvolt = <3300000>;
+               regulator-max-microvolt = <3300000>;
+               regulator-always-on;
+       };
+
+       mmci@1c050000 {
+               compatible = "arm,pl180", "arm,primecell";
+               reg = <0x0 0x001c050000 0x0 0x1000>;
+               interrupts = <0 107 0x4>,
+                            <0 108 0x4>;
+               cd-gpios = <&sysreg 0 0>;
+               wp-gpios = <&sysreg 1 0>;
+               bus-width = <8>;
+               max-frequency = <12000000>;
+               vmmc-supply = <&fixed_3v3>;
+               clocks = <&bp_clock24mhz>, <&bp_clock24mhz>;
+               clock-names = "mclk", "apb_pclk";
+       };
+
        dp0: display@2cc00000 {
                #address-cells = <1>;
                #size-cells = <0>;