[OpenWrt-Devel] [PATCH] ath79: add support for TP-Link TL-MR6400

Adrian Schmutzler mail at adrianschmutzler.de
Tue Sep 17 13:02:12 EDT 2019


Hi,

> -----Original Message-----
> From: Enrico Mioso [mailto:mrkiko.rs at gmail.com]
> Sent: Dienstag, 17. September 2019 18:57
> To: Filip Moc <lede at moc6.cz>
> Cc: Adrian Schmutzler <mail at adrianschmutzler.de>; openwrt-devel at lists.openwrt.org; Piotr Dymacz <pepe2k at gmail.com>
> Subject: Re: [OpenWrt-Devel] [PATCH] ath79: add support for TP-Link TL-MR6400
> 
> BTW I can see the code for setting up network interfaces in mach-tl-mr6400.c is identical to the one in mach-fritz4020.c for which we
> have ath79 support.
> Hence, I copied the setup from there:
> 
> &eth0 {
>    status = "okay";
>    phy-mode = "mii";
>    phy-handle = <&swphy0>;
> 
>    mtd-mac-address = <&uboot 0x1fc00>;
>    mtd-mac-address-increment = <1>;
> 
>    gmac-config {
>      device = <&gmac>;
>      switch-phy-addr-swap = <1>;
>      switch-phy-swap = <1>;

That's the phy-swap I was referring to in the other mail.
Using that will change the ports in 02_network, so you will have to re-evaluate the connection status with swconfig.

I do not remember what switch-phy-addr-swap does.

Best

Adrian

>    };
> };
> 
> &eth1 {
>    status = "okay";
>    mtd-mac-address = <&uboot 0x1fc00>;
>    mtd-mac-address-increment = <(-1)>;
> };
> 
> yeah, here I am using spaces but the original code has tabs. :)
> 
> Am I overlooking something?
> 
> Second question - I got the LTe module working with gpio-hog. How can now I turn off the LTE module, writing a value to the GPIO?
> Thanks!!
> Enrico
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openpgp-digital-signature.asc
Type: application/pgp-signature
Size: 834 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20190917/0e449b1b/attachment.sig>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list