1// SPDX-License-Identifier: GPL-2.0 2#include "tegra194.dtsi" 3 4#include <dt-bindings/mfd/max77620.h> 5 6/ { 7 model = "NVIDIA Jetson Xavier NX"; 8 compatible = "nvidia,p3668-0000", "nvidia,tegra194"; 9 10 aliases { 11 ethernet0 = "/bus@0/ethernet@2490000"; 12 i2c0 = "/bpmp/i2c"; 13 i2c1 = "/bus@0/i2c@3160000"; 14 i2c2 = "/bus@0/i2c@c240000"; 15 i2c3 = "/bus@0/i2c@3180000"; 16 i2c4 = "/bus@0/i2c@3190000"; 17 i2c5 = "/bus@0/i2c@31c0000"; 18 i2c6 = "/bus@0/i2c@c250000"; 19 i2c7 = "/bus@0/i2c@31e0000"; 20 mmc0 = "/bus@0/mmc@3460000"; 21 rtc0 = "/bpmp/i2c/pmic@3c"; 22 rtc1 = "/bus@0/rtc@c2a0000"; 23 serial0 = &tcu; 24 }; 25 26 chosen { 27 bootargs = "console=ttyS0,115200n8"; 28 stdout-path = "serial0:115200n8"; 29 }; 30 31 bus@0 { 32 ethernet@2490000 { 33 status = "okay"; 34 35 phy-reset-gpios = <&gpio TEGRA194_MAIN_GPIO(R, 1) GPIO_ACTIVE_LOW>; 36 phy-handle = <&phy>; 37 phy-mode = "rgmii-id"; 38 39 mdio { 40 #address-cells = <1>; 41 #size-cells = <0>; 42 43 phy: phy@0 { 44 compatible = "ethernet-phy-ieee802.3-c22"; 45 reg = <0x0>; 46 interrupt-parent = <&gpio>; 47 interrupts = <TEGRA194_MAIN_GPIO(G, 4) IRQ_TYPE_LEVEL_LOW>; 48 #phy-cells = <0>; 49 }; 50 }; 51 }; 52 53 memory-controller@2c00000 { 54 status = "okay"; 55 }; 56 57 serial@c280000 { 58 status = "okay"; 59 }; 60 61 /* SDMMC1 (SD/MMC) */ 62 mmc@3400000 { 63 status = "okay"; 64 bus-width = <4>; 65 cd-gpios = <&gpio TEGRA194_MAIN_GPIO(G, 7) GPIO_ACTIVE_LOW>; 66 disable-wp; 67 vmmc-supply = <&vdd_3v3_sd>; 68 }; 69 70 padctl@3520000 { 71 avdd-usb-supply = <&vdd_usb_3v3>; 72 vclamp-usb-supply = <&vdd_1v8ao>; 73 74 ports { 75 usb2-1 { 76 vbus-supply = <&vdd_5v0_sys>; 77 }; 78 79 usb2-3 { 80 vbus-supply = <&vdd_5v0_sys>; 81 }; 82 83 usb3-0 { 84 vbus-supply = <&vdd_5v0_sys>; 85 }; 86 87 usb3-3 { 88 vbus-supply = <&vdd_5v0_sys>; 89 }; 90 }; 91 }; 92 93 rtc@c2a0000 { 94 status = "okay"; 95 }; 96 97 pmc@c360000 { 98 nvidia,invert-interrupt; 99 }; 100 }; 101 102 bpmp { 103 i2c { 104 status = "okay"; 105 106 pmic: pmic@3c { 107 compatible = "maxim,max20024"; 108 reg = <0x3c>; 109 110 interrupt-parent = <&pmc>; 111 interrupts = <24 IRQ_TYPE_LEVEL_LOW>; 112 #interrupt-cells = <2>; 113 interrupt-controller; 114 115 #gpio-cells = <2>; 116 gpio-controller; 117 118 pinctrl-names = "default"; 119 pinctrl-0 = <&max20024_default>; 120 121 max20024_default: pinmux { 122 gpio0 { 123 pins = "gpio0"; 124 function = "gpio"; 125 }; 126 127 gpio1 { 128 pins = "gpio1"; 129 function = "fps-out"; 130 maxim,active-fps-source = <MAX77620_FPS_SRC_DEF>; 131 }; 132 133 gpio2 { 134 pins = "gpio2"; 135 function = "fps-out"; 136 maxim,active-fps-source = <MAX77620_FPS_SRC_DEF>; 137 }; 138 139 gpio3 { 140 pins = "gpio3"; 141 function = "fps-out"; 142 maxim,active-fps-source = <MAX77620_FPS_SRC_DEF>; 143 }; 144 145 gpio4 { 146 pins = "gpio4"; 147 function = "32k-out1"; 148 drive-push-pull = <1>; 149 }; 150 151 gpio6 { 152 pins = "gpio6"; 153 function = "gpio"; 154 drive-push-pull = <1>; 155 }; 156 157 gpio7 { 158 pins = "gpio7"; 159 function = "gpio"; 160 drive-push-pull = <0>; 161 }; 162 }; 163 164 fps { 165 fps0 { 166 maxim,fps-event-source = <MAX77620_FPS_EVENT_SRC_EN0>; 167 maxim,shutdown-fps-time-period-us = <640>; 168 }; 169 170 fps1 { 171 maxim,fps-event-source = <MAX77620_FPS_EVENT_SRC_EN1>; 172 maxim,shutdown-fps-time-period-us = <640>; 173 maxim,device-state-on-disabled-event = <MAX77620_FPS_INACTIVE_STATE_SLEEP>; 174 }; 175 176 fps2 { 177 maxim,fps-event-source = <MAX77620_FPS_EVENT_SRC_EN0>; 178 maxim,shutdown-fps-time-period-us = <640>; 179 }; 180 }; 181 182 regulators { 183 in-sd0-supply = <&vdd_5v0_sys>; 184 in-sd1-supply = <&vdd_5v0_sys>; 185 in-sd2-supply = <&vdd_5v0_sys>; 186 in-sd3-supply = <&vdd_5v0_sys>; 187 in-sd4-supply = <&vdd_5v0_sys>; 188 189 in-ldo0-1-supply = <&vdd_5v0_sys>; 190 in-ldo2-supply = <&vdd_5v0_sys>; 191 in-ldo3-5-supply = <&vdd_5v0_sys>; 192 in-ldo4-6-supply = <&vdd_5v0_sys>; 193 in-ldo7-8-supply = <&vdd_1v8ls>; 194 195 vdd_1v0: sd0 { 196 regulator-name = "VDDIO_SYS_1V0"; 197 regulator-min-microvolt = <1000000>; 198 regulator-max-microvolt = <1000000>; 199 regulator-always-on; 200 regulator-boot-on; 201 }; 202 203 vdd_1v8hs: sd1 { 204 regulator-name = "VDDIO_SYS_1V8HS"; 205 regulator-min-microvolt = <1800000>; 206 regulator-max-microvolt = <1800000>; 207 regulator-always-on; 208 regulator-boot-on; 209 }; 210 211 vdd_1v8ls: sd2 { 212 regulator-name = "VDDIO_SYS_1V8LS"; 213 regulator-min-microvolt = <1800000>; 214 regulator-max-microvolt = <1800000>; 215 regulator-always-on; 216 regulator-boot-on; 217 }; 218 219 vdd_1v8ao: sd3 { 220 regulator-name = "VDDIO_AO_1V8"; 221 regulator-min-microvolt = <1800000>; 222 regulator-max-microvolt = <1800000>; 223 regulator-always-on; 224 regulator-boot-on; 225 }; 226 227 sd4 { 228 regulator-name = "VDD_DDR_1V1"; 229 regulator-min-microvolt = <1100000>; 230 regulator-max-microvolt = <1100000>; 231 regulator-always-on; 232 regulator-boot-on; 233 }; 234 235 ldo0 { 236 regulator-name = "VDD_RTC"; 237 regulator-min-microvolt = <800000>; 238 regulator-max-microvolt = <800000>; 239 regulator-always-on; 240 regulator-boot-on; 241 }; 242 243 ldo2 { 244 regulator-name = "VDDIO_AO_3V3"; 245 regulator-min-microvolt = <3300000>; 246 regulator-max-microvolt = <3300000>; 247 regulator-always-on; 248 regulator-boot-on; 249 }; 250 251 ldo3 { 252 regulator-name = "VDD_EMMC_3V3"; 253 regulator-min-microvolt = <3300000>; 254 regulator-max-microvolt = <3300000>; 255 }; 256 257 vdd_usb_3v3: ldo5 { 258 regulator-name = "VDD_USB_3V3"; 259 regulator-min-microvolt = <3300000>; 260 regulator-max-microvolt = <3300000>; 261 regulator-always-on; 262 regulator-boot-on; 263 }; 264 265 ldo6 { 266 regulator-name = "VDD_SDIO_3V3"; 267 regulator-min-microvolt = <3300000>; 268 regulator-max-microvolt = <3300000>; 269 }; 270 271 ldo7 { 272 regulator-name = "AVDD_CSI_1V2"; 273 regulator-min-microvolt = <1200000>; 274 regulator-max-microvolt = <1200000>; 275 }; 276 }; 277 }; 278 }; 279 }; 280 281 vdd_3v3_sd: regulator@0 { 282 compatible = "regulator-fixed"; 283 regulator-name = "VDD_3V3_SD"; 284 regulator-min-microvolt = <3300000>; 285 regulator-max-microvolt = <3300000>; 286 gpio = <&gpio TEGRA194_MAIN_GPIO(G, 2) GPIO_ACTIVE_HIGH>; 287 regulator-boot-on; 288 enable-active-high; 289 }; 290}; 291