OSDN Git Service

net: phy: realtek: add dt property to disable CLKOUT clock
authorJoakim Zhang <qiangqing.zhang@nxp.com>
Tue, 8 Jun 2021 03:15:33 +0000 (11:15 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 8 Jun 2021 18:41:23 +0000 (11:41 -0700)
commit0a4355c2b7f8ecd5e61cc262ecdbd4a2cce1ea7e
tree9be43ed0483dd9b866d77e4f5b2a715571e3e3d0
parenta9f15dc2b9733cb5870e655e6b77a4ec2cc51b8b
net: phy: realtek: add dt property to disable CLKOUT clock

CLKOUT is enabled by default after PHY hardware reset, this patch adds
"realtek,clkout-disable" property for user to disable CLKOUT clock
to save PHY power.

Per RTL8211F guide, a PHY reset should be issued after setting these
bits in PHYCR2 register. After this patch, CLKOUT clock output to be
disabled.

Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/realtek.c