Skip to content

Commit

Permalink
ARM: sun8i: r40: add 5V regulator for Banana Pi M2 Ultra
Browse files Browse the repository at this point in the history
On newer revisions of the Banana Pi M2 Ultra boards, the 5V power output
(used by HDMI, SATA and USB) is controller via a GPIO.

Add the regulator node for it.

Older revisions just have the 5V power output always on, and the GPIO is
reserved on these boards. So it won't affect the older revisions.

Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: Chen-Yu Tsai <wens@csie.org>
  • Loading branch information
Icenowy Zheng authored and Maxime Ripard committed Oct 20, 2017
1 parent 0e526b4 commit 0ca12c1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,15 @@
};
};

reg_vcc5v0: vcc5v0 {
compatible = "regulator-fixed";
regulator-name = "vcc5v0";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
gpio = <&pio 7 23 GPIO_ACTIVE_HIGH>; /* PH23 */
enable-active-high;
};

wifi_pwrseq: wifi_pwrseq {
compatible = "mmc-pwrseq-simple";
reset-gpios = <&pio 6 10 GPIO_ACTIVE_LOW>; /* PG10 WIFI_EN */
Expand Down

0 comments on commit 0ca12c1

Please sign in to comment.