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