| .. | .. |
|---|
| 4 | 4 | #include <dt-bindings/mfd/max77620.h> |
|---|
| 5 | 5 | |
|---|
| 6 | 6 | / { |
|---|
| 7 | | - model = "NVIDIA Tegra186 P3310 Processor Module"; |
|---|
| 7 | + model = "NVIDIA Jetson TX2"; |
|---|
| 8 | 8 | compatible = "nvidia,p3310", "nvidia,tegra186"; |
|---|
| 9 | 9 | |
|---|
| 10 | 10 | aliases { |
|---|
| 11 | | - sdhci0 = "/sdhci@3460000"; |
|---|
| 12 | | - sdhci1 = "/sdhci@3400000"; |
|---|
| 13 | | - serial0 = &uarta; |
|---|
| 11 | + ethernet0 = "/ethernet@2490000"; |
|---|
| 14 | 12 | i2c0 = "/bpmp/i2c"; |
|---|
| 15 | 13 | i2c1 = "/i2c@3160000"; |
|---|
| 16 | 14 | i2c2 = "/i2c@c240000"; |
|---|
| .. | .. |
|---|
| 19 | 17 | i2c5 = "/i2c@31c0000"; |
|---|
| 20 | 18 | i2c6 = "/i2c@c250000"; |
|---|
| 21 | 19 | i2c7 = "/i2c@31e0000"; |
|---|
| 20 | + mmc0 = "/mmc@3460000"; |
|---|
| 21 | + mmc1 = "/mmc@3400000"; |
|---|
| 22 | + serial0 = &uarta; |
|---|
| 22 | 23 | }; |
|---|
| 23 | 24 | |
|---|
| 24 | 25 | chosen { |
|---|
| .. | .. |
|---|
| 26 | 27 | stdout-path = "serial0:115200n8"; |
|---|
| 27 | 28 | }; |
|---|
| 28 | 29 | |
|---|
| 29 | | - memory { |
|---|
| 30 | + memory@80000000 { |
|---|
| 30 | 31 | device_type = "memory"; |
|---|
| 31 | 32 | reg = <0x0 0x80000000 0x2 0x00000000>; |
|---|
| 32 | 33 | }; |
|---|
| .. | .. |
|---|
| 34 | 35 | ethernet@2490000 { |
|---|
| 35 | 36 | status = "okay"; |
|---|
| 36 | 37 | |
|---|
| 37 | | - phy-reset-gpios = <&gpio TEGRA_MAIN_GPIO(M, 4) GPIO_ACTIVE_LOW>; |
|---|
| 38 | + phy-reset-gpios = <&gpio TEGRA186_MAIN_GPIO(M, 4) |
|---|
| 39 | + GPIO_ACTIVE_LOW>; |
|---|
| 38 | 40 | phy-handle = <&phy>; |
|---|
| 39 | 41 | phy-mode = "rgmii"; |
|---|
| 40 | 42 | |
|---|
| .. | .. |
|---|
| 46 | 48 | compatible = "ethernet-phy-ieee802.3-c22"; |
|---|
| 47 | 49 | reg = <0x0>; |
|---|
| 48 | 50 | interrupt-parent = <&gpio>; |
|---|
| 49 | | - interrupts = <TEGRA_MAIN_GPIO(M, 5) IRQ_TYPE_LEVEL_LOW>; |
|---|
| 51 | + interrupts = <TEGRA186_MAIN_GPIO(M, 5) |
|---|
| 52 | + IRQ_TYPE_LEVEL_LOW>; |
|---|
| 53 | + |
|---|
| 54 | + #phy-cells = <0>; |
|---|
| 50 | 55 | }; |
|---|
| 51 | 56 | }; |
|---|
| 52 | 57 | }; |
|---|
| .. | .. |
|---|
| 65 | 70 | power-monitor@40 { |
|---|
| 66 | 71 | compatible = "ti,ina3221"; |
|---|
| 67 | 72 | reg = <0x40>; |
|---|
| 73 | + #address-cells = <1>; |
|---|
| 74 | + #size-cells = <0>; |
|---|
| 75 | + |
|---|
| 76 | + channel@0 { |
|---|
| 77 | + reg = <0x0>; |
|---|
| 78 | + label = "VDD_SYS_GPU"; |
|---|
| 79 | + shunt-resistor-micro-ohms = <10000>; |
|---|
| 80 | + }; |
|---|
| 81 | + |
|---|
| 82 | + channel@1 { |
|---|
| 83 | + reg = <0x1>; |
|---|
| 84 | + label = "VDD_SYS_SOC"; |
|---|
| 85 | + shunt-resistor-micro-ohms = <10000>; |
|---|
| 86 | + }; |
|---|
| 87 | + |
|---|
| 88 | + channel@2 { |
|---|
| 89 | + reg = <0x2>; |
|---|
| 90 | + label = "VDD_3V8_WIFI"; |
|---|
| 91 | + shunt-resistor-micro-ohms = <10000>; |
|---|
| 92 | + }; |
|---|
| 68 | 93 | }; |
|---|
| 69 | 94 | |
|---|
| 70 | 95 | power-monitor@41 { |
|---|
| 71 | 96 | compatible = "ti,ina3221"; |
|---|
| 72 | 97 | reg = <0x41>; |
|---|
| 98 | + #address-cells = <1>; |
|---|
| 99 | + #size-cells = <0>; |
|---|
| 100 | + |
|---|
| 101 | + channel@0 { |
|---|
| 102 | + reg = <0x0>; |
|---|
| 103 | + label = "VDD_IN"; |
|---|
| 104 | + shunt-resistor-micro-ohms = <5000>; |
|---|
| 105 | + }; |
|---|
| 106 | + |
|---|
| 107 | + channel@1 { |
|---|
| 108 | + reg = <0x1>; |
|---|
| 109 | + label = "VDD_SYS_CPU"; |
|---|
| 110 | + shunt-resistor-micro-ohms = <10000>; |
|---|
| 111 | + }; |
|---|
| 112 | + |
|---|
| 113 | + channel@2 { |
|---|
| 114 | + reg = <0x2>; |
|---|
| 115 | + label = "VDD_5V0_DDR"; |
|---|
| 116 | + shunt-resistor-micro-ohms = <10000>; |
|---|
| 117 | + }; |
|---|
| 73 | 118 | }; |
|---|
| 74 | 119 | }; |
|---|
| 75 | 120 | |
|---|
| .. | .. |
|---|
| 90 | 135 | }; |
|---|
| 91 | 136 | |
|---|
| 92 | 137 | /* SDMMC1 (SD/MMC) */ |
|---|
| 93 | | - sdhci@3400000 { |
|---|
| 94 | | - cd-gpios = <&gpio TEGRA_MAIN_GPIO(P, 5) GPIO_ACTIVE_LOW>; |
|---|
| 95 | | - wp-gpios = <&gpio TEGRA_MAIN_GPIO(P, 4) GPIO_ACTIVE_HIGH>; |
|---|
| 138 | + mmc@3400000 { |
|---|
| 139 | + cd-gpios = <&gpio TEGRA186_MAIN_GPIO(P, 5) GPIO_ACTIVE_LOW>; |
|---|
| 140 | + wp-gpios = <&gpio TEGRA186_MAIN_GPIO(P, 4) GPIO_ACTIVE_HIGH>; |
|---|
| 96 | 141 | |
|---|
| 97 | 142 | vqmmc-supply = <&vddio_sdmmc1>; |
|---|
| 98 | 143 | }; |
|---|
| 99 | 144 | |
|---|
| 100 | 145 | /* SDMMC3 (SDIO) */ |
|---|
| 101 | | - sdhci@3440000 { |
|---|
| 146 | + mmc@3440000 { |
|---|
| 102 | 147 | status = "okay"; |
|---|
| 103 | 148 | }; |
|---|
| 104 | 149 | |
|---|
| 105 | 150 | /* SDMMC4 (eMMC) */ |
|---|
| 106 | | - sdhci@3460000 { |
|---|
| 151 | + mmc@3460000 { |
|---|
| 107 | 152 | status = "okay"; |
|---|
| 108 | 153 | bus-width = <8>; |
|---|
| 109 | 154 | non-removable; |
|---|
| .. | .. |
|---|
| 121 | 166 | }; |
|---|
| 122 | 167 | |
|---|
| 123 | 168 | i2c@c250000 { |
|---|
| 169 | + status = "okay"; |
|---|
| 170 | + |
|---|
| 171 | + /* module ID EEPROM */ |
|---|
| 172 | + eeprom@50 { |
|---|
| 173 | + compatible = "atmel,24c02"; |
|---|
| 174 | + reg = <0x50>; |
|---|
| 175 | + |
|---|
| 176 | + label = "module"; |
|---|
| 177 | + vcc-supply = <&vdd_1v8>; |
|---|
| 178 | + address-width = <8>; |
|---|
| 179 | + pagesize = <8>; |
|---|
| 180 | + size = <256>; |
|---|
| 181 | + read-only; |
|---|
| 182 | + }; |
|---|
| 183 | + }; |
|---|
| 184 | + |
|---|
| 185 | + rtc@c2a0000 { |
|---|
| 124 | 186 | status = "okay"; |
|---|
| 125 | 187 | }; |
|---|
| 126 | 188 | |
|---|
| .. | .. |
|---|
| 162 | 224 | compatible = "maxim,max77620"; |
|---|
| 163 | 225 | reg = <0x3c>; |
|---|
| 164 | 226 | |
|---|
| 165 | | - interrupts = <GIC_SPI 209 IRQ_TYPE_LEVEL_HIGH>; |
|---|
| 227 | + interrupt-parent = <&pmc>; |
|---|
| 228 | + interrupts = <24 IRQ_TYPE_LEVEL_LOW>; |
|---|
| 166 | 229 | #interrupt-cells = <2>; |
|---|
| 167 | 230 | interrupt-controller; |
|---|
| 168 | 231 | |
|---|
| .. | .. |
|---|
| 262 | 325 | regulator-name = "AVDD_DSI_CSI_1V2"; |
|---|
| 263 | 326 | regulator-min-microvolt = <1200000>; |
|---|
| 264 | 327 | regulator-max-microvolt = <1200000>; |
|---|
| 265 | | - /* XXX */ |
|---|
| 266 | | - regulator-always-on; |
|---|
| 267 | | - regulator-boot-on; |
|---|
| 268 | 328 | }; |
|---|
| 269 | 329 | |
|---|
| 270 | 330 | vdd_1v8: sd2 { |
|---|
| 271 | 331 | regulator-name = "VDD_1V8"; |
|---|
| 272 | 332 | regulator-min-microvolt = <1800000>; |
|---|
| 273 | 333 | regulator-max-microvolt = <1800000>; |
|---|
| 274 | | - /* XXX */ |
|---|
| 275 | | - regulator-always-on; |
|---|
| 276 | | - regulator-boot-on; |
|---|
| 277 | 334 | }; |
|---|
| 278 | 335 | |
|---|
| 279 | 336 | vdd_3v3_sys: sd3 { |
|---|
| 280 | 337 | regulator-name = "VDD_3V3_SYS"; |
|---|
| 281 | 338 | regulator-min-microvolt = <3300000>; |
|---|
| 282 | 339 | regulator-max-microvolt = <3300000>; |
|---|
| 283 | | - /* XXX */ |
|---|
| 284 | | - regulator-always-on; |
|---|
| 285 | | - regulator-boot-on; |
|---|
| 286 | 340 | }; |
|---|
| 287 | 341 | |
|---|
| 288 | | - ldo0 { |
|---|
| 342 | + vdd_1v8_pll: ldo0 { |
|---|
| 289 | 343 | regulator-name = "VDD_1V8_AP_PLL"; |
|---|
| 290 | 344 | regulator-min-microvolt = <1800000>; |
|---|
| 291 | 345 | regulator-max-microvolt = <1800000>; |
|---|
| 292 | | - /* XXX */ |
|---|
| 293 | | - regulator-always-on; |
|---|
| 294 | | - regulator-boot-on; |
|---|
| 295 | 346 | }; |
|---|
| 296 | 347 | |
|---|
| 297 | 348 | ldo2 { |
|---|
| 298 | 349 | regulator-name = "VDDIO_3V3_AOHV"; |
|---|
| 299 | 350 | regulator-min-microvolt = <3300000>; |
|---|
| 300 | 351 | regulator-max-microvolt = <3300000>; |
|---|
| 301 | | - /* XXX */ |
|---|
| 302 | 352 | regulator-always-on; |
|---|
| 303 | 353 | regulator-boot-on; |
|---|
| 304 | 354 | }; |
|---|
| .. | .. |
|---|
| 325 | 375 | regulator-name = "VDD_HDMI_1V05"; |
|---|
| 326 | 376 | regulator-min-microvolt = <1050000>; |
|---|
| 327 | 377 | regulator-max-microvolt = <1050000>; |
|---|
| 328 | | - /* XXX */ |
|---|
| 329 | | - regulator-always-on; |
|---|
| 330 | | - regulator-boot-on; |
|---|
| 331 | 378 | }; |
|---|
| 332 | 379 | |
|---|
| 333 | 380 | vdd_pex: ldo8 { |
|---|
| 334 | 381 | regulator-name = "VDD_PEX_1V05"; |
|---|
| 335 | 382 | regulator-min-microvolt = <1050000>; |
|---|
| 336 | 383 | regulator-max-microvolt = <1050000>; |
|---|
| 337 | | - /* XXX */ |
|---|
| 338 | | - regulator-always-on; |
|---|
| 339 | | - regulator-boot-on; |
|---|
| 340 | 384 | }; |
|---|
| 341 | 385 | }; |
|---|
| 342 | 386 | }; |
|---|
| .. | .. |
|---|
| 349 | 393 | method = "smc"; |
|---|
| 350 | 394 | }; |
|---|
| 351 | 395 | |
|---|
| 352 | | - regulators { |
|---|
| 353 | | - compatible = "simple-bus"; |
|---|
| 354 | | - #address-cells = <1>; |
|---|
| 355 | | - #size-cells = <0>; |
|---|
| 396 | + gnd: regulator@0 { |
|---|
| 397 | + compatible = "regulator-fixed"; |
|---|
| 398 | + regulator-name = "GND"; |
|---|
| 399 | + regulator-min-microvolt = <0>; |
|---|
| 400 | + regulator-max-microvolt = <0>; |
|---|
| 401 | + regulator-always-on; |
|---|
| 402 | + regulator-boot-on; |
|---|
| 403 | + }; |
|---|
| 356 | 404 | |
|---|
| 357 | | - vdd_5v0_sys: regulator@0 { |
|---|
| 358 | | - compatible = "regulator-fixed"; |
|---|
| 359 | | - reg = <0>; |
|---|
| 405 | + vdd_5v0_sys: regulator@1 { |
|---|
| 406 | + compatible = "regulator-fixed"; |
|---|
| 407 | + regulator-name = "VDD_5V0_SYS"; |
|---|
| 408 | + regulator-min-microvolt = <5000000>; |
|---|
| 409 | + regulator-max-microvolt = <5000000>; |
|---|
| 410 | + regulator-always-on; |
|---|
| 411 | + regulator-boot-on; |
|---|
| 412 | + }; |
|---|
| 360 | 413 | |
|---|
| 361 | | - regulator-name = "VDD_5V0_SYS"; |
|---|
| 362 | | - regulator-min-microvolt = <5000000>; |
|---|
| 363 | | - regulator-max-microvolt = <5000000>; |
|---|
| 364 | | - regulator-always-on; |
|---|
| 365 | | - regulator-boot-on; |
|---|
| 366 | | - }; |
|---|
| 414 | + vdd_1v8_ap: regulator@2 { |
|---|
| 415 | + compatible = "regulator-fixed"; |
|---|
| 416 | + regulator-name = "VDD_1V8_AP"; |
|---|
| 417 | + regulator-min-microvolt = <1800000>; |
|---|
| 418 | + regulator-max-microvolt = <1800000>; |
|---|
| 367 | 419 | |
|---|
| 368 | | - vdd_1v8_ap: regulator@1 { |
|---|
| 369 | | - compatible = "regulator-fixed"; |
|---|
| 370 | | - reg = <1>; |
|---|
| 420 | + gpio = <&pmic 1 GPIO_ACTIVE_HIGH>; |
|---|
| 421 | + enable-active-high; |
|---|
| 371 | 422 | |
|---|
| 372 | | - regulator-name = "VDD_1V8_AP"; |
|---|
| 373 | | - regulator-min-microvolt = <1800000>; |
|---|
| 374 | | - regulator-max-microvolt = <1800000>; |
|---|
| 375 | | - |
|---|
| 376 | | - /* XXX */ |
|---|
| 377 | | - regulator-always-on; |
|---|
| 378 | | - regulator-boot-on; |
|---|
| 379 | | - |
|---|
| 380 | | - gpio = <&pmic 1 GPIO_ACTIVE_HIGH>; |
|---|
| 381 | | - enable-active-high; |
|---|
| 382 | | - |
|---|
| 383 | | - vin-supply = <&vdd_1v8>; |
|---|
| 384 | | - }; |
|---|
| 423 | + vin-supply = <&vdd_1v8>; |
|---|
| 385 | 424 | }; |
|---|
| 386 | 425 | }; |
|---|