net: phy: realtek: add dt property to disable CLKOUT clock
mainline inclusion from mainline-v5.14-rc1 commit 0a4355c2 category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I4H7E6 CVE: NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0a4355c2b7f8 ---------------------------------------------------------------------- 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: NJoakim Zhang <qiangqing.zhang@nxp.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net> Reviewed-by: NYongxin Li <liyongxin1@huawei.com> Signed-off-by: NJunxin Chen <chenjunxin1@huawei.com> (fix conflicts: adjust the location of RTL8211F_CLKOUT_EN) (fix conflicts: replace rtl8211e_config_init by rtl821x_resume) (fix conflicts: replace .read_status by .ack_interrupt) Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Showing
想要评论请 注册 或 登录