Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp726636rwl; Wed, 29 Mar 2023 07:43:30 -0700 (PDT) X-Google-Smtp-Source: AKy350aRAJ46DIB2lccF+1Uk5Kd/runTVf9BlpNacfn+dsCMw/ZmC2S3sADGnwAyzKpzmGjuVuja X-Received: by 2002:a17:907:b9d9:b0:93b:1cc5:4a1 with SMTP id xa25-20020a170907b9d900b0093b1cc504a1mr20033649ejc.40.1680101009816; Wed, 29 Mar 2023 07:43:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680101009; cv=none; d=google.com; s=arc-20160816; b=bHq9G0erAG5L3nUJ2QtCsKTwkNJfOj9ZGS44JZscbbvpRLB79Azl63UkFM2jawn+80 8LmKtxabl8JXtREDgh9YJJmv4Bh2GyzdqQDeRRFQ/og8eqU1pganFlP/qcqLRba+s1j6 3yChXk80ISbJJIidP+HOm/IQF1Y2YfVYc0ll+a5/zeYApnTKtBZ1F70Arjw+KP+Jshtk A5gJ8Tss7ZVkjQFc8zBf35/nTLehnaKmfc0ORbQ5dCO1s74w8UZ4CLQBow2evq/lhHZt m6NoDa9jbODkkJVQ6fjKA9zH75FZWaFbzMvGNQ6NTzwUYfCBMLTLY1MSSw/PtCUnt6Ue wrOw== 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=o7Irmqu5FyHvI6ZeGAamfBce+DBpyelCHsUucnrnpOE=; b=foyhmaecPIPRLZKml+mIfeOJWl5EIut5benfZX93o/wheeCfQ0vWaURLhRAm/gA/d0 jG9SdUKjbWO/vBUVMxf+vm3x79KrmTMVZq1IM/0CJGTfris7Fo3DomD2VTPXah4u1HZ9 FzBBDOKFOH+EkzOUD3anbVeYoHv+2wsQaopz+YgMDaLPre5COA1d+CbQEIqRz3BT1Y5o uqikkctSY41cmGIN9kYI0X4+rhi/PuoXIENGEYl9Vyi5M4TdgWiZIJRJhMVa/Eb+U+09 PYyvKOs8p0E7+7VPDpCVMT9c3LanoreBgJw4l4x7hS+MYNSpiF0cIXWYq5PrmC/4BYge VIHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=5cn3dRcp; 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 x17-20020a1709064a9100b009227ddac2b7si17464473eju.434.2023.03.29.07.43.05; Wed, 29 Mar 2023 07:43:29 -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.20210112.gappssmtp.com header.s=20210112 header.b=5cn3dRcp; 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 S229909AbjC2OfJ (ORCPT + 99 others); Wed, 29 Mar 2023 10:35:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231287AbjC2Oev (ORCPT ); Wed, 29 Mar 2023 10:34:51 -0400 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FD98B46C for ; Wed, 29 Mar 2023 07:30:51 -0700 (PDT) Received: by mail-wr1-x434.google.com with SMTP id i9so15966019wrp.3 for ; Wed, 29 Mar 2023 07:30:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1680100193; 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=o7Irmqu5FyHvI6ZeGAamfBce+DBpyelCHsUucnrnpOE=; b=5cn3dRcptS4ct+0vzsIJ21mh6hnxGjI0CMFZWUFEgWlxYoxcT0KnEt05j5YJnMezgK 9c+FXyMwDEQV7X1+hJXa+IEfLvWUD6rJJBXfjxZFlLIUk32pyKb3g7DqnpPFPsBG0m+i Sa37w5l1MbdZc6gp7FfvGglP8aAtjWPSXwtlpMJ/6XPjtFUeFi4Lgdt0xGHmPAT87oFQ hK2EsBuAYyETljjEQ6zTC+pPwqN0N3Bv6qRVm5W8yFrpJdNy/5PK211siDEEyWRtil5Y NR9pPE0DZs7CnXQlBO2GK2vfI2guahuMFZd4nflT8/p0kwJLhEjGwPpqbw5g+B5x5ps/ JxtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680100193; 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=o7Irmqu5FyHvI6ZeGAamfBce+DBpyelCHsUucnrnpOE=; b=HCnxEFVciWoURMeG3ujWsDAqB/Wus82FteQgx8WN3Z64WjRPxaRf5bE1Omjx495/Hy xCa2wqhtJdqm6uTnNFvSKv6FsFRi7gXf5wFoHe7Oe7StWAd3jEHeUYJ8bYU0QK3vCUbW HqS0x9tyt6Cm0QJNVmEm2h5TPiF7hMafXXWapR/JbybO/geN9+EjkPBjFhtUr1smyn8e 9NBcEjPWZJpdOosHhVNr7Normj/tO0jOXrjcAVV+DNE+wDn4igJLchbGwgeNkNI1ll6M w0HIQB/Z/1rqhXeMeuXpvqpmgKJiwk4DMieMBJF6zYuwou7+nJ6VgOKwJtNjDKPVhEDu Ctvg== X-Gm-Message-State: AAQBX9flnbKFMP+trBBMPHjpguT5AO9tVxtqg6zHVMqgmLNwq8hpbQFt VxAzXIF01o5Bi7GjExZwa8loBg== X-Received: by 2002:a5d:55c2:0:b0:2d8:7bba:5bb6 with SMTP id i2-20020a5d55c2000000b002d87bba5bb6mr15764204wrw.28.1680100193563; Wed, 29 Mar 2023 07:29:53 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:28d:66d0:7049:3791:78c8:6c3]) by smtp.gmail.com with ESMTPSA id b9-20020adfde09000000b002daeb108304sm17270792wrm.33.2023.03.29.07.29.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Mar 2023 07:29:53 -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 Subject: [PATCH v1 3/4] arm64: dts: ti: k3-am62a7-sk: Add support for TPS6593 PMIC Date: Wed, 29 Mar 2023 16:29:47 +0200 Message-Id: <20230329142948.833800-4-eblanc@baylibre.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230329142948.833800-1-eblanc@baylibre.com> References: <20230329142948.833800-1-eblanc@baylibre.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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: 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 | 94 +++++++++++++++++++++++++ 1 file changed, 94 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts b/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts index 5c9012141ee2..c8ed61eb398d 100644 --- a/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts @@ -191,11 +191,105 @@ 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: tps659312@48 { + compatible = "ti,tps6593"; + reg = <0x48>; + ti,primary-pmic; + system-power-controller; + + pinctrl-names = "default"; + pinctrl-0 = <&pmic_irq_pins_default>; + interrupt-parent = <&mcu_gpio0>; + interrupts = <0 IRQ_TYPE_EDGE_FALLING>; + + ti,multi-phase-id = <123>; + + 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 = <750000>; + regulator-max-microvolt = <850000>; + 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 { -- 2.39.2