ARM: sun4i: dt: Add ahci / sata support

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>
This commit is contained in:
Oliver Schinagl 2014-03-01 20:26:21 +01:00 committed by Maxime Ripard
parent 25ff22a532
commit 248bd1e228
3 changed files with 22 additions and 0 deletions

View File

@ -35,6 +35,10 @@
};
};
ahci: sata@01c18000 {
status = "okay";
};
pinctrl@01c20800 {
emac_power_pin_a1000: emac_power_pin@0 {
allwinner,pins = "PH15";

View File

@ -12,6 +12,7 @@
/dts-v1/;
/include/ "sun4i-a10.dtsi"
/include/ "sunxi-common-regulators.dtsi"
/ {
model = "Cubietech Cubieboard";
@ -33,6 +34,11 @@
};
};
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";
};
};

View File

@ -388,6 +388,14 @@
#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>;