xref: /freebsd/sys/contrib/device-tree/src/arm64/allwinner/sun50i-h6-orangepi-lite2.dts (revision 7d0873ebb83b19ba1e8a89e679470d885efe12e3)
1c66ec88fSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2c66ec88fSEmmanuel Vadot// Copyright (C) 2018 Jagan Teki <jagan@openedev.com>
3c66ec88fSEmmanuel Vadot
4c66ec88fSEmmanuel Vadot#include "sun50i-h6-orangepi.dtsi"
5c66ec88fSEmmanuel Vadot
6c66ec88fSEmmanuel Vadot/ {
7c66ec88fSEmmanuel Vadot	model = "OrangePi Lite2";
8c66ec88fSEmmanuel Vadot	compatible = "xunlong,orangepi-lite2", "allwinner,sun50i-h6";
9c66ec88fSEmmanuel Vadot
10c66ec88fSEmmanuel Vadot	aliases {
11c66ec88fSEmmanuel Vadot		serial1 = &uart1; /* BT-UART */
12c66ec88fSEmmanuel Vadot	};
13c66ec88fSEmmanuel Vadot
14*7d0873ebSEmmanuel Vadot	wifi_pwrseq: pwrseq {
15c66ec88fSEmmanuel Vadot		compatible = "mmc-pwrseq-simple";
16b97ee269SEmmanuel Vadot		clocks = <&rtc CLK_OSC32K_FANOUT>;
17c66ec88fSEmmanuel Vadot		clock-names = "ext_clock";
18c66ec88fSEmmanuel Vadot		reset-gpios = <&r_pio 1 3 GPIO_ACTIVE_LOW>; /* PM3 */
19c66ec88fSEmmanuel Vadot		post-power-on-delay-ms = <200>;
20c66ec88fSEmmanuel Vadot	};
21c66ec88fSEmmanuel Vadot};
22c66ec88fSEmmanuel Vadot
23c66ec88fSEmmanuel Vadot&mmc1 {
24c66ec88fSEmmanuel Vadot	vmmc-supply = <&reg_cldo2>;
25c66ec88fSEmmanuel Vadot	vqmmc-supply = <&reg_bldo3>;
26c66ec88fSEmmanuel Vadot	mmc-pwrseq = <&wifi_pwrseq>;
27c66ec88fSEmmanuel Vadot	bus-width = <4>;
28c66ec88fSEmmanuel Vadot	non-removable;
29c66ec88fSEmmanuel Vadot	status = "okay";
30c66ec88fSEmmanuel Vadot
31c66ec88fSEmmanuel Vadot	brcm: sdio-wifi@1 {
32c66ec88fSEmmanuel Vadot		reg = <1>;
33c66ec88fSEmmanuel Vadot		compatible = "brcm,bcm4329-fmac";
34c66ec88fSEmmanuel Vadot		interrupt-parent = <&r_pio>;
35c66ec88fSEmmanuel Vadot		interrupts = <1 0 IRQ_TYPE_LEVEL_LOW>;	/* PM0 */
36c66ec88fSEmmanuel Vadot		interrupt-names = "host-wake";
37c66ec88fSEmmanuel Vadot	};
38c66ec88fSEmmanuel Vadot};
39c66ec88fSEmmanuel Vadot
40c66ec88fSEmmanuel Vadot&reg_cldo2 {
41c66ec88fSEmmanuel Vadot	/*
42c66ec88fSEmmanuel Vadot	 * This regulator is connected with CLDO3.
43c66ec88fSEmmanuel Vadot	 * Before the kernel can support synchronized
44c66ec88fSEmmanuel Vadot	 * enable of coupled regulators, keep them
45c66ec88fSEmmanuel Vadot	 * both always on as a ugly hack.
46c66ec88fSEmmanuel Vadot	 */
47c66ec88fSEmmanuel Vadot	regulator-always-on;
48c66ec88fSEmmanuel Vadot};
49c66ec88fSEmmanuel Vadot
50c66ec88fSEmmanuel Vadot&reg_cldo3 {
51c66ec88fSEmmanuel Vadot	/*
52c66ec88fSEmmanuel Vadot	 * This regulator is connected with CLDO2.
53c66ec88fSEmmanuel Vadot	 * See the comments for CLDO2.
54c66ec88fSEmmanuel Vadot	 */
55c66ec88fSEmmanuel Vadot	regulator-always-on;
56c66ec88fSEmmanuel Vadot};
57c66ec88fSEmmanuel Vadot
58c66ec88fSEmmanuel Vadot/* There's the BT part of the AP6255 connected to that UART */
59c66ec88fSEmmanuel Vadot&uart1 {
60c66ec88fSEmmanuel Vadot	pinctrl-names = "default";
61c66ec88fSEmmanuel Vadot	pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>;
62c66ec88fSEmmanuel Vadot	uart-has-rtscts;
63c66ec88fSEmmanuel Vadot	status = "okay";
64c66ec88fSEmmanuel Vadot
65c66ec88fSEmmanuel Vadot	bluetooth {
66c66ec88fSEmmanuel Vadot		compatible = "brcm,bcm4345c5";
67b97ee269SEmmanuel Vadot		clocks = <&rtc CLK_OSC32K_FANOUT>;
68c66ec88fSEmmanuel Vadot		clock-names = "lpo";
69c66ec88fSEmmanuel Vadot		device-wakeup-gpios = <&r_pio 1 2 GPIO_ACTIVE_HIGH>; /* PM2 */
70c66ec88fSEmmanuel Vadot		host-wakeup-gpios = <&r_pio 1 1 GPIO_ACTIVE_HIGH>; /* PM1 */
71c66ec88fSEmmanuel Vadot		shutdown-gpios = <&r_pio 1 4 GPIO_ACTIVE_HIGH>; /* PM4 */
72c66ec88fSEmmanuel Vadot		max-speed = <1500000>;
73c66ec88fSEmmanuel Vadot	};
74c66ec88fSEmmanuel Vadot};
75