From patchwork Thu Jul 27 13:09:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Esteban Blanc X-Patchwork-Id: 13330091 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 1E75CC0015E for ; Thu, 27 Jul 2023 13:09:43 +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=BfZNy/jJChkRYoyiP+4nhEcbBcu1xNfxTMFoR9JTwb8=; b=cYENsg0dZdDSeM jmPHc/M4O6wBccQAWKmG48VkaUsGRlZVLcfii7/L7UY2jNTTFY5aS+J+wfyxR20AMiXjAZbUPjl8V moLSsaV6S1FNSEJ7TJu1X+yddggPr8OxyPaaddkU89g81FlHLjK1Apy/0ciKz0YCfEeJQn53BL8hL z2lhDcR9W9Nau57ki9Tm93KEXURoxh1jHFqsiZG3yt1l1GKCmM0PsMBQAlyLhRmOvnzltiJz+O06L 61Z8rcN2gLsSG3vvvWyD8ActLTeViMuqvOtIlHr7zEoVey9oL8vxKrSoHRJs1MEmvKSsqRshIT4aL 3Ya2tEVms/6wjS873pwg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qP0k2-00ELi8-2m; Thu, 27 Jul 2023 13:09:18 +0000 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qP0jy-00ELbj-1J for linux-arm-kernel@lists.infradead.org; Thu, 27 Jul 2023 13:09:17 +0000 Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-3fbd33a57b6so10295535e9.2 for ; Thu, 27 Jul 2023 06:09:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20221208.gappssmtp.com; s=20221208; t=1690463351; x=1691068151; 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=u8AnDiHsepoOlFLXabh2lz6biKZcLFAL3GkYxQsUPY4=; b=O7Rk37FNBiuPIy6uTQ2oSZwqdu6VHEbzYwMbRDvyqYsaTAaRWXFzTMpDYLNGQhCVia anqDbCoHUVGT2/kKX2ouRmwUlGWBYhRnkGMHn7oFAZcw0jWP3GcOeIDeNJTKARcNNx4F 9cC3k9l2lNeeaXUXpKzZ+dVfkjclreJQJSLnZJB6gEV+mKUPyWf8y1fuqr89EWYPz91A aCzDV/dAGMvqJoUQHQVGx/JtwNYQnAcBlv8An8OqPBNBB8uS0QrP8raEK0y+nTPQKKWC 1zoodkdgs9pV7I3jpN1koAOPyoXkmTGJfJwcTQOoLTXcDADwPqbwrqN/zSL+A9bm8ej/ 32Zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690463351; x=1691068151; 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=u8AnDiHsepoOlFLXabh2lz6biKZcLFAL3GkYxQsUPY4=; b=g6481Se42wHsIULxQynll5P4A3dgHQXClwZ8Sl+Jik5pmxq5IgfhXqYPUhfO2cSDV3 2hFJrsfe9xzmFBuacToLFpuoRoQhOxGcLLhYW6bxAcOnT6GUz/oyfO1Awy+2jcfYPScD Ax1PDtcQtp7wZanDouF5f7rL7hYIHkqX7B2SF1BH8+DCoOtGJhHhDmuU/wnXiW72BhQc UrVRpjKl2PNuohig1aJhv5xd+FRKYFK30Jcp8nq3FgHUiRHweDX8gQNkX1+b6jHiGpT4 tS6iy6KsmHuYO4w6J2/yohAdg4DmzWBxoTlkV6T5DxCJhbPBH8wHyi06a/QdVFxzGUtc 7sCQ== X-Gm-Message-State: ABy/qLZ1gnv5isldZqhCXTo5yB5PlL1Z7mQJTM8auo4Jx+q9t4P6IdBA NSiukuC3Xni40o3PglElF8V8pA== X-Google-Smtp-Source: APBJJlEOBN6LJbRxivAzyc3pNBMcRGwkdDIQgg1JLZ328wJgfaMP0RQY+dFtypfHPjh4spKwIDPIow== X-Received: by 2002:a7b:c7d0:0:b0:3fb:f0ef:4669 with SMTP id z16-20020a7bc7d0000000b003fbf0ef4669mr1786150wmk.17.1690463350685; Thu, 27 Jul 2023 06:09:10 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:28d:66d0:4512:80d4:6b13:bb70]) by smtp.gmail.com with ESMTPSA id h14-20020a05600c260e00b003fbca942499sm4698042wma.14.2023.07.27.06.09.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Jul 2023 06:09:10 -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, u-kumar1@ti.com, eblanc@baylibre.com, jneanne@baylibre.com, aseketeli@baylibre.com, jpanis@baylibre.com Subject: [PATCH v4 1/6] arm64: dts: ti: k3-j7200-som-p0: Add TP6594 family PMICs Date: Thu, 27 Jul 2023 15:09:03 +0200 Message-ID: <20230727130908.10656-2-eblanc@baylibre.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230727130908.10656-1-eblanc@baylibre.com> References: <20230727130908.10656-1-eblanc@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230727_060914_657883_37C64C34 X-CRM114-Status: GOOD ( 11.60 ) 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 This patch adds support for TPS6594 PMIC family on wakup I2C0 bus. Theses devices 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: Esteban Blanc --- arch/arm64/boot/dts/ti/k3-j7200-som-p0.dtsi | 157 ++++++++++++++++++++ 1 file changed, 157 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j7200-som-p0.dtsi b/arch/arm64/boot/dts/ti/k3-j7200-som-p0.dtsi index b37f4f88ece4..e45d97cc41a5 100644 --- a/arch/arm64/boot/dts/ti/k3-j7200-som-p0.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j7200-som-p0.dtsi @@ -127,6 +127,14 @@ J721E_WKUP_IOPAD(0x9c, PIN_INPUT_PULLUP, 0) /* (H21) WKUP_I2C0_SDA */ }; }; +&wkup_pmx3 { + pmic_irq_pins_default: pmic-irq-pins-default { + pinctrl-single,pins = < + J721E_WKUP_IOPAD(0x1c, PIN_INPUT, 7) /* (E18) WKUP_GPIO0_84 */ + >; + }; +}; + &main_pmx0 { main_i2c0_pins_default: main-i2c0-default-pins { pinctrl-single,pins = < @@ -264,6 +272,155 @@ eeprom@50 { compatible = "atmel,24c256"; reg = <0x50>; }; + + tps659414: pmic@48 { + compatible = "ti,tps6594-q1"; + reg = <0x48>; + ti,primary-pmic; + system-power-controller; + + pinctrl-names = "default"; + pinctrl-0 = <&pmic_irq_pins_default>; + interrupt-parent = <&wkup_gpio0>; + interrupts = <84 IRQ_TYPE_EDGE_FALLING>; + + gpio-controller; + #gpio-cells = <2>; + + buck1-supply = <&vsys_3v3>; + buck2-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 { + bucka1: buck1 { + regulator-name = "vda_mcu_1v8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-boot-on; + regulator-always-on; + }; + + bucka2: buck2 { + regulator-name = "vdd_mcuio_1v8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-boot-on; + regulator-always-on; + }; + + bucka3: buck3 { + regulator-name = "vdd_mcu_0v85"; + regulator-min-microvolt = <850000>; + regulator-max-microvolt = <850000>; + regulator-boot-on; + regulator-always-on; + }; + + bucka4: buck4 { + regulator-name = "vdd_ddr_1v1"; + regulator-min-microvolt = <1100000>; + regulator-max-microvolt = <1100000>; + regulator-boot-on; + regulator-always-on; + }; + + bucka5: buck5 { + regulator-name = "vdd_phyio_1v8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-boot-on; + regulator-always-on; + }; + + ldoa1: ldo1 { + regulator-name = "vdd1_lpddr4_1v8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-boot-on; + regulator-always-on; + }; + + ldoa2: ldo2 { + regulator-name = "vda_dll_0v8"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <800000>; + regulator-boot-on; + regulator-always-on; + }; + + ldoa3: ldo3 { + regulator-name = "vdd_wk_0v8"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <800000>; + regulator-boot-on; + regulator-always-on; + }; + + ldoa4: ldo4 { + regulator-name = "vda_pll_1v8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-boot-on; + regulator-always-on; + }; + }; + }; + + lp876441: pmic@4c { + compatible = "ti,lp8764-q1"; + reg = <0x4c>; + system-power-controller; + interrupt-parent = <&wkup_gpio0>; + interrupts = <84 IRQ_TYPE_EDGE_FALLING>; + + gpio-controller; + #gpio-cells = <2>; + + buck1-supply = <&vsys_3v3>; + buck2-supply = <&vsys_3v3>; + buck3-supply = <&vsys_3v3>; + buck4-supply = <&vsys_3v3>; + + regulators: regulators { + buckb1: buck1 { + regulator-name = "vdd_cpu_avs"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <900000>; + regulator-always-on; + regulator-boot-on; + }; + + buckb2: buck2 { + regulator-name = "vdd_ram_0v85"; + regulator-min-microvolt = <850000>; + regulator-max-microvolt = <850000>; + regulator-boot-on; + regulator-always-on; + }; + + buckb3: buck3 { + regulator-name = "vdd_core_0v85"; + regulator-min-microvolt = <850000>; + regulator-max-microvolt = <850000>; + regulator-boot-on; + regulator-always-on; + }; + + buckb4: buck4 { + regulator-name = "vdd_io_1v8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-boot-on; + regulator-always-on; + }; + }; + }; }; &ospi0 { From patchwork Thu Jul 27 13:09:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Esteban Blanc X-Patchwork-Id: 13330097 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 38BC8C001E0 for ; Thu, 27 Jul 2023 13:10:07 +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=iuWXBGq7gH0bVyG8LIkTaHP5jw9xmmmgjlr0YudpymU=; b=H9gB9SMHzbE/5L LmygHmtM0DcR5tNEu8qneUWfuidIBf0o1WRV7yaWpa6fFrVN4V2kk4KJENWvKZTg0vBNTdkk9QcDv GXZL+M0n5rRMGXEk9gerT14VJMuCZ2c14jt/qrWYxhlHqUVrkcp/GTWednw7PJMauAy84lKuN6zAl Z9c/PC8DPkTTzynaAKBeVtfpM8hgdDDJi/Dr+WgQvgWbnuM3KQcgt+5sjdYY61ecpojYgRZqGwkVm w4wK/9xhPlyUB9B0Q614cB9q3RRzkKzfEFF8zj/HYkvYV1Uw34b+MpGlatXr7/GjBbbhlFZkVAIM4 GBYofzOH8PGfuMulp2OA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qP0kM-00ELyE-2r; Thu, 27 Jul 2023 13:09:38 +0000 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qP0jy-00ELcE-1X for linux-arm-kernel@lists.infradead.org; Thu, 27 Jul 2023 13:09:19 +0000 Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-3fd0f000f1cso6119385e9.1 for ; Thu, 27 Jul 2023 06:09:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20221208.gappssmtp.com; s=20221208; t=1690463351; x=1691068151; 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=Pt6ewmtB9BFbSXxqHyQ964VB9lAsmSYJP3v/grVNUkc=; b=WiPxxLK4JtJpCsqAUqA/XRG/GUnGKeO4USV1nRZMZIsOFNkMdTzCM9S8wmnXXDd8MH qs4uQSHjlgBqqXilqV4Z5bk6+IG3HVOuVtoJEqH3XFFsNgDrB1/eaZ6oIMALn4jz8jwP kkxBBAbG/KVMc6LV59OqWVITCrPM8qIo2BPxsaVI/A0XgEqxRUpUejyNrStzTeb12wNp 1LzJNmB6nT+o1lTk0lELPiWFOYg0d3AbIww9AJnEjp0+U7xXSHI47ODYOrZV811nb4Mv s6/AXrhVQ/XaajFLeLxjXIJS26/frqbrh5PTPlns73rxAVFEB4avOxhsCUyHUj6DryQ6 DVXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690463351; x=1691068151; 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=Pt6ewmtB9BFbSXxqHyQ964VB9lAsmSYJP3v/grVNUkc=; b=kvhI29v8ZicSbsoBcAKESq61XaDtm+aY8+/uhvSa0FU9LItoXaOwX4si7OuDcIcjqc HPDN5clsISWzBcvH0rdLx63onkat37X3OJGQRc4evACM5l8MsiKsZKld9HS8yMhy0aHl jFZ5PZEuIzfz2teBDMd8V1Zq9GvX1tIF+fRLtFFSo3cOCa4Vr6zEJWVj8dTLaUuPlQgl bYRbatThN6NYAIpKTFlSREmkYFyR3zYL2NPMsxiiijPVuuPyfLABqB/k4l9jNA5W5I6m vIraWxMOQunrklFCUaF8qFDk4CYfOwzTqcdQ4ETWJ73YyFQUWthFhaASqgSEjdPr7cmL Nxbw== X-Gm-Message-State: ABy/qLa/LCw9qcTxduYiKsWUT6PcWavc2Y29y3paev0D9iweDHe/olo2 4cMMTse8D81tnQLPHK/DesiKHA== X-Google-Smtp-Source: APBJJlF+6je4eVy9RxR/iYd+Ex8uPjyoke6EQnVSp59DgQ9ej5f0xflzhRUJuFfehe0qYTfHR8OaJQ== X-Received: by 2002:a05:600c:21d8:b0:3fd:dd53:d9a3 with SMTP id x24-20020a05600c21d800b003fddd53d9a3mr1779102wmj.17.1690463351670; Thu, 27 Jul 2023 06:09:11 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:28d:66d0:4512:80d4:6b13:bb70]) by smtp.gmail.com with ESMTPSA id h14-20020a05600c260e00b003fbca942499sm4698042wma.14.2023.07.27.06.09.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Jul 2023 06:09:11 -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, u-kumar1@ti.com, eblanc@baylibre.com, jneanne@baylibre.com, aseketeli@baylibre.com, jpanis@baylibre.com Subject: [PATCH v4 2/6] arm64: dts: ti: k3-j721s2-som-p0: Add TP6594 family PMICs Date: Thu, 27 Jul 2023 15:09:04 +0200 Message-ID: <20230727130908.10656-3-eblanc@baylibre.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230727130908.10656-1-eblanc@baylibre.com> References: <20230727130908.10656-1-eblanc@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230727_060914_674130_15D35519 X-CRM114-Status: GOOD ( 11.84 ) 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 This patch adds support for TPS6594 PMIC family on wakup I2C0 bus. Theses devices 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: Esteban Blanc --- arch/arm64/boot/dts/ti/k3-j721s2-som-p0.dtsi | 199 +++++++++++++++++++ 1 file changed, 199 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-som-p0.dtsi b/arch/arm64/boot/dts/ti/k3-j721s2-som-p0.dtsi index d57dd43da0ef..5348aafe3277 100644 --- a/arch/arm64/boot/dts/ti/k3-j721s2-som-p0.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j721s2-som-p0.dtsi @@ -61,6 +61,15 @@ J721S2_WKUP_IOPAD(0x004, PIN_INPUT, 0) /* (E20) MCU_OSPI0_LBCLKO */ }; }; +&wkup_pmx1 { + pmic_irq_pins_default: pmic-irq-pins-default { + pinctrl-single,pins = < + /* (C21) MCU_OSPI1_CSn1.WKUP_GPIO0_39 */ + J721S2_WKUP_IOPAD(0x28, PIN_INPUT, 7) + >; + }; +}; + &wkup_pmx2 { wkup_i2c0_pins_default: wkup-i2c0-default-pins { pinctrl-single,pins = < @@ -97,6 +106,196 @@ eeprom@50 { compatible = "atmel,24c256"; reg = <0x50>; }; + + tps659411: pmic@48 { + compatible = "ti,tps6594-q1"; + reg = <0x48>; + ti,primary-pmic; + system-power-controller; + + pinctrl-names = "default"; + pinctrl-0 = <&pmic_irq_pins_default>; + interrupt-parent = <&wkup_gpio0>; + interrupts = <39 IRQ_TYPE_EDGE_FALLING>; + + gpio-controller; + #gpio-cells = <2>; + + buck1234-supply = <&vsys_3v3>; + buck5-supply = <&vsys_3v3>; + ldo1-supply = <&vsys_3v3>; + ldo2-supply = <&vsys_3v3>; + ldo3-supply = <&vsys_3v3>; + ldo4-supply = <&vsys_3v3>; + + regulators { + bucka1234: buck1234 { + regulator-name = "vdd_cpu_avs"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <900000>; + 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_mcuwk_0v8"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <800000>; + regulator-boot-on; + regulator-always-on; + }; + + ldoa2: ldo2 { + regulator-name = "vdd_mcu_gpioret_3v3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + regulator-always-on; + }; + + ldoa3: ldo3 { + regulator-name = "vdd_mcuio_1v8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + 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; + }; + }; + }; + + tps659414: pmic@4c { + compatible = "ti,tps6594-q1"; + reg = <0x4c>; + system-power-controller; + interrupt-parent = <&wkup_gpio0>; + interrupts = <39 IRQ_TYPE_EDGE_FALLING>; + + gpio-controller; + #gpio-cells = <2>; + + buck1-supply = <&vsys_3v3>; + buck2-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 { + buckb1: buck1 { + regulator-name = "vdd_io_1v8_reg"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + regulator-boot-on; + }; + + buckb2: buck2 { + regulator-name = "vdd_fpd_1v1"; + regulator-min-microvolt = <1100000>; + regulator-max-microvolt = <1100000>; + regulator-boot-on; + regulator-always-on; + }; + + buckb3: buck3 { + regulator-name = "vdd_phy_1v8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-boot-on; + regulator-always-on; + }; + + buckb4: buck4 { + regulator-name = "vdd_ddr_1v1"; + regulator-min-microvolt = <1100000>; + regulator-max-microvolt = <1100000>; + regulator-boot-on; + regulator-always-on; + }; + + buckb5: buck5 { + regulator-name = "vdd_ram_0v85"; + regulator-min-microvolt = <850000>; + regulator-max-microvolt = <850000>; + regulator-boot-on; + regulator-always-on; + }; + + ldob1: ldo1 { + regulator-name = "vdd_wk_0v8"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <800000>; + regulator-boot-on; + regulator-always-on; + }; + + ldob2: ldo2 { + regulator-name = "vdd_gpioret_3v3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + regulator-always-on; + }; + + ldob3: ldo3 { + regulator-name = "vda_dll_0v8"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <800000>; + regulator-boot-on; + regulator-always-on; + }; + + ldob4: ldo4 { + regulator-name = "vda_pll_1v8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-boot-on; + regulator-always-on; + }; + }; + }; + + lp876411: pmic@58 { + compatible = "ti,lp8764-q1"; + reg = <0x58>; + system-power-controller; + interrupt-parent = <&wkup_gpio0>; + interrupts = <39 IRQ_TYPE_EDGE_FALLING>; + + gpio-controller; + #gpio-cells = <2>; + + buck1234-supply = <&vsys_3v3>; + + regulators { + buckc1234: buck1234 { + regulator-name = "vdd_core_0v8"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <800000>; + regulator-boot-on; + regulator-always-on; + }; + }; + }; }; &main_i2c0 { From patchwork Thu Jul 27 13:09:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Esteban Blanc X-Patchwork-Id: 13330093 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 D226BC001E0 for ; Thu, 27 Jul 2023 13:10:00 +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=ZWJfk2ZTp5fpV5axkNM9cMQZfHsT1VbUMXNObtYZTvo=; b=4lQ4mAC+adi7md cUflaZpRHG4dYf849BlB6jNra1eYe2IZPtDMG0Gxe8Xw6bUv1DTWkjnhxW3UWDfvlOnt2Edj1hvhH INA7DwZuABMuSCfdm92N2KI29y16UyebzabrY1HI5b+C5K3WWEk5M8T4K5b1B+qlCygFcdHh0Za2z +HTosL2Qfgm5FK6Xyj5Gje3CBWiXxFtiaVZot48ujRDHT5TOFKrvN1cYFaATGIwVI39pku7SBxiiU rBjT+9unNOGGY+r78Q/U6V7+JPpM7LuB3zfvLNA+VZ66eX/AKUzsqKZ4xbINeMTHjVhVsoJT3JbUN 9BrUDz9TKUKlt7aKy42Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qP0kM-00ELxY-10; Thu, 27 Jul 2023 13:09:38 +0000 Received: from mail-lj1-x22c.google.com ([2a00:1450:4864:20::22c]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qP0jz-00ELcq-2O for linux-arm-kernel@lists.infradead.org; Thu, 27 Jul 2023 13:09:19 +0000 Received: by mail-lj1-x22c.google.com with SMTP id 38308e7fff4ca-2b74310566cso13771261fa.2 for ; Thu, 27 Jul 2023 06:09:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20221208.gappssmtp.com; s=20221208; t=1690463353; x=1691068153; 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=/4itNTpZUUmvVIcXRi6M7cnkeb2c9XA1CMXl5ycX4uQ=; b=ezWNoejXx5uyLq/82Mq/6H1qfR6j5SaUNWZG0SMUtrbOqeZuhfflM7AStTePhVKo31 guEq8nN+dWvU0Yy4+UhugB3A3hp2JmITYpaQMIPFnxXQHHEIJvKccE1Fkb7/1t4WNOzt gIiIPby2qzChgnQgRG70locTMPq1jh+cRq5VxROaPA2gXAfsF6/xUUoRlDHzI5WeQCfb +QFlzmecfj+lW/Ia51rFuaQD6C/VYDnjEQdCsrK5RQW62sGF+WsS9YuhR0FMCYPOb2iw 4K3mG4tK+lXPjT5pKZFUUreRdG55e7ayOaUqy7F6uU3IUAtNadxRFYP5fcAIxALFto8t 3fSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690463353; x=1691068153; 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=/4itNTpZUUmvVIcXRi6M7cnkeb2c9XA1CMXl5ycX4uQ=; b=lc+PdsVvYqehk+N5UeN69sVIraVOVwjqbog3IBRBQrWJb2T3VlruXi1BnTDpXHTQpQ REMfxeApMzhx3b6Y3lxn+7LHaAcTtwA3wYfjW3FinvpYSc8pEfrHVeARSqG9TKbEtDIx aUEepreUU1bss1AC/LCgwQmS9kQ3LUDDcnoZMlEBLV7hG91liTvuytha1RfM43k+IC4U cZrwGo/4Y2oKH2vzWWcUqN0truzqjFT9uN9+SgLlPIPYY06Bkdl8TRz85weVJ8wNV+JK iA0Kp39lWj7hCR3SJ9rB1UZuMdDuU+73gOCUcMO88BzVUcqnB2Za+LfSH9D8SQ2p3S2K wTzQ== X-Gm-Message-State: ABy/qLYZEars2tFKZX7olFJKTYQFwDOwQxGSitoDLFKjPC7u5ffITuvQ a5qXRtnymC9mlhoCI/+v5chsjA== X-Google-Smtp-Source: APBJJlHJP4Z7hgn1S972hkZHqwD2CHWt+17a8Jxt40v+a+Yi3QyTnqEv4VE/TMGFXJ/iU0j0rcy8TQ== X-Received: by 2002:a2e:9190:0:b0:2b6:d7d1:95c0 with SMTP id f16-20020a2e9190000000b002b6d7d195c0mr1708675ljg.11.1690463352693; Thu, 27 Jul 2023 06:09:12 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:28d:66d0:4512:80d4:6b13:bb70]) by smtp.gmail.com with ESMTPSA id h14-20020a05600c260e00b003fbca942499sm4698042wma.14.2023.07.27.06.09.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Jul 2023 06:09:12 -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, u-kumar1@ti.com, eblanc@baylibre.com, jneanne@baylibre.com, aseketeli@baylibre.com, jpanis@baylibre.com Subject: [PATCH v4 3/6] arm64: dts: ti: k3-j721e-som-p0: Add TP6594 family PMICs Date: Thu, 27 Jul 2023 15:09:05 +0200 Message-ID: <20230727130908.10656-4-eblanc@baylibre.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230727130908.10656-1-eblanc@baylibre.com> References: <20230727130908.10656-1-eblanc@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230727_060915_798708_50239F96 X-CRM114-Status: GOOD ( 11.91 ) 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 TPS6594 PMIC family on wakup I2C0 bus. Theses devices 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-j721e-som-p0.dtsi | 163 ++++++++++++++++++++ 1 file changed, 163 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi b/arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi index 38ae13cc3aa3..c16dc59e1b0e 100644 --- a/arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi @@ -152,6 +152,12 @@ J721E_WKUP_IOPAD(0xfc, PIN_INPUT_PULLUP, 0) /* (H24) WKUP_I2C0_SDA */ >; }; + pmic_irq_pins_default: pmic-irq-pins-default { + pinctrl-single,pins = < + J721E_WKUP_IOPAD(0xd4, PIN_INPUT, 7) /* (G26) WKUP_GPIO0_9 */ + >; + }; + mcu_fss0_ospi0_pins_default: mcu-fss0-ospi0-default-pins { pinctrl-single,pins = < J721E_WKUP_IOPAD(0x0000, PIN_OUTPUT, 0) /* MCU_OSPI0_CLK */ @@ -212,6 +218,163 @@ eeprom@50 { compatible = "atmel,24c256"; reg = <0x50>; }; + + 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 = <9 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_cpu_avs"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <900000>; + regulator-boot-on; + regulator-always-on; + }; + + bucka3: buck3 { + regulator-name = "vdd_mcu_0v85"; + regulator-min-microvolt = <850000>; + regulator-max-microvolt = <850000>; + regulator-boot-on; + regulator-always-on; + }; + + bucka4: buck4 { + regulator-name = "vdd_ddr_1v1"; + regulator-min-microvolt = <1100000>; + regulator-max-microvolt = <1100000>; + regulator-boot-on; + regulator-always-on; + }; + + bucka5: buck5 { + regulator-name = "vdd_phyio_1v8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-boot-on; + regulator-always-on; + }; + + ldoa1: ldo1 { + regulator-name = "vdd1_lpddr4_1v8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-boot-on; + regulator-always-on; + }; + + ldoa2: ldo2 { + regulator-name = "vdd_mcuio_1v8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-boot-on; + regulator-always-on; + }; + + ldoa3: ldo3 { + regulator-name = "vdda_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; + }; + }; + }; + + tps659411: pmic@4c { + compatible = "ti,tps6594-q1"; + reg = <0x4c>; + system-power-controller; + interrupt-parent = <&wkup_gpio0>; + interrupts = <9 IRQ_TYPE_EDGE_FALLING>; + + gpio-controller; + #gpio-cells = <2>; + + buck1234-supply = <&vsys_3v3>; + buck5-supply = <&vsys_3v3>; + ldo1-supply = <&vsys_3v3>; + ldo2-supply = <&vsys_3v3>; + ldo3-supply = <&vsys_3v3>; + ldo4-supply = <&vsys_3v3>; + + regulators { + buckb1234: buck1234 { + regulator-name = "vdd_core_0v8"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <800000>; + regulator-boot-on; + regulator-always-on; + }; + + buckb5: buck5 { + regulator-name = "vdd_ram_0v85"; + regulator-min-microvolt = <850000>; + regulator-max-microvolt = <850000>; + regulator-boot-on; + regulator-always-on; + }; + + ldob1: ldo1 { + regulator-name = "vdd_sd_dv"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + regulator-always-on; + }; + + ldob2: ldo2 { + regulator-name = "vdd_usb_3v3"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + regulator-always-on; + }; + + ldob3: ldo3 { + regulator-name = "vdd_io_1v8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-boot-on; + regulator-always-on; + }; + + ldob4: ldo4 { + regulator-name = "vda_pll_1v8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-boot-on; + regulator-always-on; + }; + }; + }; }; &ospi0 { From patchwork Thu Jul 27 13:09:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Esteban Blanc X-Patchwork-Id: 13330094 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 2CFB8C0015E for ; Thu, 27 Jul 2023 13:10:02 +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=mGyDIXo34b1WjXooeWcFG6k7hl3Ap0TWkKoaCzfZ0wc=; b=TZ1balTFRDXYMo upmn5KBzl0fGUZUD4buBX1VkTakmyvxiXVBn5RHio6Ux8//oK9GmBxOkzDVvgfs70d66Q94fodrV7 ijs5YU6k3/+HEapCNGol374V3ByHn/6WoKeCASY8g2C/bQMM9ajVhZtyEzsNOir8Rll8G4uYgFxzO cijj9cJDDJdqrkLrd2Yt6m1TVLyU7vuHs9zyPtfKKenFyDto72GykH3gvmaVtOQ7PjEOBhsJE2haj I3fzb3va2gR54V1Qg2l0GRisrGk8CfXoLT+zspvZksxLQd7MUBKSqE+iy+Dc0xVwwUTie1RXlBTTp /mlLVLmBfdOMkRZgZchg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qP0kL-00ELwK-0k; Thu, 27 Jul 2023 13:09:37 +0000 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qP0k1-00ELdS-0N for linux-arm-kernel@lists.infradead.org; Thu, 27 Jul 2023 13:09:18 +0000 Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-3fbc244d307so10256145e9.1 for ; Thu, 27 Jul 2023 06:09:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20221208.gappssmtp.com; s=20221208; t=1690463354; x=1691068154; 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=7LfI3hFLaFslE2ut4ABq9gA6oxvBYW17t8wTdiYXypo=; b=rHb6hCs2a+N8Sj2s66KoEMK75Td4Tjd/zoNJ0+GhAUP/msL1zspKkVI9Lbm/0hZQRU tzi2CQBS78awmgftcTpUkZdZ41HmEXCo3gl2v1dYQETdv666MgkvTp7Rc6voOzfqLWLL A0yOeaThHWVHbq/y2wdqDeOcdqOYFQESSX5sQaZSEvQnYZRPpC0Wqc6q9LpXVQs9mNnJ WAsgiw5FwpwyksL9E7B3pJ/EjpnLW/zsK7W7RWk3apso3SF9HEYGM66ZxsKwFsV9QTao /nVvq87m5EZqa8hch7+1u9Z3FeTbF1lhEUHeFyWfmV8S9NDhpgN/ZBNlgOtGxY1xDhrq L0gA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690463354; x=1691068154; 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=7LfI3hFLaFslE2ut4ABq9gA6oxvBYW17t8wTdiYXypo=; b=ReCHb7WJY/OxIyjxx/pc9sEwthBYjMgR4rc466k0wCzO73t6LQ7GMzdJQ6JGgWbhec jV0AJJRdJis9SNl6uA5Xq2briXu+/JoF3HrY7DoNz5CLpZCpT/ERzsbPTAcZzbfk7OGE 4A4U9EUCoRVR1q3WRkgEgH/CMsqT0X+PuxMhTgXrhIwKjwNucFIOBbL76BokNYMG4ofj BM8JegrRAGf32rgKUBlC+3rdOB4F0CCTa5z/I5Hp/hidSRJK1s/9y3EZsMyerbfNQBb/ GDYGUWkuZZBP5hQDMRqQ8n7vUA3aFjXdsnTpAQPOqNwf0q+pgSBKmPDeUzVnvKyj1xai VNQQ== X-Gm-Message-State: ABy/qLY9plMttXBtUxTNnpXLyHQd9mOpavGqY1sezsrUTEAaRsGWi8hr OnUmQTdAmRQbOmWIjUtL6VNqaQ== X-Google-Smtp-Source: APBJJlECI/vThNChE3IgWj+RGZTt9uIS0Y8uIqSJUTjxO7pvIiK6rJnvQs5yLpYYlSV4YBI6lnDrYg== X-Received: by 2002:a05:600c:255:b0:3fa:9939:47c with SMTP id 21-20020a05600c025500b003fa9939047cmr1652741wmj.37.1690463353690; Thu, 27 Jul 2023 06:09:13 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:28d:66d0:4512:80d4:6b13:bb70]) by smtp.gmail.com with ESMTPSA id h14-20020a05600c260e00b003fbca942499sm4698042wma.14.2023.07.27.06.09.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Jul 2023 06:09:13 -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, u-kumar1@ti.com, eblanc@baylibre.com, jneanne@baylibre.com, aseketeli@baylibre.com, jpanis@baylibre.com Subject: [PATCH v4 4/6] arm64: dts: ti: k3-j784s4-evm: Fix interrupt ranges for TPS6594 PMIC Date: Thu, 27 Jul 2023 15:09:06 +0200 Message-ID: <20230727130908.10656-5-eblanc@baylibre.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230727130908.10656-1-eblanc@baylibre.com> References: <20230727130908.10656-1-eblanc@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230727_060917_167766_82D48160 X-CRM114-Status: GOOD ( 12.46 ) 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: Apelete Seketeli This patch fixes the interrupt range for TPS6594 PMIC on MCU/WAKEUP domain for RTC peripheral. Signed-off-by: Apelete Seketeli Signed-off-by: Esteban Blanc --- arch/arm64/boot/dts/ti/k3-j784s4-mcu-wakeup.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-mcu-wakeup.dtsi b/arch/arm64/boot/dts/ti/k3-j784s4-mcu-wakeup.dtsi index 657fb1d72512..62a0f172fb2d 100644 --- a/arch/arm64/boot/dts/ti/k3-j784s4-mcu-wakeup.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j784s4-mcu-wakeup.dtsi @@ -107,7 +107,7 @@ wkup_gpio_intr: interrupt-controller@42200000 { #interrupt-cells = <1>; ti,sci = <&sms>; ti,sci-dev-id = <177>; - ti,interrupt-ranges = <16 928 16>; + ti,interrupt-ranges = <16 960 16>; }; /* MCU_TIMERIO pad input CTRLMMR_MCU_TIMER*_CTRL registers */ From patchwork Thu Jul 27 13:09:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Esteban Blanc X-Patchwork-Id: 13330096 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 BCD5EC04A94 for ; Thu, 27 Jul 2023 13:10:03 +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=0Su/qc+96Z2HggU74jc5OPAbofa1NW+NuLHiAB56i3w=; b=rym9+ej0YV0IC4 KZsvJL8F714e4UCFuD8LpmFmyeJtJ1CRsmuOSOOTJnpcpp72CBdzvoZpNEahxS7ZeGJ7HFdxQ4pTb mZLHIVrYR7xJ+ejj0/A5i1s7eB8qIWE7qs57qCxFBreXshJiTjiWtemXNHeFar8PKqQGwgT3gwQ4o I+vYfNQS7OFaDFACDLtzBd14XeHMxaupZcCp5lpOvZWnlTGhR/gRFdjrDkGFe/aOX3XXRS+uoQP60 BwPfcsmkmx/RAeBzAvzPchIvw+d3CP2qU11K5u7AHqK09xVmDGYlgictepBNS70RSGfTCOEo1qMN7 jqBE2ogjFXJwHoWeFYQQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qP0kN-00ELz1-1z; Thu, 27 Jul 2023 13:09:39 +0000 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qP0k1-00ELeP-2Y for linux-arm-kernel@lists.infradead.org; Thu, 27 Jul 2023 13:09:20 +0000 Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-3fbc656873eso10374425e9.1 for ; Thu, 27 Jul 2023 06:09:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20221208.gappssmtp.com; s=20221208; t=1690463354; x=1691068154; 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=aPehuvtMfYeyvR/xEBwAtpjZIX/eTDZZOcRrVJDqGI8=; b=ZWuFMebNoiV/9Gd2C+Hzy0y1hSw3YB5QA9MFHo5dkkpylLLG4LfWOyR2FnaiCEJKBD IsWEUup9AHjYUUnG2mT4ULhO3yvl+KpMM8RO55qx0TT3sfKjoeuMJD7jTXekhitkpELa dTKofEl7PG24s3hYjRQAeCHbC/sDCChYGZcx+A0UYwsU4aN+/nVuml1po6T00rwYB4HY Y3GwPk0OLvUVkcAaNBdDATEXOw42+inSWkTLr9uRS+yOxdc4S9gddYqCI2LMQ2PoFmId nNv4j1ek+iDVUd839PLe0yKwyXahihByQlgwCmGOYDepXNSwK/4RpfbQ2YYkvhCu67Zj 9AZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690463354; x=1691068154; 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=aPehuvtMfYeyvR/xEBwAtpjZIX/eTDZZOcRrVJDqGI8=; b=NJE8MX41MQ9zH8c7NWY/X63QQFsX1Oq6oVVZAhVOPsF193MYvMqHJKjYyM2O6AOy/3 9TkLXWzcA3td41YY5AtD4J3Q613i6WyLbbEj+cwZ2FzKqZDeSTrGrvQdb2pQh+Sag4Wp G6JgvQ2hhXhrjhVk+4X0K+wiyz61B61gmhvnb18k6BtC9XD4gq3tRWC31s6kIfHTiuo0 7BFqvYGMqwDwaY57tKHKRU/WrhRNAfvThkc+JzU0ems82m1J79CcbyGyobSB05peQXgb hJcY9ZEUXOPdvsX1U++AQ5YQI99ZkRDUjx34btmM+ZRGmk+z7XuedoXzWiNmv6y1uq/G iQmA== X-Gm-Message-State: ABy/qLax/fV365PDeIrDnBDSpRIylEl5YyWgUtpoZexiUsm3bo8fearx jc5KXBg/vRgfy59GORq/IixmMw== X-Google-Smtp-Source: APBJJlFWV/QXfKHUwZ7txBFv316HnqLZXmrSdUXrF6/2IFZld/xPZHKzTLYCzCnrjN3LuFa3A3PQDQ== X-Received: by 2002:a05:600c:d5:b0:3fd:4880:2aa5 with SMTP id u21-20020a05600c00d500b003fd48802aa5mr1887222wmm.28.1690463354578; Thu, 27 Jul 2023 06:09:14 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:28d:66d0:4512:80d4:6b13:bb70]) by smtp.gmail.com with ESMTPSA id h14-20020a05600c260e00b003fbca942499sm4698042wma.14.2023.07.27.06.09.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Jul 2023 06:09:14 -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, u-kumar1@ti.com, eblanc@baylibre.com, jneanne@baylibre.com, aseketeli@baylibre.com, jpanis@baylibre.com Subject: [PATCH v4 5/6] arm64: dts: ti: k3-j784s4-evm: Add support for TPS6594 PMIC Date: Thu, 27 Jul 2023 15:09:07 +0200 Message-ID: <20230727130908.10656-6-eblanc@baylibre.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230727130908.10656-1-eblanc@baylibre.com> References: <20230727130908.10656-1-eblanc@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230727_060917_852416_3B1DB732 X-CRM114-Status: GOOD ( 12.83 ) 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 TPS6593 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 | 104 +++++++++++++++++++++++ 1 file changed, 104 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts b/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts index 430b8a2c5df5..c37a94ac98cf 100644 --- a/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts +++ b/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts @@ -251,6 +251,10 @@ vdd_sd_dv: regulator-TLV71033 { }; }; +&wkup_gpio0 { + status = "okay"; +}; + &main_pmx0 { main_uart8_pins_default: main-uart8-default-pins { pinctrl-single,pins = < @@ -365,6 +369,17 @@ J784S4_WKUP_IOPAD(0x170, PIN_INPUT, 0) /* (Y36) MCU_ADC1_AIN7 */ }; }; +&wkup_pmx1 { + status = "okay"; + + pmic_irq_pins_default: pmic-irq-pins-default { + pinctrl-single,pins = < + /* (G33) MCU_OSPI1_CSn1.WKUP_GPIO0_39 */ + J784S4_WKUP_IOPAD(0x28, PIN_INPUT, 7) + >; + }; +}; + &wkup_pmx0 { mcu_fss0_ospi0_pins_default: mcu-fss0-ospi0-default-pins { pinctrl-single,pins = < @@ -416,6 +431,95 @@ eeprom@50 { compatible = "atmel,24c256"; reg = <0x50>; }; + + 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; + }; + }; + }; }; &mcu_uart0 { From patchwork Thu Jul 27 13:09:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Esteban Blanc X-Patchwork-Id: 13330095 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 A04CAC001E0 for ; Thu, 27 Jul 2023 13:10:03 +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=NpUxpL9AkZn4FD5/F/1XYZK3K42eSLsgpHhr9BqMfrc=; b=2dgSFbbk+Z+krN MhonlQWXyYP1J2gv39Qg2iQDoqwsc6bLzlHAqCASoUrz/4wmcQKypvXL55QcOswmQCOMes0W1XqK/ 4oF30ez6cyeUeFNjB/HeQt9qiPMfHUioB1tKTI5NlvIMWic0XUvP1bVb+S5ByqDUEbp/cBIyOsD1E 3ftIfudRwgUQeLeH1XmBF9WWWjdoHclACEcKT7xiwZAHocuJacaDXxA5MEmbOItxjtgFV5tsd2zCx I6xx4P2uMFMmXS3++NGAmeuyo9P6moIYsREDHO1uy7z/RyEK+rgYHs1Fbje5jLEC/XxdPrIgeq2o5 e7fczYLPNew4bzZ3k4iA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qP0kL-00ELwv-2U; Thu, 27 Jul 2023 13:09:37 +0000 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qP0k1-00ELfL-0O for linux-arm-kernel@lists.infradead.org; Thu, 27 Jul 2023 13:09:19 +0000 Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-3fbc5d5746cso10136285e9.2 for ; Thu, 27 Jul 2023 06:09:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20221208.gappssmtp.com; s=20221208; t=1690463355; x=1691068155; 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=XZVJZt6zaDYlF4FBoDI7miun7OeMIpqJMetrwHAZhg0=; b=hhzFsT9DGIphmkGRN9Con7FHguufDPl4bOhR/mSUcVBiwGFJ0JxU50twS3vK5io679 FAQ1k6pIjLxpyfntqURyDBSBav6Ee5P1ni8BFAMEdNHy5nL3d7IMdNVbLtGS2Esjoukv gPPeWshejn1odiA27o1sTFwvmuDwknNqQvr1/6JD37g6P9mJ1tMDlrwlHAExtU3BL+jF ZpFygnHFdr3WMaI4sXD8vKs03J4SMKvEe49m0KzIlC2x0fy6HwIe0I6w4V9DuFXJEc42 U8arUODvgPWyDkehtKxO/tAFGh+na2+0en4zEt5BnPJzjEQDP8l+zE3JbLHkMb61TogL 7Xaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690463355; x=1691068155; 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=XZVJZt6zaDYlF4FBoDI7miun7OeMIpqJMetrwHAZhg0=; b=IDkcRm8J2EpvcV7MAj7iKLUlOo+foJH3CKMOJkCoMnzofwvIoxge/Jb/RFh5l0dVfG //yfxvom5Nh6Tr1BInzWF5qyw2xgV/pXfYyYrXM3RTbk7jDRtnB5n8oZXKbTukZ4x9Z4 b1M/871tSwiD4wku9PSy5DIm6ol9ECsH00xUa1Xvw53cNk/e8g7cX2xPigQzo5oYx6IL iWYwhMFFOguqmDfHm+sxcn17oXwj+YihSczVuJ1+uRetKwFAjVO0LoNck7dIs8Uv3rBa D7RAUnrJGgeb//nuXFNYN4o2pRvYbDrEYE8Db7TAhNfcBgWaeP4nL7G5IOd1YAMuwOT2 5vAA== X-Gm-Message-State: ABy/qLY+RQvaAh8WH9tTwdVcwjEE/DzErQpz1y+QsXMWXMzxCReG2nxB G2zxNEjMze7PDbe+M5bicSdV/Q== X-Google-Smtp-Source: APBJJlEraBLNJpOPX5qM0THNxSWGe+rDojRJBTN9tck8E159twxKYVGenMkt+rJSsdzQemQeysGO5w== X-Received: by 2002:a05:600c:231a:b0:3fa:95c7:e891 with SMTP id 26-20020a05600c231a00b003fa95c7e891mr1616722wmo.35.1690463355573; Thu, 27 Jul 2023 06:09:15 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:28d:66d0:4512:80d4:6b13:bb70]) by smtp.gmail.com with ESMTPSA id h14-20020a05600c260e00b003fbca942499sm4698042wma.14.2023.07.27.06.09.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Jul 2023 06:09:15 -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, u-kumar1@ti.com, eblanc@baylibre.com, jneanne@baylibre.com, aseketeli@baylibre.com, jpanis@baylibre.com Subject: [PATCH v4 6/6] arm64: dts: ti: k3-am62a7-sk: Add support for TPS6593 PMIC Date: Thu, 27 Jul 2023 15:09:08 +0200 Message-ID: <20230727130908.10656-7-eblanc@baylibre.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230727130908.10656-1-eblanc@baylibre.com> References: <20230727130908.10656-1-eblanc@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230727_060917_201844_A77FCC22 X-CRM114-Status: GOOD ( 12.33 ) 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: Julien Panis This patch adds support for TPS6593 PMIC on main 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: Julien Panis Signed-off-by: Esteban Blanc --- arch/arm64/boot/dts/ti/k3-am62a7-sk.dts | 95 +++++++++++++++++++++++++ 1 file changed, 95 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts b/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts index ecc0e13331c4..fbf9c5e2c031 100644 --- a/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts @@ -221,11 +221,106 @@ AM62AX_IOPAD(0x12c, PIN_INPUT, 0) /* (W16) RGMII1_TX_CTL */ }; }; +&mcu_pmx0 { + status = "okay"; + + pmic_irq_pins_default: pmic-irq-pins-default { + pinctrl-single,pins = < + AM62AX_MCU_IOPAD(0x000, PIN_INPUT, 7) /* (E11) MCU_GPIO0_0 */ + >; + }; +}; + +&mcu_gpio0 { + status = "okay"; +}; + &main_i2c0 { status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&main_i2c0_pins_default>; clock-frequency = <400000>; + + tps659312: pmic@48 { + compatible = "ti,tps6593-q1"; + reg = <0x48>; + ti,primary-pmic; + system-power-controller; + + gpio-controller; + #gpio-cells = <2>; + + pinctrl-names = "default"; + pinctrl-0 = <&pmic_irq_pins_default>; + interrupt-parent = <&mcu_gpio0>; + interrupts = <0 IRQ_TYPE_EDGE_FALLING>; + + buck123-supply = <&vcc_3v3_sys>; + buck4-supply = <&vcc_3v3_sys>; + buck5-supply = <&vcc_3v3_sys>; + ldo1-supply = <&vcc_3v3_sys>; + ldo2-supply = <&vcc_3v3_sys>; + ldo3-supply = <&buck5>; + ldo4-supply = <&vcc_3v3_sys>; + + regulators { + buck123: buck123 { + regulator-name = "vcc_core"; + regulator-min-microvolt = <715000>; + regulator-max-microvolt = <895000>; + regulator-boot-on; + regulator-always-on; + }; + + buck4: buck4 { + regulator-name = "vcc_1v1"; + regulator-min-microvolt = <1100000>; + regulator-max-microvolt = <1100000>; + regulator-boot-on; + regulator-always-on; + }; + + buck5: buck5 { + regulator-name = "vcc_1v8_sys"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-boot-on; + regulator-always-on; + }; + + ldo1: ldo1 { + regulator-name = "vddshv5_sdio"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + regulator-always-on; + }; + + ldo2: ldo2 { + regulator-name = "vpp_1v8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-boot-on; + regulator-always-on; + }; + + ldo3: ldo3 { + regulator-name = "vcc_0v85"; + regulator-min-microvolt = <850000>; + regulator-max-microvolt = <850000>; + regulator-boot-on; + regulator-always-on; + }; + + ldo4: ldo4 { + regulator-name = "vdda_1v8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-boot-on; + regulator-always-on; + }; + }; + }; }; &main_i2c1 {