From 201d3d1a82e62bd139950571fc30f6b49d395378 Mon Sep 17 00:00:00 2001 From: Ozgur Can Leonard Date: Tue, 19 Mar 2019 10:04:27 +0300 Subject: ramips: Xiaomi MIR3G: detect board name from DTS - Former "mir3g" board name becomes "xiaomi,mir3g". - Reorder some entries to maintain alphabetical order. - Change DTS so status LEDs (yellow/red/blue) mimic Xiaomi stock firmware: (Section Indicator) |Yellow: Update (LED flickering), the launch of the system (steady light); |Blue: during normal operation (steady light); |Red: Safe mode (display flicker), system failure (steady light); Signed-off-by: Ozgur Can Leonard [Added link to similar Router 3 model] Signed-off-by: Christian Lamparter --- target/linux/ramips/dts/MIR3G.dts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'target/linux/ramips/dts') diff --git a/target/linux/ramips/dts/MIR3G.dts b/target/linux/ramips/dts/MIR3G.dts index 3af2c752fd..b0b63f8085 100644 --- a/target/linux/ramips/dts/MIR3G.dts +++ b/target/linux/ramips/dts/MIR3G.dts @@ -10,10 +10,10 @@ model = "Xiaomi Mi Router 3G"; aliases { - led-boot = &led_status_blue; - led-failsafe = &led_status_blue; + led-boot = &led_status_yellow; + led-failsafe = &led_status_red; led-running = &led_status_blue; - led-upgrade = &led_status_blue; + led-upgrade = &led_status_yellow; }; memory@0 { @@ -28,7 +28,7 @@ leds { compatible = "gpio-leds"; - status_red { + led_status_red: status_red { label = "mir3g:red:status"; gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; }; @@ -38,7 +38,7 @@ gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; }; - status_yellow { + led_status_yellow: status_yellow { label = "mir3g:yellow:status"; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; }; @@ -59,7 +59,7 @@ }; }; - keys { + button { compatible = "gpio-keys-polled"; poll-interval = <20>; @@ -70,7 +70,7 @@ }; }; - reg_usb_vbus: reg_usb_vbus { + reg_usb_vbus: regulator { compatible = "regulator-fixed"; regulator-name = "usb_vbus"; regulator-min-microvolt = <5000000>; -- cgit v1.2.3