Commit 248bd1e2 authored by Oliver Schinagl's avatar Oliver Schinagl Committed by Maxime Ripard

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: default avatarOlliver Schinagl <oliver@schinagl.nl>
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
parent 25ff22a5
......@@ -35,6 +35,10 @@ phy1: ethernet-phy@1 {
};
};
ahci: sata@01c18000 {
status = "okay";
};
pinctrl@01c20800 {
emac_power_pin_a1000: emac_power_pin@0 {
allwinner,pins = "PH15";
......
......@@ -12,6 +12,7 @@
/dts-v1/;
/include/ "sun4i-a10.dtsi"
/include/ "sunxi-common-regulators.dtsi"
/ {
model = "Cubietech Cubieboard";
......@@ -33,6 +34,11 @@ phy1: ethernet-phy@1 {
};
};
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 @@ green {
linux,default-trigger = "heartbeat";
};
};
reg_ahci_5v: ahci-5v {
status = "okay";
};
};
......@@ -388,6 +388,14 @@ spi2: spi@01c17000 {
#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>;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment