]> git.dujemihanovic.xyz Git - u-boot.git/commit
phy: atheros: add device tree bindings and config
authorMichael Walle <michael@walle.cc>
Wed, 6 May 2020 22:11:57 +0000 (00:11 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 7 May 2020 15:05:00 +0000 (11:05 -0400)
commitfe6293a8095998affd5e46e7968485fcc332e0fa
tree9e4f87a13d4f6530ccbc3566aa6fdc1f57d0b578
parent2b7721552a4cb4046a365a665fba3a3a848eb966
phy: atheros: add device tree bindings and config

Add support for configuring the CLK_25M pin as well as the RGMII I/O
voltage by the device tree.

By default the AT803x PHYs outputs the 25MHz clock of the XTAL input.
But this output can also be changed by software to other frequencies.
This commit introduces a generic way to configure this output.

Also the PHY supports different RGMII I/O voltages: 1.5V, 1.8V and 2.5V.
An internal LDO is able to provide 1.5V (default) and 1.8V. The 2.5V
option needs an external supply voltage. This commit adds support to
switch the internal LDO to 1.8V.

Signed-off-by: Michael Walle <michael@walle.cc>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
doc/device-tree-bindings/net/phy/atheros.txt [new file with mode: 0644]
drivers/net/phy/atheros.c
include/dt-bindings/net/qca-ar803x.h [new file with mode: 0644]