xref: /freebsd-src/sys/contrib/device-tree/src/arm/mediatek/mt7623a.dtsi (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * Copyright (c) 2017-2018 MediaTek Inc.
4*f126890aSEmmanuel Vadot * Author: Sean Wang <sean.wang@mediatek.com>
5*f126890aSEmmanuel Vadot *
6*f126890aSEmmanuel Vadot */
7*f126890aSEmmanuel Vadot
8*f126890aSEmmanuel Vadot/dts-v1/;
9*f126890aSEmmanuel Vadot#include <dt-bindings/power/mt7623a-power.h>
10*f126890aSEmmanuel Vadot#include "mt7623.dtsi"
11*f126890aSEmmanuel Vadot
12*f126890aSEmmanuel Vadot&afe {
13*f126890aSEmmanuel Vadot	power-domains = <&scpsys MT7623A_POWER_DOMAIN_IFR_MSC>;
14*f126890aSEmmanuel Vadot};
15*f126890aSEmmanuel Vadot
16*f126890aSEmmanuel Vadot&crypto {
17*f126890aSEmmanuel Vadot	power-domains = <&scpsys MT7623A_POWER_DOMAIN_ETH>;
18*f126890aSEmmanuel Vadot};
19*f126890aSEmmanuel Vadot
20*f126890aSEmmanuel Vadot&gmac0 {
21*f126890aSEmmanuel Vadot	status = "okay";
22*f126890aSEmmanuel Vadot	phy-mode = "trgmii";
23*f126890aSEmmanuel Vadot
24*f126890aSEmmanuel Vadot	fixed-link {
25*f126890aSEmmanuel Vadot		speed = <1000>;
26*f126890aSEmmanuel Vadot		full-duplex;
27*f126890aSEmmanuel Vadot		pause;
28*f126890aSEmmanuel Vadot	};
29*f126890aSEmmanuel Vadot};
30*f126890aSEmmanuel Vadot
31*f126890aSEmmanuel Vadot&gmac1 {
32*f126890aSEmmanuel Vadot	status = "okay";
33*f126890aSEmmanuel Vadot	phy-mode = "rgmii";
34*f126890aSEmmanuel Vadot
35*f126890aSEmmanuel Vadot	fixed-link {
36*f126890aSEmmanuel Vadot		speed = <1000>;
37*f126890aSEmmanuel Vadot		full-duplex;
38*f126890aSEmmanuel Vadot		pause;
39*f126890aSEmmanuel Vadot	};
40*f126890aSEmmanuel Vadot};
41*f126890aSEmmanuel Vadot
42*f126890aSEmmanuel Vadot&eth {
43*f126890aSEmmanuel Vadot	status = "okay";
44*f126890aSEmmanuel Vadot	power-domains = <&scpsys MT7623A_POWER_DOMAIN_ETH>;
45*f126890aSEmmanuel Vadot
46*f126890aSEmmanuel Vadot	mdio: mdio-bus {
47*f126890aSEmmanuel Vadot		#address-cells = <1>;
48*f126890aSEmmanuel Vadot		#size-cells = <0>;
49*f126890aSEmmanuel Vadot
50*f126890aSEmmanuel Vadot		switch0: switch@1f {
51*f126890aSEmmanuel Vadot			compatible = "mediatek,mt7530";
52*f126890aSEmmanuel Vadot			reg = <0x1f>;
53*f126890aSEmmanuel Vadot			mediatek,mcm;
54*f126890aSEmmanuel Vadot			resets = <&ethsys MT2701_ETHSYS_MCM_RST>;
55*f126890aSEmmanuel Vadot			reset-names = "mcm";
56*f126890aSEmmanuel Vadot			core-supply = <&mt6323_vpa_reg>;
57*f126890aSEmmanuel Vadot			io-supply = <&mt6323_vemc3v3_reg>;
58*f126890aSEmmanuel Vadot
59*f126890aSEmmanuel Vadot			ports {
60*f126890aSEmmanuel Vadot				#address-cells = <1>;
61*f126890aSEmmanuel Vadot				#size-cells = <0>;
62*f126890aSEmmanuel Vadot
63*f126890aSEmmanuel Vadot				port@0 {
64*f126890aSEmmanuel Vadot					status = "disabled";
65*f126890aSEmmanuel Vadot					reg = <0>;
66*f126890aSEmmanuel Vadot					label = "swp0";
67*f126890aSEmmanuel Vadot				};
68*f126890aSEmmanuel Vadot
69*f126890aSEmmanuel Vadot				port@1 {
70*f126890aSEmmanuel Vadot					status = "disabled";
71*f126890aSEmmanuel Vadot					reg = <1>;
72*f126890aSEmmanuel Vadot					label = "swp1";
73*f126890aSEmmanuel Vadot				};
74*f126890aSEmmanuel Vadot
75*f126890aSEmmanuel Vadot				port@2 {
76*f126890aSEmmanuel Vadot					status = "disabled";
77*f126890aSEmmanuel Vadot					reg = <2>;
78*f126890aSEmmanuel Vadot					label = "swp2";
79*f126890aSEmmanuel Vadot				};
80*f126890aSEmmanuel Vadot
81*f126890aSEmmanuel Vadot				port@3 {
82*f126890aSEmmanuel Vadot					status = "disabled";
83*f126890aSEmmanuel Vadot					reg = <3>;
84*f126890aSEmmanuel Vadot					label = "swp3";
85*f126890aSEmmanuel Vadot				};
86*f126890aSEmmanuel Vadot
87*f126890aSEmmanuel Vadot				port@4 {
88*f126890aSEmmanuel Vadot					status = "disabled";
89*f126890aSEmmanuel Vadot					reg = <4>;
90*f126890aSEmmanuel Vadot					label = "swp4";
91*f126890aSEmmanuel Vadot				};
92*f126890aSEmmanuel Vadot
93*f126890aSEmmanuel Vadot				port@5 {
94*f126890aSEmmanuel Vadot					reg = <5>;
95*f126890aSEmmanuel Vadot					label = "cpu";
96*f126890aSEmmanuel Vadot					ethernet = <&gmac1>;
97*f126890aSEmmanuel Vadot					phy-mode = "rgmii";
98*f126890aSEmmanuel Vadot
99*f126890aSEmmanuel Vadot					fixed-link {
100*f126890aSEmmanuel Vadot						speed = <1000>;
101*f126890aSEmmanuel Vadot						full-duplex;
102*f126890aSEmmanuel Vadot						pause;
103*f126890aSEmmanuel Vadot					};
104*f126890aSEmmanuel Vadot				};
105*f126890aSEmmanuel Vadot
106*f126890aSEmmanuel Vadot				port@6 {
107*f126890aSEmmanuel Vadot					reg = <6>;
108*f126890aSEmmanuel Vadot					label = "cpu";
109*f126890aSEmmanuel Vadot					ethernet = <&gmac0>;
110*f126890aSEmmanuel Vadot					phy-mode = "trgmii";
111*f126890aSEmmanuel Vadot
112*f126890aSEmmanuel Vadot					fixed-link {
113*f126890aSEmmanuel Vadot						speed = <1000>;
114*f126890aSEmmanuel Vadot						full-duplex;
115*f126890aSEmmanuel Vadot						pause;
116*f126890aSEmmanuel Vadot					};
117*f126890aSEmmanuel Vadot				};
118*f126890aSEmmanuel Vadot			};
119*f126890aSEmmanuel Vadot		};
120*f126890aSEmmanuel Vadot	};
121*f126890aSEmmanuel Vadot};
122*f126890aSEmmanuel Vadot
123*f126890aSEmmanuel Vadot&nandc {
124*f126890aSEmmanuel Vadot	power-domains = <&scpsys MT7623A_POWER_DOMAIN_IFR_MSC>;
125*f126890aSEmmanuel Vadot};
126*f126890aSEmmanuel Vadot
127*f126890aSEmmanuel Vadot&pcie {
128*f126890aSEmmanuel Vadot	power-domains = <&scpsys MT7623A_POWER_DOMAIN_HIF>;
129*f126890aSEmmanuel Vadot};
130*f126890aSEmmanuel Vadot
131*f126890aSEmmanuel Vadot&scpsys {
132*f126890aSEmmanuel Vadot	compatible = "mediatek,mt7623a-scpsys";
133*f126890aSEmmanuel Vadot	clocks = <&topckgen CLK_TOP_ETHIF_SEL>;
134*f126890aSEmmanuel Vadot	clock-names = "ethif";
135*f126890aSEmmanuel Vadot};
136*f126890aSEmmanuel Vadot
137*f126890aSEmmanuel Vadot&usb0 {
138*f126890aSEmmanuel Vadot	power-domains = <&scpsys MT7623A_POWER_DOMAIN_IFR_MSC>;
139*f126890aSEmmanuel Vadot};
140*f126890aSEmmanuel Vadot
141*f126890aSEmmanuel Vadot&usb1 {
142*f126890aSEmmanuel Vadot	power-domains = <&scpsys MT7623A_POWER_DOMAIN_HIF>;
143*f126890aSEmmanuel Vadot};
144*f126890aSEmmanuel Vadot
145*f126890aSEmmanuel Vadot&usb2 {
146*f126890aSEmmanuel Vadot	power-domains = <&scpsys MT7623A_POWER_DOMAIN_HIF>;
147*f126890aSEmmanuel Vadot};
148