[U-Boot] [PATCH] net: Add ag7xxx driver for Atheros MIPS

Marek Vasut
2016-05-24T15:17:50Z

On 05/24/2016 05:15 PM, Joe Hershberger wrote:
> Hi Marek,
>
> On Sat, May 21, 2016 at 4:29 AM, Marek Vasut <marex@denx.de> wrote:
>> On 05/21/2016 05:25 AM, Wills Wang wrote:
>>>
>>>
>>> On 05/21/2016 01:08 AM, Marek Vasut wrote:
>>>> On 05/20/2016 06:43 PM, Wills Wang wrote:
>>>>>
>>>>> On 05/20/2016 07:59 PM, Marek Vasut wrote:
>>>>>> On 05/20/2016 06:18 AM, Wills Wang wrote:
>>>>>>> On 05/08/2016 11:22 PM, Marek Vasut wrote:
>>>>>>>> On 05/08/2016 02:58 PM, Daniel Schwierzeck wrote:
>>>>>>>>
>>>>>>>> Hi!
>>>>>>>>
>>>>>>>>> Am 05.05.2016 um 21:34 schrieb Marek Vasut:
>>>>>>>>>> Add ethernet driver for the AR933x and AR934x Atheros MIPS
>>>>>>>>>> machines.
>>>>>>>>>> The driver could be easily extended to other WiSoCs.
>>>>>>> How to make this patch work on ar933x board?
>>>>>>> I apply this patch on the top of mips/next branch and enable this
>>>>>>> option
>>>>>>> in menuconfig,
>>>>>>> but i can't see any boot information for Ethernet.
>>>>>> The Kconfig conversion is not complete. See the
>>>>>> tplink_wdr4300_defconfig
>>>>>> for the necessary options, it should be at least these:
>>>>>>
>>>>>> CONFIG_CMD_NET=y
>>>>>> CONFIG_CMD_NFS=y
>>>>>> CONFIG_CMD_DHCP=y
>>>>>> CONFIG_CMD_PING=y
>>>>>> CONFIG_NET_RANDOM_ETHADDR=y
>>>>>> CONFIG_DM_ETH=y
>>>>>> CONFIG_AG7XXX=y
>>>>>>
>>>>> I add these options and boot up as the following, but my ar933x board
>>>>> don't work,
>>>>> the link indicator led on router is off when plug in the cable and
>>>>> execute "dhcp" command.
>>>>>
>>>> Hrm, I have no idea, sorry, you'd have to dive in. It works on the board
>>>> I have. The ar933x is such a junk chip that I kinda gave up on it. I
>>>> also tested this on ar934x (my primary test platform) and it works.
>>>>
>>> I boot openwrt from u-boot on my ar933x board, and the ethernet driver
>>> can't find chip build-in PHY, but it work well if boot from original
>>> manufacturer's
>>> u-boot 1.14.
>>>
>>> [ 1.854519] libphy: ag71xx_mdio: probed
>>> [ 2.646539] ag71xx-mdio.1: unknown phy id 'ffff:ffff'
>>> [ 3.235778] ag71xx ag71xx.0: no PHY found with phy_mask=00000010
>>>
>>> Do you test this situation on your ar934x platform?
>>>
>> Yeah, I can boot Linux 4.4.x just fine and ethernet does work, but keep
>> in mind that ethernet does work for me in U-Boot as well.
>
> Are you planning to send a v2?

I think Wills sent a subsequent patch which fixes DT for him, so feel
free to pick this one and his fixes.

--
Best regards,
Marek Vasut