ath79: ar934x: assert mac/mdio reset together for gmac0
authorChuanhong Guo <gch981213@gmail.com>
Sat, 15 Dec 2018 07:57:54 +0000 (15:57 +0800)
committerDaniel Golle <daniel@makrotopia.org>
Tue, 5 Mar 2019 02:02:34 +0000 (03:02 +0100)
This allows resetting gmac registers during initialization.

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

index 3eed4de7993ba6c41144a403ef7c67e11e852ae6..b8c3e5af53dcd5484b975f4aed90a5f39bd240a6 100644 (file)
 
 &mdio0 {
        compatible = "qca,ar9340-mdio";
-       resets = <&rst 22>;
-       reset-names = "mdio";
 };
 
 &eth0 {
-       compatible = "qca,ar9340-eth", "syscon", "simple-mfd";
+       compatible = "qca,ar9340-eth", "syscon";
 
        pll-data = <0x16000000 0x00000101 0x00001616>;
        pll-reg = <0x4 0x2c 17>;
        pll-handle = <&pll>;
-
-       resets = <&rst 9>;
-       reset-names = "mac";
+       resets = <&rst 9>, <&rst 22>;
+       reset-names = "mac", "mdio";
 };
 
 &mdio1 {