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 3eed4de..b8c3e5a 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 {