Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 #include <dt-bindings/mfd/max77620.h>
0003 
0004 #include "tegra210.dtsi"
0005 
0006 / {
0007         model = "NVIDIA Jetson TX1";
0008         compatible = "nvidia,p2180", "nvidia,tegra210";
0009 
0010         aliases {
0011                 rtc0 = "/i2c@7000d000/pmic@3c";
0012                 rtc1 = "/rtc@7000e000";
0013                 serial0 = &uarta;
0014         };
0015 
0016         chosen {
0017                 stdout-path = "serial0:115200n8";
0018         };
0019 
0020         memory@80000000 {
0021                 device_type = "memory";
0022                 reg = <0x0 0x80000000 0x1 0x0>;
0023         };
0024 
0025         gpu@57000000 {
0026                 vdd-supply = <&vdd_gpu>;
0027         };
0028 
0029         /* debug port */
0030         serial@70006000 {
0031                 status = "okay";
0032         };
0033 
0034         i2c@7000d000 {
0035                 status = "okay";
0036                 clock-frequency = <400000>;
0037 
0038                 pmic: pmic@3c {
0039                         compatible = "maxim,max77620";
0040                         reg = <0x3c>;
0041                         interrupt-parent = <&tegra_pmc>;
0042                         interrupts = <51 IRQ_TYPE_LEVEL_LOW>;
0043 
0044                         #interrupt-cells = <2>;
0045                         interrupt-controller;
0046 
0047                         #gpio-cells = <2>;
0048                         gpio-controller;
0049 
0050                         pinctrl-names = "default";
0051                         pinctrl-0 = <&max77620_default>;
0052 
0053                         max77620_default: pinmux {
0054                                 gpio0 {
0055                                         pins = "gpio0";
0056                                         function = "gpio";
0057                                 };
0058 
0059                                 gpio1 {
0060                                         pins = "gpio1";
0061                                         function = "fps-out";
0062                                         drive-push-pull = <1>;
0063                                         maxim,active-fps-source = <MAX77620_FPS_SRC_0>;
0064                                         maxim,active-fps-power-up-slot = <7>;
0065                                         maxim,active-fps-power-down-slot = <0>;
0066                                 };
0067 
0068                                 gpio2_3 {
0069                                         pins = "gpio2", "gpio3";
0070                                         function = "fps-out";
0071                                         drive-open-drain = <1>;
0072                                         maxim,active-fps-source = <MAX77620_FPS_SRC_0>;
0073                                 };
0074 
0075                                 gpio4 {
0076                                         pins = "gpio4";
0077                                         function = "32k-out1";
0078                                 };
0079 
0080                                 gpio5_6_7 {
0081                                         pins = "gpio5", "gpio6", "gpio7";
0082                                         function = "gpio";
0083                                         drive-push-pull = <1>;
0084                                 };
0085                         };
0086 
0087                         fps {
0088                                 fps0 {
0089                                         maxim,fps-event-source = <MAX77620_FPS_EVENT_SRC_EN0>;
0090                                         maxim,suspend-fps-time-period-us = <1280>;
0091                                 };
0092 
0093                                 fps1 {
0094                                         maxim,fps-event-source = <MAX77620_FPS_EVENT_SRC_EN1>;
0095                                         maxim,suspend-fps-time-period-us = <1280>;
0096                                 };
0097 
0098                                 fps2 {
0099                                         maxim,fps-event-source = <MAX77620_FPS_EVENT_SRC_EN0>;
0100                                 };
0101                         };
0102 
0103                         regulators {
0104                                 in-ldo0-1-supply = <&vdd_pre>;
0105                                 in-ldo7-8-supply = <&vdd_pre>;
0106                                 in-sd3-supply = <&vdd_5v0_sys>;
0107 
0108                                 vdd_soc: sd0 {
0109                                         regulator-name = "VDD_SOC";
0110                                         regulator-min-microvolt = <600000>;
0111                                         regulator-max-microvolt = <1400000>;
0112                                         regulator-always-on;
0113                                         regulator-boot-on;
0114 
0115                                         regulator-enable-ramp-delay = <146>;
0116                                         regulator-ramp-delay = <27500>;
0117 
0118                                         maxim,active-fps-source = <MAX77620_FPS_SRC_1>;
0119                                 };
0120 
0121                                 vdd_ddr: sd1 {
0122                                         regulator-name = "VDD_DDR_1V1_PMIC";
0123                                         regulator-always-on;
0124                                         regulator-boot-on;
0125 
0126                                         regulator-enable-ramp-delay = <130>;
0127                                         regulator-ramp-delay = <27500>;
0128 
0129                                         maxim,active-fps-source = <MAX77620_FPS_SRC_0>;
0130                                 };
0131 
0132                                 vdd_pre: sd2 {
0133                                         regulator-name = "VDD_PRE_REG_1V35";
0134                                         regulator-min-microvolt = <1350000>;
0135                                         regulator-max-microvolt = <1350000>;
0136 
0137                                         regulator-enable-ramp-delay = <176>;
0138                                         regulator-ramp-delay = <27500>;
0139 
0140                                         maxim,active-fps-source = <MAX77620_FPS_SRC_1>;
0141                                 };
0142 
0143                                 vdd_1v8: sd3 {
0144                                         regulator-name = "VDD_1V8";
0145                                         regulator-min-microvolt = <1800000>;
0146                                         regulator-max-microvolt = <1800000>;
0147                                         regulator-always-on;
0148                                         regulator-boot-on;
0149 
0150                                         regulator-enable-ramp-delay = <242>;
0151                                         regulator-ramp-delay = <27500>;
0152 
0153                                         maxim,active-fps-source = <MAX77620_FPS_SRC_0>;
0154                                 };
0155 
0156                                 vdd_sys_1v2: ldo0 {
0157                                         regulator-name = "AVDD_SYS_1V2";
0158                                         regulator-min-microvolt = <1200000>;
0159                                         regulator-max-microvolt = <1200000>;
0160                                         regulator-always-on;
0161                                         regulator-boot-on;
0162 
0163                                         regulator-enable-ramp-delay = <26>;
0164                                         regulator-ramp-delay = <100000>;
0165 
0166                                         maxim,active-fps-source = <MAX77620_FPS_SRC_NONE>;
0167                                 };
0168 
0169                                 vdd_pex_1v05: ldo1 {
0170                                         regulator-name = "VDD_PEX_1V05";
0171                                         regulator-min-microvolt = <1050000>;
0172                                         regulator-max-microvolt = <1050000>;
0173 
0174                                         regulator-enable-ramp-delay = <22>;
0175                                         regulator-ramp-delay = <100000>;
0176 
0177                                         maxim,active-fps-source = <MAX77620_FPS_SRC_1>;
0178                                 };
0179 
0180                                 vddio_sdmmc: ldo2 {
0181                                         regulator-name = "VDDIO_SDMMC";
0182                                         regulator-min-microvolt = <1800000>;
0183                                         regulator-max-microvolt = <3300000>;
0184                                         regulator-always-on;
0185                                         regulator-boot-on;
0186 
0187                                         regulator-enable-ramp-delay = <62>;
0188                                         regulator-ramp-delay = <100000>;
0189 
0190                                         maxim,active-fps-source = <MAX77620_FPS_SRC_NONE>;
0191                                 };
0192 
0193                                 vdd_cam_hv: ldo3 {
0194                                         regulator-name = "VDD_CAM_HV";
0195                                         regulator-min-microvolt = <2800000>;
0196                                         regulator-max-microvolt = <2800000>;
0197 
0198                                         regulator-enable-ramp-delay = <50>;
0199                                         regulator-ramp-delay = <100000>;
0200 
0201                                         maxim,active-fps-source = <MAX77620_FPS_SRC_NONE>;
0202                                 };
0203 
0204                                 vdd_rtc: ldo4 {
0205                                         regulator-name = "VDD_RTC";
0206                                         regulator-min-microvolt = <850000>;
0207                                         regulator-max-microvolt = <850000>;
0208                                         regulator-always-on;
0209                                         regulator-boot-on;
0210 
0211                                         regulator-enable-ramp-delay = <22>;
0212                                         regulator-ramp-delay = <100000>;
0213 
0214                                         maxim,active-fps-source = <MAX77620_FPS_SRC_0>;
0215                                 };
0216 
0217                                 vdd_ts_hv: ldo5 {
0218                                         regulator-name = "VDD_TS_HV";
0219                                         regulator-min-microvolt = <3300000>;
0220                                         regulator-max-microvolt = <3300000>;
0221 
0222                                         regulator-enable-ramp-delay = <62>;
0223                                         regulator-ramp-delay = <100000>;
0224 
0225                                         maxim,active-fps-source = <MAX77620_FPS_SRC_NONE>;
0226                                 };
0227 
0228                                 vdd_ts: ldo6 {
0229                                         regulator-name = "VDD_TS_1V8";
0230                                         regulator-min-microvolt = <1800000>;
0231                                         regulator-max-microvolt = <1800000>;
0232 
0233                                         regulator-enable-ramp-delay = <36>;
0234                                         regulator-ramp-delay = <100000>;
0235 
0236                                         maxim,active-fps-source = <MAX77620_FPS_SRC_0>;
0237                                         maxim,active-fps-power-up-slot = <7>;
0238                                         maxim,active-fps-power-down-slot = <0>;
0239                                 };
0240 
0241                                 avdd_1v05_pll: ldo7 {
0242                                         regulator-name = "AVDD_1V05_PLL";
0243                                         regulator-min-microvolt = <1050000>;
0244                                         regulator-max-microvolt = <1050000>;
0245                                         regulator-always-on;
0246                                         regulator-boot-on;
0247 
0248                                         regulator-enable-ramp-delay = <24>;
0249                                         regulator-ramp-delay = <100000>;
0250 
0251                                         maxim,active-fps-source = <MAX77620_FPS_SRC_1>;
0252                                 };
0253 
0254                                 avdd_1v05: ldo8 {
0255                                         regulator-name = "AVDD_SATA_HDMI_DP_1V05";
0256                                         regulator-min-microvolt = <1050000>;
0257                                         regulator-max-microvolt = <1050000>;
0258 
0259                                         regulator-enable-ramp-delay = <22>;
0260                                         regulator-ramp-delay = <100000>;
0261 
0262                                         maxim,active-fps-source = <MAX77620_FPS_SRC_1>;
0263                                 };
0264                         };
0265                 };
0266         };
0267 
0268         i2c@7000c500 {
0269                 status = "okay";
0270 
0271                 /* module ID EEPROM */
0272                 eeprom@50 {
0273                         compatible = "atmel,24c02";
0274                         reg = <0x50>;
0275 
0276                         label = "module";
0277                         vcc-supply = <&vdd_1v8>;
0278                         address-width = <8>;
0279                         pagesize = <8>;
0280                         size = <256>;
0281                         read-only;
0282                 };
0283         };
0284 
0285         pmc@7000e400 {
0286                 nvidia,invert-interrupt;
0287                 nvidia,suspend-mode = <0>;
0288                 nvidia,cpu-pwr-good-time = <0>;
0289                 nvidia,cpu-pwr-off-time = <0>;
0290                 nvidia,core-pwr-good-time = <4587 3876>;
0291                 nvidia,core-pwr-off-time = <39065>;
0292                 nvidia,core-power-req-active-high;
0293                 nvidia,sys-clock-req-active-high;
0294         };
0295 
0296         /* eMMC */
0297         mmc@700b0600 {
0298                 status = "okay";
0299                 bus-width = <8>;
0300                 non-removable;
0301                 vqmmc-supply = <&vdd_1v8>;
0302         };
0303 
0304         clk32k_in: clock-32k {
0305                 compatible = "fixed-clock";
0306                 clock-frequency = <32768>;
0307                 #clock-cells = <0>;
0308         };
0309 
0310         cpus {
0311                 cpu@0 {
0312                         enable-method = "psci";
0313                 };
0314 
0315                 cpu@1 {
0316                         enable-method = "psci";
0317                 };
0318 
0319                 cpu@2 {
0320                         enable-method = "psci";
0321                 };
0322 
0323                 cpu@3 {
0324                         enable-method = "psci";
0325                 };
0326 
0327                 idle-states {
0328                         cpu-sleep {
0329                                 status = "okay";
0330                         };
0331                 };
0332         };
0333 
0334         psci {
0335                 compatible = "arm,psci-0.2";
0336                 method = "smc";
0337         };
0338 
0339         vdd_gpu: regulator-vdd-gpu {
0340                 compatible = "pwm-regulator";
0341                 pwms = <&pwm 1 8000>;
0342                 regulator-name = "VDD_GPU";
0343                 regulator-min-microvolt = <710000>;
0344                 regulator-max-microvolt = <1320000>;
0345                 enable-gpios = <&pmic 6 GPIO_ACTIVE_HIGH>;
0346                 regulator-ramp-delay = <80>;
0347                 regulator-enable-ramp-delay = <2000>;
0348                 regulator-settling-time-us = <160>;
0349         };
0350 };