From f472340c4545d9649a1f1f1dc5ed670bb40381cf Mon Sep 17 00:00:00 2001 From: The-going <48602507+The-going@users.noreply.github.com> Date: Mon, 24 Jan 2022 19:24:24 +0300 Subject: [PATCH 106/170] arm64:dts: sun50i-h5-nanopi-neo2 add regulator, led triger --- .../dts/allwinner/sun50i-h5-nanopi-neo2.dts | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo2.dts b/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo2.dts index 05486ccce..39331229c 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo2.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo2.dts @@ -25,12 +25,13 @@ leds { led-0 { label = "nanopi:green:pwr"; gpios = <&r_pio 0 10 GPIO_ACTIVE_HIGH>; - default-state = "on"; + linux,default-trigger = "default-on"; }; led-1 { label = "nanopi:blue:status"; gpios = <&pio 0 10 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "heartbeat"; }; }; @@ -51,6 +52,22 @@ reg_vcc3v3: vcc3v3 { regulator-max-microvolt = <3300000>; }; + vdd_cpux: gpio-regulator { + compatible = "regulator-gpio"; + pinctrl-names = "default"; + regulator-name = "vdd-cpux"; + regulator-type = "voltage"; + regulator-boot-on; + regulator-always-on; + regulator-min-microvolt = <1100000>; + regulator-max-microvolt = <1100000>; + regulator-ramp-delay = <50>; /* 4ms */ + gpios = <&r_pio 0 6 GPIO_ACTIVE_HIGH>; /* PL6 */ + gpios-states = <0x1>; + states = <1100000 0x0 + 1100000 0x1>; + }; + reg_usb0_vbus: usb0-vbus { compatible = "regulator-fixed"; regulator-name = "usb0-vbus"; @@ -62,6 +79,10 @@ reg_usb0_vbus: usb0-vbus { }; }; +&cpu0 { + cpu-supply = <&vdd_cpux>; +}; + &ehci0 { status = "okay"; }; -- 2.35.3