arm64: dts: socfpga: change the reset-name of "stmmaceth-ocp" to "ahb"
authorDinh Nguyen <dinguyen@kernel.org>
Tue, 27 Jun 2023 21:59:42 +0000 (16:59 -0500)
committerDinh Nguyen <dinguyen@kernel.org>
Mon, 17 Jul 2023 21:16:36 +0000 (16:16 -0500)
The "stmmaceth-ocp" reset line on the SoCFPGA stmmac ethernet driver is
the same as the "ahb" reset on a standard stmmac ethernet.

commit ("843f603762a5 dt-bindings: net: snps,dwmac: Add 'ahb'
reset/reset-name") documented the second reset signal as 'ahb' instead
of 'stmmaceth-ocp'. Change the reset-names of the SoCFPGA DWMAC driver to
'ahb'. In order not to break ABI, we will keep support in thedwmac-socfpga
driver to still make use of "stmmaceth-ocp".

This also fixes the dtbs_check warning:
ethernet@ff802000: reset-names:1: 'ahb' was expected

Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
---
v2: update commit message to further describe the reason for the change

arch/arm/boot/dts/intel/socfpga/socfpga_arria10.dtsi
arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi
arch/arm64/boot/dts/intel/socfpga_agilex.dtsi

index 72c55e5..f36063c 100644 (file)
                        clocks = <&l4_mp_clk>, <&peri_emac_ptp_clk>;
                        clock-names = "stmmaceth", "ptp_ref";
                        resets = <&rst EMAC0_RESET>, <&rst EMAC0_OCP_RESET>;
-                       reset-names = "stmmaceth", "stmmaceth-ocp";
+                       reset-names = "stmmaceth", "ahb";
                        snps,axi-config = <&socfpga_axi_setup>;
                        status = "disabled";
                };
                        clocks = <&l4_mp_clk>, <&peri_emac_ptp_clk>;
                        clock-names = "stmmaceth", "ptp_ref";
                        resets = <&rst EMAC1_RESET>, <&rst EMAC1_OCP_RESET>;
-                       reset-names = "stmmaceth", "stmmaceth-ocp";
+                       reset-names = "stmmaceth", "ahb";
                        snps,axi-config = <&socfpga_axi_setup>;
                        status = "disabled";
                };
                        clocks = <&l4_mp_clk>, <&peri_emac_ptp_clk>;
                        clock-names = "stmmaceth", "ptp_ref";
                        resets = <&rst EMAC2_RESET>, <&rst EMAC2_OCP_RESET>;
-                       reset-names = "stmmaceth", "stmmaceth-ocp";
+                       reset-names = "stmmaceth", "ahb";
                        snps,axi-config = <&socfpga_axi_setup>;
                        status = "disabled";
                };
index 1c846f1..439497a 100644 (file)
                        interrupt-names = "macirq";
                        mac-address = [00 00 00 00 00 00];
                        resets = <&rst EMAC0_RESET>, <&rst EMAC0_OCP_RESET>;
-                       reset-names = "stmmaceth", "stmmaceth-ocp";
+                       reset-names = "stmmaceth", "ahb";
                        clocks = <&clkmgr STRATIX10_EMAC0_CLK>, <&clkmgr STRATIX10_EMAC_PTP_CLK>;
                        clock-names = "stmmaceth", "ptp_ref";
                        tx-fifo-depth = <16384>;
                        interrupt-names = "macirq";
                        mac-address = [00 00 00 00 00 00];
                        resets = <&rst EMAC1_RESET>, <&rst EMAC1_OCP_RESET>;
-                       reset-names = "stmmaceth", "stmmaceth-ocp";
+                       reset-names = "stmmaceth", "ahb";
                        clocks = <&clkmgr STRATIX10_EMAC1_CLK>, <&clkmgr STRATIX10_EMAC_PTP_CLK>;
                        clock-names = "stmmaceth", "ptp_ref";
                        tx-fifo-depth = <16384>;
                        interrupt-names = "macirq";
                        mac-address = [00 00 00 00 00 00];
                        resets = <&rst EMAC2_RESET>, <&rst EMAC2_OCP_RESET>;
-                       reset-names = "stmmaceth", "stmmaceth-ocp";
+                       reset-names = "stmmaceth", "ahb";
                        clocks = <&clkmgr STRATIX10_EMAC2_CLK>, <&clkmgr STRATIX10_EMAC_PTP_CLK>;
                        clock-names = "stmmaceth", "ptp_ref";
                        tx-fifo-depth = <16384>;
index fc047ae..d3adb6a 100644 (file)
                        interrupt-names = "macirq";
                        mac-address = [00 00 00 00 00 00];
                        resets = <&rst EMAC0_RESET>, <&rst EMAC0_OCP_RESET>;
-                       reset-names = "stmmaceth", "stmmaceth-ocp";
+                       reset-names = "stmmaceth", "ahb";
                        tx-fifo-depth = <16384>;
                        rx-fifo-depth = <16384>;
                        snps,multicast-filter-bins = <256>;
                        interrupt-names = "macirq";
                        mac-address = [00 00 00 00 00 00];
                        resets = <&rst EMAC1_RESET>, <&rst EMAC1_OCP_RESET>;
-                       reset-names = "stmmaceth", "stmmaceth-ocp";
+                       reset-names = "stmmaceth", "ahb";
                        tx-fifo-depth = <16384>;
                        rx-fifo-depth = <16384>;
                        snps,multicast-filter-bins = <256>;
                        interrupt-names = "macirq";
                        mac-address = [00 00 00 00 00 00];
                        resets = <&rst EMAC2_RESET>, <&rst EMAC2_OCP_RESET>;
-                       reset-names = "stmmaceth", "stmmaceth-ocp";
+                       reset-names = "stmmaceth", "ahb";
                        tx-fifo-depth = <16384>;
                        rx-fifo-depth = <16384>;
                        snps,multicast-filter-bins = <256>;