]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - src/arm64/allwinner/sun50i-h6-orangepi.dtsi
Import DTS files from Linux 5.6
[FreeBSD/FreeBSD.git] / src / arm64 / allwinner / sun50i-h6-orangepi.dtsi
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 // Copyright (C) 2018 Amarula Solutions
3 // Author: Jagan Teki <jagan@amarulasolutions.com>
4
5 /dts-v1/;
6
7 #include "sun50i-h6.dtsi"
8
9 #include <dt-bindings/gpio/gpio.h>
10
11 / {
12         model = "OrangePi One Plus";
13         compatible = "xunlong,orangepi-one-plus", "allwinner,sun50i-h6";
14
15         aliases {
16                 serial0 = &uart0;
17         };
18
19         chosen {
20                 stdout-path = "serial0:115200n8";
21         };
22
23         leds {
24                 compatible = "gpio-leds";
25
26                 power {
27                         label = "orangepi:red:power";
28                         gpios = <&r_pio 0 4 GPIO_ACTIVE_HIGH>; /* PL4 */
29                         default-state = "on";
30                 };
31
32                 status {
33                         label = "orangepi:green:status";
34                         gpios = <&r_pio 0 7 GPIO_ACTIVE_HIGH>; /* PL7 */
35                 };
36         };
37
38         reg_vcc5v: vcc5v {
39                 /* board wide 5V supply directly from the DC jack */
40                 compatible = "regulator-fixed";
41                 regulator-name = "vcc-5v";
42                 regulator-min-microvolt = <5000000>;
43                 regulator-max-microvolt = <5000000>;
44                 regulator-always-on;
45         };
46 };
47
48 &ehci0 {
49         status = "okay";
50 };
51
52 &ehci3 {
53         status = "okay";
54 };
55
56 &gpu {
57         mali-supply = <&reg_dcdcc>;
58         status = "okay";
59 };
60
61 &mmc0 {
62         vmmc-supply = <&reg_cldo1>;
63         cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>;
64         bus-width = <4>;
65         status = "okay";
66 };
67
68 &ohci0 {
69         status = "okay";
70 };
71
72 &ohci3 {
73         status = "okay";
74 };
75
76 &r_i2c {
77         status = "okay";
78
79         axp805: pmic@36 {
80                 compatible = "x-powers,axp805", "x-powers,axp806";
81                 reg = <0x36>;
82                 interrupt-parent = <&r_intc>;
83                 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
84                 interrupt-controller;
85                 #interrupt-cells = <1>;
86                 x-powers,self-working-mode;
87                 vina-supply = <&reg_vcc5v>;
88                 vinb-supply = <&reg_vcc5v>;
89                 vinc-supply = <&reg_vcc5v>;
90                 vind-supply = <&reg_vcc5v>;
91                 vine-supply = <&reg_vcc5v>;
92                 aldoin-supply = <&reg_vcc5v>;
93                 bldoin-supply = <&reg_vcc5v>;
94                 cldoin-supply = <&reg_vcc5v>;
95
96                 regulators {
97                         reg_aldo1: aldo1 {
98                                 regulator-always-on;
99                                 regulator-min-microvolt = <3300000>;
100                                 regulator-max-microvolt = <3300000>;
101                                 regulator-name = "vcc-pl";
102                         };
103
104                         reg_aldo2: aldo2 {
105                                 regulator-min-microvolt = <3300000>;
106                                 regulator-max-microvolt = <3300000>;
107                                 regulator-name = "vcc-ac200";
108                         };
109
110                         reg_aldo3: aldo3 {
111                                 regulator-always-on;
112                                 regulator-min-microvolt = <3300000>;
113                                 regulator-max-microvolt = <3300000>;
114                                 regulator-name = "vcc25-dram";
115                         };
116
117                         reg_bldo1: bldo1 {
118                                 regulator-always-on;
119                                 regulator-min-microvolt = <1800000>;
120                                 regulator-max-microvolt = <1800000>;
121                                 regulator-name = "vcc-bias-pll";
122                         };
123
124                         reg_bldo2: bldo2 {
125                                 regulator-always-on;
126                                 regulator-min-microvolt = <1800000>;
127                                 regulator-max-microvolt = <1800000>;
128                                 regulator-name = "vcc-efuse-pcie-hdmi-io";
129                         };
130
131                         reg_bldo3: bldo3 {
132                                 regulator-always-on;
133                                 regulator-min-microvolt = <1800000>;
134                                 regulator-max-microvolt = <1800000>;
135                                 regulator-name = "vcc-dcxoio";
136                         };
137
138                         bldo4 {
139                                 /* unused */
140                         };
141
142                         reg_cldo1: cldo1 {
143                                 regulator-always-on;
144                                 regulator-min-microvolt = <3300000>;
145                                 regulator-max-microvolt = <3300000>;
146                                 regulator-name = "vcc-3v3";
147                         };
148
149                         reg_cldo2: cldo2 {
150                                 regulator-min-microvolt = <3300000>;
151                                 regulator-max-microvolt = <3300000>;
152                                 regulator-name = "vcc-wifi-1";
153                         };
154
155                         reg_cldo3: cldo3 {
156                                 regulator-min-microvolt = <3300000>;
157                                 regulator-max-microvolt = <3300000>;
158                                 regulator-name = "vcc-wifi-2";
159                         };
160
161                         reg_dcdca: dcdca {
162                                 regulator-always-on;
163                                 regulator-min-microvolt = <810000>;
164                                 regulator-max-microvolt = <1080000>;
165                                 regulator-name = "vdd-cpu";
166                         };
167
168                         reg_dcdcc: dcdcc {
169                                 regulator-enable-ramp-delay = <32000>;
170                                 regulator-min-microvolt = <810000>;
171                                 regulator-max-microvolt = <1080000>;
172                                 regulator-name = "vdd-gpu";
173                         };
174
175                         reg_dcdcd: dcdcd {
176                                 regulator-always-on;
177                                 regulator-min-microvolt = <960000>;
178                                 regulator-max-microvolt = <960000>;
179                                 regulator-name = "vdd-sys";
180                         };
181
182                         reg_dcdce: dcdce {
183                                 regulator-always-on;
184                                 regulator-min-microvolt = <1200000>;
185                                 regulator-max-microvolt = <1200000>;
186                                 regulator-name = "vcc-dram";
187                         };
188
189                         sw {
190                                 /* unused */
191                         };
192                 };
193         };
194 };
195
196 &r_ir {
197         status = "okay";
198 };
199
200 &uart0 {
201         pinctrl-names = "default";
202         pinctrl-0 = <&uart0_ph_pins>;
203         status = "okay";
204 };
205
206 &usb2otg {
207         dr_mode = "otg";
208         status = "okay";
209 };
210
211 &usb2phy {
212         usb0_id_det-gpios = <&pio 2 6 GPIO_ACTIVE_HIGH>; /* PC6 */
213         usb0_vbus-supply = <&reg_vcc5v>;
214         usb3_vbus-supply = <&reg_vcc5v>;
215         status = "okay";
216 };