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

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
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -35,6 +35,10 @@
			};
		};

		ahci: sata@01c18000 {
			status = "okay";
		};

		pinctrl@01c20800 {
			emac_power_pin_a1000: emac_power_pin@0 {
				allwinner,pins = "PH15";
+10 −0
Original line number Diff line number Diff line
@@ -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";
	};
};
+8 −0
Original line number Diff line number Diff line
@@ -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>;