1e6a51ffaSAnand Gadiyar// SPDX-License-Identifier: GPL-2.0 2e6a51ffaSAnand Gadiyar/* 3e6a51ffaSAnand Gadiyar * AM62x LP SK: https://www.ti.com/tool/SK-AM62-LP 4e6a51ffaSAnand Gadiyar * 5e6a51ffaSAnand Gadiyar * Copyright (C) 2021-2023 Texas Instruments Incorporated - https://www.ti.com/ 6e6a51ffaSAnand Gadiyar */ 7e6a51ffaSAnand Gadiyar 8e6a51ffaSAnand Gadiyar/dts-v1/; 9e6a51ffaSAnand Gadiyar 10e6a51ffaSAnand Gadiyar#include "k3-am62x-sk-common.dtsi" 11e6a51ffaSAnand Gadiyar 12e6a51ffaSAnand Gadiyar/ { 13e6a51ffaSAnand Gadiyar compatible = "ti,am62-lp-sk", "ti,am625"; 14e6a51ffaSAnand Gadiyar model = "Texas Instruments AM62x LP SK"; 15e6a51ffaSAnand Gadiyar 16e6a51ffaSAnand Gadiyar vmain_pd: regulator-0 { 17e6a51ffaSAnand Gadiyar /* TPS65988 PD CONTROLLER OUTPUT */ 18e6a51ffaSAnand Gadiyar compatible = "regulator-fixed"; 19e6a51ffaSAnand Gadiyar regulator-name = "vmain_pd"; 20e6a51ffaSAnand Gadiyar regulator-min-microvolt = <5000000>; 21e6a51ffaSAnand Gadiyar regulator-max-microvolt = <5000000>; 22e6a51ffaSAnand Gadiyar regulator-always-on; 23e6a51ffaSAnand Gadiyar regulator-boot-on; 24e6a51ffaSAnand Gadiyar }; 25e6a51ffaSAnand Gadiyar 26e6a51ffaSAnand Gadiyar vcc_5v0: regulator-1 { 27e6a51ffaSAnand Gadiyar /* Output of TPS630702RNMR */ 28e6a51ffaSAnand Gadiyar compatible = "regulator-fixed"; 29e6a51ffaSAnand Gadiyar regulator-name = "vcc_5v0"; 30e6a51ffaSAnand Gadiyar regulator-min-microvolt = <5000000>; 31e6a51ffaSAnand Gadiyar regulator-max-microvolt = <5000000>; 32e6a51ffaSAnand Gadiyar vin-supply = <&vmain_pd>; 33e6a51ffaSAnand Gadiyar regulator-always-on; 34e6a51ffaSAnand Gadiyar regulator-boot-on; 35e6a51ffaSAnand Gadiyar }; 36e6a51ffaSAnand Gadiyar 37e6a51ffaSAnand Gadiyar vcc_3v3_sys: regulator-2 { 38e6a51ffaSAnand Gadiyar /* output of LM61460-Q1 */ 39e6a51ffaSAnand Gadiyar compatible = "regulator-fixed"; 40e6a51ffaSAnand Gadiyar regulator-name = "vcc_3v3_sys"; 41e6a51ffaSAnand Gadiyar regulator-min-microvolt = <3300000>; 42e6a51ffaSAnand Gadiyar regulator-max-microvolt = <3300000>; 43e6a51ffaSAnand Gadiyar vin-supply = <&vmain_pd>; 44e6a51ffaSAnand Gadiyar regulator-always-on; 45e6a51ffaSAnand Gadiyar regulator-boot-on; 46e6a51ffaSAnand Gadiyar }; 47e6a51ffaSAnand Gadiyar 48e6a51ffaSAnand Gadiyar vdd_mmc1: regulator-3 { 49e6a51ffaSAnand Gadiyar /* TPS22918DBVR */ 50e6a51ffaSAnand Gadiyar compatible = "regulator-fixed"; 51e6a51ffaSAnand Gadiyar regulator-name = "vdd_mmc1"; 52e6a51ffaSAnand Gadiyar regulator-min-microvolt = <3300000>; 53e6a51ffaSAnand Gadiyar regulator-max-microvolt = <3300000>; 54e6a51ffaSAnand Gadiyar regulator-boot-on; 55e6a51ffaSAnand Gadiyar enable-active-high; 56e6a51ffaSAnand Gadiyar vin-supply = <&vcc_3v3_sys>; 57e6a51ffaSAnand Gadiyar gpio = <&exp1 3 GPIO_ACTIVE_HIGH>; 58e6a51ffaSAnand Gadiyar }; 59e6a51ffaSAnand Gadiyar 60e6a51ffaSAnand Gadiyar vddshv_sdio: regulator-4 { 61e6a51ffaSAnand Gadiyar compatible = "regulator-gpio"; 62e6a51ffaSAnand Gadiyar regulator-name = "vddshv_sdio"; 63e6a51ffaSAnand Gadiyar pinctrl-names = "default"; 64e6a51ffaSAnand Gadiyar pinctrl-0 = <&vddshv_sdio_pins_default>; 65e6a51ffaSAnand Gadiyar regulator-min-microvolt = <1800000>; 66e6a51ffaSAnand Gadiyar regulator-max-microvolt = <3300000>; 67e6a51ffaSAnand Gadiyar regulator-boot-on; 68e6a51ffaSAnand Gadiyar vin-supply = <&ldo1_reg>; 69e6a51ffaSAnand Gadiyar gpios = <&main_gpio0 31 GPIO_ACTIVE_HIGH>; 70e6a51ffaSAnand Gadiyar states = <1800000 0x0>, 71e6a51ffaSAnand Gadiyar <3300000 0x1>; 72e6a51ffaSAnand Gadiyar }; 73e6a51ffaSAnand Gadiyar}; 74e6a51ffaSAnand Gadiyar 75e6a51ffaSAnand Gadiyar&main_pmx0 { 76*a4956811STony Lindgren vddshv_sdio_pins_default: vddshv-sdio-default-pins { 77e6a51ffaSAnand Gadiyar pinctrl-single,pins = < 78e6a51ffaSAnand Gadiyar AM62X_IOPAD(0x07c, PIN_OUTPUT, 7) /* (M19) GPMC0_CLK.GPIO0_31 */ 79e6a51ffaSAnand Gadiyar >; 80e6a51ffaSAnand Gadiyar }; 81e6a51ffaSAnand Gadiyar 82*a4956811STony Lindgren main_gpio1_ioexp_intr_pins_default: main-gpio1-ioexp-intr-default-pins { 83e6a51ffaSAnand Gadiyar pinctrl-single,pins = < 84e6a51ffaSAnand Gadiyar AM62X_IOPAD(0x01d4, PIN_INPUT, 7) /* (C13) UART0_RTSn.GPIO1_23 */ 85e6a51ffaSAnand Gadiyar >; 86e6a51ffaSAnand Gadiyar }; 87e6a51ffaSAnand Gadiyar 88*a4956811STony Lindgren pmic_irq_pins_default: pmic-irq-default-pins { 89e6a51ffaSAnand Gadiyar pinctrl-single,pins = < 90e6a51ffaSAnand Gadiyar AM62X_IOPAD(0x01f4, PIN_INPUT, 0) /* (B16) EXTINTn */ 91e6a51ffaSAnand Gadiyar >; 92e6a51ffaSAnand Gadiyar }; 93e6a51ffaSAnand Gadiyar}; 94e6a51ffaSAnand Gadiyar 95e6a51ffaSAnand Gadiyar&main_i2c1 { 96e6a51ffaSAnand Gadiyar exp1: gpio@22 { 97e6a51ffaSAnand Gadiyar compatible = "ti,tca6424"; 98e6a51ffaSAnand Gadiyar reg = <0x22>; 99e6a51ffaSAnand Gadiyar gpio-controller; 100e6a51ffaSAnand Gadiyar #gpio-cells = <2>; 101e6a51ffaSAnand Gadiyar gpio-line-names = "GPIO_CPSW2_RST", "GPIO_CPSW1_RST", 102e6a51ffaSAnand Gadiyar "PRU_DETECT", "MMC1_SD_EN", 103e6a51ffaSAnand Gadiyar "VPP_LDO_EN", "EXP_PS_3V3_En", 104e6a51ffaSAnand Gadiyar "EXP_PS_5V0_En", "EXP_HAT_DETECT", 105e6a51ffaSAnand Gadiyar "GPIO_AUD_RSTn", "GPIO_eMMC_RSTn", 106e6a51ffaSAnand Gadiyar "UART1_FET_BUF_EN", "BT_UART_WAKE_SOC", 107e6a51ffaSAnand Gadiyar "GPIO_HDMI_RSTn", "CSI_GPIO0", 108e6a51ffaSAnand Gadiyar "CSI_GPIO1", "GPIO_OLDI_INT", 109e6a51ffaSAnand Gadiyar "HDMI_INTn", "TEST_GPIO2", 110e6a51ffaSAnand Gadiyar "MCASP1_FET_EN", "MCASP1_BUF_BT_EN", 111e6a51ffaSAnand Gadiyar "MCASP1_FET_SEL", "UART1_FET_SEL", 112e6a51ffaSAnand Gadiyar "", "IO_EXP_TEST_LED"; 113e6a51ffaSAnand Gadiyar 114e6a51ffaSAnand Gadiyar interrupt-parent = <&main_gpio1>; 115e6a51ffaSAnand Gadiyar interrupts = <23 IRQ_TYPE_EDGE_FALLING>; 116e6a51ffaSAnand Gadiyar interrupt-controller; 117e6a51ffaSAnand Gadiyar #interrupt-cells = <2>; 118e6a51ffaSAnand Gadiyar 119e6a51ffaSAnand Gadiyar pinctrl-names = "default"; 120e6a51ffaSAnand Gadiyar pinctrl-0 = <&main_gpio1_ioexp_intr_pins_default>; 121e6a51ffaSAnand Gadiyar }; 122e6a51ffaSAnand Gadiyar 123e6a51ffaSAnand Gadiyar exp2: gpio@23 { 124e6a51ffaSAnand Gadiyar compatible = "ti,tca6424"; 125e6a51ffaSAnand Gadiyar reg = <0x23>; 126e6a51ffaSAnand Gadiyar gpio-controller; 127e6a51ffaSAnand Gadiyar #gpio-cells = <2>; 128e6a51ffaSAnand Gadiyar gpio-line-names = "", "", 129e6a51ffaSAnand Gadiyar "", "", 130e6a51ffaSAnand Gadiyar "", "", 131e6a51ffaSAnand Gadiyar "", "", 132e6a51ffaSAnand Gadiyar "WL_LT_EN", "CSI_RSTz", 133e6a51ffaSAnand Gadiyar "", "", 134e6a51ffaSAnand Gadiyar "", "", 135e6a51ffaSAnand Gadiyar "", "", 136e6a51ffaSAnand Gadiyar "SPI0_FET_SEL", "SPI0_FET_OE", 137e6a51ffaSAnand Gadiyar "GPIO_OLDI_RSTn", "PRU_3V3_EN", 138e6a51ffaSAnand Gadiyar "", "", 139e6a51ffaSAnand Gadiyar "CSI_VLDO_SEL", "SOC_WLAN_SDIO_RST"; 140e6a51ffaSAnand Gadiyar }; 141e6a51ffaSAnand Gadiyar}; 142e6a51ffaSAnand Gadiyar 143e6a51ffaSAnand Gadiyar&sdhci1 { 144e6a51ffaSAnand Gadiyar vmmc-supply = <&vdd_mmc1>; 145e6a51ffaSAnand Gadiyar vqmmc-supply = <&vddshv_sdio>; 146e6a51ffaSAnand Gadiyar}; 147e6a51ffaSAnand Gadiyar 148e6a51ffaSAnand Gadiyar&cpsw_port2 { 149e6a51ffaSAnand Gadiyar status = "disabled"; 150e6a51ffaSAnand Gadiyar}; 151e6a51ffaSAnand Gadiyar 152e6a51ffaSAnand Gadiyar&main_i2c0 { 153e6a51ffaSAnand Gadiyar tps65219: pmic@30 { 154e6a51ffaSAnand Gadiyar compatible = "ti,tps65219"; 155e6a51ffaSAnand Gadiyar reg = <0x30>; 156e6a51ffaSAnand Gadiyar buck1-supply = <&vcc_3v3_sys>; 157e6a51ffaSAnand Gadiyar buck2-supply = <&vcc_3v3_sys>; 158e6a51ffaSAnand Gadiyar buck3-supply = <&vcc_3v3_sys>; 159e6a51ffaSAnand Gadiyar ldo1-supply = <&vcc_3v3_sys>; 160e6a51ffaSAnand Gadiyar ldo2-supply = <&buck2_reg>; 161e6a51ffaSAnand Gadiyar ldo3-supply = <&vcc_3v3_sys>; 162e6a51ffaSAnand Gadiyar ldo4-supply = <&vcc_3v3_sys>; 163e6a51ffaSAnand Gadiyar 164e6a51ffaSAnand Gadiyar pinctrl-names = "default"; 165e6a51ffaSAnand Gadiyar pinctrl-0 = <&pmic_irq_pins_default>; 166e6a51ffaSAnand Gadiyar 167e6a51ffaSAnand Gadiyar interrupt-parent = <&gic500>; 168e6a51ffaSAnand Gadiyar interrupts = <GIC_SPI 224 IRQ_TYPE_LEVEL_HIGH>; 169e6a51ffaSAnand Gadiyar ti,power-button; 170e6a51ffaSAnand Gadiyar 171e6a51ffaSAnand Gadiyar regulators { 172e6a51ffaSAnand Gadiyar buck1_reg: buck1 { 173e6a51ffaSAnand Gadiyar regulator-name = "VDD_CORE"; 174e6a51ffaSAnand Gadiyar regulator-min-microvolt = <750000>; 175e6a51ffaSAnand Gadiyar regulator-max-microvolt = <750000>; 176e6a51ffaSAnand Gadiyar regulator-boot-on; 177e6a51ffaSAnand Gadiyar regulator-always-on; 178e6a51ffaSAnand Gadiyar }; 179e6a51ffaSAnand Gadiyar 180e6a51ffaSAnand Gadiyar buck2_reg: buck2 { 181e6a51ffaSAnand Gadiyar regulator-name = "VCC1V8_SYS"; 182e6a51ffaSAnand Gadiyar regulator-min-microvolt = <1800000>; 183e6a51ffaSAnand Gadiyar regulator-max-microvolt = <1800000>; 184e6a51ffaSAnand Gadiyar regulator-boot-on; 185e6a51ffaSAnand Gadiyar regulator-always-on; 186e6a51ffaSAnand Gadiyar }; 187e6a51ffaSAnand Gadiyar 188e6a51ffaSAnand Gadiyar buck3_reg: buck3 { 189e6a51ffaSAnand Gadiyar regulator-name = "VDD_LPDDR4"; 190e6a51ffaSAnand Gadiyar regulator-min-microvolt = <1100000>; 191e6a51ffaSAnand Gadiyar regulator-max-microvolt = <1100000>; 192e6a51ffaSAnand Gadiyar regulator-boot-on; 193e6a51ffaSAnand Gadiyar regulator-always-on; 194e6a51ffaSAnand Gadiyar }; 195e6a51ffaSAnand Gadiyar 196e6a51ffaSAnand Gadiyar ldo1_reg: ldo1 { 197e6a51ffaSAnand Gadiyar regulator-name = "VDDSHV_SDIO"; 198e6a51ffaSAnand Gadiyar regulator-min-microvolt = <3300000>; 199e6a51ffaSAnand Gadiyar regulator-max-microvolt = <3300000>; 200e6a51ffaSAnand Gadiyar }; 201e6a51ffaSAnand Gadiyar 202e6a51ffaSAnand Gadiyar ldo2_reg: ldo2 { 203e6a51ffaSAnand Gadiyar regulator-name = "VDDAR_CORE"; 204e6a51ffaSAnand Gadiyar regulator-min-microvolt = <850000>; 205e6a51ffaSAnand Gadiyar regulator-max-microvolt = <850000>; 206e6a51ffaSAnand Gadiyar regulator-boot-on; 207e6a51ffaSAnand Gadiyar regulator-always-on; 208e6a51ffaSAnand Gadiyar }; 209e6a51ffaSAnand Gadiyar 210e6a51ffaSAnand Gadiyar ldo3_reg: ldo3 { 211e6a51ffaSAnand Gadiyar regulator-name = "VDDA_1V8"; 212e6a51ffaSAnand Gadiyar regulator-min-microvolt = <1800000>; 213e6a51ffaSAnand Gadiyar regulator-max-microvolt = <1800000>; 214e6a51ffaSAnand Gadiyar regulator-boot-on; 215e6a51ffaSAnand Gadiyar regulator-always-on; 216e6a51ffaSAnand Gadiyar }; 217e6a51ffaSAnand Gadiyar 218e6a51ffaSAnand Gadiyar ldo4_reg: ldo4 { 219e6a51ffaSAnand Gadiyar regulator-name = "VDD_1V2"; 220e6a51ffaSAnand Gadiyar regulator-min-microvolt = <1200000>; 221e6a51ffaSAnand Gadiyar regulator-max-microvolt = <1200000>; 222e6a51ffaSAnand Gadiyar regulator-boot-on; 223e6a51ffaSAnand Gadiyar regulator-always-on; 224e6a51ffaSAnand Gadiyar }; 225e6a51ffaSAnand Gadiyar }; 226e6a51ffaSAnand Gadiyar }; 227e6a51ffaSAnand Gadiyar}; 228b94b4371SJai Luthra 229b94b4371SJai Luthra&tlv320aic3106 { 230b94b4371SJai Luthra DVDD-supply = <&buck2_reg>; 231b94b4371SJai Luthra}; 232