xref: /freebsd/sys/contrib/device-tree/src/arm64/allwinner/sun50i-h616-orangepi-zero2.dts (revision 84943d6f38e936ac3b7a3947ca26eeb27a39f938)
1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Copyright (C) 2020 Arm Ltd.
4 */
5
6/dts-v1/;
7
8#include "sun50i-h616-orangepi-zero.dtsi"
9
10/ {
11	model = "OrangePi Zero2";
12	compatible = "xunlong,orangepi-zero2", "allwinner,sun50i-h616";
13};
14
15&emac0 {
16	allwinner,rx-delay-ps = <3100>;
17	allwinner,tx-delay-ps = <700>;
18	phy-mode = "rgmii";
19	phy-supply = <&reg_dcdce>;
20};
21
22&mmc0 {
23	vmmc-supply = <&reg_dcdce>;
24};
25
26&r_rsb {
27	status = "okay";
28
29	axp305: pmic@745 {
30		compatible = "x-powers,axp305", "x-powers,axp805",
31			     "x-powers,axp806";
32		interrupt-controller;
33		#interrupt-cells = <1>;
34		reg = <0x745>;
35
36		x-powers,self-working-mode;
37		vina-supply = <&reg_vcc5v>;
38		vinb-supply = <&reg_vcc5v>;
39		vinc-supply = <&reg_vcc5v>;
40		vind-supply = <&reg_vcc5v>;
41		vine-supply = <&reg_vcc5v>;
42		aldoin-supply = <&reg_vcc5v>;
43		bldoin-supply = <&reg_vcc5v>;
44		cldoin-supply = <&reg_vcc5v>;
45
46		regulators {
47			reg_aldo1: aldo1 {
48				regulator-always-on;
49				regulator-min-microvolt = <3300000>;
50				regulator-max-microvolt = <3300000>;
51				regulator-name = "vcc-sys";
52			};
53
54			reg_aldo2: aldo2 {	/* 3.3V on headers */
55				regulator-always-on;
56				regulator-min-microvolt = <3300000>;
57				regulator-max-microvolt = <3300000>;
58				regulator-name = "vcc3v3-ext";
59			};
60
61			reg_aldo3: aldo3 {	/* 3.3V on headers */
62				regulator-always-on;
63				regulator-min-microvolt = <3300000>;
64				regulator-max-microvolt = <3300000>;
65				regulator-name = "vcc3v3-ext2";
66			};
67
68			reg_bldo1: bldo1 {
69				regulator-always-on;
70				regulator-min-microvolt = <1800000>;
71				regulator-max-microvolt = <1800000>;
72				regulator-name = "vcc1v8";
73			};
74
75			bldo2 {
76				/* unused */
77			};
78
79			bldo3 {
80				/* unused */
81			};
82
83			bldo4 {
84				/* unused */
85			};
86
87			cldo1 {
88				/* reserved */
89			};
90
91			cldo2 {
92				/* unused */
93			};
94
95			cldo3 {
96				/* unused */
97			};
98
99			reg_dcdca: dcdca {
100				regulator-always-on;
101				regulator-min-microvolt = <810000>;
102				regulator-max-microvolt = <1100000>;
103				regulator-name = "vdd-cpu";
104			};
105
106			reg_dcdcc: dcdcc {
107				regulator-always-on;
108				regulator-min-microvolt = <810000>;
109				regulator-max-microvolt = <990000>;
110				regulator-name = "vdd-gpu-sys";
111			};
112
113			reg_dcdcd: dcdcd {
114				regulator-always-on;
115				regulator-min-microvolt = <1500000>;
116				regulator-max-microvolt = <1500000>;
117				regulator-name = "vdd-dram";
118			};
119
120			reg_dcdce: dcdce {
121				regulator-always-on;
122				regulator-min-microvolt = <3300000>;
123				regulator-max-microvolt = <3300000>;
124				regulator-name = "vcc-eth-mmc";
125			};
126
127			sw {
128				/* unused */
129			};
130		};
131	};
132};
133
134&pio {
135	vcc-pc-supply = <&reg_aldo1>;
136	vcc-pf-supply = <&reg_aldo1>;
137	vcc-pg-supply = <&reg_bldo1>;
138	vcc-ph-supply = <&reg_aldo1>;
139	vcc-pi-supply = <&reg_aldo1>;
140};
141