1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (C) 2017 Icenowy Zheng <icenowy@aosc.io>
5 * Based on sun8i-h3-bananapi-m2-plus.dts, which is:
6 * Copyright (C) 2016 Chen-Yu Tsai <wens@csie.org>
10 #include "sun8i-h3.dtsi"
11 #include "sunxi-common-regulators.dtsi"
13 #include <dt-bindings/gpio/gpio.h>
14 #include <dt-bindings/input/input.h>
17 model = "Banana Pi BPI-M2-Zero";
18 compatible = "sinovoip,bpi-m2-zero", "allwinner,sun8i-h2-plus";
26 stdout-path = "serial0:115200n8";
30 compatible = "gpio-leds";
33 label = "bananapi-m2-zero:red:pwr";
34 gpios = <&r_pio 0 10 GPIO_ACTIVE_LOW>; /* PL10 */
40 compatible = "gpio-keys";
45 gpios = <&r_pio 0 3 GPIO_ACTIVE_LOW>;
49 reg_vdd_cpux: vdd-cpux-regulator {
50 compatible = "regulator-gpio";
51 regulator-name = "vdd-cpux";
52 regulator-type = "voltage";
55 regulator-min-microvolt = <1100000>;
56 regulator-max-microvolt = <1300000>;
57 regulator-ramp-delay = <50>; /* 4ms */
59 gpios = <&r_pio 0 1 GPIO_ACTIVE_HIGH>; /* PL1 */
62 states = <1100000 0>, <1300000 1>;
65 reg_vcc_dram: vcc-dram {
66 compatible = "regulator-fixed";
67 regulator-name = "vcc-dram";
68 regulator-min-microvolt = <1500000>;
69 regulator-max-microvolt = <1500000>;
73 gpio = <&r_pio 0 9 GPIO_ACTIVE_HIGH>; /* PL9 */
74 vin-supply = <®_vcc5v0>;
78 compatible = "regulator-fixed";
79 regulator-name = "vcc1v2";
80 regulator-min-microvolt = <1200000>;
81 regulator-max-microvolt = <1200000>;
85 gpio = <&r_pio 0 8 GPIO_ACTIVE_HIGH>; /* PL8 */
86 vin-supply = <®_vcc5v0>;
89 wifi_pwrseq: wifi_pwrseq {
90 compatible = "mmc-pwrseq-simple";
91 reset-gpios = <&r_pio 0 7 GPIO_ACTIVE_LOW>; /* PL7 */
93 clock-names = "ext_clock";
98 cpu-supply = <®_vdd_cpux>;
106 vmmc-supply = <®_vcc3v3>;
109 * On the production batch of this board the card detect GPIO is
110 * high active (card inserted), although on the early samples it's
113 cd-gpios = <&pio 5 6 GPIO_ACTIVE_HIGH>; /* PF6 */
118 vmmc-supply = <®_vcc3v3>;
119 vqmmc-supply = <®_vcc3v3>;
120 mmc-pwrseq = <&wifi_pwrseq>;
127 compatible = "brcm,bcm4329-fmac";
128 interrupt-parent = <&pio>;
129 interrupts = <6 10 IRQ_TYPE_LEVEL_LOW>; /* PG10 / EINT10 */
130 interrupt-names = "host-wake";
139 pinctrl-names = "default";
140 pinctrl-0 = <&uart0_pa_pins>;
145 pinctrl-names = "default";
146 pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>;
151 compatible = "brcm,bcm43438-bt";
154 vbat-supply = <®_vcc3v3>;
155 vddio-supply = <®_vcc3v3>;
156 device-wakeup-gpios = <&pio 6 13 GPIO_ACTIVE_HIGH>; /* PG13 */
157 host-wakeup-gpios = <&pio 6 11 GPIO_ACTIVE_HIGH>; /* PG11 */
158 shutdown-gpios = <&pio 6 12 GPIO_ACTIVE_HIGH>; /* PG12 */
169 usb0_id_det-gpios = <&r_pio 0 6 GPIO_ACTIVE_HIGH>; /* PL6 */
171 * There're two micro-USB connectors, one is power-only and another is
172 * OTG. The Vbus of these two connectors are connected together, so
173 * the external USB device will be powered just by the power input
174 * from the power-only USB port.