Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp638140rwb; Tue, 27 Sep 2022 02:31:28 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4nUugJyVx+7J+eeV+JM/oKoZXtEpv8ozwbFA8EiaZ8zNm5L4mgcSm2MrNHYWU8qLdwUPaB X-Received: by 2002:a17:906:fd8d:b0:780:997:8b7b with SMTP id xa13-20020a170906fd8d00b0078009978b7bmr22492841ejb.635.1664271088169; Tue, 27 Sep 2022 02:31:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664271088; cv=none; d=google.com; s=arc-20160816; b=mQbYx4ASlznQ0+kGgQvsxOuwENMEYiqSxItOEfT7vpnVMIAV3RKe0GRy5uN2rBUN63 rNiQGri/d7s1t8ut2PCHN5yf0brqpP9la1xdQ5v9Ji18zT1cdvHMyxETppprQAuMbsxg j1D8rMk1Y637763bP30powz4fB5PKD/vbloqfUX9V7eKIuwPYOqEGrYSXSj59nhzPkb8 YMZPIeZu4Fji6JIrv1DaINmNZkz2o7dl5q21yHSrch+t35usyJowaaf+GKqfGYhhggJC Orj+6nMIYz6Dre9WnKg3qROl25izFoAD8Ym5L6QBbG5dLNlq9JTwb8iDOzHAz8Jp/fHF Dr3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=zGKP5Wt8s+Izp0RT7HfI6dIBI6KAZhMJfhNjmmY98W4=; b=uAjFv8d2txE9i5RTbg5kj6K7YWcm8Z/SzKWvX7vw0ufAZ33ZAiZSPxLuOg7kR3rNjG gqFRndWfLG+jpH5swDfpBwIYW1qbZOn9EX9eN+WfbGLkRkWM0+hXO1JAkC2L9Coasgfp utbMdf0csh31SiNwV5Et+Jc6x7/D6DziENfG5kzOwA1j0KxWSTqvlhQelysjGr7lWbOG J0tSXKlqibHoC3BMsjbd4AQEb+9OjmQKnbfJOeZBG0p+ZeRG0TOhqJ3eDeq0Sv/HBPr5 XtAEzjQSofB2slZ04aBX5h0o3aODqwQEGTeJLltZFnmqESEvc4mUabvwTNwmKEmQveAI MlYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=0XDh4L75; 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 gt17-20020a1709072d9100b007833077328fsi826810ejc.417.2022.09.27.02.31.01; Tue, 27 Sep 2022 02:31:28 -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=0XDh4L75; 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 S231706AbiI0IgW (ORCPT + 99 others); Tue, 27 Sep 2022 04:36:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231589AbiI0Ifq (ORCPT ); Tue, 27 Sep 2022 04:35:46 -0400 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF2FA13F88 for ; Tue, 27 Sep 2022 01:35:32 -0700 (PDT) Received: by mail-wm1-x32f.google.com with SMTP id z13-20020a7bc7cd000000b003b5054c6f9bso8435524wmk.2 for ; Tue, 27 Sep 2022 01:35:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date; bh=zGKP5Wt8s+Izp0RT7HfI6dIBI6KAZhMJfhNjmmY98W4=; b=0XDh4L75n5xM9BkHE0spGrEwDZGqdf2onTMdk+Rx72eXKp09Az3+KL7A2C2uXRrBoj f6k8dHuN0lmSONofNLBIDvxVPKaTkw3i9l10LHI4qI3lhw1hTmBhoNMz/uUImt9cZtit CX1ijEcZn2v9tY/TeZGcuPjYS1qvdz2C6p7tzqBkvcBX/L0GQ0kvjW2KjAfzfkXs3iHH hAQJb2tIAdUvEsN+31+ZIlVi8YiZeA4gcVSbChNoClrxfWmpzKVfuQ/XMyuGAs7jHiju 8XFNQo0FeqF97auKMdqM3GBQ03Ei8uSkzE87QGkSU/GrW8CyNfjn+c+O2kmIUPBzw/4M d2jA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=references:in-reply-to:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date; bh=zGKP5Wt8s+Izp0RT7HfI6dIBI6KAZhMJfhNjmmY98W4=; b=jJinRWw/JaxIXaJO6zrENj8XK75iMeEnDg7OkdBTm8v1GmeNycZLC3MSejwIWkq45b RBBcGJeHIZqsJpFMcmamIEFurHyn5YHFL8NdE1Z58HSmMNJqXKgONqmqBebzsXh39j8+ j8dnzgzm+8Ao/QlbvFC68JC1Opzr7hVpvLR75w6hsfE6Nxb7bpJBhJlmzWiodBYNIzwe lwXGWHwc6BRLfPTTVB5fXGq+5INoJ7o0U5sDjfm+AbynWx12/A5os1FNW7QB5V/8VBA0 KPd89YvznuA6l0kedOPrxBJv2lO/Zl6UdCwGZVtcCHRpMZP1Ct7Wi30GgBy7BAzxbyws tpIw== X-Gm-Message-State: ACrzQf19CZTIP2+q+sfW4JdbHqzmeMpO+UvY4jTmL28D0YYOQmkyjBSU BBybqXBaww+WGuB1+zOtH02flg== X-Received: by 2002:a05:600c:19d2:b0:3b4:a4cb:2416 with SMTP id u18-20020a05600c19d200b003b4a4cb2416mr1762608wmq.6.1664267730688; Tue, 27 Sep 2022 01:35:30 -0700 (PDT) Received: from localhost.localdomain (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id n30-20020a05600c501e00b003b492b30822sm1122120wmr.2.2022.09.27.01.35.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Sep 2022 01:35:30 -0700 (PDT) From: Jerome Neanne To: lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, nm@ti.com, kristo@kernel.org, dmitry.torokhov@gmail.com, krzysztof.kozlowski+dt@linaro.org, catalin.marinas@arm.com, will@kernel.org, lee@kernel.org, tony@atomide.com, vigneshr@ti.com, bjorn.andersson@linaro.org, shawnguo@kernel.org, geert+renesas@glider.be, dmitry.baryshkov@linaro.org, marcel.ziswiler@toradex.com, vkoul@kernel.org, biju.das.jz@bp.renesas.com, arnd@arndb.de, jeff@labundy.com Cc: afd@ti.com, khilman@baylibre.com, narmstrong@baylibre.com, msp@baylibre.com, j-keerthy@ti.com, jneanne@baylibre.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-input@vger.kernel.org, linux-omap@vger.kernel.org Subject: [PATCH v5 1/6] DONOTMERGE: arm64: dts: ti: Add TI TPS65219 PMIC support for AM642 SK board. Date: Tue, 27 Sep 2022 10:35:15 +0200 Message-Id: <20220927083520.15766-2-jneanne@baylibre.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220927083520.15766-1-jneanne@baylibre.com> References: <20220927083520.15766-1-jneanne@baylibre.com> 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 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 Add support fot the TI Power Management IC TPS65219 on the AM642 SKEVM board. Needed for driver testing but official board support pending. TI commitment is required before board upstream kick-off. Signed-off-by: Jerome Neanne Signed-off-by: Markus Schneider-Pargmann --- arch/arm64/boot/dts/ti/k3-am642-sk.dts | 104 +++++++++++++++++++++++++ 1 file changed, 104 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am642-sk.dts b/arch/arm64/boot/dts/ti/k3-am642-sk.dts index 2620469a7517..565b50810579 100644 --- a/arch/arm64/boot/dts/ti/k3-am642-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am642-sk.dts @@ -150,6 +150,20 @@ vin-supply = <&com8_ls_en>; gpio = <&main_gpio0 48 GPIO_ACTIVE_HIGH>; }; + + vsel_sd_nddr: gpio-regulator { + compatible = "regulator-gpio"; + pinctrl-names = "default"; + pinctrl-0 = <&vsel_sd_nddr_pins_default>; + regulator-name = "tps65219-LDO1-SEL-SD"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + vin-supply = <&ldo1_reg>; + gpios = <&main_gpio0 45 GPIO_ACTIVE_HIGH>; + states = <1800000 0x0>, + <3300000 0x1>; + }; }; &main_pmx0 { @@ -181,6 +195,13 @@ >; }; + main_i2c0_pins_default: main-i2c0-pins-default { + pinctrl-single,pins = < + AM64X_IOPAD(0x0260, PIN_INPUT_PULLUP, 0) /* (A18) I2C0_SCL */ + AM64X_IOPAD(0x0264, PIN_INPUT_PULLUP, 0) /* (B18) I2C0_SDA */ + >; + }; + main_i2c1_pins_default: main-i2c1-pins-default { pinctrl-single,pins = < AM64X_IOPAD(0x0268, PIN_INPUT_PULLUP, 0) /* (C18) I2C1_SCL */ @@ -267,6 +288,12 @@ AM64X_IOPAD(0x00bc, PIN_INPUT, 7) /* (U8) GPIO0_46 */ >; }; + + vsel_sd_nddr_pins_default: vsel-sd-nddr-pins-default { + pinctrl-single,pins = < + AM64X_IOPAD(0x00b8, PIN_INPUT, 7) /* (Y7) PRG1_PRU0_GPO0.GPIO0_45 */ + >; + }; }; &mcu_uart0 { @@ -315,6 +342,83 @@ status = "disabled"; }; +&main_i2c0 { + pinctrl-names = "default"; + pinctrl-0 = <&main_i2c0_pins_default>; + clock-frequency = <400000>; + status = "okay"; + + tps65219: pmic@30 { + compatible = "ti,tps65219"; + reg = <0x30>; + system-power-controller; + + buck1-supply = <&vcc_3v3_sys>; + buck2-supply = <&vcc_3v3_sys>; + buck3-supply = <&vcc_3v3_sys>; + ldo1-supply = <&vcc_3v3_sys>; + ldo2-supply = <&buck2_reg>; + ldo3-supply = <&vcc_3v3_sys>; + ldo4-supply = <&vcc_3v3_sys>; + + regulators { + buck1_reg: buck1 { + regulator-name = "VDD_CORE"; + regulator-min-microvolt = <750000>; + regulator-max-microvolt = <1000000>; + regulator-boot-on; + regulator-always-on; + }; + + buck2_reg: buck2 { + regulator-name = "VCC1V8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-boot-on; + regulator-always-on; + }; + + buck3_reg: buck3 { + regulator-name = "VDD_LPDDR4"; + regulator-min-microvolt = <1100000>; + regulator-max-microvolt = <1100000>; + regulator-boot-on; + regulator-always-on; + }; + + ldo1_reg: ldo1 { + regulator-name = "VDDSHV_SD_IO_PMIC"; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <3300000>; + regulator-allow-bypass; + }; + + ldo2_reg: ldo2 { + regulator-name = "VDDAR_CORE"; + regulator-min-microvolt = <850000>; + regulator-max-microvolt = <850000>; + regulator-boot-on; + regulator-always-on; + }; + + ldo3_reg: ldo3 { + regulator-name = "VDDA_1V8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-boot-on; + regulator-always-on; + }; + + ldo4_reg: ldo4 { + regulator-name = "VDD_PHY_2V5"; + regulator-min-microvolt = <2500000>; + regulator-max-microvolt = <2500000>; + regulator-boot-on; + regulator-always-on; + }; + }; + }; +}; &main_i2c1 { pinctrl-names = "default"; pinctrl-0 = <&main_i2c1_pins_default>; -- 2.17.1