Re: [PATCH v2 2/3] Use regulators for pio on NanoPi NEO Plus2

From: Andre Przywara
Date: Wed Sep 04 2024 - 11:27:36 EST


On Tue, 27 Aug 2024 23:00:44 +0200
Kryštof Černý <cleverline1mc@xxxxxxxxx> wrote:

Hi,

> Pin controllers pio and r_pio will have proper regulators assigned.
>
> Signed-off-by: Kryštof Černý <cleverline1mc@xxxxxxxxx>

Checked against the schematic, it's indeed all 3.3V, except for PortD.

Reviewed-by: Andre Przywara <andre.przywara@xxxxxxx>

Cheers,
Andre

> ---
> arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo-plus2.dts | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo-plus2.dts b/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo-plus2.dts
> index dee4cd82636b..526443bb736c 100644
> --- a/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo-plus2.dts
> +++ b/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo-plus2.dts
> @@ -171,6 +171,18 @@ &ohci3 {
> status = "okay";
> };
>
> +&pio {
> + vcc-pa-supply = <&reg_vcc3v3>;
> + vcc-pc-supply = <&reg_vcc3v3>;
> + vcc-pd-supply = <&reg_gmac_2v5>;
> + vcc-pf-supply = <&reg_vcc3v3>;
> + vcc-pg-supply = <&reg_vcc3v3>;
> +};
> +
> +&r_pio {
> + vcc-pl-supply = <&reg_vcc3v3>;
> +};
> +
> &uart0 {
> pinctrl-names = "default";
> pinctrl-0 = <&uart0_pa_pins>;
>