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:35 +0200 |
commit | 4e5ba5076097cf10865c9d65a6fbe887dba5a467 (patch) | |
tree | c4f70b800e1dca73480dbca074e2080d56c652d9 /target/linux/ath79/dts | |
parent | f43e8f90049fbbf7961854660c09e88fb7555ef2 (diff) | |
download | upstream-4e5ba5076097cf10865c9d65a6fbe887dba5a467.tar.gz upstream-4e5ba5076097cf10865c9d65a6fbe887dba5a467.tar.bz2 upstream-4e5ba5076097cf10865c9d65a6fbe887dba5a467.zip |
ath79: ar7240: Update dts for current ag71xx driver
Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
Diffstat (limited to 'target/linux/ath79/dts')
-rw-r--r-- | target/linux/ath79/dts/ar7240.dtsi | 24 | ||||
-rw-r--r-- | target/linux/ath79/dts/ar7240_netgear_wnr612-v2.dtsi | 11 | ||||
-rw-r--r-- | target/linux/ath79/dts/ar7240_tl-wr740n-v2.dts | 11 |
3 files changed, 20 insertions, 26 deletions
diff --git a/target/linux/ath79/dts/ar7240.dtsi b/target/linux/ath79/dts/ar7240.dtsi index 6805d1a786..f662b4b445 100644 --- a/target/linux/ath79/dts/ar7240.dtsi +++ b/target/linux/ath79/dts/ar7240.dtsi @@ -33,7 +33,25 @@ }; &mdio0 { + status = "okay"; + + compatible = "qca,ar7240-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"; + }; + }; + }; }; ð0 { @@ -43,10 +61,8 @@ resets = <&rst 8>, <&rst 9>; reset-names = "phy", "mac"; -}; - -&mdio1 { - builtin-switch; + phy-mode = "mii"; + phy-handle = <&swphy4>; }; ð1 { diff --git a/target/linux/ath79/dts/ar7240_netgear_wnr612-v2.dtsi b/target/linux/ath79/dts/ar7240_netgear_wnr612-v2.dtsi index 1ae9896aa4..edf209053e 100644 --- a/target/linux/ath79/dts/ar7240_netgear_wnr612-v2.dtsi +++ b/target/linux/ath79/dts/ar7240_netgear_wnr612-v2.dtsi @@ -103,8 +103,6 @@ ð0 { status = "okay"; - phy-handle = <&phy4>; - mtd-mac-address = <&uboot 0x1fc00>; mtd-mac-address-increment = <(-1)>; }; @@ -116,15 +114,6 @@ mtd-mac-address-increment = <1>; }; -&mdio0 { - status = "okay"; - - phy4: ethernet-phy@4 { - reg = <4>; - phy-mode = "mii"; - }; -}; - &pcie { status = "okay"; diff --git a/target/linux/ath79/dts/ar7240_tl-wr740n-v2.dts b/target/linux/ath79/dts/ar7240_tl-wr740n-v2.dts index 5bc78d7eef..8754537754 100644 --- a/target/linux/ath79/dts/ar7240_tl-wr740n-v2.dts +++ b/target/linux/ath79/dts/ar7240_tl-wr740n-v2.dts @@ -123,8 +123,6 @@ ð0 { status = "okay"; - phy-handle = <&phy4>; - mtd-mac-address = <&uboot 0x1fc00>; mtd-mac-address-increment = <(-1)>; }; @@ -136,15 +134,6 @@ mtd-mac-address-increment = <1>; }; -&mdio0 { - status = "okay"; - - phy4: ethernet-phy@4 { - reg = <4>; - phy-mode = "mii"; - }; -}; - &pcie { status = "okay"; |