#include "mt7620a.dtsi" #include #include / { aliases { led-boot = &led_power; led-failsafe = &led_power; led-running = &led_power; led-upgrade = &led_power; label-mac-device = ðernet; }; leds { compatible = "gpio-leds"; led_wlan: wlan { label = "blue:wlan"; gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; usb { label = "blue:usb"; gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; led_power: power { label = "blue:power"; gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; }; }; keys { compatible = "gpio-keys"; reset { label = "reset"; gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; linux,code = ; }; }; }; &gpio1 { status = "okay"; }; &gpio3 { status = "okay"; }; &spi0 { status = "okay"; flash0: flash@0 { compatible = "jedec,spi-nor"; reg = <0>; spi-max-frequency = <80000000>; m25p,fast-read; partitions { compatible = "fixed-partitions"; #address-cells = <1>; #size-cells = <1>; partition@0 { label = "u-boot"; reg = <0x0 0x30000>; read-only; }; partition@30000 { label = "u-boot-env"; reg = <0x30000 0x10000>; read-only; }; factory: partition@40000 { compatible = "nvmem-cells"; label = "factory"; reg = <0x40000 0x10000>; #address-cells = <1>; #size-cells = <1>; read-only; eeprom_factory_0: eeprom@0 { reg = <0x0 0x200>; }; eeprom_factory_8000: eeprom@8000 { reg = <0x8000 0x200>; }; macaddr_factory_28: macaddr@28 { reg = <0x28 0x6>; }; }; firmware: partition@50000 { compatible = "openwrt,uimage", "denx,uimage"; label = "firmware"; openwrt,ih-magic = <0x12291000>; /* reg property is set based on flash size in DTS files */ }; }; }; }; &state_default { default { groups = "i2c", "rgmii1", "wled"; function = "gpio"; }; }; ðernet { pinctrl-names = "default"; pinctrl-0 = <&ephy_pins>; nvmem-cells = <&macaddr_factory_28>; nvmem-cell-names = "mac-address"; mediatek,portmap = "llllw"; }; &wmac { nvmem-cells = <&eeprom_factory_0>; nvmem-cell-names = "eeprom"; pinctrl-names = "default", "pa_gpio"; pinctrl-0 = <&pa_pins>; pinctrl-1 = <&pa_gpio_pins>; }; &sdhci { status = "okay"; }; &ehci { status = "okay"; }; &ohci { status = "okay"; };