1b2441318SGreg Kroah-Hartman// SPDX-License-Identifier: GPL-2.0 277934269SThierry Reding#include <dt-bindings/mfd/max77620.h> 377934269SThierry Reding 49e71045fSThierry Reding#include "tegra210.dtsi" 59e71045fSThierry Reding 69e71045fSThierry Reding/ { 79e71045fSThierry Reding model = "NVIDIA Jetson TX1"; 89e71045fSThierry Reding compatible = "nvidia,p2180", "nvidia,tegra210"; 99e71045fSThierry Reding 109e71045fSThierry Reding aliases { 1177934269SThierry Reding rtc0 = "/i2c@7000d000/pmic@3c"; 12be70771dSThierry Reding rtc1 = "/rtc@7000e000"; 139e71045fSThierry Reding serial0 = &uarta; 149e71045fSThierry Reding }; 159e71045fSThierry Reding 165593eb76SThierry Reding chosen { 175593eb76SThierry Reding stdout-path = "serial0:115200n8"; 185593eb76SThierry Reding }; 195593eb76SThierry Reding 209e71045fSThierry Reding memory { 219e71045fSThierry Reding device_type = "memory"; 229e71045fSThierry Reding reg = <0x0 0x80000000 0x1 0x0>; 239e71045fSThierry Reding }; 249e71045fSThierry Reding 255e6b9a89SAlexandre Courbot gpu@57000000 { 265e6b9a89SAlexandre Courbot vdd-supply = <&vdd_gpu>; 275e6b9a89SAlexandre Courbot }; 285e6b9a89SAlexandre Courbot 299e71045fSThierry Reding /* debug port */ 30be70771dSThierry Reding serial@70006000 { 319e71045fSThierry Reding status = "okay"; 329e71045fSThierry Reding }; 339e71045fSThierry Reding 3477934269SThierry Reding i2c@7000d000 { 3577934269SThierry Reding status = "okay"; 3677934269SThierry Reding clock-frequency = <400000>; 3777934269SThierry Reding 3877934269SThierry Reding pmic: pmic@3c { 3977934269SThierry Reding compatible = "maxim,max77620"; 4077934269SThierry Reding reg = <0x3c>; 4177934269SThierry Reding interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>; 4277934269SThierry Reding 4377934269SThierry Reding #interrupt-cells = <2>; 4477934269SThierry Reding interrupt-controller; 4577934269SThierry Reding 4677934269SThierry Reding #gpio-cells = <2>; 4777934269SThierry Reding gpio-controller; 4877934269SThierry Reding 4977934269SThierry Reding pinctrl-names = "default"; 5077934269SThierry Reding pinctrl-0 = <&max77620_default>; 5177934269SThierry Reding 5277934269SThierry Reding max77620_default: pinmux { 5377934269SThierry Reding gpio0 { 5477934269SThierry Reding pins = "gpio0"; 5577934269SThierry Reding function = "gpio"; 5677934269SThierry Reding }; 5777934269SThierry Reding 5877934269SThierry Reding gpio1 { 5977934269SThierry Reding pins = "gpio1"; 6077934269SThierry Reding function = "fps-out"; 6177934269SThierry Reding drive-push-pull = <1>; 6277934269SThierry Reding maxim,active-fps-source = <MAX77620_FPS_SRC_0>; 6377934269SThierry Reding maxim,active-fps-power-up-slot = <7>; 6477934269SThierry Reding maxim,active-fps-power-down-slot = <0>; 6577934269SThierry Reding }; 6677934269SThierry Reding 6777934269SThierry Reding gpio2_3 { 6877934269SThierry Reding pins = "gpio2", "gpio3"; 6977934269SThierry Reding function = "fps-out"; 7077934269SThierry Reding drive-open-drain = <1>; 7177934269SThierry Reding maxim,active-fps-source = <MAX77620_FPS_SRC_0>; 7277934269SThierry Reding }; 7377934269SThierry Reding 7477934269SThierry Reding gpio4 { 7577934269SThierry Reding pins = "gpio4"; 7677934269SThierry Reding function = "32k-out1"; 7777934269SThierry Reding }; 7877934269SThierry Reding 7977934269SThierry Reding gpio5_6_7 { 8077934269SThierry Reding pins = "gpio5", "gpio6", "gpio7"; 8177934269SThierry Reding function = "gpio"; 8277934269SThierry Reding drive-push-pull = <1>; 8377934269SThierry Reding }; 8477934269SThierry Reding }; 8577934269SThierry Reding 8677934269SThierry Reding fps { 8777934269SThierry Reding fps0 { 8877934269SThierry Reding maxim,fps-event-source = <MAX77620_FPS_EVENT_SRC_EN0>; 8977934269SThierry Reding maxim,suspend-fps-time-period-us = <1280>; 9077934269SThierry Reding }; 9177934269SThierry Reding 9277934269SThierry Reding fps1 { 9377934269SThierry Reding maxim,fps-event-source = <MAX77620_FPS_EVENT_SRC_EN1>; 9477934269SThierry Reding maxim,suspend-fps-time-period-us = <1280>; 9577934269SThierry Reding }; 9677934269SThierry Reding 9777934269SThierry Reding fps2 { 9877934269SThierry Reding maxim,fps-event-source = <MAX77620_FPS_EVENT_SRC_EN0>; 9977934269SThierry Reding }; 10077934269SThierry Reding }; 10177934269SThierry Reding 10277934269SThierry Reding regulators { 10377934269SThierry Reding in-ldo0-1-supply = <&vdd_pre>; 10477934269SThierry Reding in-ldo7-8-supply = <&vdd_pre>; 10577934269SThierry Reding in-sd3-supply = <&vdd_5v0_sys>; 10677934269SThierry Reding 10777934269SThierry Reding vdd_soc: sd0 { 10877934269SThierry Reding regulator-name = "VDD_SOC"; 10977934269SThierry Reding regulator-min-microvolt = <600000>; 11077934269SThierry Reding regulator-max-microvolt = <1400000>; 11177934269SThierry Reding regulator-always-on; 11277934269SThierry Reding regulator-boot-on; 11377934269SThierry Reding 11477934269SThierry Reding regulator-enable-ramp-delay = <146>; 11577934269SThierry Reding regulator-ramp-delay = <27500>; 11677934269SThierry Reding 11777934269SThierry Reding maxim,active-fps-source = <MAX77620_FPS_SRC_1>; 11877934269SThierry Reding }; 11977934269SThierry Reding 12077934269SThierry Reding vdd_ddr: sd1 { 12177934269SThierry Reding regulator-name = "VDD_DDR_1V1_PMIC"; 12277934269SThierry Reding regulator-always-on; 12377934269SThierry Reding regulator-boot-on; 12477934269SThierry Reding 12577934269SThierry Reding regulator-enable-ramp-delay = <130>; 12677934269SThierry Reding regulator-ramp-delay = <27500>; 12777934269SThierry Reding 12877934269SThierry Reding maxim,active-fps-source = <MAX77620_FPS_SRC_0>; 12977934269SThierry Reding }; 13077934269SThierry Reding 13177934269SThierry Reding vdd_pre: sd2 { 13277934269SThierry Reding regulator-name = "VDD_PRE_REG_1V35"; 13377934269SThierry Reding regulator-min-microvolt = <1350000>; 13477934269SThierry Reding regulator-max-microvolt = <1350000>; 13577934269SThierry Reding 13677934269SThierry Reding regulator-enable-ramp-delay = <176>; 13777934269SThierry Reding regulator-ramp-delay = <27500>; 13877934269SThierry Reding 13977934269SThierry Reding maxim,active-fps-source = <MAX77620_FPS_SRC_1>; 14077934269SThierry Reding }; 14177934269SThierry Reding 14277934269SThierry Reding vdd_1v8: sd3 { 14377934269SThierry Reding regulator-name = "VDD_1V8"; 14477934269SThierry Reding regulator-min-microvolt = <1800000>; 14577934269SThierry Reding regulator-max-microvolt = <1800000>; 14677934269SThierry Reding regulator-always-on; 14777934269SThierry Reding regulator-boot-on; 14877934269SThierry Reding 14977934269SThierry Reding regulator-enable-ramp-delay = <242>; 15077934269SThierry Reding regulator-ramp-delay = <27500>; 15177934269SThierry Reding 15277934269SThierry Reding maxim,active-fps-source = <MAX77620_FPS_SRC_0>; 15377934269SThierry Reding }; 15477934269SThierry Reding 15577934269SThierry Reding vdd_sys_1v2: ldo0 { 15677934269SThierry Reding regulator-name = "AVDD_SYS_1V2"; 15777934269SThierry Reding regulator-min-microvolt = <1200000>; 15877934269SThierry Reding regulator-max-microvolt = <1200000>; 15977934269SThierry Reding regulator-always-on; 16077934269SThierry Reding regulator-boot-on; 16177934269SThierry Reding 16277934269SThierry Reding regulator-enable-ramp-delay = <26>; 16377934269SThierry Reding regulator-ramp-delay = <100000>; 16477934269SThierry Reding 16577934269SThierry Reding maxim,active-fps-source = <MAX77620_FPS_SRC_NONE>; 16677934269SThierry Reding }; 16777934269SThierry Reding 16877934269SThierry Reding vdd_pex_1v05: ldo1 { 16977934269SThierry Reding regulator-name = "VDD_PEX_1V05"; 17077934269SThierry Reding regulator-min-microvolt = <1050000>; 17177934269SThierry Reding regulator-max-microvolt = <1050000>; 17277934269SThierry Reding 17377934269SThierry Reding regulator-enable-ramp-delay = <22>; 17477934269SThierry Reding regulator-ramp-delay = <100000>; 17577934269SThierry Reding 17677934269SThierry Reding maxim,active-fps-source = <MAX77620_FPS_SRC_1>; 17777934269SThierry Reding }; 17877934269SThierry Reding 17977934269SThierry Reding vddio_sdmmc: ldo2 { 18077934269SThierry Reding regulator-name = "VDDIO_SDMMC"; 18141cc3771SAapo Vienamo regulator-min-microvolt = <1800000>; 18277934269SThierry Reding regulator-max-microvolt = <3300000>; 18377934269SThierry Reding regulator-always-on; 18477934269SThierry Reding regulator-boot-on; 18577934269SThierry Reding 18677934269SThierry Reding regulator-enable-ramp-delay = <62>; 18777934269SThierry Reding regulator-ramp-delay = <100000>; 18877934269SThierry Reding 18977934269SThierry Reding maxim,active-fps-source = <MAX77620_FPS_SRC_NONE>; 19077934269SThierry Reding }; 19177934269SThierry Reding 19277934269SThierry Reding vdd_cam_hv: ldo3 { 19377934269SThierry Reding regulator-name = "VDD_CAM_HV"; 19477934269SThierry Reding regulator-min-microvolt = <2800000>; 19577934269SThierry Reding regulator-max-microvolt = <2800000>; 19677934269SThierry Reding 19777934269SThierry Reding regulator-enable-ramp-delay = <50>; 19877934269SThierry Reding regulator-ramp-delay = <100000>; 19977934269SThierry Reding 20077934269SThierry Reding maxim,active-fps-source = <MAX77620_FPS_SRC_NONE>; 20177934269SThierry Reding }; 20277934269SThierry Reding 20377934269SThierry Reding vdd_rtc: ldo4 { 20477934269SThierry Reding regulator-name = "VDD_RTC"; 20577934269SThierry Reding regulator-min-microvolt = <850000>; 20677934269SThierry Reding regulator-max-microvolt = <850000>; 20777934269SThierry Reding regulator-always-on; 20877934269SThierry Reding regulator-boot-on; 20977934269SThierry Reding 21077934269SThierry Reding regulator-enable-ramp-delay = <22>; 21177934269SThierry Reding regulator-ramp-delay = <100000>; 21277934269SThierry Reding 21377934269SThierry Reding maxim,active-fps-source = <MAX77620_FPS_SRC_0>; 21477934269SThierry Reding }; 21577934269SThierry Reding 21677934269SThierry Reding vdd_ts_hv: ldo5 { 21777934269SThierry Reding regulator-name = "VDD_TS_HV"; 21877934269SThierry Reding regulator-min-microvolt = <3300000>; 21977934269SThierry Reding regulator-max-microvolt = <3300000>; 22077934269SThierry Reding 22177934269SThierry Reding regulator-enable-ramp-delay = <62>; 22277934269SThierry Reding regulator-ramp-delay = <100000>; 22377934269SThierry Reding 22477934269SThierry Reding maxim,active-fps-source = <MAX77620_FPS_SRC_NONE>; 22577934269SThierry Reding }; 22677934269SThierry Reding 22777934269SThierry Reding vdd_ts: ldo6 { 22877934269SThierry Reding regulator-name = "VDD_TS_1V8"; 22977934269SThierry Reding regulator-min-microvolt = <1800000>; 23077934269SThierry Reding regulator-max-microvolt = <1800000>; 23177934269SThierry Reding 23277934269SThierry Reding regulator-enable-ramp-delay = <36>; 23377934269SThierry Reding regulator-ramp-delay = <100000>; 23477934269SThierry Reding 23577934269SThierry Reding maxim,active-fps-source = <MAX77620_FPS_SRC_0>; 23677934269SThierry Reding maxim,active-fps-power-up-slot = <7>; 23777934269SThierry Reding maxim,active-fps-power-down-slot = <0>; 23877934269SThierry Reding }; 23977934269SThierry Reding 24077934269SThierry Reding avdd_1v05_pll: ldo7 { 24177934269SThierry Reding regulator-name = "AVDD_1V05_PLL"; 24277934269SThierry Reding regulator-min-microvolt = <1050000>; 24377934269SThierry Reding regulator-max-microvolt = <1050000>; 24477934269SThierry Reding regulator-always-on; 24577934269SThierry Reding regulator-boot-on; 24677934269SThierry Reding 24777934269SThierry Reding regulator-enable-ramp-delay = <24>; 24877934269SThierry Reding regulator-ramp-delay = <100000>; 24977934269SThierry Reding 25077934269SThierry Reding maxim,active-fps-source = <MAX77620_FPS_SRC_1>; 25177934269SThierry Reding }; 25277934269SThierry Reding 25377934269SThierry Reding avdd_1v05: ldo8 { 25477934269SThierry Reding regulator-name = "AVDD_SATA_HDMI_DP_1V05"; 25577934269SThierry Reding regulator-min-microvolt = <1050000>; 25677934269SThierry Reding regulator-max-microvolt = <1050000>; 25777934269SThierry Reding 25877934269SThierry Reding regulator-enable-ramp-delay = <22>; 25977934269SThierry Reding regulator-ramp-delay = <100000>; 26077934269SThierry Reding 26177934269SThierry Reding maxim,active-fps-source = <MAX77620_FPS_SRC_1>; 26277934269SThierry Reding }; 26377934269SThierry Reding }; 26477934269SThierry Reding }; 26577934269SThierry Reding }; 26677934269SThierry Reding 267be70771dSThierry Reding pmc@7000e400 { 2689e71045fSThierry Reding nvidia,invert-interrupt; 2699e71045fSThierry Reding }; 2709e71045fSThierry Reding 2719e71045fSThierry Reding /* eMMC */ 272be70771dSThierry Reding sdhci@700b0600 { 2739e71045fSThierry Reding status = "okay"; 2749e71045fSThierry Reding bus-width = <8>; 2759e71045fSThierry Reding non-removable; 2766ff7705dSAapo Vienamo vqmmc-supply = <&vdd_1v8>; 2779e71045fSThierry Reding }; 2789e71045fSThierry Reding 2799e71045fSThierry Reding clocks { 2809e71045fSThierry Reding compatible = "simple-bus"; 2819e71045fSThierry Reding #address-cells = <1>; 2829e71045fSThierry Reding #size-cells = <0>; 2839e71045fSThierry Reding 2849e71045fSThierry Reding clk32k_in: clock@0 { 2859e71045fSThierry Reding compatible = "fixed-clock"; 2869e71045fSThierry Reding reg = <0>; 2879e71045fSThierry Reding #clock-cells = <0>; 2889e71045fSThierry Reding clock-frequency = <32768>; 2899e71045fSThierry Reding }; 2909e71045fSThierry Reding }; 2915e6b9a89SAlexandre Courbot 2922fdb74feSJon Hunter cpus { 2932fdb74feSJon Hunter cpu@0 { 2942fdb74feSJon Hunter enable-method = "psci"; 2952fdb74feSJon Hunter }; 2962fdb74feSJon Hunter 2972fdb74feSJon Hunter cpu@1 { 2982fdb74feSJon Hunter enable-method = "psci"; 2992fdb74feSJon Hunter }; 3002fdb74feSJon Hunter 3012fdb74feSJon Hunter cpu@2 { 3022fdb74feSJon Hunter enable-method = "psci"; 3032fdb74feSJon Hunter }; 3042fdb74feSJon Hunter 3052fdb74feSJon Hunter cpu@3 { 3062fdb74feSJon Hunter enable-method = "psci"; 3072fdb74feSJon Hunter }; 308d2c19dd7SJoseph Lo 309d2c19dd7SJoseph Lo idle-states { 310d2c19dd7SJoseph Lo cpu-sleep { 311d2c19dd7SJoseph Lo status = "okay"; 312d2c19dd7SJoseph Lo }; 313d2c19dd7SJoseph Lo }; 3142fdb74feSJon Hunter }; 3152fdb74feSJon Hunter 3162fdb74feSJon Hunter psci { 3172fdb74feSJon Hunter compatible = "arm,psci-0.2"; 3182fdb74feSJon Hunter method = "smc"; 3192fdb74feSJon Hunter }; 3202fdb74feSJon Hunter 3215e6b9a89SAlexandre Courbot regulators { 3225e6b9a89SAlexandre Courbot vdd_gpu: regulator@100 { 3235e6b9a89SAlexandre Courbot compatible = "pwm-regulator"; 3245e6b9a89SAlexandre Courbot reg = <100>; 3255e6b9a89SAlexandre Courbot pwms = <&pwm 1 4880>; 3265e6b9a89SAlexandre Courbot regulator-name = "VDD_GPU"; 3275e6b9a89SAlexandre Courbot regulator-min-microvolt = <710000>; 3285e6b9a89SAlexandre Courbot regulator-max-microvolt = <1320000>; 3295e6b9a89SAlexandre Courbot enable-gpios = <&pmic 6 GPIO_ACTIVE_HIGH>; 3305e6b9a89SAlexandre Courbot regulator-ramp-delay = <80>; 3315e6b9a89SAlexandre Courbot regulator-enable-ramp-delay = <1000>; 3325e6b9a89SAlexandre Courbot }; 3335e6b9a89SAlexandre Courbot }; 3349e71045fSThierry Reding}; 335