2 * Copyright (C) 2018 MediaTek Inc.
3 * Author: Ryder Lee <ryder.lee@mediatek.com>
5 * SPDX-License-Identifier: (GPL-2.0 OR MIT)
10 #include "mt7623-u-boot.dtsi"
13 model = "Bananapi BPI-R2";
14 compatible = "bananapi,bpi-r2", "mediatek,mt7623";
21 reg_1p8v: regulator-1p8v {
22 compatible = "regulator-fixed";
23 regulator-name = "fixed-1.8V";
24 regulator-min-microvolt = <1800000>;
25 regulator-max-microvolt = <1800000>;
30 reg_3p3v: regulator-3p3v {
31 compatible = "regulator-fixed";
32 regulator-name = "fixed-3.3V";
33 regulator-min-microvolt = <3300000>;
34 regulator-max-microvolt = <3300000>;
39 reg_5v: regulator-5v {
40 compatible = "regulator-fixed";
41 regulator-name = "fixed-5V";
42 regulator-min-microvolt = <5000000>;
43 regulator-max-microvolt = <5000000>;
49 compatible = "gpio-leds";
52 label = "bpi-r2:pio:blue";
53 gpios = <&gpio 241 GPIO_ACTIVE_HIGH>;
54 default-state = "off";
58 label = "bpi-r2:pio:green";
59 gpios = <&gpio 240 GPIO_ACTIVE_HIGH>;
60 default-state = "off";
64 label = "bpi-r2:pio:red";
65 gpios = <&gpio 239 GPIO_ACTIVE_HIGH>;
66 default-state = "off";
73 mediatek,gmac-id = <0>;
75 mediatek,switch = "mt7530";
76 reset-gpios = <&gpio 33 GPIO_ACTIVE_HIGH>;
85 pinctrl-names = "default";
86 pinctrl-0 = <&mmc0_pins_default>;
89 max-frequency = <50000000>;
91 vmmc-supply = <®_3p3v>;
92 vqmmc-supply = <®_1p8v>;
97 pinctrl-names = "default";
98 pinctrl-0 = <&mmc1_pins_default>;
101 max-frequency = <50000000>;
103 cd-gpios = <&gpio 261 GPIO_ACTIVE_LOW>;
104 vmmc-supply = <®_3p3v>;
105 vqmmc-supply = <®_3p3v>;
109 ephy_default: ephy_default {
112 groups = "mdc_mdio", "ephy";
116 pins = "G2_TXEN", "G2_TXD0", "G2_TXD1", "G2_TXD2",
117 "G2_TXD3", "G2_TXC", "G2_RXC", "G2_RXD0",
118 "G2_RXD1", "G2_RXD2", "G2_RXD3", "G2_RXDV",
120 drive-strength = <12>;
121 mediatek,tdsel = <5>;
125 mmc0_pins_default: mmc0default {
132 pins = "MSDC0_CMD", "MSDC0_DAT0", "MSDC0_DAT1",
133 "MSDC0_DAT2", "MSDC0_DAT3", "MSDC0_DAT4",
134 "MSDC0_DAT5", "MSDC0_DAT6", "MSDC0_DAT7";
150 mmc1_pins_default: mmc1default {
153 groups = "msdc1", "msdc1_wp_0";
157 pins = "MSDC1_DAT0", "MSDC1_DAT1", "MSDC1_DAT2",
158 "MSDC1_DAT3", "MSDC1_DAT3", "MSDC1_CMD";
160 drive-strength = <4>;
166 drive-strength = <4>;
176 pcie_default: pcie-default {
179 groups = "pcie0_0_perst", "pcie1_0_perst";
183 uart0_pins_a: uart0-default {
186 groups = "uart0_0_txd_rxd";
190 uart1_pins_a: uart1-default {
193 groups = "uart1_0_txd_rxd";
197 uart2_pins_a: uart2-default {
200 groups = "uart2_0_txd_rxd";
204 uart2_pins_b: uart2-alt {
207 groups = "uart2_1_txd_rxd";
213 pinctrl-names = "default";
214 pinctrl-0 = <&pcie_default>;
235 pinctrl-names = "default";
236 pinctrl-0 = <&uart0_pins_a>;
241 pinctrl-names = "default";
242 pinctrl-0 = <&uart1_pins_a>;
247 pinctrl-names = "default";
248 pinctrl-0 = <&uart2_pins_a>;