Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | // SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
| 2 | /* |
| 3 | * Copyright 2023 Logic PD, Inc dba Beacon EmbeddedWorks |
| 4 | */ |
| 5 | |
| 6 | /dts-v1/; |
| 7 | |
| 8 | #include <dt-bindings/usb/pd.h> |
| 9 | #include <dt-bindings/phy/phy-imx8-pcie.h> |
| 10 | #include "imx8mp.dtsi" |
| 11 | #include "imx8mp-beacon-som.dtsi" |
| 12 | |
| 13 | / { |
| 14 | model = "Beacon EmbeddedWorks i.MX8MPlus Development kit"; |
| 15 | compatible = "beacon,imx8mp-beacon-kit", "fsl,imx8mp"; |
| 16 | |
| 17 | aliases { |
| 18 | ethernet0 = &eqos; |
| 19 | ethernet1 = &fec; |
| 20 | }; |
| 21 | |
| 22 | chosen { |
| 23 | stdout-path = &uart2; |
| 24 | }; |
| 25 | |
| 26 | clk_xtal25: clock-xtal25 { |
| 27 | compatible = "fixed-clock"; |
| 28 | #clock-cells = <0>; |
| 29 | clock-frequency = <25000000>; |
| 30 | }; |
| 31 | |
| 32 | connector { |
| 33 | compatible = "usb-c-connector"; |
| 34 | label = "USB-C"; |
| 35 | data-role = "dual"; |
| 36 | |
| 37 | ports { |
| 38 | #address-cells = <1>; |
| 39 | #size-cells = <0>; |
| 40 | |
| 41 | port@0 { |
| 42 | reg = <0>; |
| 43 | |
| 44 | hs_ep: endpoint { |
| 45 | remote-endpoint = <&usb3_hs_ep>; |
| 46 | }; |
| 47 | }; |
| 48 | port@1 { |
| 49 | reg = <1>; |
| 50 | |
| 51 | ss_ep: endpoint { |
| 52 | remote-endpoint = <&hd3ss3220_in_ep>; |
| 53 | }; |
| 54 | }; |
| 55 | }; |
| 56 | }; |
| 57 | |
| 58 | dmic_codec: dmic-codec { |
| 59 | compatible = "dmic-codec"; |
| 60 | num-channels = <1>; |
| 61 | #sound-dai-cells = <0>; |
| 62 | }; |
| 63 | |
| 64 | gpio-keys { |
| 65 | compatible = "gpio-keys"; |
| 66 | autorepeat; |
| 67 | |
| 68 | button-0 { |
| 69 | label = "btn0"; |
| 70 | linux,code = <BTN_0>; |
| 71 | gpios = <&pca6416_1 12 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; |
| 72 | wakeup-source; |
| 73 | }; |
| 74 | |
| 75 | button-1 { |
| 76 | label = "btn1"; |
| 77 | linux,code = <BTN_1>; |
| 78 | gpios = <&pca6416_1 13 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; |
| 79 | wakeup-source; |
| 80 | }; |
| 81 | |
| 82 | button-2 { |
| 83 | label = "btn2"; |
| 84 | linux,code = <BTN_2>; |
| 85 | gpios = <&pca6416_1 14 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; |
| 86 | wakeup-source; |
| 87 | }; |
| 88 | |
| 89 | button-3 { |
| 90 | label = "btn3"; |
| 91 | linux,code = <BTN_3>; |
| 92 | gpios = <&pca6416_1 15 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; |
| 93 | wakeup-source; |
| 94 | }; |
| 95 | }; |
| 96 | |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 97 | bridge-connector { |
| 98 | compatible = "hdmi-connector"; |
| 99 | type = "a"; |
| 100 | |
| 101 | port { |
| 102 | hdmi_con: endpoint { |
| 103 | remote-endpoint = <&adv7535_out>; |
| 104 | }; |
| 105 | }; |
| 106 | }; |
| 107 | |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 108 | leds { |
| 109 | compatible = "gpio-leds"; |
| 110 | pinctrl-names = "default"; |
| 111 | pinctrl-0 = <&pinctrl_led3>; |
| 112 | |
| 113 | led-0 { |
| 114 | label = "gen_led0"; |
| 115 | gpios = <&pca6416_1 4 GPIO_ACTIVE_HIGH>; |
| 116 | default-state = "off"; |
| 117 | }; |
| 118 | |
| 119 | led-1 { |
| 120 | label = "gen_led1"; |
| 121 | gpios = <&pca6416_1 5 GPIO_ACTIVE_HIGH>; |
| 122 | default-state = "off"; |
| 123 | }; |
| 124 | |
| 125 | led-2 { |
| 126 | label = "gen_led2"; |
| 127 | gpios = <&pca6416_1 6 GPIO_ACTIVE_HIGH>; |
| 128 | default-state = "off"; |
| 129 | }; |
| 130 | |
| 131 | led-3 { |
| 132 | label = "heartbeat"; |
| 133 | gpios = <&gpio4 28 GPIO_ACTIVE_HIGH>; |
| 134 | linux,default-trigger = "heartbeat"; |
| 135 | }; |
| 136 | }; |
| 137 | |
| 138 | reg_audio: regulator-wm8962 { |
| 139 | compatible = "regulator-fixed"; |
| 140 | regulator-name = "3v3_aud"; |
| 141 | regulator-min-microvolt = <3300000>; |
| 142 | regulator-max-microvolt = <3300000>; |
| 143 | gpio = <&pca6416_1 11 GPIO_ACTIVE_HIGH>; |
| 144 | enable-active-high; |
| 145 | }; |
| 146 | |
| 147 | reg_usdhc2_vmmc: regulator-usdhc2 { |
| 148 | compatible = "regulator-fixed"; |
| 149 | regulator-name = "VSD_3V3"; |
| 150 | regulator-min-microvolt = <3300000>; |
| 151 | regulator-max-microvolt = <3300000>; |
| 152 | gpio = <&gpio2 19 GPIO_ACTIVE_HIGH>; |
| 153 | enable-active-high; |
| 154 | startup-delay-us = <100>; |
| 155 | off-on-delay-us = <20000>; |
| 156 | }; |
| 157 | |
| 158 | reg_usb1_host_vbus: regulator-usb1-vbus { |
| 159 | compatible = "regulator-fixed"; |
| 160 | regulator-name = "usb1_host_vbus"; |
| 161 | regulator-max-microvolt = <5000000>; |
| 162 | regulator-min-microvolt = <5000000>; |
| 163 | gpio = <&pca6416_1 0 GPIO_ACTIVE_HIGH>; |
| 164 | enable-active-high; |
| 165 | }; |
| 166 | |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 167 | sound-adv7535 { |
| 168 | compatible = "simple-audio-card"; |
| 169 | simple-audio-card,name = "sound-adv7535"; |
| 170 | simple-audio-card,format = "i2s"; |
| 171 | |
| 172 | simple-audio-card,cpu { |
| 173 | sound-dai = <&sai5>; |
| 174 | system-clock-direction-out; |
| 175 | }; |
| 176 | |
| 177 | simple-audio-card,codec { |
| 178 | sound-dai = <&adv_bridge>; |
| 179 | }; |
| 180 | }; |
| 181 | |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 182 | sound-dmic { |
| 183 | compatible = "simple-audio-card"; |
| 184 | simple-audio-card,name = "sound-pdm"; |
| 185 | simple-audio-card,format = "i2s"; |
| 186 | simple-audio-card,bitclock-master = <&dailink_master>; |
| 187 | simple-audio-card,frame-master = <&dailink_master>; |
| 188 | |
| 189 | dailink_master: simple-audio-card,cpu { |
| 190 | sound-dai = <&micfil>; |
| 191 | }; |
| 192 | |
| 193 | simple-audio-card,codec { |
| 194 | sound-dai = <&dmic_codec>; |
| 195 | }; |
| 196 | }; |
| 197 | |
| 198 | sound-wm8962 { |
| 199 | compatible = "simple-audio-card"; |
| 200 | simple-audio-card,name = "wm8962"; |
| 201 | simple-audio-card,format = "i2s"; |
| 202 | simple-audio-card,widgets = "Headphone", "Headphones", |
| 203 | "Microphone", "Headset Mic", |
| 204 | "Speaker", "Speaker"; |
| 205 | simple-audio-card,routing = "Headphones", "HPOUTL", |
| 206 | "Headphones", "HPOUTR", |
| 207 | "Speaker", "SPKOUTL", |
| 208 | "Speaker", "SPKOUTR", |
| 209 | "Headset Mic", "MICBIAS", |
| 210 | "IN3R", "Headset Mic"; |
| 211 | |
| 212 | simple-audio-card,cpu { |
| 213 | sound-dai = <&sai3>; |
| 214 | }; |
| 215 | |
| 216 | simple-audio-card,codec { |
| 217 | sound-dai = <&wm8962>; |
| 218 | clocks = <&clk IMX8MP_CLK_IPP_DO_CLKO1>; |
| 219 | frame-master; |
| 220 | bitclock-master; |
| 221 | }; |
| 222 | }; |
| 223 | }; |
| 224 | |
| 225 | &audio_blk_ctrl { |
| 226 | assigned-clocks = <&clk IMX8MP_AUDIO_PLL1>, <&clk IMX8MP_AUDIO_PLL2>; |
| 227 | assigned-clock-rates = <393216000>, <135475200>; |
| 228 | }; |
| 229 | |
| 230 | &ecspi2 { |
| 231 | pinctrl-names = "default"; |
| 232 | pinctrl-0 = <&pinctrl_ecspi2>; |
| 233 | cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>; |
| 234 | status = "okay"; |
| 235 | |
| 236 | tpm: tpm@0 { |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 237 | compatible = "infineon,slb9670", "tcg,tpm_tis-spi"; |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 238 | reg = <0>; |
| 239 | pinctrl-names = "default"; |
| 240 | pinctrl-0 = <&pinctrl_tpm>; |
| 241 | reset-gpios = <&gpio4 0 GPIO_ACTIVE_LOW>; |
| 242 | spi-max-frequency = <18500000>; |
| 243 | }; |
| 244 | }; |
| 245 | |
| 246 | &fec { |
| 247 | pinctrl-names = "default"; |
| 248 | pinctrl-0 = <&pinctrl_fec>; |
| 249 | phy-mode = "rgmii-id"; |
| 250 | phy-handle = <ðphy1>; |
| 251 | fsl,magic-packet; |
| 252 | status = "okay"; |
| 253 | |
| 254 | mdio { |
| 255 | #address-cells = <1>; |
| 256 | #size-cells = <0>; |
| 257 | |
| 258 | ethphy1: ethernet-phy@3 { |
| 259 | compatible = "ethernet-phy-id0022.1640", |
| 260 | "ethernet-phy-ieee802.3-c22"; |
| 261 | reg = <3>; |
| 262 | reset-gpios = <&gpio4 18 GPIO_ACTIVE_LOW>; |
| 263 | reset-assert-us = <10000>; |
| 264 | reset-deassert-us = <150000>; |
| 265 | interrupt-parent = <&gpio4>; |
| 266 | interrupts = <2 IRQ_TYPE_LEVEL_LOW>; |
| 267 | }; |
| 268 | }; |
| 269 | }; |
| 270 | |
| 271 | &flexcan1 { |
| 272 | pinctrl-names = "default"; |
| 273 | pinctrl-0 = <&pinctrl_flexcan1>; |
| 274 | status = "okay"; |
| 275 | }; |
| 276 | |
| 277 | &gpio2 { |
| 278 | usb-mux-hog { |
| 279 | gpio-hog; |
| 280 | gpios = <20 0>; |
| 281 | output-low; |
| 282 | line-name = "USB-C Mux En"; |
| 283 | }; |
| 284 | }; |
| 285 | |
| 286 | &i2c2 { |
| 287 | clock-frequency = <384000>; |
| 288 | pinctrl-names = "default"; |
| 289 | pinctrl-0 = <&pinctrl_i2c2>; |
| 290 | status = "okay"; |
| 291 | |
| 292 | pca6416_3: gpio@20 { |
| 293 | compatible = "nxp,pcal6416"; |
| 294 | reg = <0x20>; |
| 295 | gpio-controller; |
| 296 | #gpio-cells = <2>; |
| 297 | interrupt-parent = <&gpio4>; |
| 298 | interrupts = <27 IRQ_TYPE_EDGE_FALLING>; |
| 299 | interrupt-controller; |
| 300 | #interrupt-cells = <2>; |
| 301 | }; |
| 302 | |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 303 | adv_bridge: hdmi@3d { |
| 304 | compatible = "adi,adv7535"; |
| 305 | reg = <0x3d>, <0x3c>, <0x3e>, <0x3f>; |
| 306 | reg-names = "main", "cec", "edid", "packet"; |
| 307 | adi,dsi-lanes = <4>; |
| 308 | #sound-dai-cells = <0>; |
| 309 | |
| 310 | ports { |
| 311 | #address-cells = <1>; |
| 312 | #size-cells = <0>; |
| 313 | |
| 314 | port@0 { |
| 315 | reg = <0>; |
| 316 | |
| 317 | adv7535_in: endpoint { |
| 318 | remote-endpoint = <&dsi_out>; |
| 319 | }; |
| 320 | }; |
| 321 | |
| 322 | port@1 { |
| 323 | reg = <1>; |
| 324 | |
| 325 | adv7535_out: endpoint { |
| 326 | remote-endpoint = <&hdmi_con>; |
| 327 | }; |
| 328 | }; |
| 329 | }; |
| 330 | }; |
| 331 | |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 332 | pcieclk: clock-generator@68 { |
| 333 | compatible = "renesas,9fgv0241"; |
| 334 | reg = <0x68>; |
| 335 | clocks = <&clk_xtal25>; |
| 336 | #clock-cells = <1>; |
| 337 | }; |
| 338 | }; |
| 339 | |
| 340 | &i2c3 { |
| 341 | /* Connected to USB Hub */ |
| 342 | usb-typec@52 { |
| 343 | compatible = "nxp,ptn5110"; |
| 344 | reg = <0x52>; |
| 345 | pinctrl-names = "default"; |
| 346 | pinctrl-0 = <&pinctrl_typec>; |
| 347 | interrupt-parent = <&gpio4>; |
| 348 | interrupts = <1 IRQ_TYPE_LEVEL_LOW>; |
| 349 | |
| 350 | connector { |
| 351 | compatible = "usb-c-connector"; |
| 352 | label = "USB-C"; |
| 353 | power-role = "source"; |
| 354 | data-role = "host"; |
| 355 | source-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>; |
| 356 | }; |
| 357 | }; |
| 358 | }; |
| 359 | |
| 360 | &i2c4 { |
| 361 | pinctrl-names = "default"; |
| 362 | pinctrl-0 = <&pinctrl_i2c4>; |
| 363 | clock-frequency = <384000>; |
| 364 | status = "okay"; |
| 365 | |
| 366 | wm8962: audio-codec@1a { |
| 367 | compatible = "wlf,wm8962"; |
| 368 | reg = <0x1a>; |
| 369 | pinctrl-names = "default"; |
| 370 | pinctrl-0 = <&pinctrl_wm8962>; |
| 371 | clocks = <&clk IMX8MP_CLK_IPP_DO_CLKO1>; |
| 372 | assigned-clocks = <&clk IMX8MP_CLK_IPP_DO_CLKO1>; |
| 373 | assigned-clock-parents = <&clk IMX8MP_AUDIO_PLL2_OUT>; |
| 374 | assigned-clock-rates = <22576000>; |
| 375 | DCVDD-supply = <®_audio>; |
| 376 | DBVDD-supply = <®_audio>; |
| 377 | AVDD-supply = <®_audio>; |
| 378 | CPVDD-supply = <®_audio>; |
| 379 | MICVDD-supply = <®_audio>; |
| 380 | PLLVDD-supply = <®_audio>; |
| 381 | SPKVDD1-supply = <®_audio>; |
| 382 | SPKVDD2-supply = <®_audio>; |
| 383 | gpio-cfg = < |
| 384 | 0x0000 /* 0:Default */ |
| 385 | 0x0000 /* 1:Default */ |
| 386 | 0x0000 /* 2:FN_DMICCLK */ |
| 387 | 0x0000 /* 3:Default */ |
| 388 | 0x0000 /* 4:FN_DMICCDAT */ |
| 389 | 0x0000 /* 5:Default */ |
| 390 | >; |
| 391 | #sound-dai-cells = <0>; |
| 392 | }; |
| 393 | |
| 394 | pca6416: gpio@20 { |
| 395 | compatible = "nxp,pcal6416"; |
| 396 | reg = <0x20>; |
| 397 | pinctrl-names = "default"; |
| 398 | pinctrl-0 = <&pinctrl_pcal6414>; |
| 399 | gpio-controller; |
| 400 | #gpio-cells = <2>; |
| 401 | interrupt-parent = <&gpio4>; |
| 402 | interrupts = <27 IRQ_TYPE_EDGE_FALLING>; |
| 403 | interrupt-controller; |
| 404 | #interrupt-cells = <2>; |
| 405 | }; |
| 406 | |
| 407 | pca6416_1: gpio@21 { |
| 408 | compatible = "nxp,pcal6416"; |
| 409 | reg = <0x21>; |
| 410 | gpio-controller; |
| 411 | #gpio-cells = <2>; |
| 412 | interrupt-parent = <&gpio4>; |
| 413 | interrupts = <27 IRQ_TYPE_EDGE_FALLING>; |
| 414 | interrupt-controller; |
| 415 | #interrupt-cells = <2>; |
| 416 | |
| 417 | usb-hub-hog { |
| 418 | gpio-hog; |
| 419 | gpios = <7 0>; |
| 420 | output-low; |
| 421 | line-name = "USB Hub Enable"; |
| 422 | }; |
| 423 | }; |
| 424 | |
| 425 | usb-typec@47 { |
| 426 | compatible = "ti,hd3ss3220"; |
| 427 | reg = <0x47>; |
| 428 | pinctrl-names = "default"; |
| 429 | pinctrl-0 = <&pinctrl_hd3ss3220>; |
| 430 | interrupt-parent = <&gpio4>; |
| 431 | interrupts = <19 IRQ_TYPE_LEVEL_LOW>; |
| 432 | |
| 433 | ports { |
| 434 | #address-cells = <1>; |
| 435 | #size-cells = <0>; |
| 436 | |
| 437 | port@0 { |
| 438 | reg = <0>; |
| 439 | |
| 440 | hd3ss3220_in_ep: endpoint { |
| 441 | remote-endpoint = <&ss_ep>; |
| 442 | }; |
| 443 | }; |
| 444 | |
| 445 | port@1 { |
| 446 | reg = <1>; |
| 447 | |
| 448 | hd3ss3220_out_ep: endpoint { |
| 449 | remote-endpoint = <&usb3_role_switch>; |
| 450 | }; |
| 451 | }; |
| 452 | }; |
| 453 | }; |
| 454 | }; |
| 455 | |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 456 | &lcdif1 { |
| 457 | status = "okay"; |
| 458 | }; |
| 459 | |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 460 | &micfil { |
| 461 | pinctrl-names = "default"; |
| 462 | pinctrl-0 = <&pinctrl_pdm>; |
| 463 | assigned-clocks = <&clk IMX8MP_CLK_PDM>; |
| 464 | assigned-clock-parents = <&clk IMX8MP_AUDIO_PLL1_OUT>; |
| 465 | assigned-clock-rates = <49152000>; |
| 466 | status = "okay"; |
| 467 | }; |
| 468 | |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 469 | &mipi_dsi { |
| 470 | samsung,esc-clock-frequency = <10000000>; |
| 471 | status = "okay"; |
| 472 | |
| 473 | ports { |
| 474 | port@1 { |
| 475 | reg = <1>; |
| 476 | |
| 477 | dsi_out: endpoint { |
| 478 | remote-endpoint = <&adv7535_in>; |
| 479 | }; |
| 480 | }; |
| 481 | }; |
| 482 | }; |
| 483 | |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 484 | &pcie { |
| 485 | pinctrl-names = "default"; |
| 486 | pinctrl-0 = <&pinctrl_pcie>; |
| 487 | reset-gpio = <&gpio4 21 GPIO_ACTIVE_LOW>; |
| 488 | status = "okay"; |
| 489 | }; |
| 490 | |
| 491 | &pcie_phy { |
| 492 | fsl,clkreq-unsupported; |
| 493 | fsl,refclk-pad-mode = <IMX8_PCIE_REFCLK_PAD_INPUT>; |
| 494 | clocks = <&pcieclk 1>; |
| 495 | clock-names = "ref"; |
| 496 | status = "okay"; |
| 497 | }; |
| 498 | |
| 499 | &sai3 { |
| 500 | pinctrl-names = "default"; |
| 501 | pinctrl-0 = <&pinctrl_sai3>; |
| 502 | assigned-clocks = <&clk IMX8MP_CLK_SAI3>, |
| 503 | <&clk IMX8MP_AUDIO_PLL2> ; |
| 504 | assigned-clock-parents = <&clk IMX8MP_AUDIO_PLL2_OUT>; |
| 505 | assigned-clock-rates = <12288000>, <361267200>; |
| 506 | fsl,sai-mclk-direction-output; |
| 507 | status = "okay"; |
| 508 | }; |
| 509 | |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 510 | &sai5 { |
| 511 | pinctrl-names = "default"; |
| 512 | pinctrl-0 = <&pinctrl_sai5>; |
| 513 | assigned-clocks = <&clk IMX8MP_CLK_SAI5>; |
| 514 | assigned-clock-parents = <&clk IMX8MP_AUDIO_PLL1_OUT>; |
| 515 | assigned-clock-rates = <12288000>; |
| 516 | fsl,sai-mclk-direction-output; |
| 517 | status = "okay"; |
| 518 | }; |
| 519 | |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 520 | &snvs_pwrkey { |
| 521 | status = "okay"; |
| 522 | }; |
| 523 | |
| 524 | &uart2 { |
| 525 | pinctrl-names = "default"; |
| 526 | pinctrl-0 = <&pinctrl_uart2>; |
| 527 | status = "okay"; |
| 528 | }; |
| 529 | |
| 530 | &uart3 { |
| 531 | pinctrl-names = "default"; |
| 532 | pinctrl-0 = <&pinctrl_uart3>; |
| 533 | assigned-clocks = <&clk IMX8MP_CLK_UART3>; |
| 534 | assigned-clock-parents = <&clk IMX8MP_SYS_PLL1_80M>; |
| 535 | uart-has-rtscts; |
| 536 | status = "okay"; |
| 537 | }; |
| 538 | |
| 539 | &usb3_0 { |
| 540 | status = "okay"; |
| 541 | }; |
| 542 | |
| 543 | &usb_dwc3_0 { |
| 544 | dr_mode = "otg"; |
| 545 | hnp-disable; |
| 546 | srp-disable; |
| 547 | adp-disable; |
| 548 | usb-role-switch; |
| 549 | status = "okay"; |
| 550 | |
| 551 | ports { |
| 552 | #address-cells = <1>; |
| 553 | #size-cells = <0>; |
| 554 | |
| 555 | port@0 { |
| 556 | reg = <0>; |
| 557 | usb3_hs_ep: endpoint { |
| 558 | remote-endpoint = <&hs_ep>; |
| 559 | }; |
| 560 | }; |
| 561 | port@1 { |
| 562 | reg = <1>; |
| 563 | usb3_role_switch: endpoint { |
| 564 | remote-endpoint = <&hd3ss3220_out_ep>; |
| 565 | }; |
| 566 | }; |
| 567 | }; |
| 568 | }; |
| 569 | |
| 570 | &usb3_phy0 { |
| 571 | vbus-supply = <®_usb1_host_vbus>; |
| 572 | status = "okay"; |
| 573 | }; |
| 574 | |
| 575 | &usb3_1 { |
| 576 | status = "okay"; |
| 577 | }; |
| 578 | |
| 579 | &usb_dwc3_1 { |
| 580 | dr_mode = "host"; |
| 581 | status = "okay"; |
| 582 | }; |
| 583 | |
| 584 | &usb3_phy1 { |
| 585 | status = "okay"; |
| 586 | }; |
| 587 | |
| 588 | &usdhc2 { |
| 589 | pinctrl-names = "default", "state_100mhz", "state_200mhz"; |
| 590 | pinctrl-0 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>; |
| 591 | pinctrl-1 = <&pinctrl_usdhc2_100mhz>, <&pinctrl_usdhc2_gpio>; |
| 592 | pinctrl-2 = <&pinctrl_usdhc2_200mhz>, <&pinctrl_usdhc2_gpio>; |
| 593 | cd-gpios = <&gpio2 12 GPIO_ACTIVE_LOW>; |
| 594 | vmmc-supply = <®_usdhc2_vmmc>; |
| 595 | bus-width = <4>; |
| 596 | status = "okay"; |
| 597 | }; |
| 598 | |
| 599 | &iomuxc { |
| 600 | pinctrl_ecspi2: ecspi2grp { |
| 601 | fsl,pins = < |
| 602 | MX8MP_IOMUXC_ECSPI2_SCLK__ECSPI2_SCLK 0x82 |
| 603 | MX8MP_IOMUXC_ECSPI2_MOSI__ECSPI2_MOSI 0x82 |
| 604 | MX8MP_IOMUXC_ECSPI2_MISO__ECSPI2_MISO 0x82 |
| 605 | MX8MP_IOMUXC_ECSPI2_SS0__GPIO5_IO13 0x40000 |
| 606 | >; |
| 607 | }; |
| 608 | |
| 609 | pinctrl_fec: fecgrp { |
| 610 | fsl,pins = < |
| 611 | MX8MP_IOMUXC_SAI1_RXD2__ENET1_MDC 0x2 |
| 612 | MX8MP_IOMUXC_SAI1_RXD3__ENET1_MDIO 0x2 |
| 613 | MX8MP_IOMUXC_SAI1_RXD4__ENET1_RGMII_RD0 0x90 |
| 614 | MX8MP_IOMUXC_SAI1_RXD5__ENET1_RGMII_RD1 0x90 |
| 615 | MX8MP_IOMUXC_SAI1_RXD6__ENET1_RGMII_RD2 0x90 |
| 616 | MX8MP_IOMUXC_SAI1_RXD7__ENET1_RGMII_RD3 0x90 |
| 617 | MX8MP_IOMUXC_SAI1_TXC__ENET1_RGMII_RXC 0x90 |
| 618 | MX8MP_IOMUXC_SAI1_TXFS__ENET1_RGMII_RX_CTL 0x90 |
| 619 | MX8MP_IOMUXC_SAI1_TXD0__ENET1_RGMII_TD0 0x16 |
| 620 | MX8MP_IOMUXC_SAI1_TXD1__ENET1_RGMII_TD1 0x16 |
| 621 | MX8MP_IOMUXC_SAI1_TXD2__ENET1_RGMII_TD2 0x16 |
| 622 | MX8MP_IOMUXC_SAI1_TXD3__ENET1_RGMII_TD3 0x16 |
| 623 | MX8MP_IOMUXC_SAI1_TXD4__ENET1_RGMII_TX_CTL 0x16 |
| 624 | MX8MP_IOMUXC_SAI1_TXD5__ENET1_RGMII_TXC 0x16 |
| 625 | MX8MP_IOMUXC_SAI1_RXD0__GPIO4_IO02 0x140 |
| 626 | MX8MP_IOMUXC_SAI1_TXD6__GPIO4_IO18 0x10 |
| 627 | >; |
| 628 | }; |
| 629 | |
| 630 | pinctrl_flexcan1: flexcan1grp { |
| 631 | fsl,pins = < |
| 632 | MX8MP_IOMUXC_SPDIF_RX__CAN1_RX 0x154 |
| 633 | MX8MP_IOMUXC_SPDIF_TX__CAN1_TX 0x154 |
| 634 | >; |
| 635 | }; |
| 636 | |
| 637 | pinctrl_hd3ss3220: hd3ss3220grp { |
| 638 | fsl,pins = < |
| 639 | MX8MP_IOMUXC_SAI1_TXD7__GPIO4_IO19 0x140 |
| 640 | >; |
| 641 | }; |
| 642 | |
| 643 | pinctrl_i2c2: i2c2grp { |
| 644 | fsl,pins = < |
| 645 | MX8MP_IOMUXC_I2C2_SCL__I2C2_SCL 0x400001c2 |
| 646 | MX8MP_IOMUXC_I2C2_SDA__I2C2_SDA 0x400001c2 |
| 647 | >; |
| 648 | }; |
| 649 | |
| 650 | pinctrl_i2c4: i2c4grp { |
| 651 | fsl,pins = < |
| 652 | MX8MP_IOMUXC_I2C4_SCL__I2C4_SCL 0x400001c2 |
| 653 | MX8MP_IOMUXC_I2C4_SDA__I2C4_SDA 0x400001c2 |
| 654 | >; |
| 655 | }; |
| 656 | |
| 657 | pinctrl_led3: led3grp { |
| 658 | fsl,pins = < |
| 659 | MX8MP_IOMUXC_SAI3_RXFS__GPIO4_IO28 0x41 |
| 660 | >; |
| 661 | }; |
| 662 | |
| 663 | pinctrl_pcal6414: pcal6414-gpiogrp { |
| 664 | fsl,pins = < |
| 665 | MX8MP_IOMUXC_SAI2_MCLK__GPIO4_IO27 0x10 |
| 666 | >; |
| 667 | }; |
| 668 | |
| 669 | pinctrl_pcie: pciegrp { |
| 670 | fsl,pins = < |
| 671 | MX8MP_IOMUXC_GPIO1_IO05__GPIO1_IO05 0x10 /* PCIe_nDIS */ |
| 672 | MX8MP_IOMUXC_SAI2_RXFS__GPIO4_IO21 0x10 /* PCIe_nRST */ |
| 673 | >; |
| 674 | }; |
| 675 | |
| 676 | pinctrl_pdm: pdmgrp { |
| 677 | fsl,pins = < |
| 678 | MX8MP_IOMUXC_SAI5_RXC__AUDIOMIX_PDM_CLK 0xd6 |
| 679 | MX8MP_IOMUXC_SAI5_RXD0__AUDIOMIX_PDM_BIT_STREAM00 0xd6 |
| 680 | >; |
| 681 | }; |
| 682 | |
| 683 | pinctrl_reg_usdhc2_vmmc: regusdhc2vmmcgrp { |
| 684 | fsl,pins = < |
| 685 | MX8MP_IOMUXC_SD2_RESET_B__GPIO2_IO19 0x40 |
| 686 | >; |
| 687 | }; |
| 688 | |
| 689 | pinctrl_sai3: sai3grp { |
| 690 | fsl,pins = < |
| 691 | MX8MP_IOMUXC_SAI3_TXFS__AUDIOMIX_SAI3_TX_SYNC 0xd6 |
| 692 | MX8MP_IOMUXC_SAI3_TXC__AUDIOMIX_SAI3_TX_BCLK 0xd6 |
| 693 | MX8MP_IOMUXC_SAI3_RXD__AUDIOMIX_SAI3_RX_DATA00 0xd6 |
| 694 | MX8MP_IOMUXC_SAI3_TXD__AUDIOMIX_SAI3_TX_DATA00 0xd6 |
| 695 | MX8MP_IOMUXC_SAI3_MCLK__AUDIOMIX_SAI3_MCLK 0xd6 |
| 696 | >; |
| 697 | }; |
| 698 | |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 699 | pinctrl_sai5: sai5grp { |
| 700 | fsl,pins = < |
| 701 | MX8MP_IOMUXC_SAI5_RXD3__AUDIOMIX_SAI5_TX_DATA00 0xd6 |
| 702 | MX8MP_IOMUXC_SAI5_RXD2__AUDIOMIX_SAI5_TX_BCLK 0xd6 |
| 703 | MX8MP_IOMUXC_SAI5_RXD1__AUDIOMIX_SAI5_TX_SYNC 0xd6 |
| 704 | >; |
| 705 | }; |
| 706 | |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 707 | pinctrl_tpm: tpmgrp { |
| 708 | fsl,pins = < |
| 709 | MX8MP_IOMUXC_SAI1_RXFS__GPIO4_IO00 0x19 /* Reset */ |
| 710 | MX8MP_IOMUXC_SAI3_RXC__GPIO4_IO29 0x1d6 /* IRQ */ |
| 711 | >; |
| 712 | }; |
| 713 | |
| 714 | pinctrl_typec: typec1grp { |
| 715 | fsl,pins = < |
| 716 | MX8MP_IOMUXC_SAI1_RXC__GPIO4_IO01 0xc4 |
| 717 | >; |
| 718 | }; |
| 719 | |
| 720 | pinctrl_uart2: uart2grp { |
| 721 | fsl,pins = < |
| 722 | MX8MP_IOMUXC_UART2_RXD__UART2_DCE_RX 0x140 |
| 723 | MX8MP_IOMUXC_UART2_TXD__UART2_DCE_TX 0x140 |
| 724 | >; |
| 725 | }; |
| 726 | |
| 727 | pinctrl_uart3: uart3grp { |
| 728 | fsl,pins = < |
| 729 | MX8MP_IOMUXC_ECSPI1_SCLK__UART3_DCE_RX 0x140 |
| 730 | MX8MP_IOMUXC_ECSPI1_MOSI__UART3_DCE_TX 0x140 |
| 731 | MX8MP_IOMUXC_ECSPI1_SS0__UART3_DCE_RTS 0x140 |
| 732 | MX8MP_IOMUXC_ECSPI1_MISO__UART3_DCE_CTS 0x140 |
| 733 | >; |
| 734 | }; |
| 735 | |
| 736 | pinctrl_usdhc2: usdhc2grp { |
| 737 | fsl,pins = < |
| 738 | MX8MP_IOMUXC_SD2_CLK__USDHC2_CLK 0x190 |
| 739 | MX8MP_IOMUXC_SD2_CMD__USDHC2_CMD 0x1d0 |
| 740 | MX8MP_IOMUXC_SD2_DATA0__USDHC2_DATA0 0x1d0 |
| 741 | MX8MP_IOMUXC_SD2_DATA1__USDHC2_DATA1 0x1d0 |
| 742 | MX8MP_IOMUXC_SD2_DATA2__USDHC2_DATA2 0x1d0 |
| 743 | MX8MP_IOMUXC_SD2_DATA3__USDHC2_DATA3 0x1d0 |
| 744 | MX8MP_IOMUXC_GPIO1_IO04__USDHC2_VSELECT 0xc0 |
| 745 | >; |
| 746 | }; |
| 747 | |
| 748 | pinctrl_usdhc2_100mhz: usdhc2-100mhzgrp { |
| 749 | fsl,pins = < |
| 750 | MX8MP_IOMUXC_SD2_CLK__USDHC2_CLK 0x194 |
| 751 | MX8MP_IOMUXC_SD2_CMD__USDHC2_CMD 0x1d4 |
| 752 | MX8MP_IOMUXC_SD2_DATA0__USDHC2_DATA0 0x1d4 |
| 753 | MX8MP_IOMUXC_SD2_DATA1__USDHC2_DATA1 0x1d4 |
| 754 | MX8MP_IOMUXC_SD2_DATA2__USDHC2_DATA2 0x1d4 |
| 755 | MX8MP_IOMUXC_SD2_DATA3__USDHC2_DATA3 0x1d4 |
| 756 | MX8MP_IOMUXC_GPIO1_IO04__USDHC2_VSELECT 0xc0 |
| 757 | >; |
| 758 | }; |
| 759 | |
| 760 | pinctrl_usdhc2_200mhz: usdhc2-200mhzgrp { |
| 761 | fsl,pins = < |
| 762 | MX8MP_IOMUXC_SD2_CLK__USDHC2_CLK 0x196 |
| 763 | MX8MP_IOMUXC_SD2_CMD__USDHC2_CMD 0x1d6 |
| 764 | MX8MP_IOMUXC_SD2_DATA0__USDHC2_DATA0 0x1d6 |
| 765 | MX8MP_IOMUXC_SD2_DATA1__USDHC2_DATA1 0x1d6 |
| 766 | MX8MP_IOMUXC_SD2_DATA2__USDHC2_DATA2 0x1d6 |
| 767 | MX8MP_IOMUXC_SD2_DATA3__USDHC2_DATA3 0x1d6 |
| 768 | MX8MP_IOMUXC_GPIO1_IO04__USDHC2_VSELECT 0xc0 |
| 769 | >; |
| 770 | }; |
| 771 | |
| 772 | pinctrl_usdhc2_gpio: usdhc2gpiogrp { |
| 773 | fsl,pins = < |
| 774 | MX8MP_IOMUXC_SD2_CD_B__GPIO2_IO12 0x1c4 |
| 775 | >; |
| 776 | }; |
| 777 | |
| 778 | pinctrl_wm8962: wm8962grp { |
| 779 | fsl,pins = < |
| 780 | MX8MP_IOMUXC_GPIO1_IO14__CCM_CLKO1 0x59 |
| 781 | >; |
| 782 | }; |
| 783 | }; |