model = "TDW8970 - TP-LINK TD-W8970";
chosen {
- bootargs = "console=ttyLTQ0,115200 init=/etc/preinit rootfstype=jffs2";
+ bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
};
memory@0 {
lantiq,groups = "mdio";
lantiq,function = "mdio";
};
+ gphy-leds {
+ lantiq,groups = "gphy0 led1", "gphy1 led1";
+ lantiq,function = "gphy";
+ lantiq,pull = <2>;
+ lantiq,open-drain = <0>;
+ lantiq,output = <1>;
+ };
phy-rst {
lantiq,pins = "io42";
lantiq,pull = <0>;
phy0: ethernet-phy@0 {
reg = <0x0>;
compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
-// lantiq,c45-reg-init = <1 0 0 0>;
};
phy5: ethernet-phy@5 {
reg = <0x5>;
compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
-// lantiq,c45-reg-init = <1 0 0 0>;
};
phy11: ethernet-phy@11 {
reg = <0x11>;
compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
-// lantiq,c45-reg-init = <1 0 0 0>;
};
phy13: ethernet-phy@13 {
reg = <0x13>;
compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
-// lantiq,c45-reg-init = <1 0 0 0>;
};
};
};
wifi {
label = "wifi";
gpios = <&gpio 9 0>;
- linux,code = <0x101>;
+ linux,code = <0xf7>;
linux,input-type = <5>; /* EV_SW */
};
wps {
label = "wps";
gpios = <&gpio 39 1>;
- linux,code = <0x102>;
+ linux,code = <0x211>;
};
};
label = "internet";
gpios = <&gpio 5 0>;
};
- lan3 {
- label = "lan3";
- gpios = <&gpio 7 0>;
- };
usb0 {
label = "usb";
gpios = <&gpio 19 0>;
label = "wps";
gpios = <&gpio 37 0>;
};
- lan4 {
- label = "lan4";
- gpios = <&gpio 45 0>;
- };
};
};