]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: dts: armada-cp110-*dtsi: add xmdio nodes
authorNevo Hed <nhed+github@starry.com>
Thu, 15 Aug 2019 22:08:43 +0000 (18:08 -0400)
committerJoe Hershberger <joe.hershberger@ni.com>
Mon, 9 Dec 2019 15:47:42 +0000 (09:47 -0600)
Based on upstream-linux
See https://github.com/torvalds/linux/commit/f66b2aff.

However made the XSMI register window 0x16 (22) bytes per my reading
of the functional spec.  Similar commits in Marvels own repo bump it
to 0x200 (512) bytes but I did not see the reasoning for that.

https://github.com/MarvellEmbeddedProcessors/u-boot-marvell/commit/4d932b4.

Also added device-name attributes to prevent ambiguity in the `mdio`
command.

Signed-off-by: Nevo Hed <nhed+github@starry.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
arch/arm/dts/armada-cp110-master.dtsi
arch/arm/dts/armada-cp110-slave.dtsi

index e4c17e9f4b634f0a08ba78df61aff324a44b118f..cd5c974482e6b66f61558d52a0791cc383d87d3e 100644 (file)
                                device-name = "cpm-mdio";
                        };
 
+                       cpm_xmdio: mdio@12a600 {
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+                               compatible = "marvell,xmdio";
+                               reg = <0x12a600 0x16>;
+                               status = "disabled";
+                               device-name = "cpm-xmdio";
+                       };
+
                        cpm_syscon0: system-controller@440000 {
                                compatible = "marvell,cp110-system-controller0",
                                             "syscon";
index 2fbd7b5514ee023a1b2e34814e78a00d601e584d..b426a4eb691008d89d2138a3c54cff5211020217 100644 (file)
                                device-name = "cps-mdio";
                        };
 
+                       cps_xmdio: mdio@12a600 {
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+                               compatible = "marvell,xmdio";
+                               reg = <0x12a600 0x16>;
+                               status = "disabled";
+                               device-name = "cps-xmdio";
+                       };
+
                        cps_syscon0: system-controller@440000 {
                                compatible = "marvell,cp110-system-controller0",
                                             "syscon";