Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp5712166rwb; Wed, 9 Aug 2023 08:11:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE4P83ETnRIG/WNhxA+X8WYt+p2f38eavLZ7gNgv4CTwY76ZyffmYpeNW0J1tNj9vUhameD X-Received: by 2002:a05:6a20:8f23:b0:13e:82ae:483 with SMTP id b35-20020a056a208f2300b0013e82ae0483mr3752671pzk.31.1691593887282; Wed, 09 Aug 2023 08:11:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691593887; cv=none; d=google.com; s=arc-20160816; b=WS/QyiWkRUG81Q9r7fSwK/ZJvPo4EpHd2m/3JVZgax4tLWgWSTh65JS80gitF6H2dN jZ1aBAaEJuAObBw/Bw6vWeMVVewANJ1hMQ922/tN2+5uN75n4xQuprTZytSioIhLV3EQ NR6RGkXD95AZuwus+aDUepzQtxRIZ0MFTvEhPbAb5eC3DFblXuq1LqVyHgHtLRrMKw84 fez9Er3PEiEKvDPkAINqVgi+O9pRF3Ed9L2+Mv0XSXR/VzeWO9DuNQKfvrCDgDhJaI6M ZDnUfE3ZPCjsB26/qHO+7dMT4xIo+ZU3e6bUhY/oAd2TAIV77mUFUxLlBBjvqql+yUBB nFRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=D8TbO3oyFOqpMmJ9zw0MJ3OUYIEpM7WTqsLoM8CdvO0=; fh=TwlzykfLYO+6sE89EkzVZTdglYDf+cKsEDSEOvcSfhY=; b=atAjpK5zhN7ecJMl+OOcN8D/tRiv9dd/sZK6tyeo/3BU7h9vZhgedtlb1SPtnmwjK0 kVQuhjJ58lkpUIubYXB18REfUoeL8PWAhLZG7CZHBZoh/32ST1c5YBhRmrJUizJ88PHw 8/RETaQKth42qfpzXEKW4+RQFFWLozUE7eMyNqhNfbwIuXZ4lvps2lvyamR4peKfXP2O ewHUDgI5JbTORu+VVkZytl0ifGBvqpXy4dhEXrH/Ch5Xv1WpFcI5OmCf4Og+TEGxbFaz miId/C563yP2RHs6vd1opGuRfSlApUMFY4H7jn/hKfT+cu4JkpupJvIP3AjIxCGCJLUX OKsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Y2h8pMav; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ca20-20020a056a02069400b00565307ee53bsi2203755pgb.439.2023.08.09.08.11.14; Wed, 09 Aug 2023 08:11:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Y2h8pMav; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234143AbjHIOsB (ORCPT + 99 others); Wed, 9 Aug 2023 10:48:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233271AbjHIOsA (ORCPT ); Wed, 9 Aug 2023 10:48:00 -0400 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C27441FCC; Wed, 9 Aug 2023 07:47:59 -0700 (PDT) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 379ElpI3013118; Wed, 9 Aug 2023 09:47:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1691592471; bh=D8TbO3oyFOqpMmJ9zw0MJ3OUYIEpM7WTqsLoM8CdvO0=; h=From:Date:Subject:References:In-Reply-To:To:CC; b=Y2h8pMavMjyEHoYa9dXI6qWoBtWaq/QT7xnQRFfFWPcqMYiWlKKpTsiHDjZrE0+DN AtxmHlqsDq7+1KGNo9P1CYB/eaEfkarb8bhC6mZ+/gL5+iTY37lc/iFg88dpW1jqiG CNKxSfeMWnUKfAo2kx5+vvLm87CxHWrEuR5y0mOU= Received: from DLEE103.ent.ti.com (dlee103.ent.ti.com [157.170.170.33]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 379ElpZ0022924 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 9 Aug 2023 09:47:51 -0500 Received: from DLEE102.ent.ti.com (157.170.170.32) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Wed, 9 Aug 2023 09:47:51 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Wed, 9 Aug 2023 09:47:51 -0500 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 379EloUn030736; Wed, 9 Aug 2023 09:47:51 -0500 From: Jai Luthra Date: Wed, 9 Aug 2023 20:17:02 +0530 Subject: [PATCH v5 1/6] arm64: dts: ti: k3-j7200-som-p0: Add TP6594 family PMICs MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-ID: <20230809-tps6594-v5-1-485fd3d63670@ti.com> References: <20230809-tps6594-v5-0-485fd3d63670@ti.com> In-Reply-To: <20230809-tps6594-v5-0-485fd3d63670@ti.com> To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: , , , Esteban Blanc , , , , , X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=5070; i=j-luthra@ti.com; h=from:subject:message-id; bh=sXQvk5iM0s3TI5hvd/BKfVHTAkjO1sGAFC1/n4Zrf7U=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBk06cVWwePpvXrSrF/G7FiwY/v9Y+tRVqsfQ1pc xPB0s0BPouJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZNOnFQAKCRBD3pH5JJpx RUksEACMBo13UK79CMOa70nOggtUcNXaX5o6sjJP0YqyPZB4Xr89O5FKPx7XXVQzQNIip77nV1I lvR04bGcY3jiP0Ps87JBBWeM/zNGSPnSlWLSg6DFakI/7NdwuIfTiI+aPqWUpNAG1IwjJyEyrrI z25NmJ6E9XoojqhWTWm50vJ7wkN+dvUoNhQRN0bwW9nK/Bk2AGKIL8YLtYm+d0tl0eEQ+atRq63 jOKcPlRNrwcELZPi8mtpYJSzQXqsMzWf62AtR9m5aXvBdM99FflN9QQHwbumDbL5kN41x8IIxTT vK7zUE/c0E6VQqHtbsu/tJoA2+SwASqZWGFmvY/tY72gJDDrGIXTtazSbGMlunnuPgF2sF6Tx8Q Rjm+Eyv/MMmx2e5PSnme4vGmAs+QOuLiP9V92PPEKKU3H6IIDNBtmcCaePlqGRdaRcdu3CteDFw XU/waxdwOZscaiY7cKYwrDCgI+Ym40dGdt9XAhRYHcExkQEWiuEGckjhgKqrynK9EI3VcQC9QoN WsC+fCHwXyvSYHpnOYA+9aSojaR0QruOiTPOzT28YSKzZlz6Ed+GL+PC38i3tO0A15Fdzvgu8in jgsjw7NsTqqE53dYV6Ruk0cL1SiCyi60jQuvz9PJedHqZnstgZbD+hdHp82VpqUTJcZYHAYbfi5 dWfr6as4dDIt9jQ== X-Developer-Key: i=j-luthra@ti.com; a=openpgp; fpr=4DE0D818E5D575E8D45AAFC543DE91F9249A7145 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Esteban Blanc 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 Signed-off-by: Jai Luthra --- 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..fbbd8bfa368c 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(0x01c, 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 { -- 2.41.0