aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq/image/Makefile
diff options
context:
space:
mode:
authorJohann Neuhauser <johann@it-neuhauser.de>2018-05-17 19:12:35 +0200
committerMathias Kresin <dev@kresin.me>2018-07-18 19:17:46 +0200
commitf2f7802148f3d070b27f65b169efebfc6bf8286d (patch)
tree2ddec30b5a4d27c7a0221e6484711b219a06ad4b /target/linux/lantiq/image/Makefile
parent4c4288728611d334efb777b74e737e1f98e0dc1b (diff)
downloadupstream-f2f7802148f3d070b27f65b169efebfc6bf8286d.tar.gz
upstream-f2f7802148f3d070b27f65b169efebfc6bf8286d.tar.bz2
upstream-f2f7802148f3d070b27f65b169efebfc6bf8286d.zip
lantiq: etop: pass devicetree node to phy driver
Use of_mdiobus_register() to pass the ethernet phy node to the phy drivers. This is needed for the at8030 phy driver which needs to know the GPIO which is connected to the ar8030 reset pin. This driver expects a child in gsw/etop node named "mdio-bus", which has the ethernet phys defined: &gsw { phy-mode = "rmii"; phy-handle = <&phy0>; mtd-mac-address = <&ath9k_cal 0xa91>; mtd-mac-address-increment = <(-2)>; mdio-bus { #address-cells = <1>; #size-cells = <0>; reg = <0>; phy0: ethernet-phy@0 { reg = <0>; reset-gpios = <&gpio 34 GPIO_ACTIVE_LOW>; }; }; }; Fallback to mdiobus_register() if no mdio-bus child node exists. This way we don't need to touch all xway dts files, for which we don't know the actual address on the mdio bus. Signed-off-by: Johann Neuhauser <johann@it-neuhauser.de>
Diffstat (limited to 'target/linux/lantiq/image/Makefile')
0 files changed, 0 insertions, 0 deletions