led_power: power {
label = "green:power";
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
- default-state = "keep";
};
internet {
gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
};
};
+
+ virtual_flash {
+ compatible = "mtd-concat";
+ devices = <&firmware1 &firmware2>;
+
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ partition@0 {
+ compatible = "denx,uimage";
+ label = "firmware";
+ reg = <0x0 0x1d20000>;
+ };
+ };
+ };
};
&spi0 {
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
- spi-max-frequency = <10000000>;
- broken-flash-reset;
+ spi-max-frequency = <32000000>;
partitions {
compatible = "fixed-partitions";
};
factory: partition@40000 {
- label = "factory";
+ label = "rf-eeprom";
reg = <0x40000 0x10000>;
read-only;
};
- partition@50000 {
- compatible = "denx,uimage";
- label = "firmware";
+ firmware1: partition@50000 {
+ label = "firmware_1";
reg = <0x50000 0xe90000>;
};
read-only;
};
- partition@1050000 {
+ firmware2: partition@1050000 {
label = "firmware_2";
reg = <0x1050000 0xe90000>;
- read-only;
};
partition@1ee0000 {
&pcie0 {
mt76@0,0 {
+ compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x8000>;
ieee80211-freq-limit = <5000000 6000000>;
netgear,r6080|\
netgear,r6120|\
wrtnode,wrtnode2p|\
- wrtnode,wrtnode2r|\
- zyxel,keenetic-extra-ii)
+ wrtnode,wrtnode2r)
wan_mac=$(macaddr_add "$(mtd_get_mac_binary factory 0x4)" 1)
;;
hiwifi,hc5611|\
totolink,lr1200)
wan_mac=$(mtd_get_mac_binary factory 0x2e)
;;
- keenetic,kn-1613)
+ keenetic,kn-1613|\
+ zyxel,keenetic-extra-ii)
wan_mac=$(mtd_get_mac_binary rf-eeprom 0x28)
;;
linksys,e5400)