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"; 12380d18fbSAngeloGioacchino Del Regno chassis-type = "embedded"; 1326589630SMatthias Brugger compatible = "mediatek,mt7986b-rfb", "mediatek,mt7986b"; 14f40c0f80SSam Shih 15f40c0f80SSam Shih aliases { 16f40c0f80SSam Shih serial0 = &uart0; 17f40c0f80SSam Shih }; 18f40c0f80SSam Shih 19f40c0f80SSam Shih chosen { 20f40c0f80SSam Shih stdout-path = "serial0:115200n8"; 21f40c0f80SSam Shih }; 22f40c0f80SSam Shih 23809967d7SSam Shih memory@40000000 { 24809967d7SSam Shih device_type = "memory"; 25f40c0f80SSam Shih reg = <0 0x40000000 0 0x40000000>; 26f40c0f80SSam Shih }; 27f40c0f80SSam Shih}; 28f40c0f80SSam Shih 29ecc5287cSSam Shih&crypto { 30ecc5287cSSam Shih status = "okay"; 31ecc5287cSSam Shih}; 32ecc5287cSSam Shih 33082ff36bSLorenzo Bianconið { 34082ff36bSLorenzo Bianconi status = "okay"; 35082ff36bSLorenzo Bianconi 36082ff36bSLorenzo Bianconi gmac0: mac@0 { 37082ff36bSLorenzo Bianconi compatible = "mediatek,eth-mac"; 38082ff36bSLorenzo Bianconi reg = <0>; 39082ff36bSLorenzo Bianconi phy-mode = "2500base-x"; 40082ff36bSLorenzo Bianconi 41082ff36bSLorenzo Bianconi fixed-link { 42082ff36bSLorenzo Bianconi speed = <2500>; 43082ff36bSLorenzo Bianconi full-duplex; 44082ff36bSLorenzo Bianconi pause; 45082ff36bSLorenzo Bianconi }; 46082ff36bSLorenzo Bianconi }; 47082ff36bSLorenzo Bianconi 48*43ec7fc9SArınç ÜNAL gmac1: mac@1 { 49*43ec7fc9SArınç ÜNAL compatible = "mediatek,eth-mac"; 50*43ec7fc9SArınç ÜNAL reg = <1>; 51*43ec7fc9SArınç ÜNAL phy-mode = "rgmii"; 52*43ec7fc9SArınç ÜNAL 53*43ec7fc9SArınç ÜNAL fixed-link { 54*43ec7fc9SArınç ÜNAL speed = <1000>; 55*43ec7fc9SArınç ÜNAL full-duplex; 56*43ec7fc9SArınç ÜNAL pause; 57*43ec7fc9SArınç ÜNAL }; 58*43ec7fc9SArınç ÜNAL }; 59*43ec7fc9SArınç ÜNAL 60082ff36bSLorenzo Bianconi mdio: mdio-bus { 61082ff36bSLorenzo Bianconi #address-cells = <1>; 62082ff36bSLorenzo Bianconi #size-cells = <0>; 63082ff36bSLorenzo Bianconi 64082ff36bSLorenzo Bianconi switch@0 { 65082ff36bSLorenzo Bianconi compatible = "mediatek,mt7531"; 66082ff36bSLorenzo Bianconi reg = <31>; 67082ff36bSLorenzo Bianconi reset-gpios = <&pio 5 0>; 68082ff36bSLorenzo Bianconi 69082ff36bSLorenzo Bianconi ports { 70082ff36bSLorenzo Bianconi #address-cells = <1>; 71082ff36bSLorenzo Bianconi #size-cells = <0>; 72082ff36bSLorenzo Bianconi 73082ff36bSLorenzo Bianconi port@0 { 74082ff36bSLorenzo Bianconi reg = <0>; 75082ff36bSLorenzo Bianconi label = "lan0"; 76082ff36bSLorenzo Bianconi }; 77082ff36bSLorenzo Bianconi 78082ff36bSLorenzo Bianconi port@1 { 79082ff36bSLorenzo Bianconi reg = <1>; 80082ff36bSLorenzo Bianconi label = "lan1"; 81082ff36bSLorenzo Bianconi }; 82082ff36bSLorenzo Bianconi 83082ff36bSLorenzo Bianconi port@2 { 84082ff36bSLorenzo Bianconi reg = <2>; 85082ff36bSLorenzo Bianconi label = "lan2"; 86082ff36bSLorenzo Bianconi }; 87082ff36bSLorenzo Bianconi 88082ff36bSLorenzo Bianconi port@3 { 89082ff36bSLorenzo Bianconi reg = <3>; 90082ff36bSLorenzo Bianconi label = "lan3"; 91082ff36bSLorenzo Bianconi }; 92082ff36bSLorenzo Bianconi 93082ff36bSLorenzo Bianconi port@4 { 94082ff36bSLorenzo Bianconi reg = <4>; 95082ff36bSLorenzo Bianconi label = "lan4"; 96082ff36bSLorenzo Bianconi }; 97082ff36bSLorenzo Bianconi 98*43ec7fc9SArınç ÜNAL port@5 { 99*43ec7fc9SArınç ÜNAL reg = <5>; 100*43ec7fc9SArınç ÜNAL ethernet = <&gmac1>; 101*43ec7fc9SArınç ÜNAL phy-mode = "rgmii"; 102*43ec7fc9SArınç ÜNAL 103*43ec7fc9SArınç ÜNAL fixed-link { 104*43ec7fc9SArınç ÜNAL speed = <1000>; 105*43ec7fc9SArınç ÜNAL full-duplex; 106*43ec7fc9SArınç ÜNAL pause; 107*43ec7fc9SArınç ÜNAL }; 108*43ec7fc9SArınç ÜNAL }; 109*43ec7fc9SArınç ÜNAL 110082ff36bSLorenzo Bianconi port@6 { 111082ff36bSLorenzo Bianconi reg = <6>; 112082ff36bSLorenzo Bianconi label = "cpu"; 113082ff36bSLorenzo Bianconi ethernet = <&gmac0>; 114082ff36bSLorenzo Bianconi phy-mode = "2500base-x"; 115082ff36bSLorenzo Bianconi 116082ff36bSLorenzo Bianconi fixed-link { 117082ff36bSLorenzo Bianconi speed = <2500>; 118082ff36bSLorenzo Bianconi full-duplex; 119082ff36bSLorenzo Bianconi pause; 120082ff36bSLorenzo Bianconi }; 121082ff36bSLorenzo Bianconi }; 122082ff36bSLorenzo Bianconi }; 123082ff36bSLorenzo Bianconi }; 124082ff36bSLorenzo Bianconi }; 125082ff36bSLorenzo Bianconi}; 126300218b0SPeter Chiu 127300218b0SPeter Chiu&pio { 128885e153eSSam Shih spi_flash_pins: spi-flash-pins { 129885e153eSSam Shih mux { 130885e153eSSam Shih function = "spi"; 131885e153eSSam Shih groups = "spi0", "spi0_wp_hold"; 132885e153eSSam Shih }; 133885e153eSSam Shih }; 134885e153eSSam Shih 135885e153eSSam Shih spic_pins: spic-pins { 136885e153eSSam Shih mux { 137885e153eSSam Shih function = "spi"; 138885e153eSSam Shih groups = "spi1_2"; 139885e153eSSam Shih }; 140885e153eSSam Shih }; 141885e153eSSam Shih 142300218b0SPeter Chiu wf_2g_5g_pins: wf-2g-5g-pins { 143300218b0SPeter Chiu mux { 144300218b0SPeter Chiu function = "wifi"; 145300218b0SPeter Chiu groups = "wf_2g", "wf_5g"; 146300218b0SPeter Chiu }; 147300218b0SPeter Chiu conf { 148300218b0SPeter Chiu pins = "WF0_HB1", "WF0_HB2", "WF0_HB3", "WF0_HB4", 149300218b0SPeter Chiu "WF0_HB0", "WF0_HB0_B", "WF0_HB5", "WF0_HB6", 150300218b0SPeter Chiu "WF0_HB7", "WF0_HB8", "WF0_HB9", "WF0_HB10", 151300218b0SPeter Chiu "WF0_TOP_CLK", "WF0_TOP_DATA", "WF1_HB1", 152300218b0SPeter Chiu "WF1_HB2", "WF1_HB3", "WF1_HB4", "WF1_HB0", 153300218b0SPeter Chiu "WF1_HB5", "WF1_HB6", "WF1_HB7", "WF1_HB8", 154300218b0SPeter Chiu "WF1_TOP_CLK", "WF1_TOP_DATA"; 155300218b0SPeter Chiu drive-strength = <4>; 156300218b0SPeter Chiu }; 157300218b0SPeter Chiu }; 158300218b0SPeter Chiu 159300218b0SPeter Chiu wf_dbdc_pins: wf-dbdc-pins { 160300218b0SPeter Chiu mux { 161300218b0SPeter Chiu function = "wifi"; 162300218b0SPeter Chiu groups = "wf_dbdc"; 163300218b0SPeter Chiu }; 164300218b0SPeter Chiu conf { 165300218b0SPeter Chiu pins = "WF0_HB1", "WF0_HB2", "WF0_HB3", "WF0_HB4", 166300218b0SPeter Chiu "WF0_HB0", "WF0_HB0_B", "WF0_HB5", "WF0_HB6", 167300218b0SPeter Chiu "WF0_HB7", "WF0_HB8", "WF0_HB9", "WF0_HB10", 168300218b0SPeter Chiu "WF0_TOP_CLK", "WF0_TOP_DATA"; 169300218b0SPeter Chiu drive-strength = <4>; 170300218b0SPeter Chiu }; 171300218b0SPeter Chiu }; 172300218b0SPeter Chiu}; 173965f2c04SSam Shih 174885e153eSSam Shih&spi0 { 175885e153eSSam Shih pinctrl-names = "default"; 176885e153eSSam Shih pinctrl-0 = <&spi_flash_pins>; 177885e153eSSam Shih cs-gpios = <0>, <0>; 178885e153eSSam Shih status = "okay"; 179bbe266c7SRafał Miłecki 180bbe266c7SRafał Miłecki spi_nand: flash@0 { 181885e153eSSam Shih compatible = "spi-nand"; 182885e153eSSam Shih reg = <0>; 183885e153eSSam Shih spi-max-frequency = <10000000>; 1844e7dc18aSRafał Miłecki spi-tx-bus-width = <4>; 1854e7dc18aSRafał Miłecki spi-rx-bus-width = <4>; 186885e153eSSam Shih }; 187885e153eSSam Shih}; 188885e153eSSam Shih 189885e153eSSam Shih&spi1 { 190885e153eSSam Shih pinctrl-names = "default"; 191885e153eSSam Shih pinctrl-0 = <&spic_pins>; 192885e153eSSam Shih cs-gpios = <0>, <0>; 193885e153eSSam Shih status = "okay"; 194885e153eSSam Shih}; 195885e153eSSam Shih 196e21cbfc3SSam Shih&ssusb { 197e21cbfc3SSam Shih status = "okay"; 198e21cbfc3SSam Shih}; 199e21cbfc3SSam Shih 200965f2c04SSam Shih&uart0 { 201965f2c04SSam Shih status = "okay"; 202965f2c04SSam Shih}; 203965f2c04SSam Shih 204e21cbfc3SSam Shih&usb_phy { 205e21cbfc3SSam Shih status = "okay"; 206e21cbfc3SSam Shih}; 207e21cbfc3SSam Shih 208965f2c04SSam Shih&wifi { 209965f2c04SSam Shih status = "okay"; 210965f2c04SSam Shih pinctrl-names = "default", "dbdc"; 211965f2c04SSam Shih pinctrl-0 = <&wf_2g_5g_pins>; 212965f2c04SSam Shih pinctrl-1 = <&wf_dbdc_pins>; 213965f2c04SSam Shih}; 214