ARM64: config: Enable PMIC MAX77620 for Tegra 2180 platform
Subsystems (2)
PATCH v2 1/2 ARM64: config: Enable PMIC MAX77620 for Tegra 2180 platform
NVIDIA's Tegra210 Jetson platform (P2180) uses the following components:
MAX77620 as system PMIC.
PCA9539 as I2C GPIO bus expander
Enable the configs for PCA9539 GPIOs and Interrupt support and MAX77620 MFD/GPIO/Pincontrol/Regulators.
---
Changes from V1:
- Rebase change and added PCA also in the enable list.
arch/arm64/configs/defconfig | 7 +++++++ 1 file changed, 7 insertions(+)
arch/arm64/configs/defconfig +7 -0
@@ -185,6 +185,7 @@ CONFIG_SPI_QUP=y CONFIG_SPI_SPIDEV=m CONFIG_SPMI=y CONFIG_PINCTRL_SINGLE=y +CONFIG_PINCTRL_MAX77620=y CONFIG_PINCTRL_MSM8916=y CONFIG_PINCTRL_QCOM_SPMI_PMIC=y CONFIG_GPIO_SYSFS=y
@@ -192,6 +193,9 @@ CONFIG_GPIO_DWAPB=y CONFIG_GPIO_PL061=y CONFIG_GPIO_RCAR=y CONFIG_GPIO_XGENE=y +CONFIG_GPIO_PCA953X=y +CONFIG_GPIO_PCA953X_IRQ=y +CONFIG_GPIO_MAX77620=y CONFIG_POWER_RESET_MSM=y CONFIG_POWER_RESET_XGENE=y CONFIG_POWER_RESET_SYSCON=y
@@ -202,12 +206,14 @@ CONFIG_THERMAL_EMULATION=y CONFIG_EXYNOS_THERMAL=y CONFIG_WATCHDOG=y CONFIG_RENESAS_WDT=y +CONFIG_MFD_MAX77620=y CONFIG_MFD_SPMI_PMIC=y CONFIG_MFD_SEC_CORE=y CONFIG_MFD_HI655X_PMIC=y CONFIG_REGULATOR=y CONFIG_REGULATOR_FIXED_VOLTAGE=y CONFIG_REGULATOR_HI655X=y +CONFIG_REGULATOR_MAX77620=y CONFIG_REGULATOR_QCOM_SMD_RPM=y CONFIG_REGULATOR_QCOM_SPMI=y CONFIG_REGULATOR_S2MPS11=y
@@ -262,6 +268,7 @@ CONFIG_LEDS_TRIGGERS=y CONFIG_LEDS_TRIGGER_HEARTBEAT=y CONFIG_LEDS_TRIGGER_CPU=y CONFIG_RTC_CLASS=y +CONFIG_RTC_DRV_MAX77686=y CONFIG_RTC_DRV_S5M=y CONFIG_RTC_DRV_DS3232=y CONFIG_RTC_DRV_EFI=y
Signature · 1 line
2.1.4
PATCH v2 2/2 ARM64: tegra: Add device node for system PMIC MAX77620
Jetson-TX1 uses the Maxim MAX77620 as system Power management IC. Add device node for the MAX77620 with following details:
- Add device max77620 with.
- Add all pins configurations.
- Configure FPS of the device.
- Configure SD/DCDC and LDOs regulators.
- populate the bus expander on base board P2597.
- Populate all fixed voltage regulators controlled by GPIOs from Tegra, PMIC and bus expanders.
For the different details, jetson-CV device tree files are referred from downstream.
---
Changes from V1:
- Rebase change and populated based on applied patches.
.../boot/dts/nvidia/tegra210-p2180-spmic.dtsi | 272 +++++++++++++++++++++ arch/arm64/boot/dts/nvidia/tegra210-p2371-2180.dts | 2 + arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi | 150 ++++++++++++ 3 files changed, 424 insertions(+) create mode 100644 arch/arm64/boot/dts/nvidia/tegra210-p2180-spmic.dtsi
arch/arm64/boot/dts/nvidia/tegra210-p2180-spmic.dtsi new file +272 -0
@@ -0,0 +1,272 @@ +/* + * Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + */ + +#include <dt-bindings/mfd/max77620.h> +#include <dt-bindings/gpio/tegra-gpio.h> + +/ { + i2c at 7000d000 { + status = "okay"; + spmic:system-pmic at 3c { + compatible = "maxim,max77620"; + reg = <0x3c>; + interrupts = <GIC_SPI 86 IRQ_TYPE_NONE>; + + #interrupt-cells = <2>; + interrupt-controller; + + gpio-controller; + #gpio-cells = <2>; + + pinctrl-names = "default"; + pinctrl-0 = <&spmic_pin_defaults>; + + spmic_pin_defaults: spmic_pin_defaults { + pin_gpio0 { + pins = "gpio0"; + function = "gpio"; + }; + + pin_gpio1 { + pins = "gpio1"; + function = "fps-out"; + drive-push-pull = <1>; + maxim,active-fps-source = <MAX77620_FPS_SRC_0>; + maxim,active-fps-power-up-slot = <7>; + maxim,active-fps-power-down-slot = <0>; + }; + + pin_gpio2_3 { + pins = "gpio2", "gpio3"; + function = "fps-out"; + maxim,active-fps-source = <MAX77620_FPS_SRC_0>; + }; + + pin_gpio4 { + pins = "gpio4"; + function = "32k-out1"; + }; + + pin_gpio5_6_7 { + pins = "gpio5", "gpio6", "gpio7"; + function = "gpio"; + drive-push-pull = <1>; + }; + }; + + fps { + fps0 { + maxim,shutdown-fps-time-period-us = <5120>; + maxim,fps-event-source = <MAX77620_FPS_EVENT_SRC_EN0>; + }; + + fps1 { + maxim,shutdown-fps-time-period-us = <5120>; + maxim,fps-event-source = <MAX77620_FPS_EVENT_SRC_EN1>; + maxim,device-state-on-disabled-event = <MAX77620_FPS_INACTIVE_STATE_SLEEP>; + }; + + fps2 { + maxim,fps-event-source = <MAX77620_FPS_EVENT_SRC_EN0>; + }; + }; + + regulators { + in-ldo0-1-supply = <&spmic_sd2>; + in-ldo7-8-supply = <&spmic_sd2>; + + spmic_sd0: sd0 { + regulator-name = "vdd_core"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1400000>; + regulator-boot-on; + regulator-always-on; + maxim,active-fps-source = <MAX77620_FPS_SRC_1>; + regulator-enable-ramp-delay = <146>; + regulator-ramp-delay = <9000>; + maxim,ramp-rate-setting = <27500>; + }; + + spmic_sd1: sd1 { + regulator-name = "vddio-ddr"; + regulator-always-on; + regulator-boot-on; + maxim,active-fps-source = <MAX77620_FPS_SRC_0>; + regulator-enable-ramp-delay = <130>; + regulator-ramp-delay = <9000>; + maxim,ramp-rate-setting = <27500>; + }; + + spmic_sd2: sd2 { + regulator-name = "vdd-pre-reg"; + regulator-min-microvolt = <1350000>; + regulator-max-microvolt = <1350000>; + maxim,active-fps-source = <MAX77620_FPS_SRC_1>; + regulator-enable-ramp-delay = <176>; + regulator-ramp-delay = <7800>; + maxim,ramp-rate-setting = <27500>; + }; + + spmic_sd3: sd3 { + regulator-name = "vdd-1v8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + regulator-boot-on; + maxim,active-fps-source = <MAX77620_FPS_SRC_0>; + regulator-enable-ramp-delay = <242>; + regulator-ramp-delay = <7800>; + maxim,ramp-rate-setting = <27500>; + }; + + spmic_ldo0: ldo0 { + regulator-name = "avdd-sys"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + regulator-always-on; + regulator-boot-on; + maxim,active-fps-source = <MAX77620_FPS_SRC_NONE>; + regulator-enable-ramp-delay = <26>; + regulator-ramp-delay = <50000>; + maxim,ramp-rate-setting = <100000>; + }; + + spmic_ldo1: ldo1 { + regulator-name = "vdd-pex"; + regulator-min-microvolt = <1050000>; + regulator-max-microvolt = <1050000>; + regulator-always-on; + maxim,active-fps-source = <MAX77620_FPS_SRC_1>; + regulator-enable-ramp-delay = <22>; + regulator-ramp-delay = <50000>; + maxim,ramp-rate-setting = <100000>; + }; + + spmic_ldo2: ldo2 { + regulator-name = "vddio-sdmmc1"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + maxim,active-fps-source = <MAX77620_FPS_SRC_NONE>; + regulator-enable-ramp-delay = <62>; + regulator-ramp-delay = <50000>; + maxim,ramp-rate-setting = <100000>; + }; + + spmic_ldo3: ldo3 { + regulator-name = "vdd-cam-hv"; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + maxim,active-fps-source = <MAX77620_FPS_SRC_NONE>; + regulator-enable-ramp-delay = <50>; + regulator-ramp-delay = <50000>; + maxim,ramp-rate-setting = <100000>; + }; + + spmic_ldo4: ldo4 { + regulator-name = "vdd-rtc"; + regulator-min-microvolt = <850000>; + regulator-max-microvolt = <850000>; + regulator-always-on; + regulator-boot-on; + maxim,active-fps-source = <MAX77620_FPS_SRC_0>; + regulator-enable-ramp-delay = <22>; + regulator-ramp-delay = <100000>; + maxim,ramp-rate-setting = <100000>; + }; + + spmic_ldo5: ldo5 { + regulator-name = "avdd-ts-hv"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + maxim,active-fps-source = <MAX77620_FPS_SRC_NONE>; + regulator-enable-ramp-delay = <62>; + regulator-ramp-delay = <50000>; + maxim,ramp-rate-setting = <100000>; + }; + + spmic_ldo6: ldo6 { + regulator-name = "vdd-ts"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + maxim,active-fps-source = <MAX77620_FPS_SRC_NONE>; + maxim,active-fps-power-up-slot = <7>; + maxim,active-fps-power-down-slot = <0>; + regulator-enable-ramp-delay = <36>; + regulator-ramp-delay = <50000>; + maxim,ramp-rate-setting = <100000>; + }; + + spmic_ldo7: ldo7 { + regulator-name = "vdd-gen-pll-edp"; + regulator-min-microvolt = <1050000>; + regulator-max-microvolt = <1050000>; + regulator-always-on; + regulator-boot-on; + maxim,active-fps-source = <MAX77620_FPS_SRC_1>; + regulator-enable-ramp-delay = <24>; + regulator-ramp-delay = <50000>; + maxim,ramp-rate-setting = <100000>; + }; + + spmic_ldo8: ldo8 { + regulator-name = "vdd-hdmi-dp"; + regulator-min-microvolt = <1050000>; + regulator-max-microvolt = <1050000>; + regulator-always-on; + maxim,active-fps-source = <MAX77620_FPS_SRC_1>; + regulator-enable-ramp-delay = <22>; + regulator-ramp-delay = <50000>; + maxim,ramp-rate-setting = <100000>; + }; + }; + }; + }; + + fixed-regulators { + compatible = "simple-bus"; + device_type = "fixed-regulators"; + #address-cells = <1>; + #size-cells = <0>; + + battery_reg: regulator at 0 { + compatible = "regulator-fixed"; + reg = <0>; + regulator-name = "vdd-ac-bat"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + }; + + vdd_3v3: regulator at 1 { /* SPMIC GPIO3 FPS controlled */ + compatible = "regulator-fixed"; + reg = <1>; + regulator-name = "vdd-3v3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-enable-ramp-delay = <160>; + }; + + avdd_io_edp_1v05: regulator at 2 { + compatible = "regulator-fixed"; + reg = <2>; + regulator-name = "avdd-io-edp-1v05"; + regulator-min-microvolt = <1050000>; + regulator-max-microvolt = <1050000>; + regulator-boot-on; + gpio = <&spmic 7 0>; + enable-active-high; + regulator-enable-ramp-delay = <240>; + vin-supply = <&spmic_ldo7>; + }; + }; +};
arch/arm64/boot/dts/nvidia/tegra210-p2371-2180.dts +2 -0
@@ -1,9 +1,11 @@ /dts-v1/; #include "tegra210-p2180.dtsi" +#include "tegra210-p2180-spmic.dtsi" #include "tegra210-p2597.dtsi" / { model = "NVIDIA Jetson TX1 Developer Kit"; compatible = "nvidia,p2371-2180", "nvidia,tegra210"; + };
arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi +150 -0
160 lines not on this page · raw message
Signature · 1 line
2.1.4
Re: [PATCH V2 2/2] ARM64: tegra: Add device node for system PMIC MAX77620
Quoted 10 lines · Laxman Dewangan
Jetson-TX1 uses the Maxim MAX77620 as system Power management IC. Add device node for the MAX77620 with following details:
- Add device max77620 with.
- Add all pins configurations.
- Configure FPS of the device.
- Configure SD/DCDC and LDOs regulators.
- populate the bus expander on base board P2597.
- Populate all fixed voltage regulators controlled by GPIOs from Tegra, PMIC and bus expanders.
Quoted 2 lines
For the different details, jetson-CV device tree files are referred from downstream.
I think Thierry posted a similar change: