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