lantiq: make leds and network work on VG3503J
authorJohn Crispin <john@openwrt.org>
Thu, 25 Apr 2013 19:03:41 +0000 (19:03 +0000)
committerJohn Crispin <john@openwrt.org>
Thu, 25 Apr 2013 19:03:41 +0000 (19:03 +0000)
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 36445

target/linux/lantiq/base-files/etc/uci-defaults/01_leds
target/linux/lantiq/base-files/etc/uci-defaults/02_network
target/linux/lantiq/dts/VG3503J.dts

index 3f87fe075852adf14024ecf2e1f4bed167cbd78c..bdf13117054658e49bd8a7755315f2806ce2b05d 100755 (executable)
@@ -19,6 +19,13 @@ done
 board=$(lantiq_board_id)
 
 case "$board" in
+VG3503J)
+       ucidef_set_led_netdev "lan1" "lan1" "bt:green:lan1" "eth0"
+       ucidef_set_led_netdev "lan2" "lan2" "bt:green:lan2" "eth1"
+       ucidef_set_led_netdev "port1" "port1" "bt:green:port1" "eth0"
+       ucidef_set_led_netdev "port2" "port2" "bt:green:port2" "eth1"
+       ucidef_set_led_netdev "vdsl" "vdsl" "bt:green:dsl" "ptm0"
+       ;;
 *)
        ;;
 esac
index 006f1bcc454c074783ce6581eaa5238cb86ac372..06390a73d994d72612871d37dc18bd6ecbe0f1e6 100755 (executable)
@@ -69,6 +69,9 @@ WBMR)
        ucidef_add_switch_vlan "eth0" "1" "0 1 2 3 4 5"
        ;;
 
+VG3503J)
+       ucidef_set_interface_lan 'eth0 eth1'
+       ;;
 esac
 
 [ -z "$(ls /lib/modules/`uname -r`/ltq_atm*)" ] || set_atm_wan "$vpi" "$vci" "$encaps" "$payload"
index 0aea8d80c76a367f70fa2ad7831a071338bc931e..340bfaae45ef06ba3e6e2c827323a1a0e6f1e682 100644 (file)
                        interrupt-parent = <&icu0>;
                        interrupts = <73 72>;
 
-                       lan: interface@0 {
+                       lan1: interface@0 {
                                compatible = "lantiq,xrx200-pdi";
                                #address-cells = <1>;
                                #size-cells = <0>;
                                reg = <0>;
                                mac-address = [ 00 11 22 33 44 55 ];
+                               lantiq,wan;
+                               ethernet@4 {
+                                       compatible = "lantiq,xrx200-pdi-port";
+                                       reg = <4>;
+                                       phy-mode = "mii";
+                                       phy-handle = <&phy13>;
+                               };
+                       };
+
+                       lan2: interface@1 {
+                               compatible = "lantiq,xrx200-pdi";
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+                               reg = <1>;
+                               mac-address = [ 00 11 22 33 44 56 ];
 
                                ethernet@2 {
                                        compatible = "lantiq,xrx200-pdi-port";
                                        phy-mode = "mii";
                                        phy-handle = <&phy11>;
                                };
-                               ethernet@4 {
-                                       compatible = "lantiq,xrx200-pdi-port";
-                                       reg = <4>;
-                                       phy-mode = "mii";
-                                       phy-handle = <&phy13>;
-                               };
                        };
 
                        mdio@0 {
        gpio-leds {
                compatible = "gpio-leds";
 
-               port2green {
-                       label = "bt:green:port2";
+               port2orange {
+                       label = "bt:orange:port2";
                        gpios = <&gpio 2 0>;
                };
                lan2 {
                        label = "bt:green:lan2";
                        gpios = <&gpio 5 0>;
                };
-               port2orange {
-                       label = "bt:orange:port2";
+               port2green {
+                       label = "bt:green:port2";
                        gpios = <&gpio 7 0>;
                };
                power2 {
                        gpios = <&gpio 14 1>;
                };
                dsl {
-                       label = "dsl";
+                       label = "bt:green:dsl";
                        gpios = <&gpio 19 1>;
                };
                power {