Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 #include "tegra194.dtsi"
0003 
0004 #include <dt-bindings/mfd/max77620.h>
0005 
0006 / {
0007         model = "NVIDIA Jetson AGX Xavier";
0008         compatible = "nvidia,p2888", "nvidia,tegra194";
0009 
0010         aliases {
0011                 ethernet0 = "/bus@0/ethernet@2490000";
0012                 i2c0 = "/bpmp/i2c";
0013                 i2c1 = "/bus@0/i2c@3160000";
0014                 i2c2 = "/bus@0/i2c@c240000";
0015                 i2c3 = "/bus@0/i2c@3180000";
0016                 i2c4 = "/bus@0/i2c@3190000";
0017                 i2c5 = "/bus@0/i2c@31c0000";
0018                 i2c6 = "/bus@0/i2c@c250000";
0019                 i2c7 = "/bus@0/i2c@31e0000";
0020                 mmc0 = "/bus@0/mmc@3460000";
0021                 mmc1 = "/bus@0/mmc@3400000";
0022                 serial0 = &tcu;
0023         };
0024 
0025         chosen {
0026                 bootargs = "console=ttyS0,115200n8";
0027                 stdout-path = "serial0:115200n8";
0028         };
0029 
0030         bus@0 {
0031                 ethernet@2490000 {
0032                         status = "okay";
0033 
0034                         phy-reset-gpios = <&gpio TEGRA194_MAIN_GPIO(G, 5) GPIO_ACTIVE_LOW>;
0035                         phy-handle = <&phy>;
0036                         phy-mode = "rgmii-id";
0037 
0038                         mdio {
0039                                 #address-cells = <1>;
0040                                 #size-cells = <0>;
0041 
0042                                 phy: ethernet-phy@0 {
0043                                         compatible = "ethernet-phy-ieee802.3-c22";
0044                                         reg = <0x0>;
0045                                         interrupt-parent = <&gpio>;
0046                                         interrupts = <TEGRA194_MAIN_GPIO(G, 4) IRQ_TYPE_LEVEL_LOW>;
0047                                         #phy-cells = <0>;
0048                                 };
0049                         };
0050                 };
0051 
0052                 memory-controller@2c00000 {
0053                         status = "okay";
0054                 };
0055 
0056                 serial@3110000 {
0057                         status = "okay";
0058                 };
0059 
0060                 i2c@3160000 {
0061                         status = "okay";
0062 
0063                         eeprom@50 {
0064                                 compatible = "atmel,24c02";
0065                                 reg = <0x50>;
0066 
0067                                 label = "module";
0068                                 vcc-supply = <&vdd_1v8ls>;
0069                                 address-width = <8>;
0070                                 pagesize = <8>;
0071                                 size = <256>;
0072                                 read-only;
0073                         };
0074                 };
0075 
0076                 /* SDMMC1 (SD/MMC) */
0077                 mmc@3400000 {
0078                         cd-gpios = <&gpio TEGRA194_MAIN_GPIO(G, 7) GPIO_ACTIVE_LOW>;
0079                 };
0080 
0081                 /* SDMMC4 (eMMC) */
0082                 mmc@3460000 {
0083                         status = "okay";
0084                         bus-width = <8>;
0085                         non-removable;
0086 
0087                         vqmmc-supply = <&vdd_1v8ls>;
0088                         vmmc-supply = <&vdd_emmc_3v3>;
0089                 };
0090 
0091                 padctl@3520000 {
0092                         avdd-usb-supply = <&vdd_usb_3v3>;
0093                         vclamp-usb-supply = <&vdd_1v8ao>;
0094 
0095                         ports {
0096                                 usb2-0 {
0097                                         vbus-supply = <&vdd_5v0_sys>;
0098                                 };
0099 
0100                                 usb2-1 {
0101                                         vbus-supply = <&vdd_5v0_sys>;
0102                                 };
0103 
0104                                 usb2-3 {
0105                                         vbus-supply = <&vdd_5v_sata>;
0106                                 };
0107 
0108                                 usb3-0 {
0109                                         vbus-supply = <&vdd_5v0_sys>;
0110                                 };
0111 
0112                                 usb3-2 {
0113                                         vbus-supply = <&vdd_5v0_sys>;
0114                                 };
0115 
0116                                 usb3-3 {
0117                                         vbus-supply = <&vdd_5v0_sys>;
0118                                 };
0119                         };
0120                 };
0121 
0122                 rtc@c2a0000 {
0123                         status = "okay";
0124                 };
0125 
0126                 pmc@c360000 {
0127                         nvidia,invert-interrupt;
0128                 };
0129         };
0130 
0131         bpmp {
0132                 i2c {
0133                         status = "okay";
0134 
0135                         pmic: pmic@3c {
0136                                 compatible = "maxim,max20024";
0137                                 reg = <0x3c>;
0138 
0139                                 interrupt-parent = <&pmc>;
0140                                 interrupts = <24 IRQ_TYPE_LEVEL_LOW>;
0141                                 #interrupt-cells = <2>;
0142                                 interrupt-controller;
0143 
0144                                 #gpio-cells = <2>;
0145                                 gpio-controller;
0146 
0147                                 pinctrl-names = "default";
0148                                 pinctrl-0 = <&max20024_default>;
0149 
0150                                 max20024_default: pinmux {
0151                                         gpio0 {
0152                                                 pins = "gpio0";
0153                                                 function = "gpio";
0154                                         };
0155 
0156                                         gpio1 {
0157                                                 pins = "gpio1";
0158                                                 function = "fps-out";
0159                                                 maxim,active-fps-source = <MAX77620_FPS_SRC_DEF>;
0160                                         };
0161 
0162                                         gpio2 {
0163                                                 pins = "gpio2";
0164                                                 function = "fps-out";
0165                                                 maxim,active-fps-source = <MAX77620_FPS_SRC_DEF>;
0166                                         };
0167 
0168                                         gpio3 {
0169                                                 pins = "gpio3";
0170                                                 function = "fps-out";
0171                                                 maxim,active-fps-source = <MAX77620_FPS_SRC_DEF>;
0172                                         };
0173 
0174                                         gpio4 {
0175                                                 pins = "gpio4";
0176                                                 function = "32k-out1";
0177                                                 drive-push-pull = <1>;
0178                                         };
0179 
0180                                         gpio6 {
0181                                                 pins = "gpio6";
0182                                                 function = "gpio";
0183                                                 drive-push-pull = <1>;
0184                                         };
0185 
0186                                         gpio7 {
0187                                                 pins = "gpio7";
0188                                                 function = "gpio";
0189                                                 drive-push-pull = <0>;
0190                                         };
0191                                 };
0192 
0193                                 fps {
0194                                         fps0 {
0195                                                 maxim,fps-event-source = <MAX77620_FPS_EVENT_SRC_EN0>;
0196                                                 maxim,shutdown-fps-time-period-us = <640>;
0197                                         };
0198 
0199                                         fps1 {
0200                                                 maxim,fps-event-source = <MAX77620_FPS_EVENT_SRC_EN1>;
0201                                                 maxim,shutdown-fps-time-period-us = <640>;
0202                                                 maxim,device-state-on-disabled-event = <MAX77620_FPS_INACTIVE_STATE_SLEEP>;
0203                                         };
0204 
0205                                         fps2 {
0206                                                 maxim,fps-event-source = <MAX77620_FPS_EVENT_SRC_EN0>;
0207                                                 maxim,shutdown-fps-time-period-us = <640>;
0208                                         };
0209                                 };
0210 
0211                                 regulators {
0212                                         in-sd0-supply = <&vdd_5v0_sys>;
0213                                         in-sd1-supply = <&vdd_5v0_sys>;
0214                                         in-sd2-supply = <&vdd_5v0_sys>;
0215                                         in-sd3-supply = <&vdd_5v0_sys>;
0216                                         in-sd4-supply = <&vdd_5v0_sys>;
0217 
0218                                         in-ldo0-1-supply = <&vdd_5v0_sys>;
0219                                         in-ldo2-supply = <&vdd_5v0_sys>;
0220                                         in-ldo3-5-supply = <&vdd_5v0_sys>;
0221                                         in-ldo4-6-supply = <&vdd_5v0_sys>;
0222                                         in-ldo7-8-supply = <&vdd_1v8ls>;
0223 
0224                                         vdd_1v0: sd0 {
0225                                                 regulator-name = "VDDIO_SYS_1V0";
0226                                                 regulator-min-microvolt = <1000000>;
0227                                                 regulator-max-microvolt = <1000000>;
0228                                                 regulator-always-on;
0229                                                 regulator-boot-on;
0230                                         };
0231 
0232                                         vdd_1v8hs: sd1 {
0233                                                 regulator-name = "VDDIO_SYS_1V8HS";
0234                                                 regulator-min-microvolt = <1800000>;
0235                                                 regulator-max-microvolt = <1800000>;
0236                                                 regulator-always-on;
0237                                                 regulator-boot-on;
0238                                         };
0239 
0240                                         vdd_1v8ls: sd2 {
0241                                                 regulator-name = "VDDIO_SYS_1V8LS";
0242                                                 regulator-min-microvolt = <1800000>;
0243                                                 regulator-max-microvolt = <1800000>;
0244                                                 regulator-always-on;
0245                                                 regulator-boot-on;
0246                                         };
0247 
0248                                         vdd_1v8ao: sd3 {
0249                                                 regulator-name = "VDDIO_AO_1V8";
0250                                                 regulator-min-microvolt = <1800000>;
0251                                                 regulator-max-microvolt = <1800000>;
0252                                                 regulator-always-on;
0253                                                 regulator-boot-on;
0254                                         };
0255 
0256                                         sd4 {
0257                                                 regulator-name = "VDD_DDR_1V1";
0258                                                 regulator-min-microvolt = <1100000>;
0259                                                 regulator-max-microvolt = <1100000>;
0260                                                 regulator-always-on;
0261                                                 regulator-boot-on;
0262                                         };
0263 
0264                                         ldo0 {
0265                                                 regulator-name = "VDD_RTC";
0266                                                 regulator-min-microvolt = <800000>;
0267                                                 regulator-max-microvolt = <800000>;
0268                                                 regulator-always-on;
0269                                                 regulator-boot-on;
0270                                         };
0271 
0272                                         ldo2 {
0273                                                 regulator-name = "VDDIO_AO_3V3";
0274                                                 regulator-min-microvolt = <3300000>;
0275                                                 regulator-max-microvolt = <3300000>;
0276                                                 regulator-always-on;
0277                                                 regulator-boot-on;
0278                                         };
0279 
0280                                         vdd_emmc_3v3: ldo3 {
0281                                                 regulator-name = "VDD_EMMC_3V3";
0282                                                 regulator-min-microvolt = <3300000>;
0283                                                 regulator-max-microvolt = <3300000>;
0284                                         };
0285 
0286                                         vdd_usb_3v3: ldo5 {
0287                                                 regulator-name = "VDD_USB_3V3";
0288                                                 regulator-min-microvolt = <3300000>;
0289                                                 regulator-max-microvolt = <3300000>;
0290                                         };
0291 
0292                                         ldo6 {
0293                                                 regulator-name = "VDD_SDIO_3V3";
0294                                                 regulator-min-microvolt = <3300000>;
0295                                                 regulator-max-microvolt = <3300000>;
0296                                         };
0297 
0298                                         ldo7 {
0299                                                 regulator-name = "AVDD_CSI_1V2";
0300                                                 regulator-min-microvolt = <1200000>;
0301                                                 regulator-max-microvolt = <1200000>;
0302                                         };
0303                                 };
0304                         };
0305 
0306                         temperature-sensor@4c {
0307                                 compatible = "ti,tmp451";
0308                                 reg = <0x4c>;
0309 
0310                                 interrupt-parent = <&gpio>;
0311                                 interrupts = <TEGRA194_MAIN_GPIO(H, 2)
0312                                               IRQ_TYPE_EDGE_FALLING>;
0313                                 vcc-supply = <&vdd_1v8ls>;
0314 
0315                                 #thermal-sensor-cells = <1>;
0316                         };
0317                 };
0318         };
0319 
0320         vdd_5v0_sys: regulator-vdd-5v0-sys {
0321                 compatible = "regulator-fixed";
0322                 regulator-name = "VIN_SYS_5V0";
0323                 regulator-min-microvolt = <5000000>;
0324                 regulator-max-microvolt = <5000000>;
0325                 regulator-always-on;
0326                 regulator-boot-on;
0327         };
0328 
0329         vdd_hdmi: regulator-vdd-hdmi {
0330                 compatible = "regulator-fixed";
0331                 regulator-name = "VDD_5V0_HDMI_CON";
0332                 regulator-min-microvolt = <5000000>;
0333                 regulator-max-microvolt = <5000000>;
0334                 gpio = <&gpio TEGRA194_MAIN_GPIO(A, 3) GPIO_ACTIVE_HIGH>;
0335                 enable-active-high;
0336         };
0337 
0338         vdd_3v3_pcie: regulator-vdd-3v3-pcie {
0339                 compatible = "regulator-fixed";
0340                 regulator-name = "PEX_3V3";
0341                 regulator-min-microvolt = <3300000>;
0342                 regulator-max-microvolt = <3300000>;
0343                 gpio = <&gpio TEGRA194_MAIN_GPIO(Z, 2) GPIO_ACTIVE_HIGH>;
0344                 regulator-boot-on;
0345                 enable-active-high;
0346         };
0347 
0348         vdd_12v_pcie: regulator-vdd-12v-pcie {
0349                 compatible = "regulator-fixed";
0350                 regulator-name = "VDD_12V";
0351                 regulator-min-microvolt = <1200000>;
0352                 regulator-max-microvolt = <1200000>;
0353                 gpio = <&gpio TEGRA194_MAIN_GPIO(A, 1) GPIO_ACTIVE_HIGH>;
0354                 regulator-boot-on;
0355         };
0356 
0357         vdd_5v_sata: regulator-vdd-5v0-sata {
0358                 compatible = "regulator-fixed";
0359                 regulator-name = "VDD_5V_SATA";
0360                 regulator-min-microvolt = <5000000>;
0361                 regulator-max-microvolt = <5000000>;
0362                 gpio = <&gpio TEGRA194_MAIN_GPIO(Z, 1) GPIO_ACTIVE_HIGH>;
0363                 enable-active-high;
0364         };
0365 };