Created
May 1, 2022 02:39
-
-
Save kenballus/95378a18e242e255a753b17f3b577380 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "mt7620a.dtsi" | |
#include <dt-bindings/gpio/gpio.h> | |
#include <dt-bindings/input/input.h> | |
/ { | |
compatible = "linksys,ea6100", "ralink,mt7620a-soc"; | |
model = "Linksys EA6100"; | |
nand { | |
compatible = "mtk,mt7620-nand"; | |
partitions { | |
compatible = "fixed-partitions"; | |
#address-cells = <1>; | |
#size-cells = <1>; | |
partition@0 { | |
label = "Bootloader"; | |
reg = <0x0 0x80000>; | |
read-only; | |
}; | |
partition@80000 { | |
label = "Config"; | |
reg = <0x80000 0x40000>; | |
read-only; | |
}; | |
factory: partition@c0000 { | |
label = "Factory"; | |
reg = <0xc0000 0x40000>; | |
read-only; | |
}; | |
partition@100000 { | |
label = "s_env"; | |
reg = <0x100000 0x40000>; | |
read-only; | |
}; | |
partition@140000 { | |
label = "devinfo"; | |
reg = <0x140000 0x40000>; | |
read-only; | |
}; | |
partition@180000 { | |
label = "kernel"; | |
reg = <0x180000 0x2800000>; | |
read-only; | |
}; | |
partition@380000 { | |
label = "rootfs"; | |
reg = <0x380000 0x2600000>; | |
read-only; | |
}; | |
partition@2980000 { | |
label = "alt_kernel"; | |
reg = <0x2980000 0x2800000>; | |
read-only; | |
}; | |
partition@2b80000 { | |
label = "alt_rootfs"; | |
reg = <0x2b80000 0x2600000>; | |
read-only; | |
}; | |
partition@5180000 { | |
label = "syscfg"; | |
reg = <0x5180000 0x2e80000>; | |
read-only; | |
}; | |
}; | |
}; | |
keys { | |
compatible = "gpio-keys"; | |
reset { | |
label = "reset"; | |
gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>; | |
linux,code = <KEY_RESTART>; | |
}; | |
wps { | |
label = "wps"; | |
gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>; | |
linux,code = <KEY_WPS_BUTTON>; | |
}; | |
}; | |
leds { | |
compatible = "gpio-leds"; | |
}; | |
}; | |
&pcie { | |
status = "okay"; | |
}; | |
&pcie0 { | |
mt76@0,0 { | |
reg = <0x0000 0 0 0 0>; | |
mediatek,mtd-eeprom = <&factory 0x8000>; | |
ieee80211-freq-limit = <5000000 6000000>; | |
}; | |
}; | |
ðernet { | |
nvmem-cells = <&macaddr_factory_28>; | |
nvmem-cell-names = "mac-address"; | |
}; | |
&wmac { | |
ralink,mtd-eeprom = <&factory 0x0>; | |
}; | |
&factory { | |
compatible = "nvmem-cells"; | |
#address-cells = <1>; | |
#size-cells = <1>; | |
macaddr_factory_28: macaddr@28 { | |
reg = <0x28 0x6>; | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment