ath79: qca955x: assert mdio/gmac reset together
authorChuanhong Guo <gch981213@gmail.com>
Sun, 27 Jan 2019 12:54:47 +0000 (20:54 +0800)
committerDaniel Golle <daniel@makrotopia.org>
Tue, 5 Mar 2019 02:02:34 +0000 (03:02 +0100)
This allows resetting gmac registers during initialization.
Also add compatible string for qca955x mdio to enable more mdio
clock dividers.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
target/linux/ath79/dts/qca9557.dtsi

index 77e5a316dd643cdce33fcc0acaf807ae49bc1d6b..fefb91c39af42c779abf4e896f6686542f30be78 100644 (file)
 };
 
 &mdio0 {
-       resets = <&rst 22>;
-       reset-names = "mdio";
+       compatible = "qca,ar9340-mdio";
 };
 
 &eth0 {
-       compatible = "qca,qca9550-eth", "syscon", "simple-mfd";
+       compatible = "qca,qca9550-eth", "syscon";
 
        pll-reg = <0 0x28 0>;
        pll-handle = <&pll>;
        pll-data = <0x16000000 0x00000101 0x00001616>;
        phy-mode = "rgmii";
 
-       resets = <&rst 9>;
-       reset-names = "mac";
+       resets = <&rst 9>, <&rst 22>;
+       reset-names = "mac", "mdio";
 };
 
 &mdio1 {
-       resets = <&rst 23>;
-       reset-names = "mdio";
+       compatible = "qca,ar9340-mdio";
 };
 
 &eth1 {
-       compatible = "qca,qca9550-eth", "syscon", "simple-mfd";
+       compatible = "qca,qca9550-eth", "syscon";
 
        pll-reg = <0 0x48 0>;
        pll-handle = <&pll>;
        pll-data = <0x16000000 0x00000101 0x00001616>;
        phy-mode = "sgmii";
 
-       resets = <&rst 13>;
-       reset-names = "mac";
+       resets = <&rst 13>, <&rst 23>;
+       reset-names = "mac", "mdio";
 };