1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2022 MediaTek Inc.
9 #include <dt-bindings/gpio/gpio.h>
15 compatible = "mediatek,mt7986", "mediatek,mt7986-rfb",
16 "mediatek,mt7986-sd-rfb";
23 device_type = "memory";
24 reg = <0x40000000 0x10000000>;
27 reg_3p3v: regulator-3p3v {
28 compatible = "regulator-fixed";
29 regulator-name = "fixed-3.3V";
30 regulator-min-microvolt = <3300000>;
31 regulator-max-microvolt = <3300000>;
42 pinctrl-names = "default";
43 pinctrl-0 = <&uart1_pins>;
49 mediatek,gmac-id = <0>;
50 phy-mode = "2500base-x";
51 mediatek,switch = "mt7531";
52 reset-gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
61 spi_flash_pins: spi0-pins-func-1 {
64 groups = "spi0", "spi0_wp_hold";
68 pins = "SPI2_CS", "SPI2_HOLD", "SPI2_WP";
69 drive-strength = <MTK_DRIVE_8mA>;
70 bias-pull-up = <MTK_PUPD_SET_R1R0_11>;
74 pins = "SPI2_CLK", "SPI2_MOSI", "SPI2_MISO";
75 drive-strength = <MTK_DRIVE_8mA>;
76 bias-pull-down = <MTK_PUPD_SET_R1R0_11>;
80 spic_pins: spi1-pins-func-1 {
87 uart1_pins: spi1-pins-func-3 {
94 pwm_pins: pwm0-pins-func-1 {
101 mmc0_pins_default: mmc0default {
105 input-schmitt-enable;
109 pins = "SPI0_CLK", "SPI0_MOSI", "SPI0_MISO",
110 "SPI0_CS", "SPI0_HOLD", "SPI0_WP",
111 "SPI1_CLK", "SPI1_MOSI", "SPI1_MISO";
113 drive-strength = <MTK_DRIVE_4mA>;
114 bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
119 drive-strength = <MTK_DRIVE_6mA>;
120 bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
125 drive-strength = <MTK_DRIVE_4mA>;
126 bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
132 #address-cells = <1>;
134 pinctrl-names = "default";
135 pinctrl-0 = <&spi_flash_pins>;
146 compatible = "jedec,spi-nor";
148 spi-max-frequency = <52000000>;
152 compatible = "spi-nand";
154 spi-max-frequency = <52000000>;
159 pinctrl-names = "default";
160 pinctrl-0 = <&pwm_pins>;
169 pinctrl-names = "default";
170 pinctrl-0 = <&mmc0_pins_default>;
172 max-frequency = <52000000>;
175 vmmc-supply = <®_3p3v>;
176 vqmmc-supply = <®_3p3v>;