xref: /freebsd/sys/contrib/device-tree/src/arm64/allwinner/sun50i-a100-allwinner-perf1.dts (revision 7fdf597e96a02165cfe22ff357b857d5fa15ed8a)
1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Copyright (c) 2020 Yangtao Li <frank@allwinnertech.com>
4 */
5
6/dts-v1/;
7
8#include "sun50i-a100.dtsi"
9
10/{
11	model = "Allwinner A100 Perf1";
12	compatible = "allwinner,a100-perf1", "allwinner,sun50i-a100";
13
14	aliases {
15		serial0 = &uart0;
16	};
17
18	chosen {
19		stdout-path = "serial0:115200n8";
20	};
21};
22
23&pio {
24	vcc-pb-supply = <&reg_dcdc1>;
25	vcc-pc-supply = <&reg_eldo1>;
26	vcc-pd-supply = <&reg_dcdc1>;
27	vcc-pe-supply = <&reg_dldo2>;
28	vcc-pf-supply = <&reg_dcdc1>;
29	vcc-pg-supply = <&reg_dldo1>;
30	vcc-ph-supply = <&reg_dcdc1>;
31};
32
33&r_pio {
34	/*
35	 * FIXME: We can't add that supply for now since it would
36	 * create a circular dependency between pinctrl, the regulator
37	 * and the RSB Bus.
38	 *
39	 * vcc-pl-supply = <&reg_aldo3>;
40	 */
41};
42
43&r_i2c0 {
44	status = "okay";
45
46	axp803: pmic@34 {
47		compatible = "x-powers,axp803";
48		reg = <0x34>;
49		interrupt-parent = <&r_intc>;
50		interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
51		x-powers,drive-vbus-en; /* set N_VBUSEN as output pin */
52	};
53};
54
55#include "axp803.dtsi"
56
57&ac_power_supply {
58	status = "okay";
59};
60
61&reg_aldo1 {
62	regulator-always-on;
63	regulator-min-microvolt = <1800000>;
64	regulator-max-microvolt = <1800000>;
65	regulator-name = "vcc-pll-avcc";
66};
67
68&reg_aldo2 {
69	regulator-always-on;
70	regulator-min-microvolt = <1800000>;
71	regulator-max-microvolt = <1800000>;
72	regulator-name = "vcc-dram-1";
73};
74
75&reg_aldo3 {
76	regulator-always-on;
77	regulator-min-microvolt = <3300000>;
78	regulator-max-microvolt = <3300000>;
79	regulator-name = "vcc-usb-pl";
80};
81
82&reg_dcdc1 {
83	regulator-always-on;
84	regulator-min-microvolt = <3300000>;
85	regulator-max-microvolt = <3300000>;
86	regulator-name = "vcc-io-usb-pd-emmc-nand-card";
87};
88
89&reg_dcdc2 {
90	regulator-always-on;
91	/*
92	 * FIXME: update min and max before support dvfs.
93	 */
94	regulator-min-microvolt = <500000>;
95	regulator-max-microvolt = <1300000>;
96	regulator-name = "vdd-cpux";
97};
98
99/* DCDC3 is polyphased with DCDC2 */
100
101&reg_dcdc4 {
102	regulator-always-on;
103	regulator-min-microvolt = <950000>;
104	regulator-max-microvolt = <950000>;
105	regulator-name = "vdd-sys-usb-dram";
106};
107
108&reg_dcdc5 {
109	regulator-always-on;
110	regulator-min-microvolt = <1500000>;
111	regulator-max-microvolt = <1500000>;
112	regulator-name = "vcc-dram-2";
113};
114
115&reg_dldo1 {
116	regulator-min-microvolt = <3300000>;
117	regulator-max-microvolt = <3300000>;
118	regulator-name = "vcc-pg-dcxo-wifi";
119};
120
121&reg_dldo2 {
122	regulator-min-microvolt = <1800000>;
123	regulator-max-microvolt = <2800000>;
124	regulator-name = "vcc-pe-csi";
125};
126
127&reg_dldo3 {
128	regulator-min-microvolt = <1800000>;
129	regulator-max-microvolt = <3300000>;
130	regulator-name = "ldo-avdd-csi";
131};
132
133&reg_dldo4 {
134	regulator-min-microvolt = <1800000>;
135	regulator-max-microvolt = <2800000>;
136	regulator-name = "avcc-csi";
137};
138
139&reg_eldo1 {
140	regulator-min-microvolt = <1800000>;
141	regulator-max-microvolt = <1800000>;
142	regulator-name = "vcc-pc-lvds-csi-efuse-emmc-nand";
143};
144
145&reg_eldo2 {
146	regulator-min-microvolt = <1200000>;
147	regulator-max-microvolt = <1800000>;
148	regulator-name = "dvdd-csi";
149};
150
151&reg_eldo3 {
152	regulator-min-microvolt = <1800000>;
153	regulator-max-microvolt = <1800000>;
154	regulator-name = "vcc-mipi-lcd";
155};
156
157&reg_fldo1 {
158	regulator-always-on;
159	regulator-min-microvolt = <900000>;
160	regulator-max-microvolt = <900000>;
161	regulator-name = "vdd-cpus-usb";
162};
163
164&reg_ldo_io0 {
165	regulator-min-microvolt = <3300000>;
166	regulator-max-microvolt = <3300000>;
167	regulator-name = "vcc-ctp";
168	status = "okay";
169};
170
171&reg_drivevbus {
172	regulator-name = "usb0-vbus";
173	status = "okay";
174};
175
176&uart0 {
177	pinctrl-names = "default";
178	pinctrl-0 = <&uart0_pb_pins>;
179	status = "okay";
180};
181