2 * Copyright (C) 2018 MediaTek Inc.
3 * Author: Ryder Lee <ryder.lee@mediatek.com>
5 * SPDX-License-Identifier: (GPL-2.0 OR MIT)
12 model = "Bananapi BPI-R2";
13 compatible = "bananapi,bpi-r2", "mediatek,mt7623";
20 reg_1p8v: regulator-1p8v {
21 compatible = "regulator-fixed";
22 regulator-name = "fixed-1.8V";
23 regulator-min-microvolt = <1800000>;
24 regulator-max-microvolt = <1800000>;
29 reg_3p3v: regulator-3p3v {
30 compatible = "regulator-fixed";
31 regulator-name = "fixed-3.3V";
32 regulator-min-microvolt = <3300000>;
33 regulator-max-microvolt = <3300000>;
38 reg_5v: regulator-5v {
39 compatible = "regulator-fixed";
40 regulator-name = "fixed-5V";
41 regulator-min-microvolt = <5000000>;
42 regulator-max-microvolt = <5000000>;
48 compatible = "gpio-leds";
51 label = "bpi-r2:pio:blue";
52 gpios = <&gpio 241 GPIO_ACTIVE_HIGH>;
53 default-state = "off";
57 label = "bpi-r2:pio:green";
58 gpios = <&gpio 240 GPIO_ACTIVE_HIGH>;
59 default-state = "off";
63 label = "bpi-r2:pio:red";
64 gpios = <&gpio 239 GPIO_ACTIVE_HIGH>;
65 default-state = "off";
72 mediatek,gmac-id = <0>;
74 mediatek,switch = "mt7530";
75 reset-gpios = <&gpio 33 GPIO_ACTIVE_HIGH>;
84 pinctrl-names = "default";
85 pinctrl-0 = <&mmc0_pins_default>;
88 max-frequency = <50000000>;
90 vmmc-supply = <®_3p3v>;
91 vqmmc-supply = <®_1p8v>;
96 pinctrl-names = "default";
97 pinctrl-0 = <&mmc1_pins_default>;
100 max-frequency = <50000000>;
102 cd-gpios = <&gpio 261 GPIO_ACTIVE_LOW>;
103 vmmc-supply = <®_3p3v>;
104 vqmmc-supply = <®_3p3v>;
108 ephy_default: ephy_default {
111 groups = "mdc_mdio", "ephy";
115 pins = "G2_TXEN", "G2_TXD0", "G2_TXD1", "G2_TXD2",
116 "G2_TXD3", "G2_TXC", "G2_RXC", "G2_RXD0",
117 "G2_RXD1", "G2_RXD2", "G2_RXD3", "G2_RXDV",
119 drive-strength = <12>;
120 mediatek,tdsel = <5>;
124 mmc0_pins_default: mmc0default {
131 pins = "MSDC0_CMD", "MSDC0_DAT0", "MSDC0_DAT1",
132 "MSDC0_DAT2", "MSDC0_DAT3", "MSDC0_DAT4",
133 "MSDC0_DAT5", "MSDC0_DAT6", "MSDC0_DAT7";
149 mmc1_pins_default: mmc1default {
152 groups = "msdc1", "msdc1_wp_0";
156 pins = "MSDC1_DAT0", "MSDC1_DAT1", "MSDC1_DAT2",
157 "MSDC1_DAT3", "MSDC1_DAT3", "MSDC1_CMD";
159 drive-strength = <4>;
165 drive-strength = <4>;
175 uart0_pins_a: uart0-default {
178 groups = "uart0_0_txd_rxd";
182 uart1_pins_a: uart1-default {
185 groups = "uart1_0_txd_rxd";
189 uart2_pins_a: uart2-default {
192 groups = "uart2_0_txd_rxd";
196 uart2_pins_b: uart2-alt {
199 groups = "uart2_1_txd_rxd";
205 pinctrl-names = "default";
206 pinctrl-0 = <&uart0_pins_a>;
211 pinctrl-names = "default";
212 pinctrl-0 = <&uart1_pins_a>;
217 pinctrl-names = "default";
218 pinctrl-0 = <&uart2_pins_a>;