]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
ARM: sun8i: r40: add 5V regulator for Banana Pi M2 Ultra
authorIcenowy Zheng <icenowy@aosc.io>
Wed, 18 Oct 2017 13:06:25 +0000 (21:06 +0800)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Fri, 20 Oct 2017 07:51:35 +0000 (09:51 +0200)
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>
arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts

index 7b52608cebe6bda2c291b895826e419bf7929d12..035599d870b9fc1d0a4a215c4f36dc238a6f8679 100644 (file)
                };
        };
 
+       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 */