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