]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: dts: sun8i: v40: bananapi-m2-berry: Enable AHCI
authorPablo Greco <pgreco@centosproject.org>
Thu, 2 May 2019 13:33:48 +0000 (10:33 -0300)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Mon, 20 May 2019 07:27:31 +0000 (09:27 +0200)
Just like the Bananapi M2 Ultra, enable the ahci controller and
the two regulators needed to activate it.

Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
Signed-off-by: Pablo Greco <pgreco@centosproject.org>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
arch/arm/boot/dts/sun8i-v40-bananapi-m2-berry.dts

index 1f4f51f941882dec4ab9afb8c6929a257844fe41..461683c6d1fb7649dc7119372c21d7e00d993762 100644 (file)
@@ -99,6 +99,12 @@ wifi_pwrseq: wifi_pwrseq {
        };
 };
 
+&ahci {
+       ahci-supply = <&reg_dldo4>;
+       phy-supply = <&reg_eldo3>;
+       status = "okay";
+};
+
 &de {
        status = "okay";
 };
@@ -233,6 +239,18 @@ &reg_dldo2 {
        regulator-name = "vcc-wifi";
 };
 
+&reg_dldo4 {
+       regulator-min-microvolt = <2500000>;
+       regulator-max-microvolt = <2500000>;
+       regulator-name = "vdd2v5-sata";
+};
+
+&reg_eldo3 {
+       regulator-min-microvolt = <1200000>;
+       regulator-max-microvolt = <1200000>;
+       regulator-name = "vdd1v2-sata";
+};
+
 &tcon_tv0 {
        status = "okay";
 };