1 // SPDX-License-Identifier: GPL-2.0 1 // SPDX-License-Identifier: GPL-2.0 2 #include "tegra186.dtsi" 2 #include "tegra186.dtsi" 3 3 4 #include <dt-bindings/mfd/max77620.h> 4 #include <dt-bindings/mfd/max77620.h> 5 5 6 / { 6 / { 7 model = "NVIDIA Jetson TX2"; 7 model = "NVIDIA Jetson TX2"; 8 compatible = "nvidia,p3310", "nvidia,t 8 compatible = "nvidia,p3310", "nvidia,tegra186"; 9 9 10 aliases { 10 aliases { 11 ethernet0 = "/ethernet@2490000 11 ethernet0 = "/ethernet@2490000"; 12 i2c0 = "/bpmp/i2c"; 12 i2c0 = "/bpmp/i2c"; 13 i2c1 = "/i2c@3160000"; 13 i2c1 = "/i2c@3160000"; 14 i2c2 = "/i2c@c240000"; 14 i2c2 = "/i2c@c240000"; 15 i2c3 = "/i2c@3180000"; 15 i2c3 = "/i2c@3180000"; 16 i2c4 = "/i2c@3190000"; 16 i2c4 = "/i2c@3190000"; 17 i2c5 = "/i2c@31c0000"; 17 i2c5 = "/i2c@31c0000"; 18 i2c6 = "/i2c@c250000"; 18 i2c6 = "/i2c@c250000"; 19 i2c7 = "/i2c@31e0000"; 19 i2c7 = "/i2c@31e0000"; 20 mmc0 = "/mmc@3460000"; 20 mmc0 = "/mmc@3460000"; 21 mmc1 = "/mmc@3400000"; 21 mmc1 = "/mmc@3400000"; 22 serial0 = &uarta; 22 serial0 = &uarta; 23 }; 23 }; 24 24 25 chosen { 25 chosen { 26 bootargs = "earlycon console=t 26 bootargs = "earlycon console=ttyS0,115200n8 fw_devlink=on"; 27 stdout-path = "serial0:115200n 27 stdout-path = "serial0:115200n8"; 28 }; 28 }; 29 29 30 memory@80000000 { 30 memory@80000000 { 31 device_type = "memory"; 31 device_type = "memory"; 32 reg = <0x0 0x80000000 0x2 0x00 32 reg = <0x0 0x80000000 0x2 0x00000000>; 33 }; 33 }; 34 34 35 ethernet@2490000 { 35 ethernet@2490000 { 36 status = "okay"; 36 status = "okay"; 37 37 38 phy-reset-gpios = <&gpio TEGRA 38 phy-reset-gpios = <&gpio TEGRA186_MAIN_GPIO(M, 4) 39 GPIO_ 39 GPIO_ACTIVE_LOW>; 40 phy-handle = <&phy>; 40 phy-handle = <&phy>; 41 phy-mode = "rgmii"; 41 phy-mode = "rgmii"; 42 42 43 mdio { 43 mdio { 44 #address-cells = <1>; 44 #address-cells = <1>; 45 #size-cells = <0>; 45 #size-cells = <0>; 46 46 47 phy: ethernet-phy@0 { 47 phy: ethernet-phy@0 { 48 compatible = " 48 compatible = "ethernet-phy-ieee802.3-c22"; 49 reg = <0x0>; 49 reg = <0x0>; 50 interrupt-pare 50 interrupt-parent = <&gpio>; 51 interrupts = < 51 interrupts = <TEGRA186_MAIN_GPIO(M, 5) 52 52 IRQ_TYPE_LEVEL_LOW>; 53 53 54 #phy-cells = < 54 #phy-cells = <0>; 55 }; 55 }; 56 }; 56 }; 57 }; 57 }; 58 58 59 memory-controller@2c00000 { 59 memory-controller@2c00000 { 60 status = "okay"; 60 status = "okay"; 61 }; 61 }; 62 62 63 serial@3100000 { 63 serial@3100000 { 64 status = "okay"; 64 status = "okay"; 65 }; 65 }; 66 66 67 i2c@3160000 { 67 i2c@3160000 { 68 status = "okay"; 68 status = "okay"; 69 69 70 power-monitor@40 { 70 power-monitor@40 { 71 compatible = "ti,ina32 71 compatible = "ti,ina3221"; 72 reg = <0x40>; 72 reg = <0x40>; 73 #address-cells = <1>; 73 #address-cells = <1>; 74 #size-cells = <0>; 74 #size-cells = <0>; 75 75 76 input@0 { 76 input@0 { 77 reg = <0x0>; 77 reg = <0x0>; 78 label = "VDD_S 78 label = "VDD_SYS_GPU"; 79 shunt-resistor 79 shunt-resistor-micro-ohms = <10000>; 80 }; 80 }; 81 81 82 input@1 { 82 input@1 { 83 reg = <0x1>; 83 reg = <0x1>; 84 label = "VDD_S 84 label = "VDD_SYS_SOC"; 85 shunt-resistor 85 shunt-resistor-micro-ohms = <10000>; 86 }; 86 }; 87 87 88 input@2 { 88 input@2 { 89 reg = <0x2>; 89 reg = <0x2>; 90 label = "VDD_3 90 label = "VDD_3V8_WIFI"; 91 shunt-resistor 91 shunt-resistor-micro-ohms = <10000>; 92 }; 92 }; 93 }; 93 }; 94 94 95 power-monitor@41 { 95 power-monitor@41 { 96 compatible = "ti,ina32 96 compatible = "ti,ina3221"; 97 reg = <0x41>; 97 reg = <0x41>; 98 #address-cells = <1>; 98 #address-cells = <1>; 99 #size-cells = <0>; 99 #size-cells = <0>; 100 100 101 input@0 { 101 input@0 { 102 reg = <0x0>; 102 reg = <0x0>; 103 label = "VDD_I 103 label = "VDD_IN"; 104 shunt-resistor 104 shunt-resistor-micro-ohms = <5000>; 105 }; 105 }; 106 106 107 input@1 { 107 input@1 { 108 reg = <0x1>; 108 reg = <0x1>; 109 label = "VDD_S 109 label = "VDD_SYS_CPU"; 110 shunt-resistor 110 shunt-resistor-micro-ohms = <10000>; 111 }; 111 }; 112 112 113 input@2 { 113 input@2 { 114 reg = <0x2>; 114 reg = <0x2>; 115 label = "VDD_5 115 label = "VDD_5V0_DDR"; 116 shunt-resistor 116 shunt-resistor-micro-ohms = <10000>; 117 }; 117 }; 118 }; 118 }; 119 }; 119 }; 120 120 121 i2c@3180000 { 121 i2c@3180000 { 122 status = "okay"; 122 status = "okay"; 123 }; 123 }; 124 124 125 ddc: i2c@3190000 { 125 ddc: i2c@3190000 { 126 status = "okay"; 126 status = "okay"; 127 }; 127 }; 128 128 129 i2c@31c0000 { 129 i2c@31c0000 { 130 status = "okay"; 130 status = "okay"; 131 }; 131 }; 132 132 133 i2c@31e0000 { 133 i2c@31e0000 { 134 status = "okay"; 134 status = "okay"; 135 }; 135 }; 136 136 137 /* SDMMC1 (SD/MMC) */ 137 /* SDMMC1 (SD/MMC) */ 138 mmc@3400000 { 138 mmc@3400000 { 139 cd-gpios = <&gpio TEGRA186_MAI 139 cd-gpios = <&gpio TEGRA186_MAIN_GPIO(P, 5) GPIO_ACTIVE_LOW>; 140 wp-gpios = <&gpio TEGRA186_MAI 140 wp-gpios = <&gpio TEGRA186_MAIN_GPIO(P, 4) GPIO_ACTIVE_HIGH>; 141 141 142 vqmmc-supply = <&vddio_sdmmc1> 142 vqmmc-supply = <&vddio_sdmmc1>; 143 }; 143 }; 144 144 145 /* SDMMC3 (SDIO) */ 145 /* SDMMC3 (SDIO) */ 146 mmc@3440000 { 146 mmc@3440000 { 147 status = "okay"; 147 status = "okay"; 148 vqmmc-supply = <&vddio_sdmmc3> << 149 }; 148 }; 150 149 151 /* SDMMC4 (eMMC) */ 150 /* SDMMC4 (eMMC) */ 152 mmc@3460000 { 151 mmc@3460000 { 153 status = "okay"; 152 status = "okay"; 154 bus-width = <8>; 153 bus-width = <8>; 155 non-removable; 154 non-removable; 156 155 157 vqmmc-supply = <&vdd_1v8_ap>; 156 vqmmc-supply = <&vdd_1v8_ap>; 158 vmmc-supply = <&vdd_3v3_sys>; 157 vmmc-supply = <&vdd_3v3_sys>; 159 }; 158 }; 160 159 161 hsp@3c00000 { 160 hsp@3c00000 { 162 status = "okay"; 161 status = "okay"; 163 }; 162 }; 164 163 165 i2c@c240000 { 164 i2c@c240000 { 166 status = "okay"; 165 status = "okay"; 167 }; 166 }; 168 167 169 i2c@c250000 { 168 i2c@c250000 { 170 status = "okay"; 169 status = "okay"; 171 170 172 /* module ID EEPROM */ 171 /* module ID EEPROM */ 173 eeprom@50 { 172 eeprom@50 { 174 compatible = "atmel,24 173 compatible = "atmel,24c02"; 175 reg = <0x50>; 174 reg = <0x50>; 176 175 177 label = "module"; 176 label = "module"; 178 vcc-supply = <&vdd_1v8 177 vcc-supply = <&vdd_1v8>; 179 address-width = <8>; 178 address-width = <8>; 180 pagesize = <8>; 179 pagesize = <8>; 181 size = <256>; 180 size = <256>; 182 read-only; 181 read-only; 183 }; 182 }; 184 }; 183 }; 185 184 186 rtc@c2a0000 { 185 rtc@c2a0000 { 187 status = "okay"; 186 status = "okay"; 188 }; 187 }; 189 188 190 pmc@c360000 { 189 pmc@c360000 { 191 nvidia,invert-interrupt; 190 nvidia,invert-interrupt; 192 }; 191 }; 193 192 194 bpmp { 193 bpmp { 195 i2c { 194 i2c { 196 status = "okay"; 195 status = "okay"; 197 196 198 pmic: pmic@3c { 197 pmic: pmic@3c { 199 compatible = " 198 compatible = "maxim,max77620"; 200 reg = <0x3c>; 199 reg = <0x3c>; 201 200 202 interrupt-pare 201 interrupt-parent = <&pmc>; 203 interrupts = < 202 interrupts = <24 IRQ_TYPE_LEVEL_LOW>; 204 #interrupt-cel 203 #interrupt-cells = <2>; 205 interrupt-cont 204 interrupt-controller; 206 205 207 #gpio-cells = 206 #gpio-cells = <2>; 208 gpio-controlle 207 gpio-controller; 209 208 210 pinctrl-names 209 pinctrl-names = "default"; 211 pinctrl-0 = <& 210 pinctrl-0 = <&max77620_default>; 212 211 213 fps { 212 fps { 214 fps0 { 213 fps0 { 215 214 maxim,fps-event-source = <MAX77620_FPS_EVENT_SRC_EN0>; 216 215 maxim,shutdown-fps-time-period-us = <640>; 217 }; 216 }; 218 217 219 fps1 { 218 fps1 { 220 219 maxim,fps-event-source = <MAX77620_FPS_EVENT_SRC_EN1>; 221 220 maxim,shutdown-fps-time-period-us = <640>; 222 }; 221 }; 223 222 224 fps2 { 223 fps2 { 225 224 maxim,fps-event-source = <MAX77620_FPS_EVENT_SRC_EN0>; 226 225 maxim,shutdown-fps-time-period-us = <640>; 227 }; 226 }; 228 }; 227 }; 229 228 230 max77620_defau 229 max77620_default: pinmux { 231 gpio0 230 gpio0 { 232 231 pins = "gpio0"; 233 232 function = "gpio"; 234 }; 233 }; 235 234 236 gpio1 235 gpio1 { 237 236 pins = "gpio1"; 238 237 function = "fps-out"; 239 238 maxim,active-fps-source = <MAX77620_FPS_SRC_0>; 240 }; 239 }; 241 240 242 gpio2 241 gpio2 { 243 242 pins = "gpio2"; 244 243 function = "fps-out"; 245 244 maxim,active-fps-source = <MAX77620_FPS_SRC_1>; 246 }; 245 }; 247 246 248 gpio3 247 gpio3 { 249 248 pins = "gpio3"; 250 249 function = "fps-out"; 251 250 maxim,active-fps-source = <MAX77620_FPS_SRC_1>; 252 }; 251 }; 253 252 254 gpio4 253 gpio4 { 255 254 pins = "gpio4"; 256 255 function = "32k-out1"; 257 256 drive-push-pull = <1>; 258 }; 257 }; 259 258 260 gpio5 259 gpio5 { 261 260 pins = "gpio5"; 262 261 function = "gpio"; 263 262 drive-push-pull = <0>; 264 }; 263 }; 265 264 266 gpio6 265 gpio6 { 267 266 pins = "gpio6"; 268 267 function = "gpio"; 269 268 drive-push-pull = <1>; 270 }; 269 }; 271 270 272 gpio7 271 gpio7 { 273 272 pins = "gpio7"; 274 273 function = "gpio"; 275 274 drive-push-pull = <0>; 276 }; 275 }; 277 }; 276 }; 278 277 279 regulators { 278 regulators { 280 in-sd0 279 in-sd0-supply = <&vdd_5v0_sys>; 281 in-sd1 280 in-sd1-supply = <&vdd_5v0_sys>; 282 in-sd2 281 in-sd2-supply = <&vdd_5v0_sys>; 283 in-sd3 282 in-sd3-supply = <&vdd_5v0_sys>; 284 283 285 in-ldo 284 in-ldo0-1-supply = <&vdd_5v0_sys>; 286 in-ldo 285 in-ldo2-supply = <&vdd_5v0_sys>; 287 in-ldo 286 in-ldo3-5-supply = <&vdd_5v0_sys>; 288 in-ldo 287 in-ldo4-6-supply = <&vdd_1v8>; 289 in-ldo 288 in-ldo7-8-supply = <&avdd_dsi_csi>; 290 289 291 sd0 { 290 sd0 { 292 291 regulator-name = "VDD_DDR_1V1_PMIC"; 293 292 regulator-min-microvolt = <1100000>; 294 293 regulator-max-microvolt = <1100000>; 295 294 regulator-always-on; 296 295 regulator-boot-on; 297 }; 296 }; 298 297 299 avdd_d 298 avdd_dsi_csi: sd1 { 300 299 regulator-name = "AVDD_DSI_CSI_1V2"; 301 300 regulator-min-microvolt = <1200000>; 302 301 regulator-max-microvolt = <1200000>; 303 }; 302 }; 304 303 305 vdd_1v 304 vdd_1v8: sd2 { 306 305 regulator-name = "VDD_1V8"; 307 306 regulator-min-microvolt = <1800000>; 308 307 regulator-max-microvolt = <1800000>; 309 }; 308 }; 310 309 311 vdd_3v 310 vdd_3v3_sys: sd3 { 312 311 regulator-name = "VDD_3V3_SYS"; 313 312 regulator-min-microvolt = <3300000>; 314 313 regulator-max-microvolt = <3300000>; 315 }; 314 }; 316 315 317 vdd_1v 316 vdd_1v8_pll: ldo0 { 318 317 regulator-name = "VDD_1V8_AP_PLL"; 319 318 regulator-min-microvolt = <1800000>; 320 319 regulator-max-microvolt = <1800000>; 321 }; 320 }; 322 321 323 ldo2 { 322 ldo2 { 324 323 regulator-name = "VDDIO_3V3_AOHV"; 325 324 regulator-min-microvolt = <3300000>; 326 325 regulator-max-microvolt = <3300000>; 327 326 regulator-always-on; 328 327 regulator-boot-on; 329 }; 328 }; 330 329 331 vddio_ 330 vddio_sdmmc1: ldo3 { 332 331 regulator-name = "VDDIO_SDMMC1_AP"; 333 332 regulator-min-microvolt = <1800000>; 334 333 regulator-max-microvolt = <3300000>; 335 }; 334 }; 336 335 337 ldo4 { 336 ldo4 { 338 337 regulator-name = "VDD_RTC"; 339 338 regulator-min-microvolt = <1000000>; 340 339 regulator-max-microvolt = <1000000>; 341 }; 340 }; 342 341 343 vddio_ 342 vddio_sdmmc3: ldo5 { 344 343 regulator-name = "VDDIO_SDMMC3_AP"; 345 344 regulator-min-microvolt = <2800000>; 346 345 regulator-max-microvolt = <2800000>; 347 }; 346 }; 348 347 349 vdd_hd 348 vdd_hdmi_1v05: ldo7 { 350 349 regulator-name = "VDD_HDMI_1V05"; 351 350 regulator-min-microvolt = <1050000>; 352 351 regulator-max-microvolt = <1050000>; 353 }; 352 }; 354 353 355 vdd_pe 354 vdd_pex: ldo8 { 356 355 regulator-name = "VDD_PEX_1V05"; 357 356 regulator-min-microvolt = <1050000>; 358 357 regulator-max-microvolt = <1050000>; 359 }; 358 }; 360 }; 359 }; 361 }; 360 }; 362 }; 361 }; 363 }; 362 }; 364 363 365 cpus { 364 cpus { 366 cpu@0 { 365 cpu@0 { 367 enable-method = "psci" 366 enable-method = "psci"; 368 }; 367 }; 369 368 370 cpu@1 { 369 cpu@1 { 371 enable-method = "psci" 370 enable-method = "psci"; 372 }; 371 }; 373 372 374 cpu@2 { 373 cpu@2 { 375 enable-method = "psci" 374 enable-method = "psci"; 376 }; 375 }; 377 376 378 cpu@3 { 377 cpu@3 { 379 enable-method = "psci" 378 enable-method = "psci"; 380 }; 379 }; 381 380 382 cpu@4 { 381 cpu@4 { 383 enable-method = "psci" 382 enable-method = "psci"; 384 }; 383 }; 385 384 386 cpu@5 { 385 cpu@5 { 387 enable-method = "psci" 386 enable-method = "psci"; 388 }; 387 }; 389 }; 388 }; 390 389 391 psci { 390 psci { 392 compatible = "arm,psci-1.0"; 391 compatible = "arm,psci-1.0"; 393 status = "okay"; 392 status = "okay"; 394 method = "smc"; 393 method = "smc"; 395 }; 394 }; 396 395 397 gnd: regulator-gnd { 396 gnd: regulator-gnd { 398 compatible = "regulator-fixed" 397 compatible = "regulator-fixed"; 399 regulator-name = "GND"; 398 regulator-name = "GND"; 400 regulator-min-microvolt = <0>; 399 regulator-min-microvolt = <0>; 401 regulator-max-microvolt = <0>; 400 regulator-max-microvolt = <0>; 402 regulator-always-on; 401 regulator-always-on; 403 regulator-boot-on; 402 regulator-boot-on; 404 }; 403 }; 405 404 406 vdd_5v0_sys: regulator-vdd-5v0-sys { 405 vdd_5v0_sys: regulator-vdd-5v0-sys { 407 compatible = "regulator-fixed" 406 compatible = "regulator-fixed"; 408 regulator-name = "VDD_5V0_SYS" 407 regulator-name = "VDD_5V0_SYS"; 409 regulator-min-microvolt = <500 408 regulator-min-microvolt = <5000000>; 410 regulator-max-microvolt = <500 409 regulator-max-microvolt = <5000000>; 411 regulator-always-on; 410 regulator-always-on; 412 regulator-boot-on; 411 regulator-boot-on; 413 }; 412 }; 414 413 415 vdd_1v8_ap: regulator-vdd-1v8-ap { 414 vdd_1v8_ap: regulator-vdd-1v8-ap { 416 compatible = "regulator-fixed" 415 compatible = "regulator-fixed"; 417 regulator-name = "VDD_1V8_AP"; 416 regulator-name = "VDD_1V8_AP"; 418 regulator-min-microvolt = <180 417 regulator-min-microvolt = <1800000>; 419 regulator-max-microvolt = <180 418 regulator-max-microvolt = <1800000>; 420 419 421 gpio = <&pmic 1 GPIO_ACTIVE_HI 420 gpio = <&pmic 1 GPIO_ACTIVE_HIGH>; 422 enable-active-high; 421 enable-active-high; 423 422 424 vin-supply = <&vdd_1v8>; 423 vin-supply = <&vdd_1v8>; 425 }; 424 }; 426 }; 425 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.