| /dts-v1/; |
| #include "mt7986b.dtsi" |
| #include "mt7986b-pinctrl.dtsi" |
| #include "mt7986-spim-nand-partition.dtsi" |
| / { |
| model = "MediaTek MT7986b gsw RFB"; |
| compatible = "mediatek,mt7986b-2500wan-gsw-spim-snand-rfb"; |
| chosen { |
| bootargs = "console=ttyS0,115200n1 loglevel=8 \ |
| earlycon=uart8250,mmio32,0x11002000"; |
| }; |
| |
| gsw: gsw@0 { |
| compatible = "mediatek,mt753x"; |
| mediatek,ethsys = <ðsys>; |
| #address-cells = <1>; |
| #size-cells = <0>; |
| }; |
| |
| memory { |
| reg = <0 0x40000000 0 0x10000000>; |
| }; |
| }; |
| |
| &uart0 { |
| status = "okay"; |
| }; |
| |
| /* Warning: pins shared with &snand */ |
| &uart1 { |
| pinctrl-names = "default"; |
| pinctrl-0 = <&uart1_pins>; |
| status = "disabled"; |
| }; |
| |
| /* Warning: pins shared with &spi1 */ |
| &uart2 { |
| pinctrl-names = "default"; |
| pinctrl-0 = <&uart2_pins>; |
| status = "disabled"; |
| }; |
| |
| &i2c0 { |
| pinctrl-names = "default"; |
| pinctrl-0 = <&i2c_pins>; |
| status = "okay"; |
| }; |
| |
| &watchdog { |
| status = "okay"; |
| }; |
| |
| ð { |
| status = "okay"; |
| |
| gmac0: mac@0 { |
| compatible = "mediatek,eth-mac"; |
| reg = <0>; |
| phy-mode = "2500base-x"; |
| |
| fixed-link { |
| speed = <2500>; |
| full-duplex; |
| pause; |
| link-gpio = <&pio 47 0>; |
| phy-handle = <&phy5>; |
| label = "lan5"; |
| }; |
| }; |
| |
| gmac1: mac@1 { |
| compatible = "mediatek,eth-mac"; |
| reg = <1>; |
| phy-mode = "2500base-x"; |
| phy-handle = <&phy6>; |
| }; |
| |
| mdio: mdio-bus { |
| #address-cells = <1>; |
| #size-cells = <0>; |
| |
| reset-gpios = <&pio 6 1>; |
| reset-delay-us = <600>; |
| |
| phy5: phy@5 { |
| compatible = "ethernet-phy-id67c9.de0a"; |
| reg = <5>; |
| }; |
| |
| phy6: phy@6 { |
| compatible = "ethernet-phy-ieee802.3-c45"; |
| reg = <6>; |
| }; |
| }; |
| }; |
| |
| &gsw { |
| mediatek,mdio = <&mdio>; |
| mediatek,portmap = "lllll"; |
| mediatek,mdio_master_pinmux = <1>; |
| reset-gpios = <&pio 5 0>; |
| interrupt-parent = <&pio>; |
| interrupts = <66 IRQ_TYPE_LEVEL_HIGH>; |
| status = "okay"; |
| |
| port5: port@5 { |
| compatible = "mediatek,mt753x-port"; |
| reg = <5>; |
| phy-mode = "sgmii"; |
| |
| fixed-link { |
| speed = <2500>; |
| full-duplex; |
| }; |
| }; |
| |
| port6: port@6 { |
| compatible = "mediatek,mt753x-port"; |
| /* mediatek,ssc-on; */ |
| reg = <6>; |
| phy-mode = "sgmii"; |
| fixed-link { |
| speed = <2500>; |
| full-duplex; |
| }; |
| }; |
| }; |
| |
| &hnat { |
| mtketh-wan = "eth1"; |
| mtketh-lan = "eth0"; |
| mtketh-max-gmac = <2>; |
| status = "okay"; |
| }; |
| |
| &spi0 { |
| pinctrl-names = "default"; |
| pinctrl-0 = <&spi_flash_pins>; |
| cs-gpios = <0>, <0>; |
| status = "okay"; |
| |
| spi_nor@0 { |
| #address-cells = <1>; |
| #size-cells = <1>; |
| compatible = "jedec,spi-nor"; |
| reg = <0>; |
| spi-max-frequency = <20000000>; |
| spi-tx-buswidth = <4>; |
| spi-rx-buswidth = <4>; |
| }; |
| |
| spi_nand: spi_nand@1 { |
| #address-cells = <1>; |
| #size-cells = <1>; |
| compatible = "spi-nand"; |
| reg = <1>; |
| spi-max-frequency = <20000000>; |
| spi-tx-buswidth = <4>; |
| spi-rx-buswidth = <4>; |
| }; |
| }; |
| |
| /* Warning: pins shared with &uart2 */ |
| &spi1 { |
| pinctrl-names = "default"; |
| pinctrl-0 = <&spic_pins>; |
| status = "okay"; |
| }; |
| |
| &wbsys { |
| mediatek,mtd-eeprom = <&factory 0x0000>; |
| status = "okay"; |
| }; |
| |
| &pio { |
| spi_flash_pins: spi-flash-pins-33-to-38 { |
| mux { |
| function = "flash"; |
| groups = "spi0", "spi0_wp_hold"; |
| }; |
| conf-pu { |
| pins = "SPI2_CS", "SPI2_HOLD", "SPI2_WP"; |
| drive-strength = <MTK_DRIVE_8mA>; |
| bias-pull-up = <MTK_PUPD_SET_R1R0_11>; |
| }; |
| conf-pd { |
| pins = "SPI2_CLK", "SPI2_MOSI", "SPI2_MISO"; |
| drive-strength = <MTK_DRIVE_8mA>; |
| bias-pull-down = <MTK_PUPD_SET_R1R0_11>; |
| }; |
| |
| }; |
| }; |