mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-21 09:42:09 +00:00
lantiq: fix VG3503J ethernet/gphy led support
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 37634
This commit is contained in:
parent
046b282429
commit
b4c722267e
@ -21,10 +21,6 @@ board=$(lantiq_board_id)
|
|||||||
|
|
||||||
case "$board" in
|
case "$board" in
|
||||||
VG3503J)
|
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"
|
ucidef_set_led_netdev "vdsl" "vdsl" "bt:green:dsl" "ptm0"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
@ -70,7 +70,8 @@ WBMR)
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
VG3503J)
|
VG3503J)
|
||||||
ucidef_set_interface_lan 'eth0 eth1'
|
ucidef_set_interface_lan 'eth0'
|
||||||
|
uci set network.lan.type='none'
|
||||||
;;
|
;;
|
||||||
DGN3500*)
|
DGN3500*)
|
||||||
ucidef_set_interface_lan "eth0.1"
|
ucidef_set_interface_lan "eth0.1"
|
||||||
|
@ -74,6 +74,15 @@
|
|||||||
lantiq,groups = "mdio";
|
lantiq,groups = "mdio";
|
||||||
lantiq,function = "mdio";
|
lantiq,function = "mdio";
|
||||||
};
|
};
|
||||||
|
gphy-leds {
|
||||||
|
lantiq,groups = "gphy0 led0", "gphy0 led1",
|
||||||
|
"gphy0 led2", "gphy1 led0",
|
||||||
|
"gphy1 led1", "gphy1 led2";
|
||||||
|
lantiq,function = "gphy";
|
||||||
|
lantiq,pull = <2>;
|
||||||
|
lantiq,open-drain = <0>;
|
||||||
|
lantiq,output = <1>;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -89,34 +98,24 @@
|
|||||||
interrupt-parent = <&icu0>;
|
interrupt-parent = <&icu0>;
|
||||||
interrupts = <73 72>;
|
interrupts = <73 72>;
|
||||||
|
|
||||||
lan1: interface@0 {
|
interface@0 {
|
||||||
compatible = "lantiq,xrx200-pdi";
|
compatible = "lantiq,xrx200-pdi";
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <0>;
|
#size-cells = <0>;
|
||||||
reg = <0>;
|
reg = <0>;
|
||||||
mac-address = [ 00 11 22 33 44 55 ];
|
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 {
|
ethernet@2 {
|
||||||
compatible = "lantiq,xrx200-pdi-port";
|
compatible = "lantiq,xrx200-pdi-port";
|
||||||
reg = <2>;
|
reg = <2>;
|
||||||
phy-mode = "mii";
|
phy-mode = "mii";
|
||||||
phy-handle = <&phy11>;
|
phy-handle = <&phy11>;
|
||||||
};
|
};
|
||||||
|
ethernet@4 {
|
||||||
|
compatible = "lantiq,xrx200-pdi-port";
|
||||||
|
reg = <4>;
|
||||||
|
phy-mode = "mii";
|
||||||
|
phy-handle = <&phy13>;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
mdio@0 {
|
mdio@0 {
|
||||||
@ -156,18 +155,6 @@
|
|||||||
gpio-leds {
|
gpio-leds {
|
||||||
compatible = "gpio-leds";
|
compatible = "gpio-leds";
|
||||||
|
|
||||||
port2orange {
|
|
||||||
label = "bt:orange:port2";
|
|
||||||
gpios = <&gpio 2 0>;
|
|
||||||
};
|
|
||||||
lan2 {
|
|
||||||
label = "bt:green:lan2";
|
|
||||||
gpios = <&gpio 5 0>;
|
|
||||||
};
|
|
||||||
port2green {
|
|
||||||
label = "bt:green:port2";
|
|
||||||
gpios = <&gpio 7 0>;
|
|
||||||
};
|
|
||||||
power2 {
|
power2 {
|
||||||
label = "power2";
|
label = "power2";
|
||||||
gpios = <&gpio 14 1>;
|
gpios = <&gpio 14 1>;
|
||||||
@ -180,17 +167,5 @@
|
|||||||
label = "power";
|
label = "power";
|
||||||
gpios = <&gpio 28 1>;
|
gpios = <&gpio 28 1>;
|
||||||
};
|
};
|
||||||
lan1 {
|
|
||||||
label = "bt:green:lan1";
|
|
||||||
gpios = <&gpio 44 0>;
|
|
||||||
};
|
|
||||||
port1green {
|
|
||||||
label = "bt:green:port1";
|
|
||||||
gpios = <&gpio 45 0>;
|
|
||||||
};
|
|
||||||
port1orange {
|
|
||||||
label = "bt:orange:port1";
|
|
||||||
gpios = <&gpio 47 0>;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user