developer | 565bacb | 2021-09-28 21:26:32 +0800 | [diff] [blame] | 1 | /dts-v1/; |
| 2 | #include "mt7986a.dtsi" |
| 3 | #include "mt7986a-pinctrl.dtsi" |
| 4 | #include "mt7986-spim-nand-partition.dtsi" |
| 5 | / { |
| 6 | model = "MediaTek MT7986a RFB"; |
| 7 | compatible = "mediatek,mt7986a-spim-snand-rfb"; |
| 8 | chosen { |
| 9 | bootargs = "console=ttyS0,115200n1 loglevel=8 \ |
| 10 | earlycon=uart8250,mmio32,0x11002000"; |
| 11 | }; |
| 12 | |
| 13 | memory { |
| 14 | reg = <0 0x40000000 0 0x10000000>; |
| 15 | }; |
| 16 | |
developer | be797a3 | 2021-12-16 16:56:09 +0800 | [diff] [blame] | 17 | sound_wm8960 { |
| 18 | compatible = "mediatek,mt79xx-wm8960-machine"; |
developer | 565bacb | 2021-09-28 21:26:32 +0800 | [diff] [blame] | 19 | mediatek,platform = <&afe>; |
| 20 | audio-routing = "Headphone", "HP_L", |
| 21 | "Headphone", "HP_R", |
| 22 | "LINPUT1", "AMIC", |
| 23 | "RINPUT1", "AMIC"; |
| 24 | mediatek,audio-codec = <&wm8960>; |
| 25 | status = "okay"; |
| 26 | }; |
developer | be797a3 | 2021-12-16 16:56:09 +0800 | [diff] [blame] | 27 | |
| 28 | sound_si3218x { |
| 29 | compatible = "mediatek,mt79xx-si3218x-machine"; |
| 30 | mediatek,platform = <&afe>; |
| 31 | mediatek,ext-codec = <&proslic_spi>; |
| 32 | status = "okay"; |
| 33 | }; |
developer | 565bacb | 2021-09-28 21:26:32 +0800 | [diff] [blame] | 34 | }; |
| 35 | |
| 36 | &pwm { |
| 37 | pinctrl-names = "default"; |
| 38 | pinctrl-0 = <&pwm0_pin &pwm1_pin_g1>; |
| 39 | status = "okay"; |
| 40 | }; |
| 41 | |
| 42 | &uart0 { |
| 43 | status = "okay"; |
| 44 | }; |
| 45 | |
| 46 | &uart1 { |
| 47 | pinctrl-names = "default"; |
| 48 | pinctrl-0 = <&uart1_pins>; |
| 49 | status = "okay"; |
| 50 | }; |
| 51 | |
| 52 | &uart2 { |
| 53 | pinctrl-names = "default"; |
| 54 | pinctrl-0 = <&uart2_pins>; |
| 55 | status = "okay"; |
| 56 | }; |
| 57 | |
| 58 | &i2c0 { |
| 59 | pinctrl-names = "default"; |
| 60 | pinctrl-0 = <&i2c_pins>; |
| 61 | status = "okay"; |
| 62 | |
| 63 | wm8960: wm8960@1a { |
| 64 | compatible = "wlf,wm8960"; |
| 65 | reg = <0x1a>; |
| 66 | }; |
| 67 | }; |
| 68 | |
| 69 | &auxadc { |
| 70 | status = "okay"; |
| 71 | }; |
| 72 | |
| 73 | &watchdog { |
| 74 | status = "okay"; |
| 75 | }; |
| 76 | |
| 77 | ð { |
| 78 | status = "okay"; |
| 79 | |
| 80 | gmac0: mac@0 { |
| 81 | compatible = "mediatek,eth-mac"; |
| 82 | reg = <0>; |
| 83 | phy-mode = "2500base-x"; |
| 84 | |
| 85 | fixed-link { |
| 86 | speed = <2500>; |
| 87 | full-duplex; |
| 88 | pause; |
| 89 | }; |
| 90 | }; |
| 91 | |
| 92 | gmac1: mac@1 { |
| 93 | compatible = "mediatek,eth-mac"; |
| 94 | reg = <1>; |
| 95 | phy-mode = "2500base-x"; |
| 96 | |
| 97 | fixed-link { |
| 98 | speed = <2500>; |
| 99 | full-duplex; |
| 100 | pause; |
| 101 | }; |
| 102 | }; |
| 103 | |
| 104 | mdio: mdio-bus { |
| 105 | #address-cells = <1>; |
| 106 | #size-cells = <0>; |
| 107 | |
| 108 | phy5: phy@5 { |
| 109 | compatible = "ethernet-phy-id67c9.de0a"; |
| 110 | reg = <5>; |
| 111 | reset-gpios = <&pio 6 1>; |
developer | 8c5a08b | 2022-05-06 09:10:38 +0800 | [diff] [blame] | 112 | reset-assert-us = <600>; |
developer | 565bacb | 2021-09-28 21:26:32 +0800 | [diff] [blame] | 113 | reset-deassert-us = <20000>; |
| 114 | phy-mode = "2500base-x"; |
| 115 | }; |
| 116 | |
| 117 | phy6: phy@6 { |
| 118 | compatible = "ethernet-phy-id67c9.de0a"; |
| 119 | reg = <6>; |
| 120 | phy-mode = "2500base-x"; |
| 121 | }; |
| 122 | |
| 123 | switch@0 { |
| 124 | compatible = "mediatek,mt7531"; |
| 125 | reg = <31>; |
| 126 | reset-gpios = <&pio 5 0>; |
| 127 | |
| 128 | ports { |
| 129 | #address-cells = <1>; |
| 130 | #size-cells = <0>; |
| 131 | |
| 132 | port@0 { |
| 133 | reg = <0>; |
| 134 | label = "lan0"; |
| 135 | }; |
| 136 | |
| 137 | port@1 { |
| 138 | reg = <1>; |
| 139 | label = "lan1"; |
| 140 | }; |
| 141 | |
| 142 | port@2 { |
| 143 | reg = <2>; |
| 144 | label = "lan2"; |
| 145 | }; |
| 146 | |
| 147 | port@3 { |
| 148 | reg = <3>; |
| 149 | label = "lan3"; |
| 150 | }; |
| 151 | |
| 152 | port@6 { |
| 153 | reg = <6>; |
| 154 | label = "cpu"; |
| 155 | ethernet = <&gmac0>; |
| 156 | phy-mode = "2500base-x"; |
| 157 | |
| 158 | fixed-link { |
| 159 | speed = <2500>; |
| 160 | full-duplex; |
| 161 | pause; |
| 162 | }; |
| 163 | }; |
| 164 | }; |
| 165 | }; |
| 166 | }; |
| 167 | }; |
| 168 | |
| 169 | &hnat { |
| 170 | mtketh-wan = "eth1"; |
| 171 | mtketh-lan = "lan"; |
| 172 | mtketh-max-gmac = <2>; |
| 173 | status = "okay"; |
| 174 | }; |
| 175 | |
| 176 | &spi0 { |
| 177 | pinctrl-names = "default"; |
| 178 | pinctrl-0 = <&spi_flash_pins>; |
| 179 | cs-gpios = <0>, <0>; |
| 180 | status = "okay"; |
| 181 | |
| 182 | spi_nor@0 { |
| 183 | #address-cells = <1>; |
| 184 | #size-cells = <1>; |
| 185 | compatible = "jedec,spi-nor"; |
| 186 | reg = <0>; |
developer | b9b1ffc | 2021-12-16 14:19:08 +0800 | [diff] [blame] | 187 | spi-max-frequency = <52000000>; |
developer | 565bacb | 2021-09-28 21:26:32 +0800 | [diff] [blame] | 188 | spi-tx-buswidth = <4>; |
| 189 | spi-rx-buswidth = <4>; |
| 190 | }; |
| 191 | |
| 192 | spi_nand: spi_nand@1 { |
| 193 | #address-cells = <1>; |
| 194 | #size-cells = <1>; |
| 195 | compatible = "spi-nand"; |
| 196 | reg = <1>; |
developer | b9b1ffc | 2021-12-16 14:19:08 +0800 | [diff] [blame] | 197 | spi-max-frequency = <52000000>; |
developer | 565bacb | 2021-09-28 21:26:32 +0800 | [diff] [blame] | 198 | spi-tx-buswidth = <4>; |
| 199 | spi-rx-buswidth = <4>; |
| 200 | }; |
| 201 | }; |
| 202 | |
| 203 | &spi1 { |
| 204 | pinctrl-names = "default"; |
| 205 | pinctrl-0 = <&spic_pins_g2>; |
| 206 | status = "okay"; |
developer | be797a3 | 2021-12-16 16:56:09 +0800 | [diff] [blame] | 207 | |
| 208 | proslic_spi: proslic_spi@0 { |
| 209 | compatible = "silabs,proslic_spi"; |
| 210 | reg = <0>; |
| 211 | spi-max-frequency = <10000000>; |
| 212 | spi-cpha = <1>; |
| 213 | spi-cpol = <1>; |
| 214 | channel_count = <1>; |
| 215 | debug_level = <4>; /* 1 = TRC, 2 = DBG, 4 = ERR */ |
| 216 | reset_gpio = <&pio 7 0>; |
| 217 | ig,enable-spi = <1>; /* 1: Enable, 0: Disable */ |
| 218 | }; |
developer | 565bacb | 2021-09-28 21:26:32 +0800 | [diff] [blame] | 219 | }; |
| 220 | |
| 221 | &pcie0 { |
| 222 | pinctrl-names = "default"; |
| 223 | pinctrl-0 = <&pcie0_pins>; |
| 224 | status = "okay"; |
| 225 | }; |
| 226 | |
| 227 | &wbsys { |
| 228 | mediatek,mtd-eeprom = <&factory 0x0000>; |
| 229 | status = "okay"; |
developer | e138bcd | 2021-12-06 09:20:47 +0800 | [diff] [blame] | 230 | pinctrl-names = "default", "dbdc"; |
| 231 | pinctrl-0 = <&wf_2g_5g_pins>; |
| 232 | pinctrl-1 = <&wf_dbdc_pins>; |
developer | 565bacb | 2021-09-28 21:26:32 +0800 | [diff] [blame] | 233 | }; |
| 234 | |
| 235 | &pio { |
| 236 | spi_flash_pins: spi-flash-pins-33-to-38 { |
| 237 | mux { |
| 238 | function = "flash"; |
| 239 | groups = "spi0", "spi0_wp_hold"; |
| 240 | }; |
| 241 | conf-pu { |
| 242 | pins = "SPI2_CS", "SPI2_HOLD", "SPI2_WP"; |
| 243 | drive-strength = <MTK_DRIVE_8mA>; |
| 244 | mediatek,pull-up-adv = <0>; /* bias-disable */ |
| 245 | }; |
| 246 | conf-pd { |
| 247 | pins = "SPI2_CLK", "SPI2_MOSI", "SPI2_MISO"; |
| 248 | drive-strength = <MTK_DRIVE_8mA>; |
| 249 | mediatek,pull-down-adv = <0>; /* bias-disable */ |
| 250 | }; |
| 251 | }; |
developer | e138bcd | 2021-12-06 09:20:47 +0800 | [diff] [blame] | 252 | |
| 253 | wf_2g_5g_pins: wf_2g_5g-pins { |
| 254 | mux { |
| 255 | function = "wifi"; |
| 256 | groups = "wf_2g", "wf_5g"; |
| 257 | }; |
| 258 | conf { |
| 259 | pins = "WF0_HB1", "WF0_HB2", "WF0_HB3", "WF0_HB4", |
| 260 | "WF0_HB0", "WF0_HB0_B", "WF0_HB5", "WF0_HB6", |
| 261 | "WF0_HB7", "WF0_HB8", "WF0_HB9", "WF0_HB10", |
| 262 | "WF0_TOP_CLK", "WF0_TOP_DATA", "WF1_HB1", |
| 263 | "WF1_HB2", "WF1_HB3", "WF1_HB4", "WF1_HB0", |
| 264 | "WF1_HB5", "WF1_HB6", "WF1_HB7", "WF1_HB8", |
| 265 | "WF1_TOP_CLK", "WF1_TOP_DATA"; |
| 266 | drive-strength = <MTK_DRIVE_4mA>; |
| 267 | }; |
| 268 | }; |
| 269 | |
| 270 | wf_dbdc_pins: wf_dbdc-pins { |
| 271 | mux { |
| 272 | function = "wifi"; |
| 273 | groups = "wf_dbdc"; |
| 274 | }; |
| 275 | conf { |
| 276 | pins = "WF0_HB1", "WF0_HB2", "WF0_HB3", "WF0_HB4", |
| 277 | "WF0_HB0", "WF0_HB0_B", "WF0_HB5", "WF0_HB6", |
| 278 | "WF0_HB7", "WF0_HB8", "WF0_HB9", "WF0_HB10", |
| 279 | "WF0_TOP_CLK", "WF0_TOP_DATA", "WF1_HB1", |
| 280 | "WF1_HB2", "WF1_HB3", "WF1_HB4", "WF1_HB0", |
| 281 | "WF1_HB5", "WF1_HB6", "WF1_HB7", "WF1_HB8", |
| 282 | "WF1_TOP_CLK", "WF1_TOP_DATA"; |
| 283 | drive-strength = <MTK_DRIVE_4mA>; |
| 284 | }; |
| 285 | }; |
developer | 565bacb | 2021-09-28 21:26:32 +0800 | [diff] [blame] | 286 | }; |