blob: 46526ff0f0f6a481ca1a3b0120e72d1cb2a25668 [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
62 mmc0: mmc@1fa0e000 {
63 compatible = "mediatek,mt7622-mmc";
64 reg = <0x0 0x1fa0e000 0x0 0x1000>,
65 <0x0 0x1fa0c000 0x0 0x60>;
66 interrupts = <GIC_SPI 170 IRQ_TYPE_LEVEL_HIGH>;
67 clocks = <&scuclk EN7581_CLK_EMMC>, <&clk25m>;
68 clock-names = "source", "hclk";
69 bus-width = <4>;
70 max-frequency = <52000000>;
71 vmmc-supply = <&vmmc_3v3>;
72 disable-wp;
73 cap-mmc-highspeed;
74 non-removable;
75
76 assigned-clocks = <&scuclk EN7581_CLK_EMMC>;
77 assigned-clock-rates = <200000000>;
78 };
Christian Marangi01a16662025-04-07 22:01:45 +020079 };
Christian Marangic771b632025-03-14 19:59:21 +010080};
81
Christian Marangi5ba73a82025-04-07 22:01:48 +020082&scuclk {
83 compatible = "airoha,en7581-scu", "syscon";
84};
85
Christian Marangic771b632025-03-14 19:59:21 +010086&uart1 {
87 bootph-all;
88};