xref: /freebsd-src/sys/contrib/device-tree/src/arm/allwinner/sun8i-a83t-bananapi-m3.dts (revision 7d0873ebb83b19ba1e8a89e679470d885efe12e3)
1f126890aSEmmanuel Vadot/*
2f126890aSEmmanuel Vadot * Copyright 2017 Chen-Yu Tsai
3f126890aSEmmanuel Vadot *
4f126890aSEmmanuel Vadot * Chen-Yu Tsai <wens@csie.org>
5f126890aSEmmanuel Vadot *
6f126890aSEmmanuel Vadot * This file is dual-licensed: you can use it either under the terms
7f126890aSEmmanuel Vadot * of the GPL or the X11 license, at your option. Note that this dual
8f126890aSEmmanuel Vadot * licensing only applies to this file, and not this project as a
9f126890aSEmmanuel Vadot * whole.
10f126890aSEmmanuel Vadot *
11f126890aSEmmanuel Vadot *  a) This file is free software; you can redistribute it and/or
12f126890aSEmmanuel Vadot *     modify it under the terms of the GNU General Public License as
13f126890aSEmmanuel Vadot *     published by the Free Software Foundation; either version 2 of the
14f126890aSEmmanuel Vadot *     License, or (at your option) any later version.
15f126890aSEmmanuel Vadot *
16f126890aSEmmanuel Vadot *     This file is distributed in the hope that it will be useful,
17f126890aSEmmanuel Vadot *     but WITHOUT ANY WARRANTY; without even the implied warranty of
18f126890aSEmmanuel Vadot *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19f126890aSEmmanuel Vadot *     GNU General Public License for more details.
20f126890aSEmmanuel Vadot *
21f126890aSEmmanuel Vadot * Or, alternatively,
22f126890aSEmmanuel Vadot *
23f126890aSEmmanuel Vadot *  b) Permission is hereby granted, free of charge, to any person
24f126890aSEmmanuel Vadot *     obtaining a copy of this software and associated documentation
25f126890aSEmmanuel Vadot *     files (the "Software"), to deal in the Software without
26f126890aSEmmanuel Vadot *     restriction, including without limitation the rights to use,
27f126890aSEmmanuel Vadot *     copy, modify, merge, publish, distribute, sublicense, and/or
28f126890aSEmmanuel Vadot *     sell copies of the Software, and to permit persons to whom the
29f126890aSEmmanuel Vadot *     Software is furnished to do so, subject to the following
30f126890aSEmmanuel Vadot *     conditions:
31f126890aSEmmanuel Vadot *
32f126890aSEmmanuel Vadot *     The above copyright notice and this permission notice shall be
33f126890aSEmmanuel Vadot *     included in all copies or substantial portions of the Software.
34f126890aSEmmanuel Vadot *
35f126890aSEmmanuel Vadot *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
36f126890aSEmmanuel Vadot *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
37f126890aSEmmanuel Vadot *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
38f126890aSEmmanuel Vadot *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
39f126890aSEmmanuel Vadot *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
40f126890aSEmmanuel Vadot *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
41f126890aSEmmanuel Vadot *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
42f126890aSEmmanuel Vadot *     OTHER DEALINGS IN THE SOFTWARE.
43f126890aSEmmanuel Vadot */
44f126890aSEmmanuel Vadot
45f126890aSEmmanuel Vadot/dts-v1/;
46f126890aSEmmanuel Vadot#include "sun8i-a83t.dtsi"
47f126890aSEmmanuel Vadot
48f126890aSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h>
49f126890aSEmmanuel Vadot
50f126890aSEmmanuel Vadot/ {
51f126890aSEmmanuel Vadot	model = "Banana Pi BPI-M3";
52f126890aSEmmanuel Vadot	compatible = "sinovoip,bpi-m3", "allwinner,sun8i-a83t";
53f126890aSEmmanuel Vadot
54f126890aSEmmanuel Vadot	aliases {
55f126890aSEmmanuel Vadot		ethernet0 = &emac;
56f126890aSEmmanuel Vadot		serial0 = &uart0;
57f126890aSEmmanuel Vadot	};
58f126890aSEmmanuel Vadot
59f126890aSEmmanuel Vadot	chosen {
60f126890aSEmmanuel Vadot		stdout-path = "serial0:115200n8";
61f126890aSEmmanuel Vadot	};
62f126890aSEmmanuel Vadot
63f126890aSEmmanuel Vadot	connector {
64f126890aSEmmanuel Vadot		compatible = "hdmi-connector";
65f126890aSEmmanuel Vadot		type = "a";
66f126890aSEmmanuel Vadot
67f126890aSEmmanuel Vadot		port {
68f126890aSEmmanuel Vadot			hdmi_con_in: endpoint {
69f126890aSEmmanuel Vadot				remote-endpoint = <&hdmi_out_con>;
70f126890aSEmmanuel Vadot			};
71f126890aSEmmanuel Vadot		};
72f126890aSEmmanuel Vadot	};
73f126890aSEmmanuel Vadot
74f126890aSEmmanuel Vadot	leds {
75f126890aSEmmanuel Vadot		compatible = "gpio-leds";
76f126890aSEmmanuel Vadot
77f126890aSEmmanuel Vadot		led-0 {
78f126890aSEmmanuel Vadot			label = "bananapi-m3:blue:usr";
79f126890aSEmmanuel Vadot			gpios = <&axp_gpio 1 GPIO_ACTIVE_HIGH>;
80f126890aSEmmanuel Vadot		};
81f126890aSEmmanuel Vadot
82f126890aSEmmanuel Vadot		led-1 {
83f126890aSEmmanuel Vadot			label = "bananapi-m3:green:usr";
84f126890aSEmmanuel Vadot			gpios = <&axp_gpio 0 GPIO_ACTIVE_HIGH>;
85f126890aSEmmanuel Vadot		};
86f126890aSEmmanuel Vadot	};
87f126890aSEmmanuel Vadot
88f126890aSEmmanuel Vadot	reg_usb1_vbus: reg-usb1-vbus {
89f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
90f126890aSEmmanuel Vadot		regulator-name = "usb1-vbus";
91f126890aSEmmanuel Vadot		regulator-min-microvolt = <5000000>;
92f126890aSEmmanuel Vadot		regulator-max-microvolt = <5000000>;
93f126890aSEmmanuel Vadot		regulator-boot-on;
94f126890aSEmmanuel Vadot		enable-active-high;
95f126890aSEmmanuel Vadot		gpio = <&pio 3 24 GPIO_ACTIVE_HIGH>; /* PD24 */
96f126890aSEmmanuel Vadot	};
97f126890aSEmmanuel Vadot
98*7d0873ebSEmmanuel Vadot	wifi_pwrseq: pwrseq {
99f126890aSEmmanuel Vadot		compatible = "mmc-pwrseq-simple";
100f126890aSEmmanuel Vadot		clocks = <&ac100_rtc 1>;
101f126890aSEmmanuel Vadot		clock-names = "ext_clock";
102f126890aSEmmanuel Vadot		/* The WiFi low power clock must be 32768 Hz */
103f126890aSEmmanuel Vadot		assigned-clocks = <&ac100_rtc 1>;
104f126890aSEmmanuel Vadot		assigned-clock-rates = <32768>;
105f126890aSEmmanuel Vadot		/* enables internal regulator and de-asserts reset */
106f126890aSEmmanuel Vadot		reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 WL-PMU-EN */
107f126890aSEmmanuel Vadot	};
108f126890aSEmmanuel Vadot
109f126890aSEmmanuel Vadot	/*
110f126890aSEmmanuel Vadot	 * Power supply for the SATA disk, behind a USB-SATA bridge.
111f126890aSEmmanuel Vadot	 * Since it is a USB device, there is no consumer in the DT, so we
112f126890aSEmmanuel Vadot	 * have to keep this always on.
113f126890aSEmmanuel Vadot	 */
114f126890aSEmmanuel Vadot	regulator-sata-disk-pwr {
115f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
116f126890aSEmmanuel Vadot		regulator-name = "sata-disk-pwr";
117f126890aSEmmanuel Vadot		regulator-min-microvolt = <5000000>;
118f126890aSEmmanuel Vadot		regulator-max-microvolt = <5000000>;
119f126890aSEmmanuel Vadot		regulator-always-on;
120f126890aSEmmanuel Vadot		enable-active-high;
121f126890aSEmmanuel Vadot		gpio = <&pio 3 25 GPIO_ACTIVE_HIGH>; /* PD25 */
122f126890aSEmmanuel Vadot	};
123f126890aSEmmanuel Vadot};
124f126890aSEmmanuel Vadot
125f126890aSEmmanuel Vadot&cpu0 {
126f126890aSEmmanuel Vadot	cpu-supply = <&reg_dcdc2>;
127f126890aSEmmanuel Vadot};
128f126890aSEmmanuel Vadot
129f126890aSEmmanuel Vadot&cpu100 {
130f126890aSEmmanuel Vadot	cpu-supply = <&reg_dcdc3>;
131f126890aSEmmanuel Vadot};
132f126890aSEmmanuel Vadot
133f126890aSEmmanuel Vadot&de {
134f126890aSEmmanuel Vadot	status = "okay";
135f126890aSEmmanuel Vadot};
136f126890aSEmmanuel Vadot
137f126890aSEmmanuel Vadot&ehci0 {
138f126890aSEmmanuel Vadot	/* Terminus Tech FE 1.1s 4-port USB 2.0 hub here */
139f126890aSEmmanuel Vadot	status = "okay";
140f126890aSEmmanuel Vadot
141f126890aSEmmanuel Vadot	/* TODO GL830 USB-to-SATA bridge downstream w/ GPIO power controls */
142f126890aSEmmanuel Vadot};
143f126890aSEmmanuel Vadot
144f126890aSEmmanuel Vadot&emac {
145f126890aSEmmanuel Vadot	pinctrl-names = "default";
146f126890aSEmmanuel Vadot	pinctrl-0 = <&emac_rgmii_pins>;
147f126890aSEmmanuel Vadot	phy-supply = <&reg_sw>;
148f126890aSEmmanuel Vadot	phy-handle = <&rgmii_phy>;
149f126890aSEmmanuel Vadot	phy-mode = "rgmii-id";
150f126890aSEmmanuel Vadot	allwinner,rx-delay-ps = <700>;
151f126890aSEmmanuel Vadot	allwinner,tx-delay-ps = <700>;
152f126890aSEmmanuel Vadot	status = "okay";
153f126890aSEmmanuel Vadot};
154f126890aSEmmanuel Vadot
155f126890aSEmmanuel Vadot&hdmi {
156f126890aSEmmanuel Vadot	status = "okay";
157f126890aSEmmanuel Vadot};
158f126890aSEmmanuel Vadot
159f126890aSEmmanuel Vadot&hdmi_out {
160f126890aSEmmanuel Vadot	hdmi_out_con: endpoint {
161f126890aSEmmanuel Vadot		remote-endpoint = <&hdmi_con_in>;
162f126890aSEmmanuel Vadot	};
163f126890aSEmmanuel Vadot};
164f126890aSEmmanuel Vadot
165f126890aSEmmanuel Vadot&mdio {
166f126890aSEmmanuel Vadot	rgmii_phy: ethernet-phy@1 {
167f126890aSEmmanuel Vadot		compatible = "ethernet-phy-ieee802.3-c22";
168f126890aSEmmanuel Vadot		reg = <1>;
169f126890aSEmmanuel Vadot	};
170f126890aSEmmanuel Vadot};
171f126890aSEmmanuel Vadot
172f126890aSEmmanuel Vadot&mmc0 {
173f126890aSEmmanuel Vadot	pinctrl-names = "default";
174f126890aSEmmanuel Vadot	pinctrl-0 = <&mmc0_pins>;
175f126890aSEmmanuel Vadot	vmmc-supply = <&reg_dcdc1>;
176f126890aSEmmanuel Vadot	bus-width = <4>;
177f126890aSEmmanuel Vadot	cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
178f126890aSEmmanuel Vadot	status = "okay";
179f126890aSEmmanuel Vadot};
180f126890aSEmmanuel Vadot
181f126890aSEmmanuel Vadot&mmc1 {
182f126890aSEmmanuel Vadot	vmmc-supply = <&reg_dldo1>;
183f126890aSEmmanuel Vadot	vqmmc-supply = <&reg_dldo1>;
184f126890aSEmmanuel Vadot	mmc-pwrseq = <&wifi_pwrseq>;
185f126890aSEmmanuel Vadot	bus-width = <4>;
186f126890aSEmmanuel Vadot	non-removable;
187f126890aSEmmanuel Vadot	status = "okay";
188f126890aSEmmanuel Vadot
189f126890aSEmmanuel Vadot	brcmf: wifi@1 {
190f126890aSEmmanuel Vadot		reg = <1>;
191f126890aSEmmanuel Vadot		compatible = "brcm,bcm4329-fmac";
192f126890aSEmmanuel Vadot		interrupt-parent = <&r_pio>;
193f126890aSEmmanuel Vadot		interrupts = <0 3 IRQ_TYPE_LEVEL_LOW>;
194f126890aSEmmanuel Vadot		interrupt-names = "host-wake";
195f126890aSEmmanuel Vadot	};
196f126890aSEmmanuel Vadot};
197f126890aSEmmanuel Vadot
198f126890aSEmmanuel Vadot&mmc2 {
199f126890aSEmmanuel Vadot	pinctrl-names = "default";
200f126890aSEmmanuel Vadot	pinctrl-0 = <&mmc2_8bit_emmc_pins>;
201f126890aSEmmanuel Vadot	vmmc-supply = <&reg_dcdc1>;
202f126890aSEmmanuel Vadot	vqmmc-supply = <&reg_dcdc1>;
203f126890aSEmmanuel Vadot	bus-width = <8>;
204f126890aSEmmanuel Vadot	non-removable;
205f126890aSEmmanuel Vadot	cap-mmc-hw-reset;
206f126890aSEmmanuel Vadot	status = "okay";
207f126890aSEmmanuel Vadot};
208f126890aSEmmanuel Vadot
209f126890aSEmmanuel Vadot&r_cir {
210f126890aSEmmanuel Vadot	clock-frequency = <3000000>;
211f126890aSEmmanuel Vadot	status = "okay";
212f126890aSEmmanuel Vadot};
213f126890aSEmmanuel Vadot
214f126890aSEmmanuel Vadot&r_rsb {
215f126890aSEmmanuel Vadot	status = "okay";
216f126890aSEmmanuel Vadot
217f126890aSEmmanuel Vadot	axp81x: pmic@3a3 {
218f126890aSEmmanuel Vadot		compatible = "x-powers,axp813";
219f126890aSEmmanuel Vadot		reg = <0x3a3>;
220f126890aSEmmanuel Vadot		interrupt-parent = <&r_intc>;
221f126890aSEmmanuel Vadot		interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_LOW>;
222f126890aSEmmanuel Vadot		eldoin-supply = <&reg_dcdc1>;
223f126890aSEmmanuel Vadot		fldoin-supply = <&reg_dcdc5>;
224f126890aSEmmanuel Vadot		swin-supply = <&reg_dcdc1>;
225f126890aSEmmanuel Vadot		x-powers,drive-vbus-en;
226f126890aSEmmanuel Vadot	};
227f126890aSEmmanuel Vadot
228f126890aSEmmanuel Vadot	ac100: codec@e89 {
229f126890aSEmmanuel Vadot		compatible = "x-powers,ac100";
230f126890aSEmmanuel Vadot		reg = <0xe89>;
231f126890aSEmmanuel Vadot
232f126890aSEmmanuel Vadot		ac100_codec: codec {
233f126890aSEmmanuel Vadot			compatible = "x-powers,ac100-codec";
234f126890aSEmmanuel Vadot			interrupt-parent = <&r_pio>;
235f126890aSEmmanuel Vadot			interrupts = <0 11 IRQ_TYPE_LEVEL_LOW>; /* PL11 */
236f126890aSEmmanuel Vadot			#clock-cells = <0>;
237f126890aSEmmanuel Vadot			clock-output-names = "4M_adda";
238f126890aSEmmanuel Vadot		};
239f126890aSEmmanuel Vadot
240f126890aSEmmanuel Vadot		ac100_rtc: rtc {
241f126890aSEmmanuel Vadot			compatible = "x-powers,ac100-rtc";
242f126890aSEmmanuel Vadot			interrupt-parent = <&r_intc>;
243f126890aSEmmanuel Vadot			interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_LOW>;
244f126890aSEmmanuel Vadot			clocks = <&ac100_codec>;
245f126890aSEmmanuel Vadot			#clock-cells = <1>;
246f126890aSEmmanuel Vadot			clock-output-names = "cko1_rtc",
247f126890aSEmmanuel Vadot					     "cko2_rtc",
248f126890aSEmmanuel Vadot					     "cko3_rtc";
249f126890aSEmmanuel Vadot		};
250f126890aSEmmanuel Vadot	};
251f126890aSEmmanuel Vadot};
252f126890aSEmmanuel Vadot
253f126890aSEmmanuel Vadot#include "axp81x.dtsi"
254f126890aSEmmanuel Vadot
255f126890aSEmmanuel Vadot&ac_power_supply {
256f126890aSEmmanuel Vadot	status = "okay";
257f126890aSEmmanuel Vadot};
258f126890aSEmmanuel Vadot
259f126890aSEmmanuel Vadot&battery_power_supply {
260f126890aSEmmanuel Vadot	status = "okay";
261f126890aSEmmanuel Vadot};
262f126890aSEmmanuel Vadot
263f126890aSEmmanuel Vadot&reg_aldo1 {
264f126890aSEmmanuel Vadot	regulator-always-on;
265f126890aSEmmanuel Vadot	regulator-min-microvolt = <1800000>;
266f126890aSEmmanuel Vadot	regulator-max-microvolt = <1800000>;
267f126890aSEmmanuel Vadot	regulator-name = "vcc-1v8";
268f126890aSEmmanuel Vadot};
269f126890aSEmmanuel Vadot
270f126890aSEmmanuel Vadot&reg_aldo2 {
271f126890aSEmmanuel Vadot	regulator-always-on;
272f126890aSEmmanuel Vadot	regulator-min-microvolt = <1800000>;
273f126890aSEmmanuel Vadot	regulator-max-microvolt = <1800000>;
274f126890aSEmmanuel Vadot	regulator-name = "dram-pll";
275f126890aSEmmanuel Vadot};
276f126890aSEmmanuel Vadot
277f126890aSEmmanuel Vadot&reg_aldo3 {
278f126890aSEmmanuel Vadot	regulator-always-on;
279f126890aSEmmanuel Vadot	regulator-min-microvolt = <3000000>;
280f126890aSEmmanuel Vadot	regulator-max-microvolt = <3000000>;
281f126890aSEmmanuel Vadot	regulator-name = "avcc";
282f126890aSEmmanuel Vadot};
283f126890aSEmmanuel Vadot
284f126890aSEmmanuel Vadot&reg_dcdc1 {
285f126890aSEmmanuel Vadot	/* schematics says 3.1V but FEX file says 3.3V */
286f126890aSEmmanuel Vadot	regulator-always-on;
287f126890aSEmmanuel Vadot	regulator-min-microvolt = <3300000>;
288f126890aSEmmanuel Vadot	regulator-max-microvolt = <3300000>;
289f126890aSEmmanuel Vadot	regulator-name = "vcc-3v3";
290f126890aSEmmanuel Vadot};
291f126890aSEmmanuel Vadot
292f126890aSEmmanuel Vadot&reg_dcdc2 {
293f126890aSEmmanuel Vadot	regulator-always-on;
294f126890aSEmmanuel Vadot	regulator-min-microvolt = <700000>;
295f126890aSEmmanuel Vadot	regulator-max-microvolt = <1100000>;
296f126890aSEmmanuel Vadot	regulator-name = "vdd-cpua";
297f126890aSEmmanuel Vadot};
298f126890aSEmmanuel Vadot
299f126890aSEmmanuel Vadot&reg_dcdc3 {
300f126890aSEmmanuel Vadot	regulator-always-on;
301f126890aSEmmanuel Vadot	regulator-min-microvolt = <700000>;
302f126890aSEmmanuel Vadot	regulator-max-microvolt = <1100000>;
303f126890aSEmmanuel Vadot	regulator-name = "vdd-cpub";
304f126890aSEmmanuel Vadot};
305f126890aSEmmanuel Vadot
306f126890aSEmmanuel Vadot&reg_dcdc4 {
307f126890aSEmmanuel Vadot	regulator-min-microvolt = <700000>;
308f126890aSEmmanuel Vadot	regulator-max-microvolt = <1100000>;
309f126890aSEmmanuel Vadot	regulator-name = "vdd-gpu";
310f126890aSEmmanuel Vadot};
311f126890aSEmmanuel Vadot
312f126890aSEmmanuel Vadot&reg_dcdc5 {
313f126890aSEmmanuel Vadot	regulator-always-on;
314f126890aSEmmanuel Vadot	regulator-min-microvolt = <1200000>;
315f126890aSEmmanuel Vadot	regulator-max-microvolt = <1200000>;
316f126890aSEmmanuel Vadot	regulator-name = "vcc-dram";
317f126890aSEmmanuel Vadot};
318f126890aSEmmanuel Vadot
319f126890aSEmmanuel Vadot&reg_dcdc6 {
320f126890aSEmmanuel Vadot	regulator-always-on;
321f126890aSEmmanuel Vadot	regulator-min-microvolt = <900000>;
322f126890aSEmmanuel Vadot	regulator-max-microvolt = <900000>;
323f126890aSEmmanuel Vadot	regulator-name = "vdd-sys";
324f126890aSEmmanuel Vadot};
325f126890aSEmmanuel Vadot
326f126890aSEmmanuel Vadot&reg_dldo1 {
327f126890aSEmmanuel Vadot	/*
328f126890aSEmmanuel Vadot	 * This powers both the WiFi/BT module's main power, I/O supply,
329f126890aSEmmanuel Vadot	 * and external pull-ups on all the data lines. It should be set
330f126890aSEmmanuel Vadot	 * to the same voltage as the I/O supply (DCDC1 in this case) to
331f126890aSEmmanuel Vadot	 * avoid any leakage or mismatch.
332f126890aSEmmanuel Vadot	 */
333f126890aSEmmanuel Vadot	regulator-min-microvolt = <3300000>;
334f126890aSEmmanuel Vadot	regulator-max-microvolt = <3300000>;
335f126890aSEmmanuel Vadot	regulator-name = "vcc-wifi";
336f126890aSEmmanuel Vadot};
337f126890aSEmmanuel Vadot
338f126890aSEmmanuel Vadot&reg_dldo3 {
339f126890aSEmmanuel Vadot	regulator-always-on;
340f126890aSEmmanuel Vadot	regulator-min-microvolt = <3300000>;
341f126890aSEmmanuel Vadot	regulator-max-microvolt = <3300000>;
342f126890aSEmmanuel Vadot	regulator-name = "vcc-pd";
343f126890aSEmmanuel Vadot};
344f126890aSEmmanuel Vadot
345f126890aSEmmanuel Vadot&reg_drivevbus {
346f126890aSEmmanuel Vadot	regulator-name = "usb0-vbus";
347f126890aSEmmanuel Vadot	status = "okay";
348f126890aSEmmanuel Vadot};
349f126890aSEmmanuel Vadot
350f126890aSEmmanuel Vadot&reg_fldo1 {
351f126890aSEmmanuel Vadot	regulator-min-microvolt = <1080000>;
352f126890aSEmmanuel Vadot	regulator-max-microvolt = <1320000>;
353f126890aSEmmanuel Vadot	regulator-name = "vdd12-hsic";
354f126890aSEmmanuel Vadot};
355f126890aSEmmanuel Vadot
356f126890aSEmmanuel Vadot&reg_fldo2 {
357f126890aSEmmanuel Vadot	/*
358f126890aSEmmanuel Vadot	 * Despite the embedded CPUs core not being used in any way,
359f126890aSEmmanuel Vadot	 * this must remain on or the system will hang.
360f126890aSEmmanuel Vadot	 */
361f126890aSEmmanuel Vadot	regulator-always-on;
362f126890aSEmmanuel Vadot	regulator-min-microvolt = <700000>;
363f126890aSEmmanuel Vadot	regulator-max-microvolt = <1100000>;
364f126890aSEmmanuel Vadot	regulator-name = "vdd-cpus";
365f126890aSEmmanuel Vadot};
366f126890aSEmmanuel Vadot
367f126890aSEmmanuel Vadot&reg_rtc_ldo {
368f126890aSEmmanuel Vadot	regulator-name = "vcc-rtc";
369f126890aSEmmanuel Vadot};
370f126890aSEmmanuel Vadot
371f126890aSEmmanuel Vadot&reg_sw {
372f126890aSEmmanuel Vadot	/*
373f126890aSEmmanuel Vadot	 * The PHY requires 20ms after all voltages
374f126890aSEmmanuel Vadot	 * are applied until core logic is ready and
375f126890aSEmmanuel Vadot	 * 30ms after the reset pin is de-asserted.
376f126890aSEmmanuel Vadot	 * Set a 100ms delay to account for PMIC
377f126890aSEmmanuel Vadot	 * ramp time and board traces.
378f126890aSEmmanuel Vadot	 */
379f126890aSEmmanuel Vadot	regulator-enable-ramp-delay = <100000>;
380f126890aSEmmanuel Vadot	regulator-name = "vcc-ephy";
381f126890aSEmmanuel Vadot};
382f126890aSEmmanuel Vadot
383f126890aSEmmanuel Vadot&uart0 {
384f126890aSEmmanuel Vadot	pinctrl-names = "default";
385f126890aSEmmanuel Vadot	pinctrl-0 = <&uart0_pb_pins>;
386f126890aSEmmanuel Vadot	status = "okay";
387f126890aSEmmanuel Vadot};
388f126890aSEmmanuel Vadot
389f126890aSEmmanuel Vadot&uart1 {
390f126890aSEmmanuel Vadot	pinctrl-names = "default";
391f126890aSEmmanuel Vadot	pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>;
392f126890aSEmmanuel Vadot	uart-has-rtscts;
393f126890aSEmmanuel Vadot	status = "okay";
394f126890aSEmmanuel Vadot
395f126890aSEmmanuel Vadot	bluetooth {
396f126890aSEmmanuel Vadot		compatible = "brcm,bcm43438-bt";
397f126890aSEmmanuel Vadot		clocks = <&ac100_rtc 1>;
398f126890aSEmmanuel Vadot		clock-names = "lpo";
399f126890aSEmmanuel Vadot		vbat-supply = <&reg_dldo1>;
400f126890aSEmmanuel Vadot		vddio-supply = <&reg_dldo1>;
401f126890aSEmmanuel Vadot		device-wakeup-gpios = <&pio 7 9 GPIO_ACTIVE_HIGH>; /* PH9 */
402f126890aSEmmanuel Vadot		host-wakeup-gpios = <&r_pio 0 5 GPIO_ACTIVE_HIGH>; /* PL5 */
403f126890aSEmmanuel Vadot		shutdown-gpios = <&r_pio 0 4 GPIO_ACTIVE_HIGH>; /* PL4 */
404f126890aSEmmanuel Vadot	};
405f126890aSEmmanuel Vadot};
406f126890aSEmmanuel Vadot
407f126890aSEmmanuel Vadot&usb_otg {
408f126890aSEmmanuel Vadot	dr_mode = "otg";
409f126890aSEmmanuel Vadot	status = "okay";
410f126890aSEmmanuel Vadot};
411f126890aSEmmanuel Vadot
412f126890aSEmmanuel Vadot&usb_power_supply {
413f126890aSEmmanuel Vadot	status = "okay";
414f126890aSEmmanuel Vadot};
415f126890aSEmmanuel Vadot
416f126890aSEmmanuel Vadot&usbphy {
417f126890aSEmmanuel Vadot	usb0_id_det-gpios = <&pio 7 11 GPIO_ACTIVE_HIGH>; /* PH11 */
418f126890aSEmmanuel Vadot	usb0_vbus_power-supply = <&usb_power_supply>;
419f126890aSEmmanuel Vadot	usb0_vbus-supply = <&reg_drivevbus>;
420f126890aSEmmanuel Vadot	usb1_vbus-supply = <&reg_usb1_vbus>;
421f126890aSEmmanuel Vadot	status = "okay";
422f126890aSEmmanuel Vadot};
423