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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 62310C77B7C for ; Fri, 12 May 2023 14:42:44 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4148D8631A; Fri, 12 May 2023 16:39:34 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=baylibre-com.20221208.gappssmtp.com header.i=@baylibre-com.20221208.gappssmtp.com header.b="U7MLtYIc"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3AC928626C; Fri, 12 May 2023 15:18:09 +0200 (CEST) Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id E58E9862A8 for ; Fri, 12 May 2023 15:18:02 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=aseketeli@baylibre.com Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-3f475366514so24692645e9.2 for ; Fri, 12 May 2023 06:18:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20221208.gappssmtp.com; s=20221208; t=1683897482; x=1686489482; 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=48mLVR9BGfTueDsM7DPmihIZiCz5v6RNlmxZJpCd9+Y=; b=U7MLtYIcP7gxjgYwjYLGynSozrQeI/yxFQ4/NHEqrP3zvtmztZ222FI4lmunh++4bi 4UmOHqo8+KGp4NG2z4BBKzGnicwXHyVxbGFm6TX5QJpktmCbeWU4Zpe8nVfjJIw2URPL k0fVIHkXAWb6s5F7k/TRDO3trRBbelA0kmmyMFu9pNrj5p9m4z0Mwst/gapjMsUXnS1g TdGGwuQsWFAWKh8iK6pIA95zOio8Fl+0QrNVqnGjAJDFblPmHhwGBAurE3uRAt1lOBRh s88Ol/tZ7CTMiWGSKCd35xkH0UAzX7fPd3+/C+FwKGpxMPj/LnITKa5z24/rGoL9MaNu p/Lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683897482; x=1686489482; 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=48mLVR9BGfTueDsM7DPmihIZiCz5v6RNlmxZJpCd9+Y=; b=gFsluzVSELXNEwFjafiztHwEiN8X0Gq+RzUmbboa2NPXvZW85+pSM3d91UWJ3ZqNaj YFA1f79yT9uBeckyRSgt5hwUWf4K4jhspuzhoVqMGl3Fu83kyq8fj3+4iN7MoG5jRnfA yP/QSM0zQhtpVKzual206FkEWsIRvv639ZWZGAuYplgAgW/RuJLnE6b5szEg5qir94uS eDZrwMvI2tI3BteO/kJfVihA1/3LbO7GL6vrgRza+GcbAyFSD3D+yZdgUNo7uuAQ+nZa eBZjny2llVwefXun7239wpjma9Ea+jre0DG8rE8/2oYVFGAJ4mSM0xZ7hj+RJuS+L/Vv jyyQ== X-Gm-Message-State: AC+VfDwIc2pj+AECG/8vM4TEpiM3p/vTM+LpqZxn80tKCTaMlf/1ziwm klwaARxrAzYETZjVAGVnc3lmTDtVtUEUaFDcaYM= X-Google-Smtp-Source: ACHHUZ66Zie1v3wmF7Y4zJhMIqnQnDE7Ikrp8TD1L1u5xtejX2A+2uJEEFoiW+aMWBtPzVe2mAR0Ew== X-Received: by 2002:a1c:f60a:0:b0:3f1:76d0:8bb0 with SMTP id w10-20020a1cf60a000000b003f176d08bb0mr16802193wmc.36.1683897481779; Fri, 12 May 2023 06:18:01 -0700 (PDT) Received: from FRILM-EL-ITE738.lan ([2001:861:324d:93:9ce7:d81a:148f:69ad]) by smtp.gmail.com with ESMTPSA id n22-20020a7bcbd6000000b003f41bb52834sm19206881wmi.38.2023.05.12.06.18.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 May 2023 06:18:01 -0700 (PDT) From: Apelete Seketeli To: u-boot@lists.denx.de, a-govindraju@ti.com, vigneshr@ti.com, bb@ti.com, hnagalla@ti.com, jh80.chung@samsung.com, nm@ti.com, sjg@chromium.org, jpanis@baylibre.com, aseketeli@baylibre.com, g-vlaev@ti.com, jneanne@baylibre.com, eblanc@baylibre.com, m-chawdhry@ti.com, vaishnav.a@ti.com, sinthu.raja@ti.com, a-nandan@ti.com, michal.simek@amd.com, j-keerthy@ti.com Cc: sterzik@ti.com, u-kumar1@ti.com, khilman@baylibre.com Subject: [PATCH 17/18] arch: arm: dts: k3-j784s4-r5-evm: Add TI TPS6594 PMIC support Date: Fri, 12 May 2023 15:17:44 +0200 Message-Id: <20230512131745.2321727-18-aseketeli@baylibre.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230512131745.2321727-1-aseketeli@baylibre.com> References: <20230512131745.2321727-1-aseketeli@baylibre.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Fri, 12 May 2023 16:38:57 +0200 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Add support for TPS6594 PMIC devices : - regulators (bucks and LDOs) on WKUP_I2C0 bus, - watchdog on MCU_I2C0 bus. Signed-off-by: Apelete Seketeli --- arch/arm/dts/k3-j784s4-r5-evm.dts | 134 ++++++++++++++++++++++++++++++ 1 file changed, 134 insertions(+) diff --git a/arch/arm/dts/k3-j784s4-r5-evm.dts b/arch/arm/dts/k3-j784s4-r5-evm.dts index 7350a9be34..27b91100af 100644 --- a/arch/arm/dts/k3-j784s4-r5-evm.dts +++ b/arch/arm/dts/k3-j784s4-r5-evm.dts @@ -22,6 +22,27 @@ remoteproc1 = &a72_0; }; + evm_12v0: fixedregulator-evm12v0 { + /* main supply */ + compatible = "regulator-fixed"; + regulator-name = "evm_12v0"; + regulator-min-microvolt = <12000000>; + regulator-max-microvolt = <12000000>; + regulator-always-on; + regulator-boot-on; + }; + + vsys_3v3: fixedregulator-vsys3v3 { + /* Output of LM5140 */ + compatible = "regulator-fixed"; + regulator-name = "vsys_3v3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + vin-supply = <&evm_12v0>; + regulator-always-on; + regulator-boot-on; + }; + fs_loader0: fs_loader@0 { compatible = "u-boot,fs-loader"; u-boot,dm-pre-reloc; @@ -97,6 +118,105 @@ }; }; +&wkup_gpio0 { + status = "okay"; +}; + +&wkup_i2c0 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&wkup_i2c0_pins_default>; + clock-frequency = <400000>; + tps659413: pmic@48 { + compatible = "ti,tps65941-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; + }; + }; + }; +}; + &main_pmx0 { u-boot,dm-spl; @@ -144,6 +264,20 @@ J784S4_WKUP_IOPAD(0x0b4, PIN_OUTPUT, 0) /* (K34) WKUP_UART0_TXD */ >; }; + + wkup_i2c0_pins_default: wkup_i2c0_pins_default { + pinctrl-single,pins = < + J784S4_WKUP_IOPAD(0x100, PIN_INPUT, 0) /* (N33) WKUP_I2C0_SCL */ + J784S4_WKUP_IOPAD(0x104, PIN_INPUT, 0) /* (N35) WKUP_I2C0_SDA */ + >; + }; + + pmic_irq_pins_default: pmic-irq-pins-default { + pinctrl-single,pins = < + /* (G33) MCU_OSPI1_CSn1.WKUP_GPIO0_39 */ + J784S4_WKUP_IOPAD(0x060, PIN_INPUT, 7) + >; + }; }; &sms { -- 2.34.1