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";
31 pinctrl-names = "default";
34 label = "bananapi-m2-zero:red:pwr";
35 gpios = <&r_pio 0 10 GPIO_ACTIVE_HIGH>; /* PL10 */
41 compatible = "gpio-keys";
42 pinctrl-names = "default";
47 gpios = <&r_pio 0 3 GPIO_ACTIVE_LOW>;
51 wifi_pwrseq: wifi_pwrseq {
52 compatible = "mmc-pwrseq-simple";
53 pinctrl-names = "default";
54 reset-gpios = <&r_pio 0 7 GPIO_ACTIVE_LOW>; /* PL7 */
63 vmmc-supply = <®_vcc3v3>;
66 * On the production batch of this board the card detect GPIO is
67 * high active (card inserted), although on the early samples it's
70 cd-gpios = <&pio 5 6 GPIO_ACTIVE_HIGH>; /* PF6 */
75 vmmc-supply = <®_vcc3v3>;
76 vqmmc-supply = <®_vcc3v3>;
77 mmc-pwrseq = <&wifi_pwrseq>;
84 compatible = "brcm,bcm4329-fmac";
85 interrupt-parent = <&pio>;
86 interrupts = <6 10 IRQ_TYPE_LEVEL_LOW>; /* PG10 / EINT10 */
87 interrupt-names = "host-wake";
96 pinctrl-names = "default";
97 pinctrl-0 = <&uart0_pins_a>;
102 pinctrl-names = "default";
103 pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>;
113 usb0_id_det-gpios = <&r_pio 0 6 GPIO_ACTIVE_HIGH>; /* PL6 */
115 * There're two micro-USB connectors, one is power-only and another is
116 * OTG. The Vbus of these two connectors are connected together, so
117 * the external USB device will be powered just by the power input
118 * from the power-only USB port.