// SPDX-License-Identifier: (GPL-2.0 OR MIT) /dts-v1/; #include "mt7981b.dtsi" / { model = "Netgear EAX17"; compatible = "netgear,eax17", "mediatek,mt7981-spim-snand-rfb"; aliases { led-boot = &led_power_green; led-failsafe = &led_power_red; led-running = &led_power_green; led-upgrade = &led_power_red; serial0 = &uart0; }; chosen { stdout-path = "serial0:115200n8"; }; memory@40000000 { reg = <0 0x40000000 0 0x20000000>; device_type = "memory"; }; gpio-keys { compatible = "gpio-keys"; reset { label = "reset"; linux,code = ; gpios = <&pio 1 GPIO_ACTIVE_LOW>; }; wps { label = "wps"; linux,code = ; gpios = <&pio 0 GPIO_ACTIVE_LOW>; }; }; gpio-leds { compatible = "gpio-leds"; led_power_green: power_green { color = ; function = LED_FUNCTION_POWER; gpios = <&pio 9 GPIO_ACTIVE_LOW>; }; led_power_red: power_red { color = ; function = LED_FUNCTION_POWER; gpios = <&pio 12 GPIO_ACTIVE_LOW>; }; led_rlink_red: rlink_red { color = ; function = LED_FUNCTION_LAN; gpios = <&pio 6 GPIO_ACTIVE_LOW>; }; led_rlink_green: rlink_green { color = ; function = LED_FUNCTION_LAN; gpios = <&pio 7 GPIO_ACTIVE_LOW>; }; led_clink_red: clink_red { color = ; function = LED_FUNCTION_WAN; gpios = <&pio 10 GPIO_ACTIVE_LOW>; }; led_clink_green: clink_green { color = ; function = LED_FUNCTION_WAN; gpios = <&pio 11 GPIO_ACTIVE_LOW>; }; led_wps_green: wps_green { color = ; function = LED_FUNCTION_WPS; gpios = <&pio 5 GPIO_ACTIVE_LOW>; }; led_lan_speed_fast: lan_speed_fast { color = ; function = LED_FUNCTION_STATUS; gpios = <&pio 13 GPIO_ACTIVE_LOW>; }; led_lan_speed_slow: lan_speed_slow { color = ; function = LED_FUNCTION_STATUS; gpios = <&pio 8 GPIO_ACTIVE_LOW>; }; }; }; ð { status = "okay"; gmac0: mac@0 { status = "disabled"; }; gmac1: mac@1 { compatible = "mediatek,eth-mac"; reg = <1>; phy-mode = "gmii"; phy-handle = <&int_gbe_phy>; nvmem-cells = <ðaddr 0>; nvmem-cell-names = "mac-address"; }; }; &crypto { status = "okay"; }; &pio { spi_flash_pins: spi0-pins { mux { function = "spi"; groups = "spi0", "spi0_wp_hold"; }; conf-pu { pins = "SPI0_CS", "SPI0_HOLD", "SPI0_WP"; drive-strength = ; bias-pull-up = ; }; conf-pd { pins = "SPI0_CLK", "SPI0_MOSI", "SPI0_MISO"; drive-strength = ; bias-pull-down = ; }; }; }; &spi0 { pinctrl-names = "default"; pinctrl-0 = <&spi_flash_pins>; status = "okay"; spi_nand_flash: flash@0 { #address-cells = <1>; #size-cells = <1>; compatible = "spi-nand"; reg = <0>; spi-max-frequency = <52000000>; spi-tx-bus-width = <4>; spi-rx-bus-width = <4>; partitions { #address-cells = <1>; #size-cells = <1>; compatible = "fixed-partitions"; partition@0 { label = "bl2"; reg = <0x0 0x100000>; read-only; }; partition@100000 { label = "u-boot-env"; reg = <0x0100000 0x0080000>; }; factory: partition@180000 { label = "factory"; reg = <0x180000 0x200000>; compatible = "nvmem-cells"; #address-cells = <1>; #size-cells = <1>; eeprom_factory_0: eeprom@0 { reg = <0x0 0x1000>; }; }; partition@380000 { label = "fip"; reg = <0x380000 0x0200000>; }; partition@580000 { label = "ubi"; reg = <0x580000 0x5000000>; compatible = "linux,ubi"; volumes { ubi-volume-u-boot-env { volname = "u-boot-env"; nvmem-layout { compatible = "u-boot,env"; env-size = <0x80000>; ethaddr: ethaddr { #nvmem-cell-cells = <1>; }; }; }; }; }; partition@5580000 { label = "facenv"; reg = <0x5580000 0x200000>; }; partition@5780000 { label = "rae"; reg = <0x5780000 0x600000>; }; partition@5D80000 { label = "pot"; reg = <0x5D80000 0x020000>; }; partition@5DA0000 { label = "log"; reg = <0x5DA0000 0x040000>; }; }; }; }; &xhci { status = "disabled"; }; &uart0 { status = "okay"; }; &watchdog { status = "okay"; }; &wifi { status = "okay"; nvmem-cells = <&eeprom_factory_0>; nvmem-cell-names = "eeprom"; band@0 { reg = <0>; nvmem-cells = <ðaddr 2>; nvmem-cell-names = "mac-address"; }; band@1 { reg = <1>; nvmem-cells = <ðaddr 3>; nvmem-cell-names = "mac-address"; }; }; &pcie { status = "disabled"; };