1*4882a593Smuzhiyun// SPDX-License-Identifier: GPL-2.0 2*4882a593Smuzhiyun 3*4882a593Smuzhiyun#include <dt-bindings/interrupt-controller/arm-gic.h> 4*4882a593Smuzhiyun#include <dt-bindings/gpio/gpio.h> 5*4882a593Smuzhiyun#include <dt-bindings/mfd/max77620.h> 6*4882a593Smuzhiyun 7*4882a593Smuzhiyun/ { 8*4882a593Smuzhiyun i2c@7000d000 { 9*4882a593Smuzhiyun pmic: pmic@3c { 10*4882a593Smuzhiyun compatible = "maxim,max77663"; 11*4882a593Smuzhiyun reg = <0x3c>; 12*4882a593Smuzhiyun 13*4882a593Smuzhiyun interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>; 14*4882a593Smuzhiyun #interrupt-cells = <2>; 15*4882a593Smuzhiyun interrupt-controller; 16*4882a593Smuzhiyun 17*4882a593Smuzhiyun #gpio-cells = <2>; 18*4882a593Smuzhiyun gpio-controller; 19*4882a593Smuzhiyun 20*4882a593Smuzhiyun system-power-controller; 21*4882a593Smuzhiyun 22*4882a593Smuzhiyun pinctrl-names = "default"; 23*4882a593Smuzhiyun pinctrl-0 = <&max77620_default>; 24*4882a593Smuzhiyun 25*4882a593Smuzhiyun max77620_default: pinmux { 26*4882a593Smuzhiyun gpio4 { 27*4882a593Smuzhiyun pins = "gpio4"; 28*4882a593Smuzhiyun function = "32k-out1"; 29*4882a593Smuzhiyun }; 30*4882a593Smuzhiyun }; 31*4882a593Smuzhiyun 32*4882a593Smuzhiyun cpu-pwr-req { 33*4882a593Smuzhiyun gpio-hog; 34*4882a593Smuzhiyun gpios = <6 GPIO_ACTIVE_HIGH>; 35*4882a593Smuzhiyun input; 36*4882a593Smuzhiyun }; 37*4882a593Smuzhiyun 38*4882a593Smuzhiyun fps { 39*4882a593Smuzhiyun fps0 { 40*4882a593Smuzhiyun maxim,fps-event-source = <MAX77620_FPS_EVENT_SRC_EN0>; 41*4882a593Smuzhiyun }; 42*4882a593Smuzhiyun 43*4882a593Smuzhiyun fps1 { 44*4882a593Smuzhiyun maxim,fps-event-source = <MAX77620_FPS_EVENT_SRC_EN1>; 45*4882a593Smuzhiyun }; 46*4882a593Smuzhiyun 47*4882a593Smuzhiyun fps2 { 48*4882a593Smuzhiyun maxim,fps-event-source = <MAX77620_FPS_EVENT_SRC_EN0>; 49*4882a593Smuzhiyun }; 50*4882a593Smuzhiyun }; 51*4882a593Smuzhiyun 52*4882a593Smuzhiyun regulators { 53*4882a593Smuzhiyun in-sd0-supply = <&vdd_5v0_sys>; 54*4882a593Smuzhiyun in-sd1-supply = <&vdd_5v0_sys>; 55*4882a593Smuzhiyun in-sd2-supply = <&vdd_5v0_sys>; 56*4882a593Smuzhiyun in-sd3-supply = <&vdd_5v0_sys>; 57*4882a593Smuzhiyun in-sd4-supply = <&vdd_5v0_sys>; 58*4882a593Smuzhiyun 59*4882a593Smuzhiyun in-ldo0-1-supply = <&vdd_1v35>; 60*4882a593Smuzhiyun in-ldo2-supply = <&vdd_3v3_sys>; 61*4882a593Smuzhiyun in-ldo3-5-supply = <&vdd_3v3_sys>; 62*4882a593Smuzhiyun in-ldo4-6-supply = <&vdd_5v0_sys>; 63*4882a593Smuzhiyun in-ldo7-8-supply = <&vdd_1v35>; 64*4882a593Smuzhiyun 65*4882a593Smuzhiyun vdd_cpu: sd0 { 66*4882a593Smuzhiyun regulator-name = "vdd_cpu"; 67*4882a593Smuzhiyun regulator-min-microvolt = <800000>; 68*4882a593Smuzhiyun regulator-max-microvolt = <1250000>; 69*4882a593Smuzhiyun regulator-coupled-with = <&vdd_core>; 70*4882a593Smuzhiyun regulator-coupled-max-spread = <300000>; 71*4882a593Smuzhiyun regulator-max-step-microvolt = <100000>; 72*4882a593Smuzhiyun regulator-always-on; 73*4882a593Smuzhiyun regulator-boot-on; 74*4882a593Smuzhiyun 75*4882a593Smuzhiyun nvidia,tegra-cpu-regulator; 76*4882a593Smuzhiyun }; 77*4882a593Smuzhiyun 78*4882a593Smuzhiyun vdd_core: sd1 { 79*4882a593Smuzhiyun regulator-name = "vdd_core"; 80*4882a593Smuzhiyun regulator-min-microvolt = <950000>; 81*4882a593Smuzhiyun regulator-max-microvolt = <1350000>; 82*4882a593Smuzhiyun regulator-coupled-with = <&vdd_cpu>; 83*4882a593Smuzhiyun regulator-coupled-max-spread = <300000>; 84*4882a593Smuzhiyun regulator-max-step-microvolt = <100000>; 85*4882a593Smuzhiyun regulator-always-on; 86*4882a593Smuzhiyun regulator-boot-on; 87*4882a593Smuzhiyun 88*4882a593Smuzhiyun nvidia,tegra-core-regulator; 89*4882a593Smuzhiyun }; 90*4882a593Smuzhiyun 91*4882a593Smuzhiyun vdd_1v8: sd2 { 92*4882a593Smuzhiyun regulator-name = "vdd_gen1v8"; 93*4882a593Smuzhiyun regulator-min-microvolt = <1800000>; 94*4882a593Smuzhiyun regulator-max-microvolt = <1800000>; 95*4882a593Smuzhiyun regulator-always-on; 96*4882a593Smuzhiyun regulator-boot-on; 97*4882a593Smuzhiyun }; 98*4882a593Smuzhiyun 99*4882a593Smuzhiyun vdd_1v35: sd3 { 100*4882a593Smuzhiyun regulator-name = "vdd_ddr3l_1v35"; 101*4882a593Smuzhiyun regulator-min-microvolt = <1350000>; 102*4882a593Smuzhiyun regulator-max-microvolt = <1350000>; 103*4882a593Smuzhiyun regulator-always-on; 104*4882a593Smuzhiyun regulator-boot-on; 105*4882a593Smuzhiyun }; 106*4882a593Smuzhiyun 107*4882a593Smuzhiyun ldo0 { 108*4882a593Smuzhiyun regulator-name = "vdd_ddr_hs"; 109*4882a593Smuzhiyun regulator-min-microvolt = <1000000>; 110*4882a593Smuzhiyun regulator-max-microvolt = <1000000>; 111*4882a593Smuzhiyun regulator-always-on; 112*4882a593Smuzhiyun regulator-boot-on; 113*4882a593Smuzhiyun }; 114*4882a593Smuzhiyun 115*4882a593Smuzhiyun ldo2 { 116*4882a593Smuzhiyun regulator-name = "vdd_ddr_rx"; 117*4882a593Smuzhiyun regulator-min-microvolt = <2800000>; 118*4882a593Smuzhiyun regulator-max-microvolt = <2800000>; 119*4882a593Smuzhiyun regulator-always-on; 120*4882a593Smuzhiyun regulator-boot-on; 121*4882a593Smuzhiyun }; 122*4882a593Smuzhiyun 123*4882a593Smuzhiyun vcore_emmc: ldo3 { 124*4882a593Smuzhiyun regulator-name = "vcore_emmc"; 125*4882a593Smuzhiyun regulator-min-microvolt = <2850000>; 126*4882a593Smuzhiyun regulator-max-microvolt = <3100000>; 127*4882a593Smuzhiyun regulator-always-on; 128*4882a593Smuzhiyun }; 129*4882a593Smuzhiyun 130*4882a593Smuzhiyun ldo4 { 131*4882a593Smuzhiyun regulator-name = "vdd_rtc"; 132*4882a593Smuzhiyun regulator-min-microvolt = <1200000>; 133*4882a593Smuzhiyun regulator-max-microvolt = <1200000>; 134*4882a593Smuzhiyun regulator-always-on; 135*4882a593Smuzhiyun regulator-boot-on; 136*4882a593Smuzhiyun }; 137*4882a593Smuzhiyun 138*4882a593Smuzhiyun ldo5 { 139*4882a593Smuzhiyun regulator-name = "vdd_camera"; 140*4882a593Smuzhiyun regulator-min-microvolt = <1800000>; 141*4882a593Smuzhiyun regulator-max-microvolt = <1800000>; 142*4882a593Smuzhiyun }; 143*4882a593Smuzhiyun 144*4882a593Smuzhiyun ldo6 { 145*4882a593Smuzhiyun regulator-name = "vddio_sdmmc"; 146*4882a593Smuzhiyun regulator-min-microvolt = <1800000>; 147*4882a593Smuzhiyun regulator-max-microvolt = <3300000>; 148*4882a593Smuzhiyun regulator-always-on; 149*4882a593Smuzhiyun regulator-boot-on; 150*4882a593Smuzhiyun }; 151*4882a593Smuzhiyun 152*4882a593Smuzhiyun ldo7 { 153*4882a593Smuzhiyun regulator-name = "avdd_dsi_csi"; 154*4882a593Smuzhiyun regulator-min-microvolt = <1200000>; 155*4882a593Smuzhiyun regulator-max-microvolt = <1200000>; 156*4882a593Smuzhiyun }; 157*4882a593Smuzhiyun 158*4882a593Smuzhiyun ldo8 { 159*4882a593Smuzhiyun regulator-name = "avdd_pll"; 160*4882a593Smuzhiyun regulator-min-microvolt = <1200000>; 161*4882a593Smuzhiyun regulator-max-microvolt = <1200000>; 162*4882a593Smuzhiyun regulator-always-on; 163*4882a593Smuzhiyun regulator-boot-on; 164*4882a593Smuzhiyun }; 165*4882a593Smuzhiyun }; 166*4882a593Smuzhiyun }; 167*4882a593Smuzhiyun }; 168*4882a593Smuzhiyun 169*4882a593Smuzhiyun vdd_3v3_sys: regulator@1 { 170*4882a593Smuzhiyun gpio = <&pmic 3 GPIO_ACTIVE_HIGH>; 171*4882a593Smuzhiyun enable-active-high; 172*4882a593Smuzhiyun }; 173*4882a593Smuzhiyun 174*4882a593Smuzhiyun regulator@4 { 175*4882a593Smuzhiyun compatible = "regulator-fixed"; 176*4882a593Smuzhiyun regulator-name = "avdd_usb"; 177*4882a593Smuzhiyun regulator-min-microvolt = <3300000>; 178*4882a593Smuzhiyun regulator-max-microvolt = <3300000>; 179*4882a593Smuzhiyun regulator-always-on; 180*4882a593Smuzhiyun regulator-boot-on; 181*4882a593Smuzhiyun gpio = <&pmic 2 GPIO_ACTIVE_HIGH>; 182*4882a593Smuzhiyun enable-active-high; 183*4882a593Smuzhiyun vin-supply = <&vdd_3v3_sys>; 184*4882a593Smuzhiyun }; 185*4882a593Smuzhiyun}; 186