From 443fc9ac3530b5358b3ed65fa1abd99fdf2b0aca Mon Sep 17 00:00:00 2001 From: Chuanhong Guo Date: Fri, 11 Jan 2019 13:58:28 +0800 Subject: [PATCH] ath79: use ar8216 for builtin switch Signed-off-by: Chuanhong Guo --- target/linux/ath79/dts/ar7240.dtsi | 3 ++- target/linux/ath79/dts/ar7241.dtsi | 3 ++- target/linux/ath79/dts/ar7242.dtsi | 3 ++- target/linux/ath79/dts/ar9330.dtsi | 3 ++- target/linux/ath79/dts/ar934x.dtsi | 5 +++-- target/linux/ath79/dts/qca953x.dtsi | 5 +++-- target/linux/ath79/dts/qca956x.dtsi | 5 +++-- 7 files changed, 17 insertions(+), 10 deletions(-) diff --git a/target/linux/ath79/dts/ar7240.dtsi b/target/linux/ath79/dts/ar7240.dtsi index d32960a4986..268c8780f4a 100644 --- a/target/linux/ath79/dts/ar7240.dtsi +++ b/target/linux/ath79/dts/ar7240.dtsi @@ -39,11 +39,12 @@ builtin-switch; builtin_switch: switch0@1f { - compatible = "qca,ar8216-builtin"; + compatible = "qca,ar7240sw"; reg = <0x1f>; resets = <&rst 8>; reset-names = "switch"; + qca,mib-poll-interval = <500>; mdio-bus { #address-cells = <1>; diff --git a/target/linux/ath79/dts/ar7241.dtsi b/target/linux/ath79/dts/ar7241.dtsi index 2e7c26b8e7a..155826610f9 100644 --- a/target/linux/ath79/dts/ar7241.dtsi +++ b/target/linux/ath79/dts/ar7241.dtsi @@ -58,11 +58,12 @@ builtin-switch; builtin_switch: switch0@1f { - compatible = "qca,ar8216-builtin"; + compatible = "qca,ar7240sw"; reg = <0x1f>; resets = <&rst 8>; reset-names = "switch"; + qca,mib-poll-interval = <500>; mdio-bus { #address-cells = <1>; diff --git a/target/linux/ath79/dts/ar7242.dtsi b/target/linux/ath79/dts/ar7242.dtsi index dd5417e5702..44eb0edfdcb 100644 --- a/target/linux/ath79/dts/ar7242.dtsi +++ b/target/linux/ath79/dts/ar7242.dtsi @@ -61,12 +61,13 @@ builtin-switch; builtin_switch: switch0@1f { - compatible = "qca,ar8216-builtin"; + compatible = "qca,ar7240sw"; #address-cells = <1>; #size-cells = <0>; reg = <0x1f>; resets = <&rst 8>; reset-names = "switch"; + qca,mib-poll-interval = <500>; }; }; diff --git a/target/linux/ath79/dts/ar9330.dtsi b/target/linux/ath79/dts/ar9330.dtsi index 01116ff45a5..49c6f698597 100644 --- a/target/linux/ath79/dts/ar9330.dtsi +++ b/target/linux/ath79/dts/ar9330.dtsi @@ -173,10 +173,11 @@ builtin-switch; builtin_switch: switch0@1f { - compatible = "qca,ar8216-builtin"; + compatible = "qca,ar7240sw"; reg = <0x1f>; resets = <&rst 8>; reset-names = "switch"; + qca,mib-poll-interval = <500>; mdio-bus { #address-cells = <1>; diff --git a/target/linux/ath79/dts/ar934x.dtsi b/target/linux/ath79/dts/ar934x.dtsi index b8c3e5af53d..691cbe13e9f 100644 --- a/target/linux/ath79/dts/ar934x.dtsi +++ b/target/linux/ath79/dts/ar934x.dtsi @@ -213,13 +213,14 @@ builtin-switch; builtin_switch: switch0@1f { - compatible = "qca,ar8229-builtin"; + compatible = "qca,ar8229"; reg = <0x1f>; resets = <&rst 8>; reset-names = "switch"; phy-mode = "gmii"; - phy4-mii-enable; + qca,mib-poll-interval = <500>; + qca,phy4-mii-enable; mdio-bus { #address-cells = <1>; diff --git a/target/linux/ath79/dts/qca953x.dtsi b/target/linux/ath79/dts/qca953x.dtsi index 669e3fb851f..44f05a5f47b 100644 --- a/target/linux/ath79/dts/qca953x.dtsi +++ b/target/linux/ath79/dts/qca953x.dtsi @@ -245,13 +245,14 @@ builtin-switch; builtin_switch: switch0@1f { - compatible = "qca,ar8229-builtin"; + compatible = "qca,ar8229"; reg = <0x1f>; resets = <&rst 8>; reset-names = "switch"; phy-mode = "gmii"; - phy4-mii-enable; + qca,phy4-mii-enable; + qca,mib-poll-interval = <500>; mdio-bus { #address-cells = <1>; diff --git a/target/linux/ath79/dts/qca956x.dtsi b/target/linux/ath79/dts/qca956x.dtsi index b6f7dcaff35..a9437fce0ee 100644 --- a/target/linux/ath79/dts/qca956x.dtsi +++ b/target/linux/ath79/dts/qca956x.dtsi @@ -274,12 +274,13 @@ builtin-switch; builtin_switch: switch0@1f { - compatible = "qca,ar8229-builtin"; + compatible = "qca,ar8229"; reg = <0x1f>; resets = <&rst 8>; reset-names = "switch"; phy-mode = "gmii"; - phy4-mii-enable; + qca,phy4-mii-enable; + qca,mib-poll-interval = <500>; mdio-bus { #address-cells = <1>;