mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-27 17:18:59 +00:00
ramips: further improve support for Xiaomi MiWiFi Nano
This patch does the following: - prepend vendor name to model - set status LEDs to follow the behavior in stock FW - simplify state_default node definition - use generic name for flash node Stock FW status indicators: https://files.xiaomi-mi.com/files/Mi_Router_Wi-Fi_Nano/Mi_router-NANO_EN.pdf > Yellow: power on / off > Blue: during normal operation > Red: in case of problems with the operation of the device Signed-off-by: Sungbo Eo <mans0n@gorani.run>
This commit is contained in:
parent
bf43e5bbf9
commit
74e9f95c79
@ -7,13 +7,13 @@
|
|||||||
|
|
||||||
/ {
|
/ {
|
||||||
compatible = "xiaomi,miwifi-nano", "mediatek,mt7628an-soc";
|
compatible = "xiaomi,miwifi-nano", "mediatek,mt7628an-soc";
|
||||||
model = "MiWiFi Nano";
|
model = "Xiaomi MiWiFi Nano";
|
||||||
|
|
||||||
aliases {
|
aliases {
|
||||||
led-boot = &led_blue;
|
led-boot = &led_status_amber;
|
||||||
led-failsafe = &led_blue;
|
led-failsafe = &led_status_red;
|
||||||
led-running = &led_blue;
|
led-running = &led_status_blue;
|
||||||
led-upgrade = &led_blue;
|
led-upgrade = &led_status_amber;
|
||||||
};
|
};
|
||||||
|
|
||||||
chosen {
|
chosen {
|
||||||
@ -23,17 +23,17 @@
|
|||||||
leds {
|
leds {
|
||||||
compatible = "gpio-leds";
|
compatible = "gpio-leds";
|
||||||
|
|
||||||
led_blue: status_blue {
|
led_status_blue: status_blue {
|
||||||
label = "miwifi-nano:blue:status";
|
label = "miwifi-nano:blue:status";
|
||||||
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
|
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
|
||||||
};
|
};
|
||||||
|
|
||||||
status_red {
|
led_status_red: status_red {
|
||||||
label = "miwifi-nano:red:status";
|
label = "miwifi-nano:red:status";
|
||||||
gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
|
gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
|
||||||
};
|
};
|
||||||
|
|
||||||
status_amber {
|
led_status_amber: status_amber {
|
||||||
label = "miwifi-nano:amber:status";
|
label = "miwifi-nano:amber:status";
|
||||||
gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
|
gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
|
||||||
};
|
};
|
||||||
@ -50,12 +50,10 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
&pinctrl {
|
&state_default {
|
||||||
state_default: pinctrl0 {
|
gpio {
|
||||||
gpio {
|
ralink,group = "gpio", "refclk", "wdt", "wled_an";
|
||||||
ralink,group = "gpio", "refclk", "wdt", "wled_an";
|
ralink,function = "gpio";
|
||||||
ralink,function = "gpio";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -79,7 +77,7 @@
|
|||||||
&spi0 {
|
&spi0 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
|
||||||
m25p80@0 {
|
flash@0 {
|
||||||
compatible = "jedec,spi-nor";
|
compatible = "jedec,spi-nor";
|
||||||
reg = <0>;
|
reg = <0>;
|
||||||
spi-max-frequency = <40000000>;
|
spi-max-frequency = <40000000>;
|
||||||
|
Loading…
Reference in New Issue
Block a user