oxnas: switch to DTS aliases for LEDs and use generic diag.sh
[openwrt/staging/jogo.git] / target / linux / oxnas / files / arch / arm / boot / dts / ox820-mitrastar-stg212.dts
index 5fd2617f2f17905591b2de5951bcbc5700d7930c..4610aab88344e9a752b42febb3bf779bf1bd2acc 100644 (file)
                serial0 = &uart0;
                gpio0 = &gpio0;
                gpio1 = &gpio1;
+               led-boot = &led_status;
+               led-failsafe = &led_warn;
+               led-running = &led_status;
+               led-upgrade = &led_warn;
        };
 
        keys {
 
        leds {
                compatible = "gpio-leds";
-               status {
+               led_status: status {
                        label = "zyxel:blue:status";
                        gpios = <&gpio1 5 0>;
                };
-               status2 {
+               led_warn: status2 {
                        label = "zyxel:red:status";
                        gpios = <&gpio1 6 1>;
                };
                copy {
                        label = "zyxel:orange:copy";
                        gpios = <&gpio1 8 1>;
+                       trigger-sources = <&ehci_port1>, <&ehci_port2>;
+                       linux,default-trigger = "usbport";
                };
        };
 
                nand-ecc-algo = "hamming";
 
                partition@0 {
-                       label = "boot";
-                       reg = <0x00000000 0x00e00000>;
+                       label = "stage1";
+                       reg = <0x00000000 0x00040000>;
                        read-only;
                };
 
+               partition@40000 {
+                       label = "u-boot";
+                       reg = <0x00040000 0x00380000>;
+                       read-only;
+               };
+
+               partition@3c0000 {
+                       label = "u-boot-env";
+                       reg = <0x003c0000 0x00080000>;
+               };
+
+               partition@440000 {
+                       label = "kernel";
+                       reg = <0x00440000 0x009c0000>;
+               };
+
                partition@e00000 {
                        label = "ubi";
                        reg = <0x00e00000 0x07200000>;