summaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorOleksij Rempel <o.rempel@pengutronix.de>2020-04-22 11:24:56 +0200
committerDavid S. Miller <davem@davemloft.net>2020-04-23 04:41:26 +0200
commit6a64d3cdc5ef89b2ac629701de5ffb3df1fb7937 (patch)
tree8e08f0988a40f304d76a762488d7bead42d39b4b /drivers/media
parentnet: mdio: of: export part of of_mdiobus_register_phy() (diff)
downloadlinux-6a64d3cdc5ef89b2ac629701de5ffb3df1fb7937.tar.xz
linux-6a64d3cdc5ef89b2ac629701de5ffb3df1fb7937.zip
net: phy: tja11xx: add delayed registration of TJA1102 PHY1
TJA1102 is a dual PHY package with PHY0 having proper PHYID and PHY1 having no ID. On one hand it is possible to for PHY detection by compatible, on other hand we should be able to reset complete chip before PHY1 configured it, and we need to define dependencies for proper power management. We can solve it by defining PHY1 as child of PHY0: tja1102_phy0: ethernet-phy@4 { reg = <0x4>; interrupts-extended = <&gpio5 8 IRQ_TYPE_LEVEL_LOW>; reset-gpios = <&gpio5 9 GPIO_ACTIVE_LOW>; reset-assert-us = <20>; reset-deassert-us = <2000>; tja1102_phy1: ethernet-phy@5 { reg = <0x5>; interrupts-extended = <&gpio5 8 IRQ_TYPE_LEVEL_LOW>; }; }; The PHY1 should be a subnode of PHY0 and registered only after PHY0 was completely reset and initialized. Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/media')
0 files changed, 0 insertions, 0 deletions