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