2 * Copyright (c) 2018 MediaTek Inc.
3 * Author: Ryder Lee <ryder.lee@mediatek.com>
5 * SPDX-License-Identifier: (GPL-2.0 OR MIT)
9 #include <dt-bindings/input/input.h>
10 #include <dt-bindings/gpio/gpio.h>
12 #include "mt7622.dtsi"
13 #include "mt6380.dtsi"
16 model = "Bananapi BPI-R64";
17 compatible = "bananapi,bpi-r64", "mediatek,mt7622";
24 stdout-path = "serial0:115200n8";
25 bootargs = "earlycon=uart8250,mmio32,0x11002000 swiotlb=512";
30 proc-supply = <&mt6380_vcpu_reg>;
31 sram-supply = <&mt6380_vm_reg>;
35 proc-supply = <&mt6380_vcpu_reg>;
36 sram-supply = <&mt6380_vm_reg>;
41 compatible = "gpio-keys";
46 gpios = <&pio 0 GPIO_ACTIVE_HIGH>;
51 linux,code = <KEY_WPS_BUTTON>;
52 gpios = <&pio 102 GPIO_ACTIVE_HIGH>;
57 compatible = "gpio-leds";
60 label = "bpi-r64:pio:green";
61 gpios = <&pio 89 GPIO_ACTIVE_HIGH>;
62 default-state = "off";
66 label = "bpi-r64:pio:red";
67 gpios = <&pio 88 GPIO_ACTIVE_HIGH>;
68 default-state = "off";
73 reg = <0 0x40000000 0 0x40000000>;
76 reg_1p8v: regulator-1p8v {
77 compatible = "regulator-fixed";
78 regulator-name = "fixed-1.8V";
79 regulator-min-microvolt = <1800000>;
80 regulator-max-microvolt = <1800000>;
84 reg_3p3v: regulator-3p3v {
85 compatible = "regulator-fixed";
86 regulator-name = "fixed-3.3V";
87 regulator-min-microvolt = <3300000>;
88 regulator-max-microvolt = <3300000>;
93 reg_5v: regulator-5v {
94 compatible = "regulator-fixed";
95 regulator-name = "fixed-5V";
96 regulator-min-microvolt = <5000000>;
97 regulator-max-microvolt = <5000000>;
112 pinctrl-names = "default";
113 pinctrl-0 = <&irrx_pins>;
120 compatible = "mediatek,eth-mac";
122 phy-mode = "2500base-x";
132 compatible = "mediatek,eth-mac";
144 #address-cells = <1>;
150 pinctrl-names = "default";
151 pinctrl-0 = <&i2c1_pins>;
156 pinctrl-names = "default";
157 pinctrl-0 = <&i2c2_pins>;
162 pinctrl-names = "default", "state_uhs";
163 pinctrl-0 = <&emmc_pins_default>;
164 pinctrl-1 = <&emmc_pins_uhs>;
167 max-frequency = <50000000>;
170 vmmc-supply = <®_3p3v>;
171 vqmmc-supply = <®_1p8v>;
172 assigned-clocks = <&topckgen CLK_TOP_MSDC30_0_SEL>;
173 assigned-clock-parents = <&topckgen CLK_TOP_UNIV48M>;
178 pinctrl-names = "default", "state_uhs";
179 pinctrl-0 = <&sd0_pins_default>;
180 pinctrl-1 = <&sd0_pins_uhs>;
183 max-frequency = <50000000>;
186 cd-gpios = <&pio 81 GPIO_ACTIVE_LOW>;
187 vmmc-supply = <®_3p3v>;
188 vqmmc-supply = <®_3p3v>;
189 assigned-clocks = <&topckgen CLK_TOP_MSDC30_1_SEL>;
190 assigned-clock-parents = <&topckgen CLK_TOP_UNIV48M>;
194 pinctrl-names = "default";
195 pinctrl-0 = <¶llel_nand_pins>;
200 pinctrl-names = "default";
201 pinctrl-0 = <&spi_nor_pins>;
205 compatible = "jedec,spi-nor";
211 pinctrl-names = "default";
212 pinctrl-0 = <&pcie0_pins>, <&pcie1_pins>;
225 /* Attention: GPIO 90 is used to switch between PCIe@1,0 and
226 * SATA functions. i.e. output-high: PCIe, output-low: SATA
230 gpios = <90 GPIO_ACTIVE_HIGH>;
234 /* eMMC is shared pin with parallel NAND */
235 emmc_pins_default: emmc-pins-default {
237 function = "emmc", "emmc_rst";
241 /* "NDL0","NDL1","NDL2","NDL3","NDL4","NDL5","NDL6","NDL7",
242 * "NRB","NCLE" pins are used as DAT0,DAT1,DAT2,DAT3,DAT4,
243 * DAT5,DAT6,DAT7,CMD,CLK for eMMC respectively
246 pins = "NDL0", "NDL1", "NDL2",
247 "NDL3", "NDL4", "NDL5",
248 "NDL6", "NDL7", "NRB";
259 emmc_pins_uhs: emmc-pins-uhs {
266 pins = "NDL0", "NDL1", "NDL2",
267 "NDL3", "NDL4", "NDL5",
268 "NDL6", "NDL7", "NRB";
270 drive-strength = <4>;
276 drive-strength = <4>;
284 groups = "mdc_mdio", "rgmii_via_gmac2";
288 i2c1_pins: i2c1-pins {
295 i2c2_pins: i2c2-pins {
302 i2s1_pins: i2s1-pins {
305 groups = "i2s_out_mclk_bclk_ws",
311 pins = "I2S1_IN", "I2S1_OUT", "I2S_BCLK",
312 "I2S_WS", "I2S_MCLK";
313 drive-strength = <12>;
318 irrx_pins: irrx-pins {
325 irtx_pins: irtx-pins {
332 /* Parallel nand is shared pin with eMMC */
333 parallel_nand_pins: parallel-nand-pins {
340 pcie0_pins: pcie0-pins {
343 groups = "pcie0_pad_perst",
349 pcie1_pins: pcie1-pins {
352 groups = "pcie1_pad_perst",
358 pmic_bus_pins: pmic-bus-pins {
365 pwm7_pins: pwm1-2-pins {
368 groups = "pwm_ch7_2";
372 wled_pins: wled-pins {
379 sd0_pins_default: sd0-pins-default {
385 /* "I2S2_OUT, "I2S4_IN"", "I2S3_IN", "I2S2_IN",
386 * "I2S4_OUT", "I2S3_OUT" are used as DAT0, DAT1,
387 * DAT2, DAT3, CMD, CLK for SD respectively.
390 pins = "I2S2_OUT", "I2S4_IN", "I2S3_IN",
391 "I2S2_IN","I2S4_OUT";
393 drive-strength = <8>;
398 drive-strength = <12>;
407 sd0_pins_uhs: sd0-pins-uhs {
414 pins = "I2S2_OUT", "I2S4_IN", "I2S3_IN",
415 "I2S2_IN","I2S4_OUT";
426 /* Serial NAND is shared pin with SPI-NOR */
427 serial_nand_pins: serial-nand-pins {
434 spic0_pins: spic0-pins {
441 spic1_pins: spic1-pins {
448 /* SPI-NOR is shared pin with serial NAND */
449 spi_nor_pins: spi-nor-pins {
456 /* serial NAND is shared pin with SPI-NOR */
457 serial_nand_pins: serial-nand-pins {
464 uart0_pins: uart0-pins {
467 groups = "uart0_0_tx_rx" ;
471 uart2_pins: uart2-pins {
474 groups = "uart2_1_tx_rx" ;
478 watchdog_pins: watchdog-pins {
480 function = "watchdog";
487 pinctrl-names = "default";
488 pinctrl-0 = <&pwm7_pins>;
493 pinctrl-names = "default";
494 pinctrl-0 = <&pmic_bus_pins>;
508 pinctrl-names = "default";
509 pinctrl-0 = <&spic0_pins>;
514 pinctrl-names = "default";
515 pinctrl-0 = <&spic1_pins>;
520 vusb33-supply = <®_3p3v>;
521 vbus-supply = <®_5v>;
530 pinctrl-names = "default";
531 pinctrl-0 = <&uart0_pins>;
536 pinctrl-names = "default";
537 pinctrl-0 = <&uart2_pins>;
542 pinctrl-names = "default";
543 pinctrl-0 = <&watchdog_pins>;