forked from coolsnowwolf/lede
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace the boot loader to the breed of K2P.
- Loading branch information
Showing
4 changed files
with
119 additions
and
1 deletion.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
// SPDX-License-Identifier: GPL-2.0-only | ||
|
||
#include "mt7621.dtsi" | ||
|
||
#include <dt-bindings/gpio/gpio.h> | ||
#include <dt-bindings/input/input.h> | ||
|
||
/ { | ||
compatible = "ht-jsh,0211", "mediatek,mt7621-soc"; | ||
model = "HT-JSH-0211"; | ||
|
||
keys { | ||
compatible = "gpio-keys"; | ||
|
||
reset { | ||
label = "reset"; | ||
gpios = <&gpio 3 GPIO_ACTIVE_LOW>; | ||
linux,code = <KEY_RESTART>; | ||
}; | ||
}; | ||
}; | ||
|
||
&spi0 { | ||
status = "okay"; | ||
|
||
flash@0 { | ||
compatible = "jedec,spi-nor"; | ||
reg = <0>; | ||
spi-max-frequency = <50000000>; | ||
|
||
partitions { | ||
compatible = "fixed-partitions"; | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
|
||
partition@0 { | ||
label = "Bootloader"; | ||
reg = <0x0 0x30000>; | ||
read-only; | ||
}; | ||
|
||
partition@30000 { | ||
label = "Config"; | ||
reg = <0x30000 0x10000>; | ||
read-only; | ||
}; | ||
|
||
factory: partition@40000 { | ||
label = "Factory"; | ||
reg = <0x40000 0x10000>; | ||
read-only; | ||
}; | ||
|
||
partition@50000 { | ||
compatible = "denx,uimage"; | ||
label = "firmware"; | ||
reg = <0x50000 0xfb0000>; | ||
}; | ||
}; | ||
}; | ||
}; | ||
|
||
&pcie { | ||
status = "okay"; | ||
}; | ||
|
||
&pcie0 { | ||
mt76@0,0 { | ||
reg = <0x0000 0 0 0 0>; | ||
mediatek,mtd-eeprom = <&factory 0x0>; | ||
}; | ||
}; | ||
|
||
&gmac0 { | ||
mtd-mac-address = <&factory 0xe000>; | ||
}; | ||
|
||
&gmac1 { | ||
mtd-mac-address = <&factory 0xe006>; | ||
status = "okay"; | ||
}; | ||
|
||
&gsw { | ||
mediatek,portmap = "wllll"; | ||
status = "okay"; | ||
}; | ||
|
||
&hnat { | ||
mtketh-wan = "eth1"; | ||
mtketh-ppd = "eth0"; | ||
mtketh-lan = "eth0"; | ||
mtketh-max-gmac = <2>; | ||
/delete-property/ mtkdsa-wan-port; | ||
}; | ||
|
||
&switch0 { | ||
status = "disabled"; | ||
}; | ||
|
||
&state_default { | ||
gpio { | ||
groups = "i2c"; | ||
function = "gpio"; | ||
}; | ||
}; |
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
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