[OpenWrt-Devel] [PATCH v2] lantiq: ARV7519RW22 fixes - fix flash register (only 1 flash) - power led is green - rename message leds to internet - add leds configuration - enable switch vlans

Álvaro Fernández Rojas noltari at gmail.com
Fri Sep 18 15:21:24 EDT 2015


Signed-off-by: Álvaro Fernández Rojas <noltari at gmail.com>
Signed-off-by: José Vázquez Fernández <ppvazquezfer at gmail.com>
---
 target/linux/lantiq/base-files/etc/uci-defaults/01_leds  |  5 +++++
 .../linux/lantiq/base-files/etc/uci-defaults/02_network  |  3 +++
 target/linux/lantiq/dts/ARV7519RW22.dts                  | 16 ++++++++--------
 3 files changed, 16 insertions(+), 8 deletions(-)

diff --git a/target/linux/lantiq/base-files/etc/uci-defaults/01_leds b/target/linux/lantiq/base-files/etc/uci-defaults/01_leds
index 7ef88ea..b9e5420 100644
--- a/target/linux/lantiq/base-files/etc/uci-defaults/01_leds
+++ b/target/linux/lantiq/base-files/etc/uci-defaults/01_leds
@@ -51,6 +51,11 @@ P2812HNUF*)
 	ucidef_set_led_netdev "dsl" "dsl" "dsl" "nas0"
 	ucidef_set_led_netdev "internet_green" "internet_green" "internet_green" "pppoe-wan"
 	;;
+ARV7519RW22)
+	ucidef_set_led_default "power" "power" "power" "1"
+	ucidef_set_led_netdev "internet_green" "internet_green" "internet_green" "pppoe-wan"
+	ucidef_set_led_netdev "lan" "lan" "lan" "eth0.1"
+	;;
 ARV8539PW22)
         ucidef_set_led_default "power" "power" "soc:green:power" "1"
         ucidef_set_led_default "power2" "power2" "soc:red:power" "0"
diff --git a/target/linux/lantiq/base-files/etc/uci-defaults/02_network b/target/linux/lantiq/base-files/etc/uci-defaults/02_network
index ff21e02..f2cc37d 100644
--- a/target/linux/lantiq/base-files/etc/uci-defaults/02_network
+++ b/target/linux/lantiq/base-files/etc/uci-defaults/02_network
@@ -162,6 +162,9 @@ TDW8970)
 ARV7519RW22)
 	lan_mac=$(mtd_get_mac_binary boardconfig 22)
 	wan_mac=$(macaddr_add "$lan_mac" 1)
+	ucidef_set_interface_lan "eth0.1"
+	ucidef_add_switch "switch0" "1" "1"
+	ucidef_add_switch_vlan "switch0" "1" "0 2 3 4 5 6t"
 	;;
 
 BTHOMEHUBV2B|BTHOMEHUBV3A)
diff --git a/target/linux/lantiq/dts/ARV7519RW22.dts b/target/linux/lantiq/dts/ARV7519RW22.dts
index 6823753..73d5487 100644
--- a/target/linux/lantiq/dts/ARV7519RW22.dts
+++ b/target/linux/lantiq/dts/ARV7519RW22.dts
@@ -18,7 +18,7 @@
 			nor-boot at 0 {
 				compatible = "lantiq,nor";
 				bank-width = <2>;
-				reg = <0 0x0 0x2000000>, <1 0x2000000 0x2000000>;
+				reg = <0 0x0 0x2000000>;
 				#address-cells = <1>;
 				#size-cells = <1>;
 
@@ -202,11 +202,11 @@
 			label = "lan";
 			gpios = <&gpio 2 1>;
 		};
-		message_red {
-			label = "message_red";
+		internet_red {
+			label = "internet_red";
 			gpios = <&gpio 10 1>;
 		};
-		power_red {
+		power_green {
 			label = "power";
 			gpios = <&gpio 14 1>;
 			default-state = "on";
@@ -215,12 +215,12 @@
 			label = "alarm";
 			gpios = <&gpio 15 1>;
 		};
-		message_orange {
-			label = "message_orange";
+		internet_orange {
+			label = "internet_orange";
 			gpios = <&gpio 19 1>;
 		};
-		message_green {
-			label = "message_green";
+		internet_green {
+			label = "internet_green";
 			gpios = <&gpio 28 1>;
 		};
 		voice_green {
-- 
1.9.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list