xref: /freebsd/sys/contrib/device-tree/src/riscv/allwinner/sun20i-common-regulators.dtsi (revision 06c3fb2749bda94cb5201f81ffdb8fa6c3161b2e)
1// SPDX-License-Identifier: (GPL-2.0+ or MIT)
2// Copyright (C) 2021-2022 Samuel Holland <samuel@sholland.org>
3
4/ {
5	reg_vcc: vcc {
6		compatible = "regulator-fixed";
7		regulator-name = "vcc";
8		regulator-min-microvolt = <5000000>;
9		regulator-max-microvolt = <5000000>;
10	};
11
12	reg_vcc_3v3: vcc-3v3 {
13		compatible = "regulator-fixed";
14		regulator-name = "vcc-3v3";
15		regulator-min-microvolt = <3300000>;
16		regulator-max-microvolt = <3300000>;
17		vin-supply = <&reg_vcc>;
18	};
19};
20
21&pio {
22	vcc-pb-supply = <&reg_vcc_3v3>;
23	vcc-pc-supply = <&reg_vcc_3v3>;
24	vcc-pd-supply = <&reg_vcc_3v3>;
25	vcc-pe-supply = <&reg_vcc_3v3>;
26	vcc-pf-supply = <&reg_vcc_3v3>;
27	vcc-pg-supply = <&reg_vcc_3v3>;
28};
29