From patchwork Mon Apr 17 15:48:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Esteban Blanc X-Patchwork-Id: 13214362 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B4458C77B76 for ; Mon, 17 Apr 2023 16:46:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=MyYK09NdG+vVc/VsbL8jr5ftjv3Ek+g6B7hZ+DVupsU=; b=Udvapf1Z2hTkM0 4au0rLAb9XjMikiy8AWaefTcg8AHfkUy0Lwi3Fg5OaFsdC2IV+l6EpLukw9bM4f5vmbTAHTT2d+U1 3zHKvr4sabXuvPRUExp1unuTMXm9Ca9HGH57/8qlZ/IOhoYIih4Ufn7pNOJMF1hvkIvicmCgF+H4s hNrh7IacdwBKVPTzI71dLkSB4W5hQmy5mE397xN3sXGZFaRNcDIfNXSqolYumjJH8P7AIvSMGLDM5 p+CVRInoZM3Gjnzud/aMRj0P5YzaNv1IXXulU6JK2DivT03m1lG0jh1jwsHtDss5RumnrJuTrM8DY V04ttnOvp97d3Jx/o3iQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1poRyw-00H6BA-2U; Mon, 17 Apr 2023 16:45:34 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1poRyq-00H69z-39 for linux-arm-kernel@bombadil.infradead.org; Mon, 17 Apr 2023 16:45:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:MIME-Version :References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=YcRrrafnmj1BNzqa/iUYoMZWw4jkCZAjXTqTzVy8ucQ=; b=i7fBb2XJ5JVMxUc+b9jpo/Jg2y vdLDPci69Pm27rxkQjXgKKT+It6xE/T26RanWvMJ4gImv20jKiiSD/15iQYySrBa58syxQ6xcFa+k bOPgAqAnBWNI78x6gSJTMe2yr3Nn9qqdSFGJzs4PDHZghEBbgUbaekM6IaaUKoGeKUfkccqAwvGkg NC3JLWDWgrqSYSBLiPp1C1u5jJv1oSMqG87UfgCz/pOHXWLHGBH77NNZ57mLjG27MjBZyGXCd+c+2 ql4FqclFfiD+0qfi5wAK6KoQgN2jd5vNUY3EyCp+Gzez0rA/PN3P9bkgoil/JTQdTvcRTZuJD41/4 0dPNZJ3w==; Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1poR5u-00HNej-0M for linux-arm-kernel@lists.infradead.org; Mon, 17 Apr 2023 15:48:46 +0000 Received: by mail-wm1-x329.google.com with SMTP id q5so14029160wmo.4 for ; Mon, 17 Apr 2023 08:48:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20221208.gappssmtp.com; s=20221208; t=1681746520; x=1684338520; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=YcRrrafnmj1BNzqa/iUYoMZWw4jkCZAjXTqTzVy8ucQ=; b=GtzE3lsLPbucGlEV8jBhZ1WPNPi/LTuRIsY31YDkOpnfj4NT8knu0ZPqYxAl3g5av9 G+1Uvrd6fgRidCXtFz0rY7Rq6NfCRsLWx84KFRpgjnk2N39PEAJtsdhL1nOmrdRHzAXw Ye3DQRaRHCJTgAyCD1jIjWkraN63QEDACXlKGRGiAm8kjguXkiGKjqV4mxusFxmXbKUa Fm38F9xpptksZjeeQ01R/BIIG0CmZBKMX0bl3k4gFSZq9o1sZKGFsgyCeLvCj7CXhE3s EHUgdJtY9Vtk+70svvPfaaFXEZfr0U/U//1087sSmAFT2D8dP7JATOXqaFW5IAbPbQs/ Cxxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681746520; x=1684338520; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YcRrrafnmj1BNzqa/iUYoMZWw4jkCZAjXTqTzVy8ucQ=; b=MZ1VyV9NjQiJdKLg00wXW94WIICjGaOmaPxdy2auw5gZMAhGzpgXuDNC4Ezt7Zn0W5 SPt0DU1o8KIHxvZRkGFV3Q41aeYahgdU8gRe+YFgxNgMi9eOeeKQbdyHVfQYUz2Q7ho5 YZnY0qlU97t8e+UNuvrZ07D4aDTHt2IWPs/WiUY1Ph1GKydE745/HRnCndONczMVkbsh rJG4cNLrGjtfFoH4w67SPI1q8HY1GOwcUlRS8P3r3TRODkRPP3m1dV54mAQWWj+3eyV7 K+EGPRkY1mXGvQkFYewnl2riWULvHen+4yNRusJXDCdhxeA1kTidgZrSNt8eDofsxlKH wCaA== X-Gm-Message-State: AAQBX9dSTECtxPV114EHsXWCjsjhLATnglthAN9z7Hyup7DMGLsweEhe sTFoLfnuQ3VOvG1aU6px6czYZg== X-Google-Smtp-Source: AKy350ZzX1Qi9hj8K7Mg0GJiW1AVnK93w4bItP/Hc3CHuhOdj7Z8nLAKww+sO2+BWPdYo61dEVsYOg== X-Received: by 2002:a1c:f206:0:b0:3ee:19b4:a2e6 with SMTP id s6-20020a1cf206000000b003ee19b4a2e6mr11716537wmc.19.1681746520253; Mon, 17 Apr 2023 08:48:40 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:28d:66d0:5888:afdf:3f10:3b2b]) by smtp.gmail.com with ESMTPSA id v5-20020a05600c444500b003f09cda253esm16189932wmn.34.2023.04.17.08.48.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Apr 2023 08:48:39 -0700 (PDT) From: Esteban Blanc To: nm@ti.com, vigneshr@ti.com, kristo@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, sterzik@ti.com, u-kumar1@ti.com, eblanc@baylibre.com, jneanne@baylibre.com, jpanis@baylibre.com, aseketeli@baylibre.com Subject: [PATCH v3 5/6] arm64: dts: ti: k3-j784s4-evm: Add support for TPS6594 PMIC Date: Mon, 17 Apr 2023 17:48:31 +0200 Message-Id: <20230417154832.216774-6-eblanc@baylibre.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230417154832.216774-1-eblanc@baylibre.com> References: <20230417154832.216774-1-eblanc@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230417_164842_447207_6BE859E7 X-CRM114-Status: GOOD ( 12.42 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Jerome Neanne This patch adds support for TPS65933A PMIC on wkup I2C0 bus. This device provides regulators (bucks and LDOs), but also GPIOs, a RTC, a watchdog, an ESM (Error Signal Monitor) which monitors the SoC error output signal, and a PFSM (Pre-configurable Finite State Machine) which manages the operational modes of the PMIC. Signed-off-by: Jerome Neanne Signed-off-by: Esteban Blanc --- arch/arm64/boot/dts/ti/k3-j784s4-evm.dts | 116 +++++++++++++++++++++++ 1 file changed, 116 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts b/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts index 8cd4a7ecc121..f2b95345fb9c 100644 --- a/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts +++ b/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts @@ -103,6 +103,122 @@ vdd_sd_dv: regulator-TLV71033 { }; }; +&wkup_pmx0 { + status = "okay"; + wkup_i2c0_pins_default: wkup_i2c0_pins_default { + pinctrl-single,pins = < + J784S4_WKUP_IOPAD(0x100, PIN_INPUT, 0) /* (N33) WKUP_I2C0_SCL */ + J784S4_WKUP_IOPAD(0x104, PIN_INPUT, 0) /* (N35) WKUP_I2C0_SDA */ + >; + }; + + pmic_irq_pins_default: pmic-irq-pins-default { + pinctrl-single,pins = < + /* (G33) MCU_OSPI1_CSn1.WKUP_GPIO0_39 */ + J784S4_WKUP_IOPAD(0x060, PIN_INPUT, 7) + >; + }; +}; + +&wkup_gpio0 { + status = "okay"; +}; + +&wkup_i2c0 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&wkup_i2c0_pins_default>; + clock-frequency = <400000>; + tps659413: pmic@48 { + compatible = "ti,tps6594-q1"; + reg = <0x48>; + system-power-controller; + pinctrl-names = "default"; + pinctrl-0 = <&pmic_irq_pins_default>; + interrupt-parent = <&wkup_gpio0>; + interrupts = <39 IRQ_TYPE_EDGE_FALLING>; + ti,primary-pmic; + + gpio-controller; + #gpio-cells = <2>; + + buck12-supply = <&vsys_3v3>; + buck3-supply = <&vsys_3v3>; + buck4-supply = <&vsys_3v3>; + buck5-supply = <&vsys_3v3>; + ldo1-supply = <&vsys_3v3>; + ldo2-supply = <&vsys_3v3>; + ldo3-supply = <&vsys_3v3>; + ldo4-supply = <&vsys_3v3>; + + regulators { + bucka12: buck12 { + regulator-name = "vdd_ddr_1v1"; + regulator-min-microvolt = <1100000>; + regulator-max-microvolt = <1100000>; + regulator-boot-on; + regulator-always-on; + }; + + bucka3: buck3 { + regulator-name = "vdd_ram_0v85"; + regulator-min-microvolt = <850000>; + regulator-max-microvolt = <850000>; + regulator-boot-on; + regulator-always-on; + }; + + bucka4: buck4 { + regulator-name = "vdd_io_1v8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-boot-on; + regulator-always-on; + }; + + bucka5: buck5 { + regulator-name = "vdd_mcu_0v85"; + regulator-min-microvolt = <850000>; + regulator-max-microvolt = <850000>; + regulator-boot-on; + regulator-always-on; + }; + + ldoa1: ldo1 { + regulator-name = "vdd_mcuio_1v8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-boot-on; + regulator-always-on; + }; + + ldoa2: ldo2 { + regulator-name = "vdd_mcuio_3v3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + regulator-always-on; + }; + + ldoa3: ldo3 { + regulator-name = "vds_dll_0v8"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <800000>; + regulator-boot-on; + regulator-always-on; + }; + + ldoa4: ldo4 { + regulator-name = "vda_mcu_1v8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-boot-on; + regulator-always-on; + }; + }; + }; +}; + &main_pmx0 { main_uart8_pins_default: main-uart8-pins-default { pinctrl-single,pins = <