Tim Harvey | 1a50e74 | 2022-02-11 10:48:56 -0800 | [diff] [blame] | 1 | // SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
| 2 | /* |
| 3 | * Copyright 2022 Gateworks Corporation |
| 4 | */ |
| 5 | |
| 6 | /dts-v1/; |
| 7 | |
| 8 | #include <dt-bindings/gpio/gpio.h> |
| 9 | #include <dt-bindings/input/linux-event-codes.h> |
| 10 | #include <dt-bindings/leds/common.h> |
| 11 | #include <dt-bindings/net/ti-dp83867.h> |
| 12 | |
| 13 | #include "imx8mn.dtsi" |
| 14 | |
| 15 | / { |
| 16 | model = "Gateworks Venice GW7902 i.MX8MN board"; |
| 17 | compatible = "gw,imx8mn-gw7902", "fsl,imx8mn"; |
| 18 | |
| 19 | aliases { |
| 20 | usb0 = &usbotg1; |
| 21 | }; |
| 22 | |
| 23 | chosen { |
| 24 | stdout-path = &uart2; |
| 25 | }; |
| 26 | |
| 27 | memory@40000000 { |
| 28 | device_type = "memory"; |
| 29 | reg = <0x0 0x40000000 0 0x80000000>; |
| 30 | }; |
| 31 | |
| 32 | can20m: can20m { |
| 33 | compatible = "fixed-clock"; |
| 34 | #clock-cells = <0>; |
| 35 | clock-frequency = <20000000>; |
| 36 | clock-output-names = "can20m"; |
| 37 | }; |
| 38 | |
| 39 | gpio-keys { |
| 40 | compatible = "gpio-keys"; |
| 41 | |
| 42 | user-pb { |
| 43 | label = "user_pb"; |
| 44 | gpios = <&gpio 2 GPIO_ACTIVE_LOW>; |
| 45 | linux,code = <BTN_0>; |
| 46 | }; |
| 47 | |
| 48 | user-pb1x { |
| 49 | label = "user_pb1x"; |
| 50 | linux,code = <BTN_1>; |
| 51 | interrupt-parent = <&gsc>; |
| 52 | interrupts = <0>; |
| 53 | }; |
| 54 | |
| 55 | key-erased { |
| 56 | label = "key_erased"; |
| 57 | linux,code = <BTN_2>; |
| 58 | interrupt-parent = <&gsc>; |
| 59 | interrupts = <1>; |
| 60 | }; |
| 61 | |
| 62 | eeprom-wp { |
| 63 | label = "eeprom_wp"; |
| 64 | linux,code = <BTN_3>; |
| 65 | interrupt-parent = <&gsc>; |
| 66 | interrupts = <2>; |
| 67 | }; |
| 68 | |
| 69 | tamper { |
| 70 | label = "tamper"; |
| 71 | linux,code = <BTN_4>; |
| 72 | interrupt-parent = <&gsc>; |
| 73 | interrupts = <5>; |
| 74 | }; |
| 75 | |
| 76 | switch-hold { |
| 77 | label = "switch_hold"; |
| 78 | linux,code = <BTN_5>; |
| 79 | interrupt-parent = <&gsc>; |
| 80 | interrupts = <7>; |
| 81 | }; |
| 82 | }; |
| 83 | |
| 84 | led-controller { |
| 85 | compatible = "gpio-leds"; |
| 86 | pinctrl-names = "default"; |
| 87 | pinctrl-0 = <&pinctrl_gpio_leds>; |
| 88 | |
| 89 | led-0 { |
| 90 | function = LED_FUNCTION_STATUS; |
| 91 | color = <LED_COLOR_ID_GREEN>; |
| 92 | label = "panel1"; |
| 93 | gpios = <&gpio3 21 GPIO_ACTIVE_LOW>; |
| 94 | default-state = "off"; |
| 95 | }; |
| 96 | |
| 97 | led-1 { |
| 98 | function = LED_FUNCTION_STATUS; |
| 99 | color = <LED_COLOR_ID_GREEN>; |
| 100 | label = "panel2"; |
| 101 | gpios = <&gpio3 23 GPIO_ACTIVE_LOW>; |
| 102 | default-state = "off"; |
| 103 | }; |
| 104 | |
| 105 | led-2 { |
| 106 | function = LED_FUNCTION_STATUS; |
| 107 | color = <LED_COLOR_ID_GREEN>; |
| 108 | label = "panel3"; |
| 109 | gpios = <&gpio3 22 GPIO_ACTIVE_LOW>; |
| 110 | default-state = "off"; |
| 111 | }; |
| 112 | |
| 113 | led-3 { |
| 114 | function = LED_FUNCTION_STATUS; |
| 115 | color = <LED_COLOR_ID_GREEN>; |
| 116 | label = "panel4"; |
| 117 | gpios = <&gpio3 20 GPIO_ACTIVE_LOW>; |
| 118 | default-state = "off"; |
| 119 | }; |
| 120 | |
| 121 | led-4 { |
| 122 | function = LED_FUNCTION_STATUS; |
| 123 | color = <LED_COLOR_ID_GREEN>; |
| 124 | label = "panel5"; |
| 125 | gpios = <&gpio3 25 GPIO_ACTIVE_LOW>; |
| 126 | default-state = "off"; |
| 127 | }; |
| 128 | }; |
| 129 | |
| 130 | pps { |
| 131 | compatible = "pps-gpio"; |
| 132 | pinctrl-names = "default"; |
| 133 | pinctrl-0 = <&pinctrl_pps>; |
| 134 | gpios = <&gpio3 24 GPIO_ACTIVE_HIGH>; |
| 135 | status = "okay"; |
| 136 | }; |
| 137 | |
| 138 | reg_3p3v: regulator-3p3v { |
| 139 | compatible = "regulator-fixed"; |
| 140 | regulator-name = "3P3V"; |
| 141 | regulator-min-microvolt = <3300000>; |
| 142 | regulator-max-microvolt = <3300000>; |
| 143 | }; |
| 144 | |
| 145 | reg_usb1_vbus: regulator-usb1 { |
| 146 | pinctrl-names = "default"; |
| 147 | pinctrl-0 = <&pinctrl_reg_usb1>; |
| 148 | compatible = "regulator-fixed"; |
| 149 | regulator-name = "usb_usb1_vbus"; |
| 150 | gpio = <&gpio2 7 GPIO_ACTIVE_HIGH>; |
| 151 | enable-active-high; |
| 152 | regulator-min-microvolt = <5000000>; |
| 153 | regulator-max-microvolt = <5000000>; |
| 154 | }; |
| 155 | |
| 156 | reg_wifi: regulator-wifi { |
| 157 | pinctrl-names = "default"; |
| 158 | pinctrl-0 = <&pinctrl_reg_wl>; |
| 159 | compatible = "regulator-fixed"; |
| 160 | regulator-name = "wifi"; |
| 161 | gpio = <&gpio2 19 GPIO_ACTIVE_HIGH>; |
| 162 | enable-active-high; |
| 163 | startup-delay-us = <100>; |
| 164 | regulator-min-microvolt = <3300000>; |
| 165 | regulator-max-microvolt = <3300000>; |
| 166 | }; |
| 167 | }; |
| 168 | |
| 169 | &A53_0 { |
| 170 | cpu-supply = <&buck2>; |
| 171 | }; |
| 172 | |
| 173 | &A53_1 { |
| 174 | cpu-supply = <&buck2>; |
| 175 | }; |
| 176 | |
| 177 | &A53_2 { |
| 178 | cpu-supply = <&buck2>; |
| 179 | }; |
| 180 | |
| 181 | &A53_3 { |
| 182 | cpu-supply = <&buck2>; |
| 183 | }; |
| 184 | |
| 185 | &ddrc { |
| 186 | operating-points-v2 = <&ddrc_opp_table>; |
| 187 | |
| 188 | ddrc_opp_table: opp-table { |
| 189 | compatible = "operating-points-v2"; |
| 190 | |
| 191 | opp-25M { |
| 192 | opp-hz = /bits/ 64 <25000000>; |
| 193 | }; |
| 194 | |
| 195 | opp-100M { |
| 196 | opp-hz = /bits/ 64 <100000000>; |
| 197 | }; |
| 198 | |
| 199 | opp-750M { |
| 200 | opp-hz = /bits/ 64 <750000000>; |
| 201 | }; |
| 202 | }; |
| 203 | }; |
| 204 | |
| 205 | &ecspi1 { |
| 206 | pinctrl-names = "default"; |
| 207 | pinctrl-0 = <&pinctrl_spi1>; |
| 208 | cs-gpios = <&gpio5 9 GPIO_ACTIVE_LOW>; |
| 209 | status = "okay"; |
| 210 | |
| 211 | can@0 { |
| 212 | compatible = "microchip,mcp2515"; |
| 213 | reg = <0>; |
| 214 | clocks = <&can20m>; |
| 215 | oscillator-frequency = <20000000>; |
| 216 | interrupt-parent = <&gpio2>; |
| 217 | interrupts = <3 IRQ_TYPE_LEVEL_LOW>; |
| 218 | spi-max-frequency = <10000000>; |
| 219 | }; |
| 220 | }; |
| 221 | |
| 222 | /* off-board header */ |
| 223 | &ecspi2 { |
| 224 | pinctrl-names = "default"; |
| 225 | pinctrl-0 = <&pinctrl_spi2>; |
| 226 | cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>; |
| 227 | status = "okay"; |
| 228 | }; |
| 229 | |
| 230 | &fec1 { |
| 231 | pinctrl-names = "default"; |
| 232 | pinctrl-0 = <&pinctrl_fec1>; |
| 233 | phy-mode = "rgmii-id"; |
| 234 | phy-handle = <ðphy0>; |
| 235 | local-mac-address = [00 00 00 00 00 00]; |
| 236 | status = "okay"; |
| 237 | |
| 238 | mdio { |
| 239 | #address-cells = <1>; |
| 240 | #size-cells = <0>; |
| 241 | |
| 242 | ethphy0: ethernet-phy@0 { |
| 243 | compatible = "ethernet-phy-ieee802.3-c22"; |
| 244 | reg = <0>; |
| 245 | ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>; |
| 246 | ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>; |
| 247 | tx-fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>; |
| 248 | rx-fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>; |
| 249 | }; |
| 250 | }; |
| 251 | }; |
| 252 | |
| 253 | &i2c1 { |
| 254 | clock-frequency = <100000>; |
| 255 | pinctrl-names = "default"; |
| 256 | pinctrl-0 = <&pinctrl_i2c1>; |
| 257 | status = "okay"; |
| 258 | |
| 259 | gsc: gsc@20 { |
| 260 | compatible = "gw,gsc"; |
| 261 | reg = <0x20>; |
| 262 | pinctrl-0 = <&pinctrl_gsc>; |
| 263 | interrupt-parent = <&gpio2>; |
| 264 | interrupts = <6 IRQ_TYPE_EDGE_FALLING>; |
| 265 | interrupt-controller; |
| 266 | #interrupt-cells = <1>; |
| 267 | |
| 268 | adc { |
| 269 | compatible = "gw,gsc-adc"; |
| 270 | #address-cells = <1>; |
| 271 | #size-cells = <0>; |
| 272 | |
| 273 | channel@6 { |
| 274 | gw,mode = <0>; |
| 275 | reg = <0x06>; |
| 276 | label = "temp"; |
| 277 | }; |
| 278 | |
| 279 | channel@8 { |
| 280 | gw,mode = <1>; |
| 281 | reg = <0x08>; |
| 282 | label = "vdd_bat"; |
| 283 | }; |
| 284 | |
| 285 | channel@82 { |
| 286 | gw,mode = <2>; |
| 287 | reg = <0x82>; |
| 288 | label = "vin"; |
| 289 | gw,voltage-divider-ohms = <22100 1000>; |
| 290 | gw,voltage-offset-microvolt = <700000>; |
| 291 | }; |
| 292 | |
| 293 | channel@84 { |
| 294 | gw,mode = <2>; |
| 295 | reg = <0x84>; |
| 296 | label = "vin_4p0"; |
| 297 | gw,voltage-divider-ohms = <10000 10000>; |
| 298 | }; |
| 299 | |
| 300 | channel@86 { |
| 301 | gw,mode = <2>; |
| 302 | reg = <0x86>; |
| 303 | label = "vdd_3p3"; |
| 304 | gw,voltage-divider-ohms = <10000 10000>; |
| 305 | }; |
| 306 | |
| 307 | channel@88 { |
| 308 | gw,mode = <2>; |
| 309 | reg = <0x88>; |
| 310 | label = "vdd_0p9"; |
| 311 | }; |
| 312 | |
| 313 | channel@8c { |
| 314 | gw,mode = <2>; |
| 315 | reg = <0x8c>; |
| 316 | label = "vdd_soc"; |
| 317 | }; |
| 318 | |
| 319 | channel@8e { |
| 320 | gw,mode = <2>; |
| 321 | reg = <0x8e>; |
| 322 | label = "vdd_arm"; |
| 323 | }; |
| 324 | |
| 325 | channel@90 { |
| 326 | gw,mode = <2>; |
| 327 | reg = <0x90>; |
| 328 | label = "vdd_1p8"; |
| 329 | }; |
| 330 | |
| 331 | channel@92 { |
| 332 | gw,mode = <2>; |
| 333 | reg = <0x92>; |
| 334 | label = "vdd_dram"; |
| 335 | }; |
| 336 | |
| 337 | channel@98 { |
| 338 | gw,mode = <2>; |
| 339 | reg = <0x98>; |
| 340 | label = "vdd_1p0"; |
| 341 | }; |
| 342 | |
| 343 | channel@9a { |
| 344 | gw,mode = <2>; |
| 345 | reg = <0x9a>; |
| 346 | label = "vdd_2p5"; |
| 347 | gw,voltage-divider-ohms = <10000 10000>; |
| 348 | }; |
| 349 | |
| 350 | channel@a2 { |
| 351 | gw,mode = <2>; |
| 352 | reg = <0xa2>; |
| 353 | label = "vdd_gsc"; |
| 354 | gw,voltage-divider-ohms = <10000 10000>; |
| 355 | }; |
| 356 | }; |
| 357 | }; |
| 358 | |
| 359 | gpio: gpio@23 { |
| 360 | compatible = "nxp,pca9555"; |
| 361 | reg = <0x23>; |
| 362 | gpio-controller; |
| 363 | #gpio-cells = <2>; |
| 364 | interrupt-parent = <&gsc>; |
| 365 | interrupts = <4>; |
| 366 | }; |
| 367 | |
| 368 | pmic@4b { |
| 369 | compatible = "rohm,bd71847"; |
| 370 | reg = <0x4b>; |
| 371 | pinctrl-names = "default"; |
| 372 | pinctrl-0 = <&pinctrl_pmic>; |
| 373 | interrupt-parent = <&gpio3>; |
| 374 | interrupts = <8 IRQ_TYPE_LEVEL_LOW>; |
| 375 | rohm,reset-snvs-powered; |
| 376 | #clock-cells = <0>; |
| 377 | clocks = <&osc_32k 0>; |
| 378 | clock-output-names = "clk-32k-out"; |
| 379 | |
| 380 | regulators { |
| 381 | /* vdd_soc: 0.805-0.900V (typ=0.8V) */ |
| 382 | BUCK1 { |
| 383 | regulator-name = "buck1"; |
| 384 | regulator-min-microvolt = <700000>; |
| 385 | regulator-max-microvolt = <1300000>; |
| 386 | regulator-boot-on; |
| 387 | regulator-always-on; |
| 388 | regulator-ramp-delay = <1250>; |
| 389 | }; |
| 390 | |
| 391 | /* vdd_arm: 0.805-1.0V (typ=0.9V) */ |
| 392 | buck2: BUCK2 { |
| 393 | regulator-name = "buck2"; |
| 394 | regulator-min-microvolt = <700000>; |
| 395 | regulator-max-microvolt = <1300000>; |
| 396 | regulator-boot-on; |
| 397 | regulator-always-on; |
| 398 | regulator-ramp-delay = <1250>; |
| 399 | rohm,dvs-run-voltage = <1000000>; |
| 400 | rohm,dvs-idle-voltage = <900000>; |
| 401 | }; |
| 402 | |
| 403 | /* vdd_0p9: 0.805-1.0V (typ=0.9V) */ |
| 404 | BUCK3 { |
| 405 | regulator-name = "buck3"; |
| 406 | regulator-min-microvolt = <700000>; |
| 407 | regulator-max-microvolt = <1350000>; |
| 408 | regulator-boot-on; |
| 409 | regulator-always-on; |
| 410 | }; |
| 411 | |
| 412 | /* vdd_3p3 */ |
| 413 | BUCK4 { |
| 414 | regulator-name = "buck4"; |
| 415 | regulator-min-microvolt = <3000000>; |
| 416 | regulator-max-microvolt = <3300000>; |
| 417 | regulator-boot-on; |
| 418 | regulator-always-on; |
| 419 | }; |
| 420 | |
| 421 | /* vdd_1p8 */ |
| 422 | BUCK5 { |
| 423 | regulator-name = "buck5"; |
| 424 | regulator-min-microvolt = <1605000>; |
| 425 | regulator-max-microvolt = <1995000>; |
| 426 | regulator-boot-on; |
| 427 | regulator-always-on; |
| 428 | }; |
| 429 | |
| 430 | /* vdd_dram */ |
| 431 | BUCK6 { |
| 432 | regulator-name = "buck6"; |
| 433 | regulator-min-microvolt = <800000>; |
| 434 | regulator-max-microvolt = <1400000>; |
| 435 | regulator-boot-on; |
| 436 | regulator-always-on; |
| 437 | }; |
| 438 | |
| 439 | /* nvcc_snvs_1p8 */ |
| 440 | LDO1 { |
| 441 | regulator-name = "ldo1"; |
| 442 | regulator-min-microvolt = <1600000>; |
| 443 | regulator-max-microvolt = <1900000>; |
| 444 | regulator-boot-on; |
| 445 | regulator-always-on; |
| 446 | }; |
| 447 | |
| 448 | /* vdd_snvs_0p8 */ |
| 449 | LDO2 { |
| 450 | regulator-name = "ldo2"; |
| 451 | regulator-min-microvolt = <800000>; |
| 452 | regulator-max-microvolt = <900000>; |
| 453 | regulator-boot-on; |
| 454 | regulator-always-on; |
| 455 | }; |
| 456 | |
| 457 | /* vdda_1p8 */ |
| 458 | LDO3 { |
| 459 | regulator-name = "ldo3"; |
| 460 | regulator-min-microvolt = <1800000>; |
| 461 | regulator-max-microvolt = <3300000>; |
| 462 | regulator-boot-on; |
| 463 | regulator-always-on; |
| 464 | }; |
| 465 | |
| 466 | LDO4 { |
| 467 | regulator-name = "ldo4"; |
| 468 | regulator-min-microvolt = <900000>; |
| 469 | regulator-max-microvolt = <1800000>; |
| 470 | regulator-boot-on; |
| 471 | regulator-always-on; |
| 472 | }; |
| 473 | |
| 474 | LDO6 { |
| 475 | regulator-name = "ldo6"; |
| 476 | regulator-min-microvolt = <900000>; |
| 477 | regulator-max-microvolt = <1800000>; |
| 478 | regulator-boot-on; |
| 479 | regulator-always-on; |
| 480 | }; |
| 481 | }; |
| 482 | }; |
| 483 | |
| 484 | eeprom@50 { |
| 485 | compatible = "atmel,24c02"; |
| 486 | reg = <0x50>; |
| 487 | pagesize = <16>; |
| 488 | }; |
| 489 | |
| 490 | eeprom@51 { |
| 491 | compatible = "atmel,24c02"; |
| 492 | reg = <0x51>; |
| 493 | pagesize = <16>; |
| 494 | }; |
| 495 | |
| 496 | eeprom@52 { |
| 497 | compatible = "atmel,24c02"; |
| 498 | reg = <0x52>; |
| 499 | pagesize = <16>; |
| 500 | }; |
| 501 | |
| 502 | eeprom@53 { |
| 503 | compatible = "atmel,24c02"; |
| 504 | reg = <0x53>; |
| 505 | pagesize = <16>; |
| 506 | }; |
| 507 | |
| 508 | rtc@68 { |
| 509 | compatible = "dallas,ds1672"; |
| 510 | reg = <0x68>; |
| 511 | }; |
| 512 | }; |
| 513 | |
| 514 | &i2c2 { |
| 515 | clock-frequency = <400000>; |
| 516 | pinctrl-names = "default"; |
| 517 | pinctrl-0 = <&pinctrl_i2c2>; |
| 518 | status = "okay"; |
| 519 | |
| 520 | accelerometer@19 { |
| 521 | pinctrl-names = "default"; |
| 522 | pinctrl-0 = <&pinctrl_accel>; |
| 523 | compatible = "st,lis2de12"; |
| 524 | reg = <0x19>; |
| 525 | st,drdy-int-pin = <1>; |
| 526 | interrupt-parent = <&gpio1>; |
| 527 | interrupts = <12 IRQ_TYPE_LEVEL_LOW>; |
| 528 | interrupt-names = "INT1"; |
| 529 | }; |
| 530 | |
| 531 | secure-element@60 { |
| 532 | compatible = "nxp,se050"; |
| 533 | reg = <0x60>; |
| 534 | }; |
| 535 | }; |
| 536 | |
| 537 | /* off-board header */ |
| 538 | &i2c3 { |
| 539 | clock-frequency = <400000>; |
| 540 | pinctrl-names = "default"; |
| 541 | pinctrl-0 = <&pinctrl_i2c3>; |
| 542 | status = "okay"; |
| 543 | }; |
| 544 | |
| 545 | /* off-board header */ |
| 546 | &i2c4 { |
| 547 | clock-frequency = <400000>; |
| 548 | pinctrl-names = "default"; |
| 549 | pinctrl-0 = <&pinctrl_i2c4>; |
| 550 | status = "okay"; |
| 551 | }; |
| 552 | |
| 553 | /* off-board header */ |
| 554 | &sai3 { |
| 555 | pinctrl-names = "default"; |
| 556 | pinctrl-0 = <&pinctrl_sai3>; |
| 557 | assigned-clocks = <&clk IMX8MN_CLK_SAI3>; |
| 558 | assigned-clock-parents = <&clk IMX8MN_AUDIO_PLL1_OUT>; |
| 559 | assigned-clock-rates = <24576000>; |
| 560 | status = "okay"; |
| 561 | }; |
| 562 | |
| 563 | /* RS232/RS485/RS422 selectable */ |
| 564 | &uart1 { |
| 565 | pinctrl-names = "default"; |
| 566 | pinctrl-0 = <&pinctrl_uart1>, <&pinctrl_uart1_gpio>; |
| 567 | status = "okay"; |
| 568 | }; |
| 569 | |
| 570 | /* RS232 console */ |
| 571 | &uart2 { |
| 572 | pinctrl-names = "default"; |
| 573 | pinctrl-0 = <&pinctrl_uart2>; |
| 574 | status = "okay"; |
| 575 | }; |
| 576 | |
| 577 | /* bluetooth HCI */ |
| 578 | &uart3 { |
| 579 | pinctrl-names = "default"; |
| 580 | pinctrl-0 = <&pinctrl_uart3>, <&pinctrl_uart3_gpio>; |
| 581 | rts-gpios = <&gpio2 1 GPIO_ACTIVE_LOW>; |
| 582 | cts-gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; |
| 583 | status = "okay"; |
| 584 | |
| 585 | bluetooth { |
| 586 | compatible = "brcm,bcm4330-bt"; |
| 587 | shutdown-gpios = <&gpio2 12 GPIO_ACTIVE_HIGH>; |
| 588 | }; |
| 589 | }; |
| 590 | |
| 591 | /* LTE Cat M1/NB1/EGPRS modem or GPS (loading option) */ |
| 592 | &uart4 { |
| 593 | pinctrl-names = "default"; |
| 594 | pinctrl-0 = <&pinctrl_uart4>; |
| 595 | status = "okay"; |
| 596 | }; |
| 597 | |
| 598 | &usbotg1 { |
| 599 | dr_mode = "host"; |
| 600 | vbus-supply = <®_usb1_vbus>; |
| 601 | disable-over-current; |
| 602 | status = "okay"; |
| 603 | }; |
| 604 | |
| 605 | /* SDIO WiFi */ |
| 606 | &usdhc2 { |
| 607 | pinctrl-names = "default"; |
| 608 | pinctrl-0 = <&pinctrl_usdhc2>; |
| 609 | bus-width = <4>; |
| 610 | non-removable; |
| 611 | vmmc-supply = <®_wifi>; |
| 612 | status = "okay"; |
| 613 | }; |
| 614 | |
| 615 | /* eMMC */ |
| 616 | &usdhc3 { |
| 617 | pinctrl-names = "default", "state_100mhz", "state_200mhz"; |
| 618 | pinctrl-0 = <&pinctrl_usdhc3>; |
| 619 | pinctrl-1 = <&pinctrl_usdhc3_100mhz>; |
| 620 | pinctrl-2 = <&pinctrl_usdhc3_200mhz>; |
| 621 | bus-width = <8>; |
| 622 | non-removable; |
| 623 | status = "okay"; |
| 624 | }; |
| 625 | |
| 626 | &wdog1 { |
| 627 | pinctrl-names = "default"; |
| 628 | pinctrl-0 = <&pinctrl_wdog>; |
| 629 | fsl,ext-reset-output; |
| 630 | status = "okay"; |
| 631 | }; |
| 632 | |
| 633 | &iomuxc { |
| 634 | pinctrl-names = "default"; |
| 635 | pinctrl-0 = <&pinctrl_hog>; |
| 636 | |
| 637 | pinctrl_hog: hoggrp { |
| 638 | fsl,pins = < |
| 639 | MX8MN_IOMUXC_NAND_CE0_B_GPIO3_IO1 0x40000159 /* M2_GDIS# */ |
| 640 | MX8MN_IOMUXC_GPIO1_IO13_GPIO1_IO13 0x40000041 /* M2_RST# */ |
| 641 | MX8MN_IOMUXC_NAND_DATA01_GPIO3_IO7 0x40000119 /* M2_OFF# */ |
| 642 | MX8MN_IOMUXC_GPIO1_IO15_GPIO1_IO15 0x40000159 /* M2_WDIS# */ |
| 643 | MX8MN_IOMUXC_SAI2_RXFS_GPIO4_IO21 0x40000041 /* APP GPIO1 */ |
| 644 | MX8MN_IOMUXC_SAI2_MCLK_GPIO4_IO27 0x40000041 /* APP GPIO2 */ |
| 645 | MX8MN_IOMUXC_SD1_DATA6_GPIO2_IO8 0x40000041 /* UART2_EN# */ |
| 646 | MX8MN_IOMUXC_SAI3_RXFS_GPIO4_IO28 0x40000041 /* MIPI_GPIO1 */ |
| 647 | MX8MN_IOMUXC_SPDIF_EXT_CLK_GPIO5_IO5 0x40000041 /* MIPI_GPIO2 */ |
| 648 | MX8MN_IOMUXC_SPDIF_RX_GPIO5_IO4 0x40000041 /* MIPI_GPIO3/PWM2 */ |
| 649 | MX8MN_IOMUXC_SPDIF_TX_GPIO5_IO3 0x40000041 /* MIPI_GPIO4/PWM3 */ |
| 650 | >; |
| 651 | }; |
| 652 | |
| 653 | pinctrl_accel: accelgrp { |
| 654 | fsl,pins = < |
| 655 | MX8MN_IOMUXC_GPIO1_IO12_GPIO1_IO12 0x159 |
| 656 | >; |
| 657 | }; |
| 658 | |
| 659 | pinctrl_fec1: fec1grp { |
| 660 | fsl,pins = < |
| 661 | MX8MN_IOMUXC_ENET_MDC_ENET1_MDC 0x3 |
| 662 | MX8MN_IOMUXC_ENET_MDIO_ENET1_MDIO 0x3 |
| 663 | MX8MN_IOMUXC_ENET_TD3_ENET1_RGMII_TD3 0x1f |
| 664 | MX8MN_IOMUXC_ENET_TD2_ENET1_RGMII_TD2 0x1f |
| 665 | MX8MN_IOMUXC_ENET_TD1_ENET1_RGMII_TD1 0x1f |
| 666 | MX8MN_IOMUXC_ENET_TD0_ENET1_RGMII_TD0 0x1f |
| 667 | MX8MN_IOMUXC_ENET_RD3_ENET1_RGMII_RD3 0x91 |
| 668 | MX8MN_IOMUXC_ENET_RD2_ENET1_RGMII_RD2 0x91 |
| 669 | MX8MN_IOMUXC_ENET_RD1_ENET1_RGMII_RD1 0x91 |
| 670 | MX8MN_IOMUXC_ENET_RD0_ENET1_RGMII_RD0 0x91 |
| 671 | MX8MN_IOMUXC_ENET_TXC_ENET1_RGMII_TXC 0x1f |
| 672 | MX8MN_IOMUXC_ENET_RXC_ENET1_RGMII_RXC 0x91 |
| 673 | MX8MN_IOMUXC_ENET_RX_CTL_ENET1_RGMII_RX_CTL 0x91 |
| 674 | MX8MN_IOMUXC_ENET_TX_CTL_ENET1_RGMII_TX_CTL 0x1f |
| 675 | MX8MN_IOMUXC_GPIO1_IO10_GPIO1_IO10 0x19 /* RST# */ |
| 676 | MX8MN_IOMUXC_GPIO1_IO11_GPIO1_IO11 0x19 /* IRQ# */ |
| 677 | MX8MN_IOMUXC_GPIO1_IO08_ENET1_1588_EVENT0_IN 0x141 |
| 678 | MX8MN_IOMUXC_GPIO1_IO09_ENET1_1588_EVENT0_OUT 0x141 |
| 679 | >; |
| 680 | }; |
| 681 | |
| 682 | pinctrl_gsc: gscgrp { |
| 683 | fsl,pins = < |
| 684 | MX8MN_IOMUXC_SD1_DATA4_GPIO2_IO6 0x40 |
| 685 | >; |
| 686 | }; |
| 687 | |
| 688 | pinctrl_i2c1: i2c1grp { |
| 689 | fsl,pins = < |
| 690 | MX8MN_IOMUXC_I2C1_SCL_I2C1_SCL 0x400001c3 |
| 691 | MX8MN_IOMUXC_I2C1_SDA_I2C1_SDA 0x400001c3 |
| 692 | >; |
| 693 | }; |
| 694 | |
| 695 | pinctrl_i2c2: i2c2grp { |
| 696 | fsl,pins = < |
| 697 | MX8MN_IOMUXC_I2C2_SCL_I2C2_SCL 0x400001c3 |
| 698 | MX8MN_IOMUXC_I2C2_SDA_I2C2_SDA 0x400001c3 |
| 699 | >; |
| 700 | }; |
| 701 | |
| 702 | pinctrl_i2c3: i2c3grp { |
| 703 | fsl,pins = < |
| 704 | MX8MN_IOMUXC_I2C3_SCL_I2C3_SCL 0x400001c3 |
| 705 | MX8MN_IOMUXC_I2C3_SDA_I2C3_SDA 0x400001c3 |
| 706 | >; |
| 707 | }; |
| 708 | |
| 709 | pinctrl_i2c4: i2c4grp { |
| 710 | fsl,pins = < |
| 711 | MX8MN_IOMUXC_I2C4_SCL_I2C4_SCL 0x400001c3 |
| 712 | MX8MN_IOMUXC_I2C4_SDA_I2C4_SDA 0x400001c3 |
| 713 | >; |
| 714 | }; |
| 715 | |
| 716 | pinctrl_gpio_leds: gpioledgrp { |
| 717 | fsl,pins = < |
| 718 | MX8MN_IOMUXC_SAI5_RXD0_GPIO3_IO21 0x40000019 |
| 719 | MX8MN_IOMUXC_SAI5_RXD2_GPIO3_IO23 0x40000019 |
| 720 | MX8MN_IOMUXC_SAI5_RXD1_GPIO3_IO22 0x40000019 |
| 721 | MX8MN_IOMUXC_SAI5_RXC_GPIO3_IO20 0x40000019 |
| 722 | MX8MN_IOMUXC_SAI5_MCLK_GPIO3_IO25 0x40000019 |
| 723 | >; |
| 724 | }; |
| 725 | |
| 726 | pinctrl_pmic: pmicgrp { |
| 727 | fsl,pins = < |
| 728 | MX8MN_IOMUXC_NAND_DATA02_GPIO3_IO8 0x41 |
| 729 | >; |
| 730 | }; |
| 731 | |
| 732 | pinctrl_pps: ppsgrp { |
| 733 | fsl,pins = < |
| 734 | MX8MN_IOMUXC_SAI5_RXD3_GPIO3_IO24 0x141 /* PPS */ |
| 735 | >; |
| 736 | }; |
| 737 | |
| 738 | pinctrl_reg_wl: regwlgrp { |
| 739 | fsl,pins = < |
| 740 | MX8MN_IOMUXC_SD2_RESET_B_GPIO2_IO19 0x41 /* WLAN_WLON */ |
| 741 | >; |
| 742 | }; |
| 743 | |
| 744 | pinctrl_reg_usb1: regusb1grp { |
| 745 | fsl,pins = < |
| 746 | MX8MN_IOMUXC_SD1_DATA5_GPIO2_IO7 0x41 |
| 747 | >; |
| 748 | }; |
| 749 | |
| 750 | pinctrl_sai3: sai3grp { |
| 751 | fsl,pins = < |
| 752 | MX8MN_IOMUXC_SAI3_MCLK_SAI3_MCLK 0xd6 |
| 753 | MX8MN_IOMUXC_SAI3_RXD_SAI3_RX_DATA0 0xd6 |
| 754 | MX8MN_IOMUXC_SAI3_TXC_SAI3_TX_BCLK 0xd6 |
| 755 | MX8MN_IOMUXC_SAI3_TXD_SAI3_TX_DATA0 0xd6 |
| 756 | MX8MN_IOMUXC_SAI3_TXFS_SAI3_TX_SYNC 0xd6 |
| 757 | >; |
| 758 | }; |
| 759 | |
| 760 | pinctrl_spi1: spi1grp { |
| 761 | fsl,pins = < |
| 762 | MX8MN_IOMUXC_ECSPI1_SCLK_ECSPI1_SCLK 0x82 |
| 763 | MX8MN_IOMUXC_ECSPI1_MOSI_ECSPI1_MOSI 0x82 |
| 764 | MX8MN_IOMUXC_ECSPI1_MISO_ECSPI1_MISO 0x82 |
| 765 | MX8MN_IOMUXC_ECSPI1_SS0_GPIO5_IO9 0x40 |
| 766 | MX8MN_IOMUXC_SD1_DATA1_GPIO2_IO3 0x140 /* CAN_IRQ# */ |
| 767 | >; |
| 768 | }; |
| 769 | |
| 770 | pinctrl_spi2: spi2grp { |
| 771 | fsl,pins = < |
| 772 | MX8MN_IOMUXC_ECSPI2_SCLK_ECSPI2_SCLK 0x82 |
| 773 | MX8MN_IOMUXC_ECSPI2_MOSI_ECSPI2_MOSI 0x82 |
| 774 | MX8MN_IOMUXC_ECSPI2_MISO_ECSPI2_MISO 0x82 |
| 775 | MX8MN_IOMUXC_ECSPI2_SS0_GPIO5_IO13 0x40 /* SS0 */ |
| 776 | >; |
| 777 | }; |
| 778 | |
| 779 | pinctrl_uart1: uart1grp { |
| 780 | fsl,pins = < |
| 781 | MX8MN_IOMUXC_UART1_RXD_UART1_DCE_RX 0x140 |
| 782 | MX8MN_IOMUXC_UART1_TXD_UART1_DCE_TX 0x140 |
| 783 | >; |
| 784 | }; |
| 785 | |
| 786 | pinctrl_uart1_gpio: uart1gpiogrp { |
| 787 | fsl,pins = < |
| 788 | MX8MN_IOMUXC_SAI2_TXD0_GPIO4_IO26 0x40000110 /* HALF */ |
| 789 | MX8MN_IOMUXC_SAI2_TXC_GPIO4_IO25 0x40000110 /* TERM */ |
| 790 | MX8MN_IOMUXC_SAI2_RXD0_GPIO4_IO23 0x40000110 /* RS485 */ |
| 791 | >; |
| 792 | }; |
| 793 | |
| 794 | pinctrl_uart2: uart2grp { |
| 795 | fsl,pins = < |
| 796 | MX8MN_IOMUXC_UART2_RXD_UART2_DCE_RX 0x140 |
| 797 | MX8MN_IOMUXC_UART2_TXD_UART2_DCE_TX 0x140 |
| 798 | >; |
| 799 | }; |
| 800 | |
| 801 | pinctrl_uart3_gpio: uart3_gpiogrp { |
| 802 | fsl,pins = < |
| 803 | MX8MN_IOMUXC_SD2_CD_B_GPIO2_IO12 0x41 /* BT_EN# */ |
| 804 | >; |
| 805 | }; |
| 806 | |
| 807 | pinctrl_uart3: uart3grp { |
| 808 | fsl,pins = < |
| 809 | MX8MN_IOMUXC_UART3_RXD_UART3_DCE_RX 0x140 |
| 810 | MX8MN_IOMUXC_UART3_TXD_UART3_DCE_TX 0x140 |
| 811 | MX8MN_IOMUXC_SD1_CLK_GPIO2_IO0 0x140 /* CTS */ |
| 812 | MX8MN_IOMUXC_SD1_CMD_GPIO2_IO1 0x140 /* RTS */ |
| 813 | >; |
| 814 | }; |
| 815 | |
| 816 | pinctrl_uart4: uart4grp { |
| 817 | fsl,pins = < |
| 818 | MX8MN_IOMUXC_UART4_RXD_UART4_DCE_RX 0x140 |
| 819 | MX8MN_IOMUXC_UART4_TXD_UART4_DCE_TX 0x140 |
| 820 | MX8MN_IOMUXC_GPIO1_IO06_GPIO1_IO6 0x141 /* GNSS_GASP */ |
| 821 | >; |
| 822 | }; |
| 823 | |
| 824 | pinctrl_usdhc2: usdhc2grp { |
| 825 | fsl,pins = < |
| 826 | MX8MN_IOMUXC_SD2_CLK_USDHC2_CLK 0x190 |
| 827 | MX8MN_IOMUXC_SD2_CMD_USDHC2_CMD 0x1d0 |
| 828 | MX8MN_IOMUXC_SD2_DATA0_USDHC2_DATA0 0x1d0 |
| 829 | MX8MN_IOMUXC_SD2_DATA1_USDHC2_DATA1 0x1d0 |
| 830 | MX8MN_IOMUXC_SD2_DATA2_USDHC2_DATA2 0x1d0 |
| 831 | MX8MN_IOMUXC_SD2_DATA3_USDHC2_DATA3 0x1d0 |
| 832 | >; |
| 833 | }; |
| 834 | |
| 835 | pinctrl_usdhc3: usdhc3grp { |
| 836 | fsl,pins = < |
| 837 | MX8MN_IOMUXC_NAND_WE_B_USDHC3_CLK 0x190 |
| 838 | MX8MN_IOMUXC_NAND_WP_B_USDHC3_CMD 0x1d0 |
| 839 | MX8MN_IOMUXC_NAND_DATA04_USDHC3_DATA0 0x1d0 |
| 840 | MX8MN_IOMUXC_NAND_DATA05_USDHC3_DATA1 0x1d0 |
| 841 | MX8MN_IOMUXC_NAND_DATA06_USDHC3_DATA2 0x1d0 |
| 842 | MX8MN_IOMUXC_NAND_DATA07_USDHC3_DATA3 0x1d0 |
| 843 | MX8MN_IOMUXC_NAND_RE_B_USDHC3_DATA4 0x1d0 |
| 844 | MX8MN_IOMUXC_NAND_CE2_B_USDHC3_DATA5 0x1d0 |
| 845 | MX8MN_IOMUXC_NAND_CE3_B_USDHC3_DATA6 0x1d0 |
| 846 | MX8MN_IOMUXC_NAND_CLE_USDHC3_DATA7 0x1d0 |
| 847 | MX8MN_IOMUXC_NAND_CE1_B_USDHC3_STROBE 0x190 |
| 848 | >; |
| 849 | }; |
| 850 | |
| 851 | pinctrl_usdhc3_100mhz: usdhc3-100mhzgrp { |
| 852 | fsl,pins = < |
| 853 | MX8MN_IOMUXC_NAND_WE_B_USDHC3_CLK 0x194 |
| 854 | MX8MN_IOMUXC_NAND_WP_B_USDHC3_CMD 0x1d4 |
| 855 | MX8MN_IOMUXC_NAND_DATA04_USDHC3_DATA0 0x1d4 |
| 856 | MX8MN_IOMUXC_NAND_DATA05_USDHC3_DATA1 0x1d4 |
| 857 | MX8MN_IOMUXC_NAND_DATA06_USDHC3_DATA2 0x1d4 |
| 858 | MX8MN_IOMUXC_NAND_DATA07_USDHC3_DATA3 0x1d4 |
| 859 | MX8MN_IOMUXC_NAND_RE_B_USDHC3_DATA4 0x1d4 |
| 860 | MX8MN_IOMUXC_NAND_CE2_B_USDHC3_DATA5 0x1d4 |
| 861 | MX8MN_IOMUXC_NAND_CE3_B_USDHC3_DATA6 0x1d4 |
| 862 | MX8MN_IOMUXC_NAND_CLE_USDHC3_DATA7 0x1d4 |
| 863 | MX8MN_IOMUXC_NAND_CE1_B_USDHC3_STROBE 0x194 |
| 864 | >; |
| 865 | }; |
| 866 | |
| 867 | pinctrl_usdhc3_200mhz: usdhc3-200mhzgrp { |
| 868 | fsl,pins = < |
| 869 | MX8MN_IOMUXC_NAND_WE_B_USDHC3_CLK 0x196 |
| 870 | MX8MN_IOMUXC_NAND_WP_B_USDHC3_CMD 0x1d6 |
| 871 | MX8MN_IOMUXC_NAND_DATA04_USDHC3_DATA0 0x1d6 |
| 872 | MX8MN_IOMUXC_NAND_DATA05_USDHC3_DATA1 0x1d6 |
| 873 | MX8MN_IOMUXC_NAND_DATA06_USDHC3_DATA2 0x1d6 |
| 874 | MX8MN_IOMUXC_NAND_DATA07_USDHC3_DATA3 0x1d6 |
| 875 | MX8MN_IOMUXC_NAND_RE_B_USDHC3_DATA4 0x1d6 |
| 876 | MX8MN_IOMUXC_NAND_CE2_B_USDHC3_DATA5 0x1d6 |
| 877 | MX8MN_IOMUXC_NAND_CE3_B_USDHC3_DATA6 0x1d6 |
| 878 | MX8MN_IOMUXC_NAND_CLE_USDHC3_DATA7 0x1d6 |
| 879 | MX8MN_IOMUXC_NAND_CE1_B_USDHC3_STROBE 0x196 |
| 880 | >; |
| 881 | }; |
| 882 | |
| 883 | pinctrl_wdog: wdoggrp { |
| 884 | fsl,pins = < |
| 885 | MX8MN_IOMUXC_GPIO1_IO02_WDOG1_WDOG_B 0xc6 |
| 886 | >; |
| 887 | }; |
| 888 | }; |