Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp144753rdb; Thu, 8 Feb 2024 01:25:31 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUapSqNv7JRvFGQPHHSFPYy9yOHDbdKnq5VrRb/uWCUQJvPjWfq7Wp5oNngYUWFAyyFlZMj66Qtbnjfya1J1shzvCRTmhNki8z+9Zzb/Q== X-Google-Smtp-Source: AGHT+IGeMSq5QyeuYYOxpcRai1HGMxMwwffmAajYQNmXe4X/vwHALnty1hTk0YDyAwuezE5/WCaV X-Received: by 2002:ac8:7110:0:b0:42c:4a39:6045 with SMTP id z16-20020ac87110000000b0042c4a396045mr1505342qto.7.1707384330972; Thu, 08 Feb 2024 01:25:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707384330; cv=pass; d=google.com; s=arc-20160816; b=tPxQfu1HPG8K9iwV1jpnbSUab2U7YHnJBn+lyRras3AIWntFnoc3Tbbk2ot29yWSGM jgylcBQCAKpP8+lg8SM0U5H690Cw/aOgFee9JFl/fx8zuEK4V2ciZu5KoHR9L+f7Dkqa McVbnPDevxX8iuQ2IQRKHztfRKmrnTJl7mKXQ8h+LHfZbOMTlqvCDP1Se3GuLOsI+ZKb 9m0ud+Xhr+b93asAerWIiSTdx3GjGaKnbw784AGMJvnJCCWp89U+RU+goUDz5hfXiBa8 4m+PrUVVs9NMcC7IzHupvV+S5tRt1gSBgeSYSU8OysBLohnm5F4cwTM4xoOxa/jO3MDX CwdQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:ironport-sdr; bh=f0INx8qfgAAcMP+2QKYqdBQ1bn5+KSZwkSDQ5GWPzOw=; fh=fID7yrX60nJVpGPaj+lCAacF9wbsR3DInb/aSaA6RnU=; b=qyRIXF6eIq/PNQmuVUJ5ONk1UIQ9GF+/FLZOqln7I/aXelXhCgZ1jF4UfhZiJijUak lPz/njHlF4EnMBWYTxpksUu7Uzrlh1WxRRX2c9DRdp4eCjxsw/30xT2IIcFc7xzAE/h7 9v6pfVS2uV1kn/4ZANbWyyd0bO1UKWcWtoXVvnS9TqaT7eDW+NKyg3EfPWqtuAB129eC w5qPSK1rcYfHpKEthu4lZbTcI1ukwvLJ7uvgVfphEDZt3W13aIXodehZlDa6EkuZAV4e IzC6nzq1KUqHkHJ80855O9fHZrScTmF+WOtNef+dG4S5RmyM700ZPHKzooTmGv9jXOUG uvJQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=ltts.com dmarc=pass fromdomain=ltts.com); spf=pass (google.com: domain of linux-kernel+bounces-57730-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57730-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ltts.com X-Forwarded-Encrypted: i=2; AJvYcCV/wjKXOfoni9OBoAg/LpiNEhoQ8WETB0yaUhzN5Ny7KNuKemQiogdWQq+UY//DRgetZijcaq2elg6OGcDvvXE5XxKNLjJhVywGO+zOZA== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d1-20020a05622a100100b0042c43f8f5d3si2412787qte.145.2024.02.08.01.25.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 01:25:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-57730-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=ltts.com dmarc=pass fromdomain=ltts.com); spf=pass (google.com: domain of linux-kernel+bounces-57730-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57730-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ltts.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id A86381C21DF6 for ; Thu, 8 Feb 2024 09:25:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 80F1B6E2AC; Thu, 8 Feb 2024 09:22:14 +0000 (UTC) Received: from esa1.ltts.com (unknown [118.185.121.105]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B13E26DCF0; Thu, 8 Feb 2024 09:22:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=118.185.121.105 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707384134; cv=none; b=BzgkJG1Opx2DjZkyy0us8w59RR2fytTc/MFboSQOmG19ZuMukGwW8Sq+tiPxA3sFT4poc4Z1xR9uGs37TA3uVhl8hhtqmbgFzd4rKJETUu0E0Q+rlRvCZ0eU6NcvRHahahOpVDT91TUXjCLFeM2lnaogX5xr299Ht1S1xI4DT6Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707384134; c=relaxed/simple; bh=kgd5rZlmo0eQ4+URWAldLJfV0Lypdy0Upba1rC9o8CM=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=I3WTi55uVmgL9pt52w56tjYj086pkiG7cH7PKQTKws0cUd3WUywUEWZQmYMUKbI9uZmdInwEzKBvCDp8R4PTLRF27VeD1noIFtDqHNnDWhEpXXxPJRl5SQGS8awZw/hxk0ZYUsEMCbdHADUhjW35O0m3wLYiekaldghi4qjOPi8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ltts.com; spf=pass smtp.mailfrom=ltts.com; arc=none smtp.client-ip=118.185.121.105 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ltts.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ltts.com IronPort-SDR: rU+DpzZ/1CEGLV2wzYkbY8STYN9oEHrTewE4f0EaDxszeTn4TIr5poME84qz1IdchsEREtE6Eu G6L12kpHNPjg== Received: from unknown (HELO localhost.localdomain) ([192.168.34.55]) by esa1.ltts.com with ESMTP; 08 Feb 2024 14:52:08 +0530 From: Bhargav Raviprakash To: linux-kernel@vger.kernel.org Cc: m.nirmaladevi@ltts.com, nm@ti.com, vigneshr@ti.com, kristo@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Bhargav Raviprakash Subject: [PATCH v1 13/13] arch: arm64: dts: ti: k3-am62p5-sk: Add TPS65224 PMIC support in AM62P dts Date: Thu, 8 Feb 2024 14:51:53 +0530 Message-Id: <20240208092153.1207321-1-bhargav.r@ltts.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add support for TPS65224 PMIC in device tree of AM62P EVM. Adds regulator configuration, pinmux configurations and pmic device nodes. Signed-off-by: Bhargav Raviprakash --- arch/arm64/boot/dts/ti/k3-am62p5-sk.dts | 95 +++++++++++++++++++++++++ 1 file changed, 95 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am62p5-sk.dts b/arch/arm64/boot/dts/ti/k3-am62p5-sk.dts index 1773c05f7..5d8e4321b 100644 --- a/arch/arm64/boot/dts/ti/k3-am62p5-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am62p5-sk.dts @@ -112,6 +112,16 @@ vddshv_sdio: regulator-3 { bootph-all; }; + vcc_3v3_main: regulator-4 { + compatible = "regulator-fixed"; + regulator-name = "vcc_3v3_main"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + vin-supply = <&vmain_pd>; + regulator-always-on; + regulator-boot-on; + }; + leds { compatible = "gpio-leds"; pinctrl-names = "default"; @@ -580,6 +590,12 @@ &main_uart1 { &mcu_pmx0 { bootph-all; + pmic_irq_pins_default: pmic-irq-default-pins { + pinctrl-single,pins = < + AM62PX_MCU_IOPAD(0x000, PIN_INPUT, 7) /* (B10) MCU_GPIO0_0 */ + >; + }; + wkup_uart0_pins_default: wkup-uart0-default-pins { pinctrl-single,pins = < AM62PX_MCU_IOPAD(0x02c, PIN_INPUT, 0) /* (C7) WKUP_UART0_CTSn */ @@ -589,6 +605,13 @@ AM62PX_MCU_IOPAD(0x028, PIN_OUTPUT, 0) /* (D7) WKUP_UART0_TXD */ >; bootph-all; }; + + wkup_i2c0_pins_default: wkup-i2c0-default-pins { + pinctrl-single,pins = < + AM62PX_MCU_IOPAD(0x04c, PIN_INPUT, 0) /* (A13) WKUP_I2C0_SCL */ + AM62PX_MCU_IOPAD(0x050, PIN_INPUT, 0) /* (C11) WKUP_I2C0_SDA */ + >; + }; }; &wkup_uart0 { @@ -599,6 +622,78 @@ &wkup_uart0 { bootph-all; }; +&wkup_i2c0 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&wkup_i2c0_pins_default>; + clock-frequency = <400000>; + + tps65224: pmic@48 { + compatible = "ti,tps65224-q1"; + reg = <0x48>; + pinctrl-names = "default"; + pinctrl-0 = <&pmic_irq_pins_default>; + interrupt-parent = <&mcu_gpio0>; + interrupts = <0 IRQ_TYPE_EDGE_FALLING>; + ti,primary-pmic; + + gpio-controller; + #gpio-cells = <2>; + + buck12-supply = <&vcc_3v3_main>; + buck3-supply = <&vcc_3v3_main>; + buck4-supply = <&vcc_3v3_main>; + + ldo1-supply = <&vcc_3v3_main>; + ldo2-supply = <&vcc_3v3_main>; + ldo3-supply = <&vcc1v8_sys>; + + regulators { + vcc_core: buck12 { + regulator-name = "vcc_core_buck12"; + regulator-min-microvolt = <715000>; + regulator-max-microvolt = <895000>; + regulator-always-on; + }; + + vcc1v8_sys: buck3 { + regulator-name = "vcc1v8_sys_buck3"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + }; + + vcc1v1: buck4 { + regulator-name = "vcc1v1_buck4"; + regulator-min-microvolt = <1100000>; + regulator-max-microvolt = <1100000>; + regulator-always-on; + }; + + vdda1v8: ldo1 { + regulator-name = "vdda1v8_ldo1"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + }; + + dvdd3v3: ldo2 { + regulator-name = "dvdd3v3_ldo2"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + + vcc_0v85: ldo3 { + regulator-name = "vcc_0v85_ldo3"; + regulator-min-microvolt = <850000>; + regulator-max-microvolt = <850000>; + regulator-always-on; + }; + }; + }; +}; + /* mcu_gpio0 and mcu_gpio_intr are reserved for mcu firmware usage */ &mcu_gpio0 { status = "reserved"; -- 2.25.1