riscv: dts: microchip: add mpfs specific macb reset support
authorConor Dooley <conor.dooley@microchip.com>
Fri, 9 Sep 2022 12:31:16 +0000 (13:31 +0100)
committerConor Dooley <conor.dooley@microchip.com>
Tue, 7 Mar 2023 15:09:28 +0000 (15:09 +0000)
The macb on PolarFire SoC has reset support which the generic compatible
does not use. Add the newly introduced MPFS specific compatible as the
primary compatible to avail of this support & wire up the reset to the
clock controllers devicetree entry.

Reviewed-by: Daire McNamara <daire.mcnamara@microchip.com>
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
arch/riscv/boot/dts/microchip/mpfs.dtsi

index 0a9bb84af4386936ba913f34bb6bd40ffead98fc..23b7b05ee2911098565d6a4a089e602c30e952fa 100644 (file)
                        reg = <0x0 0x20002000 0x0 0x1000>, <0x0 0x3E001000 0x0 0x1000>;
                        clocks = <&refclk>;
                        #clock-cells = <1>;
+                       #reset-cells = <1>;
                };
 
                ccc_se: clock-controller@38010000 {
                };
 
                mac0: ethernet@20110000 {
-                       compatible = "cdns,macb";
+                       compatible = "microchip,mpfs-macb", "cdns,macb";
                        reg = <0x0 0x20110000 0x0 0x2000>;
                        #address-cells = <1>;
                        #size-cells = <0>;
                        local-mac-address = [00 00 00 00 00 00];
                        clocks = <&clkcfg CLK_MAC0>, <&clkcfg CLK_AHB>;
                        clock-names = "pclk", "hclk";
+                       resets = <&clkcfg CLK_MAC0>;
                        status = "disabled";
                };
 
                mac1: ethernet@20112000 {
-                       compatible = "cdns,macb";
+                       compatible = "microchip,mpfs-macb", "cdns,macb";
                        reg = <0x0 0x20112000 0x0 0x2000>;
                        #address-cells = <1>;
                        #size-cells = <0>;
                        local-mac-address = [00 00 00 00 00 00];
                        clocks = <&clkcfg CLK_MAC1>, <&clkcfg CLK_AHB>;
                        clock-names = "pclk", "hclk";
+                       resets = <&clkcfg CLK_MAC1>;
                        status = "disabled";
                };