ramips: improve support for Xiaomi Miwifi Nano

This patch does the following things:
1. mark u-boot-env writable
2. add bootcount support
   Currently, u-boot has a flag_boot_success env variable to reset.
   Also reset it in our firmware to follow the behavior in vendor's
   firmware.
3. disable usb support
   This router doesn't have usb port at all.
4. increase spi clock to 40MHz
5. fix pinmux groups

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
This commit is contained in:
Chuanhong Guo
2019-09-03 23:58:07 +08:00
parent 7290963d09
commit 7a21c85f70
3 changed files with 14 additions and 4 deletions

View File

@@ -52,12 +52,20 @@
&pinctrl {
state_default: pinctrl0 {
gpio {
ralink,group = "refclk", "wled_an", "gpio";
ralink,group = "gpio", "refclk", "wdt", "wled_an";
ralink,function = "gpio";
};
};
};
&ehci {
status = "disabled";
};
&ohci {
status = "disabled";
};
&wmac {
status = "okay";
ralink,mtd-eeprom = <&factory 0x4>;
@@ -73,7 +81,7 @@
m25p80@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <10000000>;
spi-max-frequency = <40000000>;
partitions {
compatible = "fixed-partitions";
@@ -89,7 +97,6 @@
partition@30000 {
label = "u-boot-env";
reg = <0x30000 0x10000>;
read-only;
};
factory: partition@40000 {