1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
3 * Copyright (C) 2022 MediaTek Inc.
4 * Author: Sam.Shih <sam.shih@mediatek.com>
11 model = "MediaTek MT7981 RFB";
12 compatible = "mediatek,mt7981-rfb", "mediatek,mt7981";
19 stdout-path = "serial0:115200n8";
23 reg = <0 0x40000000 0 0x20000000>;
26 reg_3p3v: regulator-3p3v {
27 compatible = "regulator-fixed";
28 regulator-name = "fixed-3.3V";
29 regulator-min-microvolt = <3300000>;
30 regulator-max-microvolt = <3300000>;
35 reg_5v: regulator-5v {
36 compatible = "regulator-fixed";
37 regulator-name = "fixed-5V";
38 regulator-min-microvolt = <5000000>;
39 regulator-max-microvolt = <5000000>;
45 compatible = "gpio-keys";
48 linux,code = <KEY_RESTART>;
49 gpios = <&pio 1 GPIO_ACTIVE_LOW>;
53 linux,code = <KEY_WPS_BUTTON>;
54 gpios = <&pio 0 GPIO_ACTIVE_HIGH>;
63 compatible = "mediatek,eth-mac";
65 phy-mode = "2500base-x";
75 compatible = "mediatek,eth-mac";
78 phy-handle = <&int_gbe_phy>;
84 compatible = "mediatek,mt7531";
87 #interrupt-cells = <1>;
88 interrupt-parent = <&pio>;
89 interrupts = <38 IRQ_TYPE_LEVEL_HIGH>;
90 reset-gpios = <&pio 5 GPIO_ACTIVE_HIGH>;
99 spi0_flash_pins: spi0-pins {
102 groups = "spi0", "spi0_wp_hold";
105 pins = "SPI0_CS", "SPI0_HOLD", "SPI0_WP";
106 drive-strength = <MTK_DRIVE_8mA>;
107 bias-pull-up = <MTK_PUPD_SET_R1R0_11>;
110 pins = "SPI0_CLK", "SPI0_MOSI", "SPI0_MISO";
111 drive-strength = <MTK_DRIVE_8mA>;
112 bias-pull-down = <MTK_PUPD_SET_R1R0_11>;
119 pinctrl-names = "default";
120 pinctrl-0 = <&spi0_flash_pins>;
122 #address-cells = <1>;
129 #address-cells = <1>;
161 phy-mode = "2500base-x";
173 vusb33-supply = <®_3p3v>;
174 vbus-supply = <®_5v>;