1f40c0f80SSam Shih// SPDX-License-Identifier: (GPL-2.0 OR MIT) 2f40c0f80SSam Shih/* 3f40c0f80SSam Shih * Copyright (C) 2021 MediaTek Inc. 4f40c0f80SSam Shih * Author: Sam.Shih <sam.shih@mediatek.com> 5f40c0f80SSam Shih */ 6f40c0f80SSam Shih 7f40c0f80SSam Shih/dts-v1/; 8f40c0f80SSam Shih#include "mt7986b.dtsi" 9f40c0f80SSam Shih 10f40c0f80SSam Shih/ { 11f40c0f80SSam Shih model = "MediaTek MT7986b RFB"; 12*26589630SMatthias Brugger compatible = "mediatek,mt7986b-rfb", "mediatek,mt7986b"; 13f40c0f80SSam Shih 14f40c0f80SSam Shih aliases { 15f40c0f80SSam Shih serial0 = &uart0; 16f40c0f80SSam Shih }; 17f40c0f80SSam Shih 18f40c0f80SSam Shih chosen { 19f40c0f80SSam Shih stdout-path = "serial0:115200n8"; 20f40c0f80SSam Shih }; 21f40c0f80SSam Shih 22809967d7SSam Shih memory@40000000 { 23809967d7SSam Shih device_type = "memory"; 24f40c0f80SSam Shih reg = <0 0x40000000 0 0x40000000>; 25f40c0f80SSam Shih }; 26f40c0f80SSam Shih}; 27f40c0f80SSam Shih 28ecc5287cSSam Shih&crypto { 29ecc5287cSSam Shih status = "okay"; 30ecc5287cSSam Shih}; 31ecc5287cSSam Shih 32082ff36bSLorenzo Bianconið { 33082ff36bSLorenzo Bianconi status = "okay"; 34082ff36bSLorenzo Bianconi 35082ff36bSLorenzo Bianconi gmac0: mac@0 { 36082ff36bSLorenzo Bianconi compatible = "mediatek,eth-mac"; 37082ff36bSLorenzo Bianconi reg = <0>; 38082ff36bSLorenzo Bianconi phy-mode = "2500base-x"; 39082ff36bSLorenzo Bianconi 40082ff36bSLorenzo Bianconi fixed-link { 41082ff36bSLorenzo Bianconi speed = <2500>; 42082ff36bSLorenzo Bianconi full-duplex; 43082ff36bSLorenzo Bianconi pause; 44082ff36bSLorenzo Bianconi }; 45082ff36bSLorenzo Bianconi }; 46082ff36bSLorenzo Bianconi 47082ff36bSLorenzo Bianconi mdio: mdio-bus { 48082ff36bSLorenzo Bianconi #address-cells = <1>; 49082ff36bSLorenzo Bianconi #size-cells = <0>; 50082ff36bSLorenzo Bianconi 51082ff36bSLorenzo Bianconi switch@0 { 52082ff36bSLorenzo Bianconi compatible = "mediatek,mt7531"; 53082ff36bSLorenzo Bianconi reg = <31>; 54082ff36bSLorenzo Bianconi reset-gpios = <&pio 5 0>; 55082ff36bSLorenzo Bianconi 56082ff36bSLorenzo Bianconi ports { 57082ff36bSLorenzo Bianconi #address-cells = <1>; 58082ff36bSLorenzo Bianconi #size-cells = <0>; 59082ff36bSLorenzo Bianconi 60082ff36bSLorenzo Bianconi port@0 { 61082ff36bSLorenzo Bianconi reg = <0>; 62082ff36bSLorenzo Bianconi label = "lan0"; 63082ff36bSLorenzo Bianconi }; 64082ff36bSLorenzo Bianconi 65082ff36bSLorenzo Bianconi port@1 { 66082ff36bSLorenzo Bianconi reg = <1>; 67082ff36bSLorenzo Bianconi label = "lan1"; 68082ff36bSLorenzo Bianconi }; 69082ff36bSLorenzo Bianconi 70082ff36bSLorenzo Bianconi port@2 { 71082ff36bSLorenzo Bianconi reg = <2>; 72082ff36bSLorenzo Bianconi label = "lan2"; 73082ff36bSLorenzo Bianconi }; 74082ff36bSLorenzo Bianconi 75082ff36bSLorenzo Bianconi port@3 { 76082ff36bSLorenzo Bianconi reg = <3>; 77082ff36bSLorenzo Bianconi label = "lan3"; 78082ff36bSLorenzo Bianconi }; 79082ff36bSLorenzo Bianconi 80082ff36bSLorenzo Bianconi port@4 { 81082ff36bSLorenzo Bianconi reg = <4>; 82082ff36bSLorenzo Bianconi label = "lan4"; 83082ff36bSLorenzo Bianconi }; 84082ff36bSLorenzo Bianconi 85082ff36bSLorenzo Bianconi port@6 { 86082ff36bSLorenzo Bianconi reg = <6>; 87082ff36bSLorenzo Bianconi label = "cpu"; 88082ff36bSLorenzo Bianconi ethernet = <&gmac0>; 89082ff36bSLorenzo Bianconi phy-mode = "2500base-x"; 90082ff36bSLorenzo Bianconi 91082ff36bSLorenzo Bianconi fixed-link { 92082ff36bSLorenzo Bianconi speed = <2500>; 93082ff36bSLorenzo Bianconi full-duplex; 94082ff36bSLorenzo Bianconi pause; 95082ff36bSLorenzo Bianconi }; 96082ff36bSLorenzo Bianconi }; 97082ff36bSLorenzo Bianconi }; 98082ff36bSLorenzo Bianconi }; 99082ff36bSLorenzo Bianconi }; 100082ff36bSLorenzo Bianconi}; 101300218b0SPeter Chiu 102300218b0SPeter Chiu&pio { 103300218b0SPeter Chiu wf_2g_5g_pins: wf-2g-5g-pins { 104300218b0SPeter Chiu mux { 105300218b0SPeter Chiu function = "wifi"; 106300218b0SPeter Chiu groups = "wf_2g", "wf_5g"; 107300218b0SPeter Chiu }; 108300218b0SPeter Chiu conf { 109300218b0SPeter Chiu pins = "WF0_HB1", "WF0_HB2", "WF0_HB3", "WF0_HB4", 110300218b0SPeter Chiu "WF0_HB0", "WF0_HB0_B", "WF0_HB5", "WF0_HB6", 111300218b0SPeter Chiu "WF0_HB7", "WF0_HB8", "WF0_HB9", "WF0_HB10", 112300218b0SPeter Chiu "WF0_TOP_CLK", "WF0_TOP_DATA", "WF1_HB1", 113300218b0SPeter Chiu "WF1_HB2", "WF1_HB3", "WF1_HB4", "WF1_HB0", 114300218b0SPeter Chiu "WF1_HB5", "WF1_HB6", "WF1_HB7", "WF1_HB8", 115300218b0SPeter Chiu "WF1_TOP_CLK", "WF1_TOP_DATA"; 116300218b0SPeter Chiu drive-strength = <4>; 117300218b0SPeter Chiu }; 118300218b0SPeter Chiu }; 119300218b0SPeter Chiu 120300218b0SPeter Chiu wf_dbdc_pins: wf-dbdc-pins { 121300218b0SPeter Chiu mux { 122300218b0SPeter Chiu function = "wifi"; 123300218b0SPeter Chiu groups = "wf_dbdc"; 124300218b0SPeter Chiu }; 125300218b0SPeter Chiu conf { 126300218b0SPeter Chiu pins = "WF0_HB1", "WF0_HB2", "WF0_HB3", "WF0_HB4", 127300218b0SPeter Chiu "WF0_HB0", "WF0_HB0_B", "WF0_HB5", "WF0_HB6", 128300218b0SPeter Chiu "WF0_HB7", "WF0_HB8", "WF0_HB9", "WF0_HB10", 129300218b0SPeter Chiu "WF0_TOP_CLK", "WF0_TOP_DATA"; 130300218b0SPeter Chiu drive-strength = <4>; 131300218b0SPeter Chiu }; 132300218b0SPeter Chiu }; 133300218b0SPeter Chiu}; 134965f2c04SSam Shih 135965f2c04SSam Shih&uart0 { 136965f2c04SSam Shih status = "okay"; 137965f2c04SSam Shih}; 138965f2c04SSam Shih 139965f2c04SSam Shih&wifi { 140965f2c04SSam Shih status = "okay"; 141965f2c04SSam Shih pinctrl-names = "default", "dbdc"; 142965f2c04SSam Shih pinctrl-0 = <&wf_2g_5g_pins>; 143965f2c04SSam Shih pinctrl-1 = <&wf_dbdc_pins>; 144965f2c04SSam Shih}; 145