]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: sun4i: dt: Add ahci / sata support
authorOliver Schinagl <oliver@schinagl.nl>
Sat, 1 Mar 2014 19:26:21 +0000 (20:26 +0100)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Tue, 4 Mar 2014 16:42:29 +0000 (17:42 +0100)
This patch adds sunxi sata support to A10 boards that have such a connector.
Some boards also feature a regulator via a GPIO and support for this is also
added.

Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
arch/arm/boot/dts/sun4i-a10-a1000.dts
arch/arm/boot/dts/sun4i-a10-cubieboard.dts
arch/arm/boot/dts/sun4i-a10.dtsi

index cbd2e135bc09ed062bd19eee7fd57f0a2077c482..d6ec8399ead0d2feae24a83a526d65118a84ac47 100644 (file)
                        };
                };
 
+               ahci: sata@01c18000 {
+                       status = "okay";
+               };
+
                pinctrl@01c20800 {
                        emac_power_pin_a1000: emac_power_pin@0 {
                                allwinner,pins = "PH15";
index b139ee6bcf99f422535899173f481777c7751541..20407ac39366111faa4e7812842f292c5766c125 100644 (file)
@@ -12,6 +12,7 @@
 
 /dts-v1/;
 /include/ "sun4i-a10.dtsi"
+/include/ "sunxi-common-regulators.dtsi"
 
 / {
        model = "Cubietech Cubieboard";
                        };
                };
 
+               ahci: sata@01c18000 {
+                       target-supply = <&reg_ahci_5v>;
+                       status = "okay";
+               };
+
                pinctrl@01c20800 {
                        led_pins_cubieboard: led_pins@0 {
                                allwinner,pins = "PH20", "PH21";
@@ -77,4 +83,8 @@
                        linux,default-trigger = "heartbeat";
                };
        };
+
+       reg_ahci_5v: ahci-5v {
+               status = "okay";
+       };
 };
index 2c01b0b77de2311aa9e379dfeafcd8295ec9e18b..c542f72df23297511315bb20ea37f84699cb6bcb 100644 (file)
                        #size-cells = <0>;
                };
 
+               ahci: sata@01c18000 {
+                       compatible = "allwinner,sun4i-a10-ahci";
+                       reg = <0x01c18000 0x1000>;
+                       interrupts = <56>;
+                       clocks = <&pll6 0>, <&ahb_gates 25>;
+                       status = "disabled";
+               };
+
                spi3: spi@01c1f000 {
                        compatible = "allwinner,sun4i-a10-spi";
                        reg = <0x01c1f000 0x1000>;