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 0F9D5C77B7C for ; Fri, 12 May 2023 14:41:36 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2E66B86307; Fri, 12 May 2023 16:39:25 +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="b8rUZBf/"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9F341862B5; Fri, 12 May 2023 15:17:59 +0200 (CEST) Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) (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 4722D86292 for ; Fri, 12 May 2023 15:17:57 +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-wr1-x430.google.com with SMTP id ffacd0b85a97d-3063891d61aso9508133f8f.0 for ; Fri, 12 May 2023 06:17:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20221208.gappssmtp.com; s=20221208; t=1683897476; x=1686489476; 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=jjwEjlrbywqCj2q0+LJK9gZvwdMwd4i0S3qX2NFpfxI=; b=b8rUZBf/9buZXaYuXUk4PDg6fqu+04icnh87/kMXH6ib9GdpOKsbi+1wjcubgomKPM UoCT1kHFEAIWSao3LvwxoEqCYTwqtq49Ja8E0hAJsLo6TLDgHzl6ME/aa2TemPcisYgK 3FDMS5T7Xq3jxKdvBUi+ku5yyWR8QI3hFALH3vfaYTOtVVSBN4ri4rcK/niNBbII3vmc MOMPo1XLlbS1pd/ZDIRnDZatErSpqZBz3W/5+zmve9QCLDKMsf6XGFeqwh4DVokhfjkJ lFbMbkMNEN/OamX6MkcmDgIwP1Cc76p0DT5yS0wSOZJ6uEM5hSUCGz3jd6ayZXjBsnkg vwsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683897476; x=1686489476; 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=jjwEjlrbywqCj2q0+LJK9gZvwdMwd4i0S3qX2NFpfxI=; b=hBKQ99kRc2ATcsZOkQXppqkpygIP8FQs1/AsBjqbD//ReuRB519yAXDOd/4uY+2yLn GOA0ND2QL3fwxZZxdQVeMOi5iCGWogm+8ne6TvnDl+HPd4BEypu44AQxuzbZTL40AuLf q8fp1yQu4elZqQKi/ivASt8Y2MTNH5qW1lFEMS39kLoOqG8oBMUvojxFAv8NgxHFKvjG uImrDOns6qME/BD+OGOmu0vNkCX03X2tjxPq8RBak5xxFKUoz38eJUyTkLyndDGRjTW9 TCROOUubinq4wp3XjMq2cJIxUELcFvH96gUDSy19zWXKLNExz8LeCDlM6UHyD+UK/3d1 QELw== X-Gm-Message-State: AC+VfDzohv38llSd7AWmes9yHvidG2Z6Lg2rPKGGxpzB6JRp2zBh65kZ dKdIlFqhYRTzN/0sOJwfN4Cvs2uvrj0gur+ZL+Q= X-Google-Smtp-Source: ACHHUZ6HS6Opez0TYew+/o667RXuYlBbWeYSK4TregGyU8hzEAocTL3TRd4q/nAVmFC5UqIfWDtMbw== X-Received: by 2002:adf:e4c7:0:b0:2f1:e162:d48 with SMTP id v7-20020adfe4c7000000b002f1e1620d48mr16672594wrm.47.1683897476415; Fri, 12 May 2023 06:17:56 -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.17.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 May 2023 06:17:56 -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 11/18] DONOTMERGE: arm: dts: k3-j7200: Add TP6594 family PMICs Date: Fri, 12 May 2023 15:17:38 +0200 Message-Id: <20230512131745.2321727-12-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 From: Jerome Neanne Add support for TPS6594 PMIC family devices: - regulators (bucks and LDOs) on WKUP_I2C0 bus, - watchdog on MCU_I2C0 bus. Signed-off-by: Esteban Blanc Signed-off-by: Jerome Neanne Signed-off-by: Apelete Seketeli --- .../k3-j7200-common-proc-board-u-boot.dtsi | 27 +++++++++ .../arm/dts/k3-j7200-r5-common-proc-board.dts | 56 ++++++++----------- 2 files changed, 49 insertions(+), 34 deletions(-) diff --git a/arch/arm/dts/k3-j7200-common-proc-board-u-boot.dtsi b/arch/arm/dts/k3-j7200-common-proc-board-u-boot.dtsi index f57c2306ba..5088f918e8 100644 --- a/arch/arm/dts/k3-j7200-common-proc-board-u-boot.dtsi +++ b/arch/arm/dts/k3-j7200-common-proc-board-u-boot.dtsi @@ -120,6 +120,15 @@ &wkup_i2c0 { bootph-pre-ram; + status = "okay"; +}; + +&mcu_i2c0 { + status="okay"; + tps65941_wd: watchdog@12 { + compatible = "ti,tps65941_watchdog"; + reg = <0x12>; + }; }; &main_i2c0 { @@ -196,3 +205,21 @@ &main_r5fss0 { ti,cluster-mode = <0>; }; + +&wkup_i2c0 { + bootph-pre-ram; + lp876441: pmic@4c { + bootph-pre-ram; + compatible = "ti,lp876441"; + regulators { + bootph-pre-ram; + buckb1: buck1 { + bootph-pre-ram; + }; + }; + }; +}; + +&tps659414 { + compatible = "ti,tps659411"; +}; diff --git a/arch/arm/dts/k3-j7200-r5-common-proc-board.dts b/arch/arm/dts/k3-j7200-r5-common-proc-board.dts index e62f9218e8..1318edf9af 100644 --- a/arch/arm/dts/k3-j7200-r5-common-proc-board.dts +++ b/arch/arm/dts/k3-j7200-r5-common-proc-board.dts @@ -21,6 +21,27 @@ firmware-loader = &fs_loader0; }; + 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 { bootph-all; compatible = "u-boot,fs-loader"; @@ -126,13 +147,6 @@ >; }; - wkup_i2c0_pins_default: wkup-i2c0-pins-default { - pinctrl-single,pins = < - J721E_WKUP_IOPAD(0x100, PIN_INPUT_PULLUP, 0) /* (F20) WKUP_I2C0_SCL */ - J721E_WKUP_IOPAD(0x104, PIN_INPUT_PULLUP, 0) /* (H21) WKUP_I2C0_SDA */ - >; - }; - mcu_fss0_hpb0_pins_default: mcu-fss0-hpb0-pins-default { pinctrl-single,pins = < J721E_WKUP_IOPAD(0x0, PIN_OUTPUT, 1) /* (E20) MCU_OSPI0_CLK.MCU_HYPERBUS0_CK */ @@ -247,35 +261,9 @@ ti,driver-strength-ohm = <50>; }; -&wkup_i2c0 { - bootph-pre-ram; - lp876441: lp876441@4c { - compatible = "ti,lp876441"; - reg = <0x4c>; - bootph-pre-ram; - pinctrl-names = "default"; - pinctrl-0 = <&wkup_i2c0_pins_default>; - clock-frequency = <400000>; - - regulators: regulators { - bootph-pre-ram; - buck1_reg: buck1 { - /*VDD_CPU_AVS_REG*/ - regulator-name = "buck1"; - regulator-min-microvolt = <800000>; - regulator-max-microvolt = <1250000>; - regulator-always-on; - regulator-boot-on; - bootph-pre-ram; - }; - }; - }; - -}; - &wkup_vtm0 { - vdd-supply-2 = <&buck1_reg>; bootph-pre-ram; + vdd-supply-2 = <&buckb1>; }; &main_i2c0 { -- 2.34.1