diff options
author | Chuanhong Guo <gch981213@gmail.com> | 2018-07-17 17:09:14 +0800 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2018-07-30 10:43:34 +0200 |
commit | 113b4cf90ffafa403adf917d24c3245246eaa398 (patch) | |
tree | c8304335b852cc24c74a5792e401c52172257de5 /target/linux/ath79/dts/ar7241.dtsi | |
parent | b6c8e5deaef86419b870047de9935814de7c71ba (diff) | |
download | upstream-113b4cf90ffafa403adf917d24c3245246eaa398.tar.gz upstream-113b4cf90ffafa403adf917d24c3245246eaa398.tar.bz2 upstream-113b4cf90ffafa403adf917d24c3245246eaa398.zip |
ath79: ar7241: Update dts for current ag71xx driver
Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
Diffstat (limited to 'target/linux/ath79/dts/ar7241.dtsi')
-rw-r--r-- | target/linux/ath79/dts/ar7241.dtsi | 28 |
1 files changed, 20 insertions, 8 deletions
diff --git a/target/linux/ath79/dts/ar7241.dtsi b/target/linux/ath79/dts/ar7241.dtsi index 91ebea54e0..baf34e28a6 100644 --- a/target/linux/ath79/dts/ar7241.dtsi +++ b/target/linux/ath79/dts/ar7241.dtsi @@ -39,13 +39,6 @@ }; }; -&mdio0 { - regmap = <ð1>; - builtin-switch; - resets = <&rst 22>; - reset-names = "mdio"; -}; - ð0 { compatible = "qca,ar7241-eth", "syscon"; @@ -53,16 +46,35 @@ resets = <&rst 8>, <&rst 9>; reset-names = "mac", "phy"; + phy-mode = "mii"; + phy-handle = <&swphy4>; }; &mdio1 { + status = "okay"; + resets = <&rst 23>; reset-names = "mdio"; builtin-switch; + + builtin_switch: switch0@1f { + compatible = "qca,ar8216-builtin"; + #address-cells = <1>; + #size-cells = <0>; + + reg = <0x1f>; + + mdio-bus { + swphy4: ethernet-phy@4 { + reg = <4>; + phy-mode = "mii"; + }; + }; + }; }; ð1 { - compatible = "qca,ar7241-eth", "syscon"; + compatible = "qca,ar7241-eth", "syscon", "simple-mfd"; pll-data = <0x00110000 0x00001099 0x00991099>; |