Skip to content

Commit 1b4c842

Browse files
rhkleinthierryreding
authored andcommitted
arm64: tegra: Add regulators for Tegra210 Smaug
Add regulators to the Tegra210 Smaug DTS file including support for the MAX77620 PMIC. Signed-off-by: Rhyland Klein <[email protected]> Acked-by: Laxman Dewangan <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent 9168e1d commit 1b4c842

File tree

1 file changed

+314
-0
lines changed

1 file changed

+314
-0
lines changed

arch/arm64/boot/dts/nvidia/tegra210-smaug.dts

Lines changed: 314 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/dts-v1/;
22

33
#include <dt-bindings/input/input.h>
4+
#include <dt-bindings/mfd/max77620.h>
45
#include <dt-bindings/pinctrl/pinctrl-tegra.h>
56

67
#include "tegra210.dtsi"
@@ -1327,6 +1328,234 @@
13271328
};
13281329
};
13291330

1331+
i2c@7000d000 {
1332+
status = "okay";
1333+
clock-frequency = <1000000>;
1334+
1335+
max77620: max77620@3c {
1336+
compatible = "maxim,max77620";
1337+
reg = <0x3c>;
1338+
interrupts = <0 86 IRQ_TYPE_NONE>;
1339+
1340+
#interrupt-cells = <2>;
1341+
interrupt-controller;
1342+
1343+
gpio-controller;
1344+
#gpio-cells = <2>;
1345+
1346+
pinctrl-names = "default";
1347+
pinctrl-0 = <&max77620_default>;
1348+
1349+
max77620_default: pinmux@0 {
1350+
pin_gpio {
1351+
pins = "gpio0", "gpio1", "gpio2", "gpio7";
1352+
function = "gpio";
1353+
};
1354+
1355+
/*
1356+
* GPIO3 is used to en_pp3300, and it is part of power
1357+
* sequence, So it must be sequenced up (automatically
1358+
* set by OTP) and down properly.
1359+
*/
1360+
pin_gpio3 {
1361+
pins = "gpio3";
1362+
function = "fps-out";
1363+
drive-open-drain = <1>;
1364+
maxim,active-fps-source = <MAX77620_FPS_SRC_0>;
1365+
maxim,active-fps-power-up-slot = <4>;
1366+
maxim,active-fps-power-down-slot = <2>;
1367+
};
1368+
1369+
pin_gpio5_6 {
1370+
pins = "gpio5", "gpio6";
1371+
function = "gpio";
1372+
drive-push-pull = <1>;
1373+
};
1374+
1375+
pin_32k {
1376+
pins = "gpio4";
1377+
function = "32k-out1";
1378+
};
1379+
};
1380+
1381+
fps {
1382+
fps0 {
1383+
maxim,shutdown-fps-time-period-us = <5120>;
1384+
maxim,fps-event-source = <MAX77620_FPS_EVENT_SRC_EN0>;
1385+
};
1386+
1387+
fps1 {
1388+
maxim,shutdown-fps-time-period-us = <5120>;
1389+
maxim,fps-event-source = <MAX77620_FPS_EVENT_SRC_EN1>;
1390+
maxim,device-state-on-disabled-event = <MAX77620_FPS_INACTIVE_STATE_SLEEP>;
1391+
};
1392+
1393+
fps2 {
1394+
maxim,fps-event-source = <MAX77620_FPS_EVENT_SRC_EN0>;
1395+
};
1396+
};
1397+
1398+
regulators {
1399+
in-ldo0-1-supply = <&pp1350>;
1400+
in-ldo2-supply = <&pp3300>;
1401+
in-ldo3-5-supply = <&pp3300>;
1402+
in-ldo7-8-supply = <&pp1350>;
1403+
1404+
ppvar_soc: sd0 {
1405+
regulator-name = "PPVAR_SOC";
1406+
regulator-min-microvolt = <825000>;
1407+
regulator-max-microvolt = <1125000>;
1408+
regulator-always-on;
1409+
regulator-boot-on;
1410+
maxim,active-fps-source = <MAX77620_FPS_SRC_1>;
1411+
maxim,active-fps-power-up-slot = <1>;
1412+
maxim,active-fps-power-down-slot = <7>;
1413+
};
1414+
1415+
pp1100_sd1: sd1 {
1416+
regulator-name = "PP1100";
1417+
regulator-min-microvolt = <1125000>;
1418+
regulator-max-microvolt = <1125000>;
1419+
regulator-always-on;
1420+
regulator-boot-on;
1421+
maxim,active-fps-source = <MAX77620_FPS_SRC_0>;
1422+
maxim,active-fps-power-up-slot = <5>;
1423+
maxim,active-fps-power-down-slot = <1>;
1424+
};
1425+
1426+
pp1350: sd2 {
1427+
regulator-name = "PP1350";
1428+
regulator-min-microvolt = <1350000>;
1429+
regulator-max-microvolt = <1350000>;
1430+
regulator-always-on;
1431+
regulator-boot-on;
1432+
maxim,active-fps-source = <MAX77620_FPS_SRC_NONE>;
1433+
maxim,active-fps-power-up-slot = <2>;
1434+
maxim,active-fps-power-down-slot = <5>;
1435+
};
1436+
1437+
pp1800: sd3 {
1438+
regulator-name = "PP1800";
1439+
regulator-min-microvolt = <1800000>;
1440+
regulator-max-microvolt = <1800000>;
1441+
regulator-always-on;
1442+
regulator-boot-on;
1443+
maxim,active-fps-source = <MAX77620_FPS_SRC_0>;
1444+
maxim,active-fps-power-up-slot = <3>;
1445+
maxim,active-fps-power-down-slot = <3>;
1446+
};
1447+
1448+
pp1200_avdd: ldo0 {
1449+
regulator-name = "PP1200_AVDD";
1450+
regulator-min-microvolt = <1200000>;
1451+
regulator-max-microvolt = <1200000>;
1452+
regulator-enable-ramp-delay = <26>;
1453+
regulator-ramp-delay = <100000>;
1454+
regulator-boot-on;
1455+
maxim,active-fps-source = <MAX77620_FPS_SRC_NONE>;
1456+
maxim,active-fps-power-up-slot = <0>;
1457+
maxim,active-fps-power-down-slot = <7>;
1458+
};
1459+
1460+
pp1200_rcam: ldo1 {
1461+
regulator-name = "PP1200_RCAM";
1462+
regulator-min-microvolt = <1200000>;
1463+
regulator-max-microvolt = <1200000>;
1464+
regulator-enable-ramp-delay = <22>;
1465+
regulator-ramp-delay = <100000>;
1466+
maxim,active-fps-source = <MAX77620_FPS_SRC_NONE>;
1467+
maxim,active-fps-power-up-slot = <0>;
1468+
maxim,active-fps-power-down-slot = <7>;
1469+
};
1470+
1471+
pp_ldo2: ldo2 {
1472+
regulator-name = "PP_LDO2";
1473+
regulator-min-microvolt = <1800000>;
1474+
regulator-max-microvolt = <1800000>;
1475+
regulator-enable-ramp-delay = <62>;
1476+
regulator-ramp-delay = <11000>;
1477+
regulator-always-on;
1478+
regulator-boot-on;
1479+
maxim,active-fps-source = <MAX77620_FPS_SRC_NONE>;
1480+
maxim,active-fps-power-up-slot = <0>;
1481+
maxim,active-fps-power-down-slot = <7>;
1482+
};
1483+
1484+
pp2800l_rcam: ldo3 {
1485+
regulator-name = "PP2800L_RCAM";
1486+
regulator-min-microvolt = <2800000>;
1487+
regulator-max-microvolt = <2800000>;
1488+
regulator-enable-ramp-delay = <50>;
1489+
regulator-ramp-delay = <100000>;
1490+
maxim,active-fps-source = <MAX77620_FPS_SRC_NONE>;
1491+
maxim,active-fps-power-up-slot = <0>;
1492+
maxim,active-fps-power-down-slot = <7>;
1493+
};
1494+
1495+
pp100_soc_rtc: ldo4 {
1496+
regulator-name = "PP1100_SOC_RTC";
1497+
regulator-min-microvolt = <850000>;
1498+
regulator-max-microvolt = <850000>;
1499+
regulator-enable-ramp-delay = <22>;
1500+
regulator-ramp-delay = <100000>;
1501+
regulator-always-on; /* Check this */
1502+
regulator-boot-on;
1503+
maxim,active-fps-source = <MAX77620_FPS_SRC_0>;
1504+
maxim,active-fps-power-up-slot = <1>;
1505+
maxim,active-fps-power-down-slot = <7>;
1506+
};
1507+
1508+
pp2800l_fcam: ldo5 {
1509+
regulator-name = "PP2800L_FCAM";
1510+
regulator-min-microvolt = <2800000>;
1511+
regulator-max-microvolt = <2800000>;
1512+
regulator-enable-ramp-delay = <62>;
1513+
regulator-ramp-delay = <100000>;
1514+
maxim,active-fps-source = <MAX77620_FPS_SRC_NONE>;
1515+
maxim,active-fps-power-up-slot = <0>;
1516+
maxim,active-fps-power-down-slot = <7>;
1517+
};
1518+
1519+
ldo6 {
1520+
/* Unused. */
1521+
regulator-name = "PP_LDO6";
1522+
regulator-min-microvolt = <1800000>;
1523+
regulator-max-microvolt = <1800000>;
1524+
regulator-enable-ramp-delay = <36>;
1525+
regulator-ramp-delay = <100000>;
1526+
maxim,active-fps-source = <MAX77620_FPS_SRC_NONE>;
1527+
maxim,active-fps-power-up-slot = <0>;
1528+
maxim,active-fps-power-down-slot = <7>;
1529+
};
1530+
1531+
pp1050_avdd: ldo7 {
1532+
regulator-name = "PP1050_AVDD";
1533+
regulator-min-microvolt = <1050000>;
1534+
regulator-max-microvolt = <1050000>;
1535+
regulator-enable-ramp-delay = <24>;
1536+
regulator-ramp-delay = <100000>;
1537+
regulator-always-on;
1538+
regulator-boot-on;
1539+
maxim,active-fps-source = <MAX77620_FPS_SRC_1>;
1540+
maxim,active-fps-power-up-slot = <3>;
1541+
maxim,active-fps-power-down-slot = <4>;
1542+
};
1543+
1544+
avddio_1v05: ldo8 {
1545+
regulator-name = "AVDDIO_1V05";
1546+
regulator-min-microvolt = <1050000>;
1547+
regulator-max-microvolt = <1050000>;
1548+
regulator-enable-ramp-delay = <22>;
1549+
regulator-ramp-delay = <100000>;
1550+
regulator-boot-on;
1551+
maxim,active-fps-source = <MAX77620_FPS_SRC_NONE>;
1552+
maxim,active-fps-power-up-slot = <0>;
1553+
maxim,active-fps-power-down-slot = <7>;
1554+
};
1555+
};
1556+
};
1557+
};
1558+
13301559
pmc@7000e400 {
13311560
nvidia,invert-interrupt;
13321561
nvidia,suspend-mode = <0>;
@@ -1421,4 +1650,89 @@
14211650
compatible = "arm,psci-1.0";
14221651
method = "smc";
14231652
};
1653+
1654+
regulators {
1655+
compatible = "simple-bus";
1656+
device_type = "fixed-regulators";
1657+
#address-cells = <1>;
1658+
#size-cells = <0>;
1659+
1660+
ppvar_sys: regulator@0 {
1661+
compatible = "regulator-fixed";
1662+
reg = <0>;
1663+
regulator-name = "PPVAR_SYS";
1664+
regulator-min-microvolt = <4400000>;
1665+
regulator-max-microvolt = <4400000>;
1666+
regulator-always-on;
1667+
};
1668+
1669+
pplcd_vdd: regulator@1 {
1670+
compatible = "regulator-fixed";
1671+
reg = <1>;
1672+
regulator-name = "PPLCD_VDD";
1673+
regulator-min-microvolt = <4400000>;
1674+
regulator-max-microvolt = <4400000>;
1675+
gpio = <&gpio TEGRA_GPIO(V, 4) 0>;
1676+
enable-active-high;
1677+
regulator-boot-on;
1678+
};
1679+
1680+
pp3000_always: regulator@2 {
1681+
compatible = "regulator-fixed";
1682+
reg = <2>;
1683+
regulator-name = "PP3000_ALWAYS";
1684+
regulator-min-microvolt = <3000000>;
1685+
regulator-max-microvolt = <3000000>;
1686+
regulator-always-on;
1687+
};
1688+
1689+
pp3300: regulator@3 {
1690+
compatible = "regulator-fixed";
1691+
reg = <3>;
1692+
regulator-name = "PP3300";
1693+
regulator-min-microvolt = <3300000>;
1694+
regulator-max-microvolt = <3300000>;
1695+
regulator-boot-on;
1696+
regulator-always-on;
1697+
enable-active-high;
1698+
};
1699+
1700+
pp5000: regulator@4 {
1701+
compatible = "regulator-fixed";
1702+
reg = <4>;
1703+
regulator-name = "PP5000";
1704+
regulator-min-microvolt = <5000000>;
1705+
regulator-max-microvolt = <5000000>;
1706+
regulator-always-on;
1707+
};
1708+
1709+
pp1800_lcdio: regulator@5 {
1710+
compatible = "regulator-fixed";
1711+
reg = <5>;
1712+
regulator-name = "PP1800_LCDIO";
1713+
regulator-min-microvolt = <1800000>;
1714+
regulator-max-microvolt = <1800000>;
1715+
gpio = <&gpio TEGRA_GPIO(V, 3) 0>;
1716+
enable-active-high;
1717+
regulator-boot-on;
1718+
};
1719+
1720+
pp1800_cam: regulator@6 {
1721+
compatible = "regulator-fixed";
1722+
reg= <6>;
1723+
regulator-name = "PP1800_CAM";
1724+
regulator-min-microvolt = <1800000>;
1725+
regulator-max-microvolt = <1800000>;
1726+
gpio = <&gpio TEGRA_GPIO(K, 3) 0>;
1727+
enable-active-high;
1728+
};
1729+
1730+
usbc_vbus: regulator@7 {
1731+
compatible = "regulator-fixed";
1732+
reg = <7>;
1733+
regulator-name = "USBC_VBUS";
1734+
regulator-min-microvolt = <5000000>;
1735+
regulator-max-microvolt = <5000000>;
1736+
};
1737+
};
14241738
};

0 commit comments

Comments
 (0)