blob: a9297ca6503b8e9bc2ff2ac4882eea170e293641 [file] [log] [blame]
Christian Marangic771b632025-03-14 19:59:21 +01001// SPDX-License-Identifier: GPL-2.0+
2
Christian Marangi5ba73a82025-04-07 22:01:48 +02003#include <dt-bindings/reset/airoha,en7581-reset.h>
4
Christian Marangic771b632025-03-14 19:59:21 +01005/ {
6 reserved-memory {
7 #address-cells = <2>;
8 #size-cells = <2>;
9 ranges;
10
11 atf-reserved-memory@80000000 {
12 no-map;
13 reg = <0x0 0x80000000 0x0 0x40000>;
14 };
15 };
Christian Marangi01a16662025-04-07 22:01:45 +020016
Christian Marangic4238582025-04-07 22:01:50 +020017 clk25m: oscillator {
18 compatible = "fixed-clock";
19 #clock-cells = <0>;
20 clock-frequency = <25000000>;
21 clock-output-names = "clkxtal";
22 };
23
24 vmmc_3v3: regulator-vmmc-3v3 {
25 compatible = "regulator-fixed";
26 regulator-name = "vmmc";
27 regulator-min-microvolt = <3300000>;
28 regulator-max-microvolt = <3300000>;
29 regulator-always-on;
30 };
31
Christian Marangi01a16662025-04-07 22:01:45 +020032 soc {
33 chip_scu: syscon@1fa20000 {
34 compatible = "airoha,en7581-chip-scu", "syscon";
35 reg = <0x0 0x1fa20000 0x0 0x388>;
36 };
Christian Marangi5ba73a82025-04-07 22:01:48 +020037
38 eth: ethernet@1fb50000 {
39 compatible = "airoha,en7581-eth";
40 reg = <0 0x1fb50000 0 0x2600>,
41 <0 0x1fb54000 0 0x2000>,
42 <0 0x1fb56000 0 0x2000>;
43 reg-names = "fe", "qdma0", "qdma1";
44
45 resets = <&scuclk EN7581_FE_RST>,
46 <&scuclk EN7581_FE_PDMA_RST>,
47 <&scuclk EN7581_FE_QDMA_RST>,
48 <&scuclk EN7581_DUAL_HSI0_MAC_RST>,
49 <&scuclk EN7581_DUAL_HSI1_MAC_RST>,
50 <&scuclk EN7581_HSI_MAC_RST>,
51 <&scuclk EN7581_XFP_MAC_RST>;
52 reset-names = "fe", "pdma", "qdma",
53 "hsi0-mac", "hsi1-mac", "hsi-mac",
54 "xfp-mac";
55 };
56
57 switch: switch@1fb58000 {
58 compatible = "airoha,en7581-switch";
59 reg = <0 0x1fb58000 0 0x8000>;
60 };
Christian Marangic4238582025-04-07 22:01:50 +020061
Christian Marangiaadfc6e2025-04-07 22:01:57 +020062 snfi: spi@1fa10000 {
63 compatible = "airoha,en7581-snand";
64 reg = <0x0 0x1fa10000 0x0 0x140>,
65 <0x0 0x1fa11000 0x0 0x600>;
66
67 clocks = <&scuclk EN7523_CLK_SPI>;
68 clock-names = "spi";
69
70 #address-cells = <1>;
71 #size-cells = <0>;
72
73 spi_nand: nand@0 {
74 compatible = "spi-nand";
75 reg = <0>;
76 spi-max-frequency = <50000000>;
77 spi-tx-bus-width = <1>;
78 spi-rx-bus-width = <2>;
79 };
80 };
81
Christian Marangic4238582025-04-07 22:01:50 +020082 mmc0: mmc@1fa0e000 {
83 compatible = "mediatek,mt7622-mmc";
84 reg = <0x0 0x1fa0e000 0x0 0x1000>,
85 <0x0 0x1fa0c000 0x0 0x60>;
86 interrupts = <GIC_SPI 170 IRQ_TYPE_LEVEL_HIGH>;
87 clocks = <&scuclk EN7581_CLK_EMMC>, <&clk25m>;
88 clock-names = "source", "hclk";
89 bus-width = <4>;
90 max-frequency = <52000000>;
91 vmmc-supply = <&vmmc_3v3>;
92 disable-wp;
93 cap-mmc-highspeed;
94 non-removable;
95
96 assigned-clocks = <&scuclk EN7581_CLK_EMMC>;
97 assigned-clock-rates = <200000000>;
98 };
Christian Marangi01a16662025-04-07 22:01:45 +020099 };
Christian Marangic771b632025-03-14 19:59:21 +0100100};
101
Christian Marangi5ba73a82025-04-07 22:01:48 +0200102&scuclk {
103 compatible = "airoha,en7581-scu", "syscon";
104};
105
Christian Marangic771b632025-03-14 19:59:21 +0100106&uart1 {
107 bootph-all;
108};