diff options
author | Icenowy Zheng <icenowy@aosc.io> | 2018-02-06 07:49:01 +0300 |
---|---|---|
committer | Chen-Yu Tsai <wens@csie.org> | 2018-04-20 09:39:20 +0300 |
commit | 3c5f893e96af6d4fe6cc64c24ed7de7d4e3a2fa6 (patch) | |
tree | 666c9887be164a5cbef77af2dc4c86690af250d3 /arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts | |
parent | dceecd9134178e010345bb3b6653d237a88546dd (diff) | |
download | linux-3c5f893e96af6d4fe6cc64c24ed7de7d4e3a2fa6.tar.xz |
ARM: dts: sun8i: h2+: add SY8113B regulator used by Orange Pi Zero board
Orange Pi Zero board has a SY8113B regulator, which is controlled via
GPIO and capable of outputing 1.1V when the PL6 GPIO is set to output 0
or 1.3V when the PL6 GPIO is set to input or output 1, and the output is
the power supply of the ARM cores in H2+ SoC.
Add the device tree node of this regulator and set the cpu's cpu-supply
property to it.
Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
Reviewed-by: Chen-Yu Tsai <wens@csie.org>
[wens@csie.org: rename regulator node name and label]
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Diffstat (limited to 'arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts')
-rw-r--r-- | arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts b/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts index 0bc031fe4c56..84cd9c061227 100644 --- a/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts +++ b/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts @@ -89,6 +89,23 @@ gpio = <&pio 0 20 GPIO_ACTIVE_HIGH>; }; + reg_vdd_cpux: vdd-cpux-regulator { + compatible = "regulator-gpio"; + regulator-name = "vdd-cpux"; + regulator-type = "voltage"; + regulator-boot-on; + regulator-always-on; + regulator-min-microvolt = <1100000>; + regulator-max-microvolt = <1300000>; + regulator-ramp-delay = <50>; /* 4ms */ + + gpios = <&r_pio 0 6 GPIO_ACTIVE_HIGH>; /* PL6 */ + enable-active-high; + gpios-states = <1>; + states = <1100000 0 + 1300000 1>; + }; + wifi_pwrseq: wifi_pwrseq { compatible = "mmc-pwrseq-simple"; reset-gpios = <&r_pio 0 7 GPIO_ACTIVE_LOW>; @@ -96,6 +113,10 @@ }; }; +&cpu0 { + cpu-supply = <®_vdd_cpux>; +}; + &ehci0 { status = "okay"; }; |