arch: arm: dts: an7581: Add Ethernet nodes
authorChristian Marangi <ansuelsmth@gmail.com>
Mon, 7 Apr 2025 20:01:48 +0000 (22:01 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 16 Apr 2025 22:51:45 +0000 (16:51 -0600)
Add Ethrnet nodes for Airoha AN7581 EVB board.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
arch/arm/dts/an7581-u-boot.dtsi

index 9f8abfc..a569044 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0+
 
+#include <dt-bindings/reset/airoha,en7581-reset.h>
+
 / {
        reserved-memory {
                #address-cells = <2>;
                        compatible = "airoha,en7581-chip-scu", "syscon";
                        reg = <0x0 0x1fa20000 0x0 0x388>;
                };
+
+               eth: ethernet@1fb50000 {
+                       compatible = "airoha,en7581-eth";
+                       reg = <0 0x1fb50000 0 0x2600>,
+                               <0 0x1fb54000 0 0x2000>,
+                               <0 0x1fb56000 0 0x2000>;
+                       reg-names = "fe", "qdma0", "qdma1";
+
+                       resets = <&scuclk EN7581_FE_RST>,
+                                <&scuclk EN7581_FE_PDMA_RST>,
+                                <&scuclk EN7581_FE_QDMA_RST>,
+                                <&scuclk EN7581_DUAL_HSI0_MAC_RST>,
+                                <&scuclk EN7581_DUAL_HSI1_MAC_RST>,
+                                <&scuclk EN7581_HSI_MAC_RST>,
+                                <&scuclk EN7581_XFP_MAC_RST>;
+                       reset-names = "fe", "pdma", "qdma",
+                                     "hsi0-mac", "hsi1-mac", "hsi-mac",
+                                     "xfp-mac";
+               };
+
+               switch: switch@1fb58000 {
+                       compatible = "airoha,en7581-switch";
+                       reg = <0 0x1fb58000 0 0x8000>;
+               };
        };
 };
 
+&scuclk {
+       compatible = "airoha,en7581-scu", "syscon";
+};
+
 &uart1 {
        bootph-all;
 };