1b8656c67SMikko Perttunen// SPDX-License-Identifier: GPL-2.0 2b8656c67SMikko Perttunen#include "tegra194.dtsi" 3b8656c67SMikko Perttunen 4b8656c67SMikko Perttunen#include <dt-bindings/mfd/max77620.h> 5b8656c67SMikko Perttunen 6b8656c67SMikko Perttunen/ { 7f85d82e5SThierry Reding model = "NVIDIA Jetson AGX Xavier"; 8b8656c67SMikko Perttunen compatible = "nvidia,p2888", "nvidia,tegra194"; 9b8656c67SMikko Perttunen 10b8656c67SMikko Perttunen aliases { 118b3aee8fSThierry Reding ethernet0 = "/bus@0/ethernet@2490000"; 12b8656c67SMikko Perttunen i2c0 = "/bpmp/i2c"; 138b3aee8fSThierry Reding i2c1 = "/bus@0/i2c@3160000"; 148b3aee8fSThierry Reding i2c2 = "/bus@0/i2c@c240000"; 158b3aee8fSThierry Reding i2c3 = "/bus@0/i2c@3180000"; 168b3aee8fSThierry Reding i2c4 = "/bus@0/i2c@3190000"; 178b3aee8fSThierry Reding i2c5 = "/bus@0/i2c@31c0000"; 188b3aee8fSThierry Reding i2c6 = "/bus@0/i2c@c250000"; 198b3aee8fSThierry Reding i2c7 = "/bus@0/i2c@31e0000"; 207d6dbb7bSThierry Reding mmc0 = "/bus@0/mmc@3460000"; 217d6dbb7bSThierry Reding mmc1 = "/bus@0/mmc@3400000"; 227d6dbb7bSThierry Reding serial0 = &tcu; 23b8656c67SMikko Perttunen }; 24b8656c67SMikko Perttunen 25b8656c67SMikko Perttunen chosen { 26b8656c67SMikko Perttunen bootargs = "console=ttyS0,115200n8"; 27b8656c67SMikko Perttunen stdout-path = "serial0:115200n8"; 28b8656c67SMikko Perttunen }; 29b8656c67SMikko Perttunen 308b3aee8fSThierry Reding bus@0 { 31f89b58ceSMikko Perttunen ethernet@2490000 { 32f89b58ceSMikko Perttunen status = "okay"; 33f89b58ceSMikko Perttunen 34f89b58ceSMikko Perttunen phy-reset-gpios = <&gpio TEGRA194_MAIN_GPIO(G, 5) GPIO_ACTIVE_LOW>; 35f89b58ceSMikko Perttunen phy-handle = <&phy>; 36bba25915SJon Hunter phy-mode = "rgmii-id"; 37f89b58ceSMikko Perttunen 38f89b58ceSMikko Perttunen mdio { 39f89b58ceSMikko Perttunen #address-cells = <1>; 40f89b58ceSMikko Perttunen #size-cells = <0>; 41f89b58ceSMikko Perttunen 42f89b58ceSMikko Perttunen phy: phy@0 { 43f89b58ceSMikko Perttunen compatible = "ethernet-phy-ieee802.3-c22"; 44f89b58ceSMikko Perttunen reg = <0x0>; 45f89b58ceSMikko Perttunen interrupt-parent = <&gpio>; 46f89b58ceSMikko Perttunen interrupts = <TEGRA194_MAIN_GPIO(G, 4) IRQ_TYPE_LEVEL_LOW>; 47a10b9a20SThierry Reding #phy-cells = <0>; 48f89b58ceSMikko Perttunen }; 49f89b58ceSMikko Perttunen }; 50f89b58ceSMikko Perttunen }; 51f89b58ceSMikko Perttunen 52be9b887fSThierry Reding memory-controller@2c00000 { 53be9b887fSThierry Reding status = "okay"; 54be9b887fSThierry Reding }; 55be9b887fSThierry Reding 56b8656c67SMikko Perttunen serial@3110000 { 57b8656c67SMikko Perttunen status = "okay"; 58b8656c67SMikko Perttunen }; 59b8656c67SMikko Perttunen 60b8656c67SMikko Perttunen /* SDMMC1 (SD/MMC) */ 6167bb17f6SThierry Reding mmc@3400000 { 62b8656c67SMikko Perttunen cd-gpios = <&gpio TEGRA194_MAIN_GPIO(A, 0) GPIO_ACTIVE_LOW>; 63b8656c67SMikko Perttunen }; 64b8656c67SMikko Perttunen 65b8656c67SMikko Perttunen /* SDMMC4 (eMMC) */ 6667bb17f6SThierry Reding mmc@3460000 { 67b8656c67SMikko Perttunen status = "okay"; 68b8656c67SMikko Perttunen bus-width = <8>; 69b8656c67SMikko Perttunen non-removable; 70b8656c67SMikko Perttunen 71b8656c67SMikko Perttunen vqmmc-supply = <&vdd_1v8ls>; 72b8656c67SMikko Perttunen vmmc-supply = <&vdd_emmc_3v3>; 73b8656c67SMikko Perttunen }; 74b8656c67SMikko Perttunen 7592f37c0aSJC Kuo padctl@3520000 { 7692f37c0aSJC Kuo avdd-usb-supply = <&vdd_usb_3v3>; 7792f37c0aSJC Kuo vclamp-usb-supply = <&vdd_1v8ao>; 7892f37c0aSJC Kuo 7992f37c0aSJC Kuo ports { 8092f37c0aSJC Kuo usb2-1 { 8192f37c0aSJC Kuo vbus-supply = <&vdd_5v0_sys>; 8292f37c0aSJC Kuo }; 8392f37c0aSJC Kuo 8492f37c0aSJC Kuo usb2-3 { 8592f37c0aSJC Kuo vbus-supply = <&vdd_5v_sata>; 8692f37c0aSJC Kuo }; 8792f37c0aSJC Kuo 8892f37c0aSJC Kuo usb3-0 { 8992f37c0aSJC Kuo vbus-supply = <&vdd_5v0_sys>; 9092f37c0aSJC Kuo }; 9192f37c0aSJC Kuo 9292f37c0aSJC Kuo usb3-3 { 9392f37c0aSJC Kuo vbus-supply = <&vdd_5v0_sys>; 9492f37c0aSJC Kuo }; 9592f37c0aSJC Kuo }; 9692f37c0aSJC Kuo }; 9792f37c0aSJC Kuo 983ae50e83SThierry Reding rtc@c2a0000 { 993ae50e83SThierry Reding status = "okay"; 1003ae50e83SThierry Reding }; 1013ae50e83SThierry Reding 102b8656c67SMikko Perttunen pmc@c360000 { 103b8656c67SMikko Perttunen nvidia,invert-interrupt; 104b8656c67SMikko Perttunen }; 105b8656c67SMikko Perttunen }; 106b8656c67SMikko Perttunen 107b8656c67SMikko Perttunen bpmp { 108b8656c67SMikko Perttunen i2c { 109b8656c67SMikko Perttunen status = "okay"; 110b8656c67SMikko Perttunen 111b8656c67SMikko Perttunen pmic: pmic@3c { 112b8656c67SMikko Perttunen compatible = "maxim,max20024"; 113b8656c67SMikko Perttunen reg = <0x3c>; 114b8656c67SMikko Perttunen 1154012ab12SJon Hunter interrupt-parent = <&pmc>; 1164012ab12SJon Hunter interrupts = <24 IRQ_TYPE_LEVEL_LOW>; 117b8656c67SMikko Perttunen #interrupt-cells = <2>; 118b8656c67SMikko Perttunen interrupt-controller; 119b8656c67SMikko Perttunen 120b8656c67SMikko Perttunen #gpio-cells = <2>; 121b8656c67SMikko Perttunen gpio-controller; 122b8656c67SMikko Perttunen 123b8656c67SMikko Perttunen pinctrl-names = "default"; 124b8656c67SMikko Perttunen pinctrl-0 = <&max20024_default>; 125b8656c67SMikko Perttunen 126b8656c67SMikko Perttunen max20024_default: pinmux { 127b8656c67SMikko Perttunen gpio0 { 128b8656c67SMikko Perttunen pins = "gpio0"; 129b8656c67SMikko Perttunen function = "gpio"; 130b8656c67SMikko Perttunen }; 131b8656c67SMikko Perttunen 132b8656c67SMikko Perttunen gpio1 { 133b8656c67SMikko Perttunen pins = "gpio1"; 134b8656c67SMikko Perttunen function = "fps-out"; 135b8656c67SMikko Perttunen maxim,active-fps-source = <MAX77620_FPS_SRC_DEF>; 136b8656c67SMikko Perttunen }; 137b8656c67SMikko Perttunen 138b8656c67SMikko Perttunen gpio2 { 139b8656c67SMikko Perttunen pins = "gpio2"; 140b8656c67SMikko Perttunen function = "fps-out"; 141b8656c67SMikko Perttunen maxim,active-fps-source = <MAX77620_FPS_SRC_DEF>; 142b8656c67SMikko Perttunen }; 143b8656c67SMikko Perttunen 144b8656c67SMikko Perttunen gpio3 { 145b8656c67SMikko Perttunen pins = "gpio3"; 146b8656c67SMikko Perttunen function = "fps-out"; 147b8656c67SMikko Perttunen maxim,active-fps-source = <MAX77620_FPS_SRC_DEF>; 148b8656c67SMikko Perttunen }; 149b8656c67SMikko Perttunen 150b8656c67SMikko Perttunen gpio4 { 151b8656c67SMikko Perttunen pins = "gpio4"; 152b8656c67SMikko Perttunen function = "32k-out1"; 153b8656c67SMikko Perttunen drive-push-pull = <1>; 154b8656c67SMikko Perttunen }; 155b8656c67SMikko Perttunen 156b8656c67SMikko Perttunen gpio6 { 157b8656c67SMikko Perttunen pins = "gpio6"; 158b8656c67SMikko Perttunen function = "gpio"; 159b8656c67SMikko Perttunen drive-push-pull = <1>; 160b8656c67SMikko Perttunen }; 161b8656c67SMikko Perttunen 162b8656c67SMikko Perttunen gpio7 { 163b8656c67SMikko Perttunen pins = "gpio7"; 164b8656c67SMikko Perttunen function = "gpio"; 165b8656c67SMikko Perttunen drive-push-pull = <0>; 166b8656c67SMikko Perttunen }; 167b8656c67SMikko Perttunen }; 168b8656c67SMikko Perttunen 169b8656c67SMikko Perttunen fps { 170b8656c67SMikko Perttunen fps0 { 171b8656c67SMikko Perttunen maxim,fps-event-source = <MAX77620_FPS_EVENT_SRC_EN0>; 172b8656c67SMikko Perttunen maxim,shutdown-fps-time-period-us = <640>; 173b8656c67SMikko Perttunen }; 174b8656c67SMikko Perttunen 175b8656c67SMikko Perttunen fps1 { 176b8656c67SMikko Perttunen maxim,fps-event-source = <MAX77620_FPS_EVENT_SRC_EN1>; 177b8656c67SMikko Perttunen maxim,shutdown-fps-time-period-us = <640>; 178b8656c67SMikko Perttunen maxim,device-state-on-disabled-event = <MAX77620_FPS_INACTIVE_STATE_SLEEP>; 179b8656c67SMikko Perttunen }; 180b8656c67SMikko Perttunen 181b8656c67SMikko Perttunen fps2 { 182b8656c67SMikko Perttunen maxim,fps-event-source = <MAX77620_FPS_EVENT_SRC_EN0>; 183b8656c67SMikko Perttunen maxim,shutdown-fps-time-period-us = <640>; 184b8656c67SMikko Perttunen }; 185b8656c67SMikko Perttunen }; 186b8656c67SMikko Perttunen 187b8656c67SMikko Perttunen regulators { 188b8656c67SMikko Perttunen in-sd0-supply = <&vdd_5v0_sys>; 189b8656c67SMikko Perttunen in-sd1-supply = <&vdd_5v0_sys>; 190b8656c67SMikko Perttunen in-sd2-supply = <&vdd_5v0_sys>; 191b8656c67SMikko Perttunen in-sd3-supply = <&vdd_5v0_sys>; 192b8656c67SMikko Perttunen in-sd4-supply = <&vdd_5v0_sys>; 193b8656c67SMikko Perttunen 194b8656c67SMikko Perttunen in-ldo0-1-supply = <&vdd_5v0_sys>; 195b8656c67SMikko Perttunen in-ldo2-supply = <&vdd_5v0_sys>; 196b8656c67SMikko Perttunen in-ldo3-5-supply = <&vdd_5v0_sys>; 197b8656c67SMikko Perttunen in-ldo4-6-supply = <&vdd_5v0_sys>; 198b8656c67SMikko Perttunen in-ldo7-8-supply = <&vdd_1v8ls>; 199b8656c67SMikko Perttunen 20033c038e4SThierry Reding vdd_1v0: sd0 { 201c90b8f15SThierry Reding regulator-name = "VDDIO_SYS_1V0"; 202b8656c67SMikko Perttunen regulator-min-microvolt = <1000000>; 203b8656c67SMikko Perttunen regulator-max-microvolt = <1000000>; 204b8656c67SMikko Perttunen regulator-always-on; 205b8656c67SMikko Perttunen regulator-boot-on; 206b8656c67SMikko Perttunen }; 207b8656c67SMikko Perttunen 20833c038e4SThierry Reding vdd_1v8hs: sd1 { 209c90b8f15SThierry Reding regulator-name = "VDDIO_SYS_1V8HS"; 210b8656c67SMikko Perttunen regulator-min-microvolt = <1800000>; 211b8656c67SMikko Perttunen regulator-max-microvolt = <1800000>; 212b8656c67SMikko Perttunen regulator-always-on; 213b8656c67SMikko Perttunen regulator-boot-on; 214b8656c67SMikko Perttunen }; 215b8656c67SMikko Perttunen 216b8656c67SMikko Perttunen vdd_1v8ls: sd2 { 217c90b8f15SThierry Reding regulator-name = "VDDIO_SYS_1V8LS"; 218b8656c67SMikko Perttunen regulator-min-microvolt = <1800000>; 219b8656c67SMikko Perttunen regulator-max-microvolt = <1800000>; 220b8656c67SMikko Perttunen regulator-always-on; 221b8656c67SMikko Perttunen regulator-boot-on; 222b8656c67SMikko Perttunen }; 223b8656c67SMikko Perttunen 224a586c88eSVidya Sagar vdd_1v8ao: sd3 { 225c90b8f15SThierry Reding regulator-name = "VDDIO_AO_1V8"; 226b8656c67SMikko Perttunen regulator-min-microvolt = <1800000>; 227b8656c67SMikko Perttunen regulator-max-microvolt = <1800000>; 228b8656c67SMikko Perttunen regulator-always-on; 229b8656c67SMikko Perttunen regulator-boot-on; 230b8656c67SMikko Perttunen }; 231b8656c67SMikko Perttunen 232b8656c67SMikko Perttunen sd4 { 233b8656c67SMikko Perttunen regulator-name = "VDD_DDR_1V1"; 234b8656c67SMikko Perttunen regulator-min-microvolt = <1100000>; 235b8656c67SMikko Perttunen regulator-max-microvolt = <1100000>; 236b8656c67SMikko Perttunen regulator-always-on; 237b8656c67SMikko Perttunen regulator-boot-on; 238b8656c67SMikko Perttunen }; 239b8656c67SMikko Perttunen 240b8656c67SMikko Perttunen ldo0 { 241b8656c67SMikko Perttunen regulator-name = "VDD_RTC"; 242b8656c67SMikko Perttunen regulator-min-microvolt = <800000>; 243b8656c67SMikko Perttunen regulator-max-microvolt = <800000>; 244b8656c67SMikko Perttunen regulator-always-on; 245b8656c67SMikko Perttunen regulator-boot-on; 246b8656c67SMikko Perttunen }; 247b8656c67SMikko Perttunen 248b8656c67SMikko Perttunen ldo2 { 249c90b8f15SThierry Reding regulator-name = "VDDIO_AO_3V3"; 250b8656c67SMikko Perttunen regulator-min-microvolt = <3300000>; 251b8656c67SMikko Perttunen regulator-max-microvolt = <3300000>; 252b8656c67SMikko Perttunen regulator-always-on; 253b8656c67SMikko Perttunen regulator-boot-on; 254b8656c67SMikko Perttunen }; 255b8656c67SMikko Perttunen 256b8656c67SMikko Perttunen vdd_emmc_3v3: ldo3 { 257b8656c67SMikko Perttunen regulator-name = "VDD_EMMC_3V3"; 258b8656c67SMikko Perttunen regulator-min-microvolt = <3300000>; 259b8656c67SMikko Perttunen regulator-max-microvolt = <3300000>; 260b8656c67SMikko Perttunen }; 261b8656c67SMikko Perttunen 26292f37c0aSJC Kuo vdd_usb_3v3: ldo5 { 263b8656c67SMikko Perttunen regulator-name = "VDD_USB_3V3"; 264b8656c67SMikko Perttunen regulator-min-microvolt = <3300000>; 265b8656c67SMikko Perttunen regulator-max-microvolt = <3300000>; 266b8656c67SMikko Perttunen }; 267b8656c67SMikko Perttunen 268b8656c67SMikko Perttunen ldo6 { 269b8656c67SMikko Perttunen regulator-name = "VDD_SDIO_3V3"; 270b8656c67SMikko Perttunen regulator-min-microvolt = <3300000>; 271b8656c67SMikko Perttunen regulator-max-microvolt = <3300000>; 272b8656c67SMikko Perttunen }; 273b8656c67SMikko Perttunen 274b8656c67SMikko Perttunen ldo7 { 275c90b8f15SThierry Reding regulator-name = "AVDD_CSI_1V2"; 276b8656c67SMikko Perttunen regulator-min-microvolt = <1200000>; 277b8656c67SMikko Perttunen regulator-max-microvolt = <1200000>; 278b8656c67SMikko Perttunen }; 279b8656c67SMikko Perttunen }; 280b8656c67SMikko Perttunen }; 2818b457812SThierry Reding 2828b457812SThierry Reding temperature-sensor@4c { 2838b457812SThierry Reding compatible = "ti,tmp451"; 2848b457812SThierry Reding reg = <0x4c>; 2858b457812SThierry Reding 2868b457812SThierry Reding interrupt-parent = <&gpio>; 2878b457812SThierry Reding interrupts = <TEGRA194_MAIN_GPIO(H, 2) 2888b457812SThierry Reding IRQ_TYPE_LEVEL_LOW>; 28973207330SJon Hunter vcc-supply = <&vdd_1v8ls>; 2908b457812SThierry Reding 2918b457812SThierry Reding #thermal-sensor-cells = <1>; 2928b457812SThierry Reding }; 293b8656c67SMikko Perttunen }; 294b8656c67SMikko Perttunen }; 295b8656c67SMikko Perttunen 296b8656c67SMikko Perttunen vdd_5v0_sys: regulator@0 { 297b8656c67SMikko Perttunen compatible = "regulator-fixed"; 298b8656c67SMikko Perttunen regulator-name = "VIN_SYS_5V0"; 299b8656c67SMikko Perttunen regulator-min-microvolt = <5000000>; 300b8656c67SMikko Perttunen regulator-max-microvolt = <5000000>; 301b8656c67SMikko Perttunen regulator-always-on; 302b8656c67SMikko Perttunen regulator-boot-on; 303b8656c67SMikko Perttunen }; 30433c038e4SThierry Reding 30533c038e4SThierry Reding vdd_hdmi: regulator@1 { 30633c038e4SThierry Reding compatible = "regulator-fixed"; 30733c038e4SThierry Reding regulator-name = "VDD_5V0_HDMI_CON"; 30833c038e4SThierry Reding regulator-min-microvolt = <5000000>; 30933c038e4SThierry Reding regulator-max-microvolt = <5000000>; 31033c038e4SThierry Reding gpio = <&gpio TEGRA194_MAIN_GPIO(A, 3) GPIO_ACTIVE_HIGH>; 31133c038e4SThierry Reding enable-active-high; 31233c038e4SThierry Reding }; 31309a0774aSVidya Sagar 31409a0774aSVidya Sagar vdd_3v3_pcie: regulator@2 { 31509a0774aSVidya Sagar compatible = "regulator-fixed"; 31609a0774aSVidya Sagar regulator-name = "PEX_3V3"; 31709a0774aSVidya Sagar regulator-min-microvolt = <3300000>; 31809a0774aSVidya Sagar regulator-max-microvolt = <3300000>; 31909a0774aSVidya Sagar gpio = <&gpio TEGRA194_MAIN_GPIO(Z, 2) GPIO_ACTIVE_HIGH>; 32009a0774aSVidya Sagar regulator-boot-on; 32109a0774aSVidya Sagar enable-active-high; 32209a0774aSVidya Sagar }; 32309a0774aSVidya Sagar 32409a0774aSVidya Sagar vdd_12v_pcie: regulator@3 { 32509a0774aSVidya Sagar compatible = "regulator-fixed"; 32609a0774aSVidya Sagar regulator-name = "VDD_12V"; 32709a0774aSVidya Sagar regulator-min-microvolt = <1200000>; 32809a0774aSVidya Sagar regulator-max-microvolt = <1200000>; 329d440538eSJon Hunter gpio = <&gpio TEGRA194_MAIN_GPIO(A, 1) GPIO_ACTIVE_HIGH>; 33009a0774aSVidya Sagar regulator-boot-on; 33109a0774aSVidya Sagar }; 33292f37c0aSJC Kuo 33392f37c0aSJC Kuo vdd_5v_sata: regulator@4 { 33492f37c0aSJC Kuo compatible = "regulator-fixed"; 33592f37c0aSJC Kuo regulator-name = "VDD_5V_SATA"; 33692f37c0aSJC Kuo regulator-min-microvolt = <5000000>; 33792f37c0aSJC Kuo regulator-max-microvolt = <5000000>; 33892f37c0aSJC Kuo gpio = <&gpio TEGRA194_MAIN_GPIO(Z, 1) GPIO_ACTIVE_HIGH>; 33992f37c0aSJC Kuo enable-active-high; 34092f37c0aSJC Kuo }; 341b8656c67SMikko Perttunen}; 342