xref: /linux/scripts/dtc/include-prefixes/arm64/mediatek/mt7986b-rfb.dts (revision 965f2c0491ebbb6995233c0b167fb9e0cf0853da)
1// SPDX-License-Identifier: (GPL-2.0 OR MIT)
2/*
3 * Copyright (C) 2021 MediaTek Inc.
4 * Author: Sam.Shih <sam.shih@mediatek.com>
5 */
6
7/dts-v1/;
8#include "mt7986b.dtsi"
9
10/ {
11	model = "MediaTek MT7986b RFB";
12	compatible = "mediatek,mt7986b-rfb";
13
14	aliases {
15		serial0 = &uart0;
16	};
17
18	chosen {
19		stdout-path = "serial0:115200n8";
20	};
21
22	memory@40000000 {
23		device_type = "memory";
24		reg = <0 0x40000000 0 0x40000000>;
25	};
26};
27
28&eth {
29	status = "okay";
30
31	gmac0: mac@0 {
32		compatible = "mediatek,eth-mac";
33		reg = <0>;
34		phy-mode = "2500base-x";
35
36		fixed-link {
37			speed = <2500>;
38			full-duplex;
39			pause;
40		};
41	};
42
43	mdio: mdio-bus {
44		#address-cells = <1>;
45		#size-cells = <0>;
46
47		switch@0 {
48			compatible = "mediatek,mt7531";
49			reg = <31>;
50			reset-gpios = <&pio 5 0>;
51
52			ports {
53				#address-cells = <1>;
54				#size-cells = <0>;
55
56				port@0 {
57					reg = <0>;
58					label = "lan0";
59				};
60
61				port@1 {
62					reg = <1>;
63					label = "lan1";
64				};
65
66				port@2 {
67					reg = <2>;
68					label = "lan2";
69				};
70
71				port@3 {
72					reg = <3>;
73					label = "lan3";
74				};
75
76				port@4 {
77					reg = <4>;
78					label = "lan4";
79				};
80
81				port@6 {
82					reg = <6>;
83					label = "cpu";
84					ethernet = <&gmac0>;
85					phy-mode = "2500base-x";
86
87					fixed-link {
88						speed = <2500>;
89						full-duplex;
90						pause;
91					};
92				};
93			};
94		};
95	};
96};
97
98&pio {
99	wf_2g_5g_pins: wf-2g-5g-pins {
100		mux {
101			function = "wifi";
102			groups = "wf_2g", "wf_5g";
103		};
104		conf {
105			pins = "WF0_HB1", "WF0_HB2", "WF0_HB3", "WF0_HB4",
106			       "WF0_HB0", "WF0_HB0_B", "WF0_HB5", "WF0_HB6",
107			       "WF0_HB7", "WF0_HB8", "WF0_HB9", "WF0_HB10",
108			       "WF0_TOP_CLK", "WF0_TOP_DATA", "WF1_HB1",
109			       "WF1_HB2", "WF1_HB3", "WF1_HB4", "WF1_HB0",
110			       "WF1_HB5", "WF1_HB6", "WF1_HB7", "WF1_HB8",
111			       "WF1_TOP_CLK", "WF1_TOP_DATA";
112			drive-strength = <4>;
113		};
114	};
115
116	wf_dbdc_pins: wf-dbdc-pins {
117		mux {
118			function = "wifi";
119			groups = "wf_dbdc";
120		};
121		conf {
122			pins = "WF0_HB1", "WF0_HB2", "WF0_HB3", "WF0_HB4",
123			       "WF0_HB0", "WF0_HB0_B", "WF0_HB5", "WF0_HB6",
124			       "WF0_HB7", "WF0_HB8", "WF0_HB9", "WF0_HB10",
125			       "WF0_TOP_CLK", "WF0_TOP_DATA";
126			drive-strength = <4>;
127		};
128	};
129};
130
131&uart0 {
132	status = "okay";
133};
134
135&wifi {
136	status = "okay";
137	pinctrl-names = "default", "dbdc";
138	pinctrl-0 = <&wf_2g_5g_pins>;
139	pinctrl-1 = <&wf_dbdc_pins>;
140};
141