diff options
author | Hans Ulli Kroll <ulli.kroll@googlemail.com> | 2016-10-06 12:49:23 +0200 |
---|---|---|
committer | Hans Ulli Kroll <ulli.kroll@googlemail.com> | 2016-10-10 06:35:36 +0200 |
commit | ed77ae35eb477c52df09aa6552165ae89598469c (patch) | |
tree | cdff597bcb53d100539dbf5247eca4c49760da0c | |
parent | 1c5f34583369b06c5345f74550b7056de2b240b0 (diff) | |
download | master-31e0f0ae-ed77ae35eb477c52df09aa6552165ae89598469c.tar.gz master-31e0f0ae-ed77ae35eb477c52df09aa6552165ae89598469c.tar.bz2 master-31e0f0ae-ed77ae35eb477c52df09aa6552165ae89598469c.zip |
update from oPENWRT forum, need author
Signed-off-by: Hans Ulli Kroll <ulli.kroll@googlemail.com>
-rwxr-xr-x | target/linux/ramips/base-files/etc/board.d/01_leds | 6 | ||||
-rwxr-xr-x | target/linux/ramips/base-files/etc/board.d/02_network | 13 | ||||
-rw-r--r-- | target/linux/ramips/base-files/etc/diag.sh | 3 | ||||
-rw-r--r-- | target/linux/ramips/dts/BR-6478AC-V2.dts | 45 |
4 files changed, 57 insertions, 10 deletions
diff --git a/target/linux/ramips/base-files/etc/board.d/01_leds b/target/linux/ramips/base-files/etc/board.d/01_leds index 8bc3d0cda7..d527fdb1ae 100755 --- a/target/linux/ramips/base-files/etc/board.d/01_leds +++ b/target/linux/ramips/base-files/etc/board.d/01_leds @@ -74,6 +74,12 @@ bc2) br-6425) set_wifi_led "$board:orange:wlan" ;; +br-6478ac-v2) + ucidef_set_led_default "power" "POWER" "$board:white:power" "1" + ucidef_set_led_default "wan" "WAN LED" "$board:blue:wan" "1" + set_wifi_led "$board:blue:wlan" + set_usb_led "$board:blue:usb" + ;; broadway) set_usb_led "$board:red:diskmounted" set_wifi_led "$board:red:wps_active" diff --git a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network index 084c82ba1b..cc03087201 100755 --- a/target/linux/ramips/base-files/etc/board.d/02_network +++ b/target/linux/ramips/base-files/etc/board.d/02_network @@ -162,6 +162,14 @@ ramips_setup_interfaces() ucidef_add_switch "switch0" \ "1:lan" "2:lan" "3:lan" "4:lan" "0:wan" "9@eth0" ;; + + br-6478ac-v2) + // ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2" + ucidef_set_interface_lan "eth0.1" + ucidef_add_switch "switch1" \ + "1:lan" "2:lan" "3:lan" "4:lan" "0:wan" "6@eth0" + ;; + cf-wr800n|\ ex2700) ucidef_add_switch "switch0" \ @@ -294,6 +302,11 @@ ramips_setup_macs() lan_mac=$(cat /sys/class/net/eth0/address) wan_mac=$(mtd_get_mac_binary devdata 7) ;; + br-6478ac-v2) + lan_mac=$(cat /sys/class/net/eth0/address) + wan_mac=$(cat /sys/class/net/eth0.2/address) + //wan_mac=$(mtd_get_mac_binary devdata 7) + ;; cy-swr1100|\ dch-m225) lan_mac=$(mtd_get_mac_ascii factory lanmac) diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh index 7870ce2ffb..07a35a79dc 100644 --- a/target/linux/ramips/base-files/etc/diag.sh +++ b/target/linux/ramips/base-files/etc/diag.sh @@ -35,6 +35,9 @@ get_status_led() { xdxrn502j) status_led="$board:green:power" ;; + br-6478ac-v2) + status_led="$board:white:power" + ;; a5-v11|\ cs-qr10|\ d105|\ diff --git a/target/linux/ramips/dts/BR-6478AC-V2.dts b/target/linux/ramips/dts/BR-6478AC-V2.dts index 0951b5aac0..b32a7df024 100644 --- a/target/linux/ramips/dts/BR-6478AC-V2.dts +++ b/target/linux/ramips/dts/BR-6478AC-V2.dts @@ -18,10 +18,16 @@ model = "Edimax BR-6478ACV2"; chosen { - bootargs = "console=ttyS0,57600"; + bootargs = "console=ttyS0,57600"; }; palmbus@10000000 { + gpio1: gpio@638 { + satus = "okay"; + }; + gpio2: gpio@660 { + status = "okay"; + }; spi@b00 { status = "okay"; @@ -74,6 +80,14 @@ }; }; + usbphy: usbphy { + compatible = "mediatek,mt7620-usbphy"; + #phy-cells = <1>; + // resets = <&rstctrl 22 &rstctrl 25>; + resets = <&rstctrl 22 &rstctrl 19>; + reset-names = "host", "device"; + }; + ethernet@10100000 { status = "okay"; mtd-mac-address = <&factory 0x28>; @@ -138,14 +152,14 @@ reset { label = "reset"; - gpios = <&gpio0 1 0>; - linux,code = <0x198>; + gpios = <&gpio0 12 1>; + linux,code = <0x101>; }; wps { label = "wps"; - gpios = <&gpio0 2 0>; - linux,code = <0x211>; + gpios = <&gpio0 1 1>; + linux,code = <0x100>; }; }; @@ -153,13 +167,20 @@ compatible = "gpio-leds"; power { - label = "br-6478ac-v2:green:power"; - gpios = <&gpio0 10 1>; + label = "br-6478ac-v2:white:power"; + gpios = <&gpio0 11 1>; }; - wan { - label = "br-6478ac-v2:green:wps"; - gpios = <&gpio0 12 1>; + label = "br-6478ac-v2:blue:wan"; + gpios = <&gpio0 7 1>; + }; + wlan { + label = "br-6478ac-v2:blue:wlan"; + gpios = <&gpio0 10 1>; + }; + usb { + label = "br-6478ac-v2:blue:usb"; + gpios = <&gpio0 14 1>; }; }; @@ -169,10 +190,14 @@ ehci@101c0000 { status = "okay"; + interrupt-parent = <&intc>; + interrupts = <18>; }; ohci@101c1000 { status = "okay"; + interrupt-parent = <&intc>; + interrupts = <18>; }; }; |