Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp2413265rwb; Thu, 27 Jul 2023 06:59:31 -0700 (PDT) X-Google-Smtp-Source: APBJJlGnxtOq+dZZ5UE1u9gElL6Cypez+cgM82m/3Tv5lCqLN37jN429C4Qy1vnXTqbzc/NnqrII X-Received: by 2002:a17:90b:f91:b0:268:42da:25e1 with SMTP id ft17-20020a17090b0f9100b0026842da25e1mr3279550pjb.8.1690466370671; Thu, 27 Jul 2023 06:59:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690466370; cv=none; d=google.com; s=arc-20160816; b=j3vPdo9zSF4+0lcs5Iz2eDzY35OJmkvdUb1sw+li5b3fFHV/9ef5vXhcNTuw1W9xLV /mR+mPAtIxGemSd7RqTRL2RfL82VdlubHYairkPQ5GY17YPy/pASzwLpfeajfrfAJOiU bz7vEFFGYXLjntH5Dk5Yjp05riEuFqxunT25QRp6NQHmkMI4HRtagpOHOSoTFfE7NpMG uwCtnu8OoEWj/UIrfYhu23d/jh+HwNIUPaNB2MotnOgKxCRO3YBmdOtLVjOAHvTZfJfk kncpSSpL5zPa2of8rNXMnlsHmOaBRB8EbGRN+lY/K1IFbWegC/3RQGrpru8VHFw+aqN0 uCsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Pt6ewmtB9BFbSXxqHyQ964VB9lAsmSYJP3v/grVNUkc=; fh=dF5X6QGT4gmXoYFAAxh4dNs7IuKZYRMI2y2n+vrBmTE=; b=G+aoZZM3Zhn7entujxlvAYAw7u2jTBjaZdCLb6gWBJ8FYcYAD3UzX8x/s4VL+s72iU 5z+jhsWQaI+ok66RKmP1VvxHo4k6VkPAtuYzc/7xrYo6UIehYfrfMMYy941dg5/5Nvpc cKhG+ZqEaP/v6nk62PiOjvcs7rTlO0T2VmkoG0QItnvAlyIwKeKrlFna8Css/iTO9UCD vfyiaIQZ31w/15ZXR2xcDRSB7MZqQ5cMd1Uy7gO6HWjbhryVM0FE4M+FXM10QaQkEdOH A6K9xyuLRe3u7/yn3u5/G3DRpuLuPGFHWMdNYNgH0Fx9E4yptd5GMJpFsxBt0NSzoHVo 7+5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20221208.gappssmtp.com header.s=20221208 header.b=WiPxxLK4; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i8-20020a17090332c800b001bbc855a8fcsi1393759plr.488.2023.07.27.06.59.15; Thu, 27 Jul 2023 06:59:30 -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=@baylibre-com.20221208.gappssmtp.com header.s=20221208 header.b=WiPxxLK4; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233096AbjG0NJU (ORCPT + 99 others); Thu, 27 Jul 2023 09:09:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232396AbjG0NJO (ORCPT ); Thu, 27 Jul 2023 09:09:14 -0400 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FCBA26BB for ; Thu, 27 Jul 2023 06:09:13 -0700 (PDT) Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-3fb4146e8fcso6262455e9.0 for ; Thu, 27 Jul 2023 06:09:13 -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=B+fTAD8ivpBXcB0Jc86/OPs+MtSuSyIQYvIrtXdBZeATeGho4wc29cwjPaaKX8P5RV PcTZNgOvpRGdVPEJuW+0I/HSNkGv9KSU8Ddcva/CrO/3P8tjzei3r/NDJUvU9s9vweI4 OUTUU3LIu9xaQnd+oQo+iac2Z4WxJgsjjlCNMSoOubbo0ncILNNXUKbH0fJX5839ccuC 7w05NktY8EpqtFlWNTGwF3Qpdi3wVejFIOxjrv3RIdtdYvBwWv6GNToeQjiFXK/A2M57 Y2Fv3qTIHE3ZKvbF7/N2FnPZkndxgGLsQl1QXGdBs4/CreOwT/v0XNf7foWDNhpy7lgi ogFQ== X-Gm-Message-State: ABy/qLYOtPuIEwkvrHXZkghUJMkD7QhFUiK5Vu4Gzs5l8/GSumEzdaig Rk75OrBB0p+Gzm0D7LiOkRNmtw== 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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 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 { -- 2.38.5