2 * Copyright 2017-2018 Sean Wang <sean.wang@mediatek.com>
4 * SPDX-License-Identifier: (GPL-2.0+ OR MIT)
8 #include <dt-bindings/input/input.h>
10 #include "mt6323.dtsi"
13 model = "Bananapi BPI-R2";
14 compatible = "bananapi,bpi-r2", "mediatek,mt7623";
21 stdout-path = "serial2:115200n8";
26 proc-supply = <&mt6323_vproc_reg>;
30 proc-supply = <&mt6323_vproc_reg>;
34 proc-supply = <&mt6323_vproc_reg>;
38 proc-supply = <&mt6323_vproc_reg>;
42 reg_1p8v: regulator-1p8v {
43 compatible = "regulator-fixed";
44 regulator-name = "fixed-1.8V";
45 regulator-min-microvolt = <1800000>;
46 regulator-max-microvolt = <1800000>;
51 reg_3p3v: regulator-3p3v {
52 compatible = "regulator-fixed";
53 regulator-name = "fixed-3.3V";
54 regulator-min-microvolt = <3300000>;
55 regulator-max-microvolt = <3300000>;
60 reg_5v: regulator-5v {
61 compatible = "regulator-fixed";
62 regulator-name = "fixed-5V";
63 regulator-min-microvolt = <5000000>;
64 regulator-max-microvolt = <5000000>;
70 compatible = "gpio-keys";
71 pinctrl-names = "default";
72 pinctrl-0 = <&key_pins_a>;
77 gpios = <&pio 256 GPIO_ACTIVE_LOW>;
82 linux,code = <KEY_WPS_BUTTON>;
83 gpios = <&pio 257 GPIO_ACTIVE_HIGH>;
88 compatible = "gpio-leds";
89 pinctrl-names = "default";
90 pinctrl-0 = <&led_pins_a>;
93 label = "bpi-r2:pio:blue";
94 gpios = <&pio 240 GPIO_ACTIVE_LOW>;
95 default-state = "off";
99 label = "bpi-r2:pio:green";
100 gpios = <&pio 241 GPIO_ACTIVE_LOW>;
101 default-state = "off";
105 label = "bpi-r2:pio:red";
106 gpios = <&pio 239 GPIO_ACTIVE_LOW>;
107 default-state = "off";
112 device_type = "memory";
113 reg = <0 0x80000000 0 0x80000000>;
122 pinctrl-names = "default";
123 pinctrl-0 = <&cir_pins_a>;
135 compatible = "mediatek,eth-mac";
147 #address-cells = <1>;
151 compatible = "mediatek,mt7530";
153 reset-gpios = <&pio 33 0>;
154 core-supply = <&mt6323_vpa_reg>;
155 io-supply = <&mt6323_vemc3v3_reg>;
158 #address-cells = <1>;
204 pinctrl-names = "default";
205 pinctrl-0 = <&i2c0_pins_a>;
210 pinctrl-names = "default";
211 pinctrl-0 = <&i2c1_pins_a>;
216 pinctrl-names = "default", "state_uhs";
217 pinctrl-0 = <&mmc0_pins_default>;
218 pinctrl-1 = <&mmc0_pins_uhs>;
221 max-frequency = <50000000>;
223 vmmc-supply = <®_3p3v>;
224 vqmmc-supply = <®_1p8v>;
229 pinctrl-names = "default", "state_uhs";
230 pinctrl-0 = <&mmc1_pins_default>;
231 pinctrl-1 = <&mmc1_pins_uhs>;
234 max-frequency = <50000000>;
236 cd-gpios = <&pio 261 GPIO_ACTIVE_LOW>;
237 vmmc-supply = <®_3p3v>;
238 vqmmc-supply = <®_3p3v>;
246 label = "bpi-r2:isink:green";
247 default-state = "off";
252 label = "bpi-r2:isink:red";
253 default-state = "off";
258 label = "bpi-r2:isink:blue";
259 default-state = "off";
264 pinctrl-names = "default";
265 pinctrl-0 = <&pcie_default>;
286 pinctrl-names = "default";
287 pinctrl-0 = <&pwm_pins_a>;
292 pinctrl-names = "default";
293 pinctrl-0 = <&spi0_pins_a>;
298 pinctrl-names = "default";
299 pinctrl-0 = <&uart0_pins_a>;
304 pinctrl-names = "default";
305 pinctrl-0 = <&uart1_pins_a>;
310 pinctrl-names = "default";
311 pinctrl-0 = <&uart2_pins_a>;
316 vusb33-supply = <®_3p3v>;
317 vbus-supply = <®_5v>;
322 vusb33-supply = <®_3p3v>;
323 vbus-supply = <®_5v>;