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 1704DC77B7C for ; Fri, 12 May 2023 14:39:01 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E786B862A0; Fri, 12 May 2023 16:38:58 +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="ik4DfJJB"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 510B586292; Fri, 12 May 2023 15:17:50 +0200 (CEST) Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) (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 6FC76860A9 for ; Fri, 12 May 2023 15:17:47 +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-x32c.google.com with SMTP id 5b1f17b1804b1-3f42d937d2eso28474835e9.2 for ; Fri, 12 May 2023 06:17:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20221208.gappssmtp.com; s=20221208; t=1683897466; x=1686489466; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=KNdunZq7Yh3A2aNtIVDDkhDaircUc5/RA+E6SlAc6Lw=; b=ik4DfJJBcVwmrCXH520zQvBqkO+k3f+Yj1sZUxL4LsKMFN+41rfdXT5hPHL2y5eSPb 1z0eNxyTiFSQYYuGMSrpI1sWESKLsNt0X4JJAQ4ROWTDuNUn5gn7GFmIzHfGeh8feL0+ IQsuGnuPTh6evwwKyTn67RzcpjwgNCRTqB8jF/qexGDPx+Rab2Rln2TgGCC/1zVxmw0U 03dfH/KGLHHSx89huEMJ7V0lp7Da7rij8gb4sk4/s9iLHrzFJjs5rEtDf072dMFocydg YGZ9mM8Ki32ecU80UtSRwTyo+nWSHNdRB1xzKNJOpoXaj5CYivSE0O+8i6Kmvu78iI8X i1wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683897466; x=1686489466; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=KNdunZq7Yh3A2aNtIVDDkhDaircUc5/RA+E6SlAc6Lw=; b=RWQ0ktnOjkfPQmHGypbi4KeJekWYS4O4A5xtJmHmWXx5qIKtqFh0L2Z6IEYX53Nk4W 6TyQBqwkVgREv7L5ua4WRk//ACWR+7KEZIIIr7OEcPYv0UZ9bq3iOrw/DdfIyks30nvT 9aM7FdtDmtoRAVuOriIbycOera3iWYK/637eHMKIXh1onEuUhe/HHqZFU3k1877BHfg5 uhuQosJGp1UChsNOrEoaqp7E4gZnYOaPjhO72zF4D1VlP2VuH1PsPkNfLE23OF81N7kW yA6uhjbYsRd0rNrfrzXaFtVdsVwcJVePRSeDqNNjjE1Z8EYyB0sNPHXnWaT/sMDpTDth 9CfA== X-Gm-Message-State: AC+VfDzx5yyXbTNp3ekwRU0p4jb2GvMmiMUI33KUuI/jyMhzUXXkX+lN iyDBgo8uRqD8raMPCFBImLDtwJWWbflMlA8ePQE= X-Google-Smtp-Source: ACHHUZ4brfSIrUQ+wWnmBPO+eVHL/IVMkuNhK28cjmF6Q6iwBZFtFMNKg28AMvVT+t+dvjFb2cvDjg== X-Received: by 2002:a05:600c:22ca:b0:3f4:2158:289b with SMTP id 10-20020a05600c22ca00b003f42158289bmr14908889wmg.18.1683897466558; Fri, 12 May 2023 06:17:46 -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.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 May 2023 06:17:46 -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: Subject: [PATCH v3 00/18] TI TPS6594 PMIC support for multiple TI EVMs Date: Fri, 12 May 2023 15:17:27 +0200 Message-Id: <20230512131745.2321727-1-aseketeli@baylibre.com> X-Mailer: git-send-email 2.34.1 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 TPS6594 is a Power Management IC which provides regulators and others features like GPIOs, RTC, watchdog, ESMs (Error Signal Monitor), and PFSM (Pre-configurable Finite State Machine). The SoC and the PMIC can communicate through the I2C or SPI interfaces. TPS6594 is the super-set device while TPS6593 and LP8764 are derivatives. This series fixes LDO voltage conversion for TPS6594 PMIC, it adds support for its derivatives. The features implemented are: - Regulators - Watchdog disable Watchdog disable is not a watchdog driver implementation. Watchdog is active by default causing a reboot even if not used. This implementation allows to disable the watchdog at boot time. This patch suite can be applied only after u-boot dts upstream is re-synced on latest Linux dts: Link: https://gist.github.com/nmenon/030b11b085473fa008145429b39fcc75 This should be applied on top of Linux patch series (for dts inheritence): Link: https://lore.kernel.org/all/20230417154832.216774-1-eblanc@baylibre.com/ Additionally, it should also be applied on top of U-Boot patch series for j784s4 initial board support: Link: https://lore.kernel.org/all/20230321141028.24456-1-hnagalla@ti.com/ Tested on boards listed below (resynched manually on Linux 6.3 dts) Supported boards: - j721eXSOMXEVM: Link: https://www.ti.com/tool/J721EXSOMXEVM - j721S2XSOMXEVM: Link: https://www.ti.com/tool/J721S2XSOMXEVM - j7200XSOMXEVM: Link: https://www.ti.com/tool/J7200XSOMXEVM - j784S4XEVM Link: https://www.ti.com/tool/J784S4XEVM - AM62A-SKEVM: Link: https://www.ti.com/tool/SK-AM62A-LP basic tests: => pmic list => regulator list => regulator dev reg_name_to_be_tested => regulator info => regulator value => regulator value my_test_val => regulator value Check watchdog reset is not happening when dip switch SW2 on GPIO8 is High. History: v1 Changes: - Link: https://lore.kernel.org/all/20230406153820.2800054-1-jneanne@baylibre.com/ v2 Changes: - added support for 2 additional boards: j721s2 and j7200 - Convert driver model tags to use new schema: 8c103c33f - Link: https://lore.kernel.org/all/20230407133347.2957435-1-jneanne@baylibre.com/ v3 Changes: - addressed v2 review comments - clear WD_EN bit in stop_watchdog() function - use generic node names for pmic and watchdog - added support for 1 additional board: j784s4 Apelete Seketeli (3): DONOTMERGE: arch: arm: dts: k3-j784s4-evm: Add TI TPS6594 PMIC support arch: arm: dts: k3-j784s4-r5-evm: Add TI TPS6594 PMIC support configs: j784s4_evm_a72: Enable TI TPS6594 PMIC support Esteban Blanc (4): configs: j7200_evm: Enable TP6594 family PMICs configs: j721s2_evm: Enable TP6594 PMIC and AVS0 board: ti: k3-j721s2: Force TPS65941 PMIC WD disable board: ti: k3-j721s2: Enable AVS0 on board init Jerome Neanne (10): drivers: pmic: TPS65941 add support for WD disable drivers: regulator: Fixes for TPS65941 LDO voltage conversion configs: j721e_evm: Add support for TPS65941 PMICs on j721e TI EVM board board: ti: k3-j721e: Force TPS65941 PMIC WD disable on j721e TI EVM board DONOTMERGE: arm: dts: k3-j721e: u-boot overlay for TI tps6594 PMIC DONOTMERGE: arm: dts: k3-j721e: refactor r5 board file to use Linux dts tps6594 description DONOTMERGE: arm: dts: k3-j721e: realign node name on linux dts name DONOTMERGE: arm: dts: k3-am62a7-sk: Add TI TPS6593 PMIC support DONOTMERGE: arm: dts: k3-j7200: Add TP6594 family PMICs DONOTMERGE: arch: arm: dts: k3-j721s2: Add TPS6594 family PMICs Julien Panis (1): configs: am62ax_evm_a53: Enable support for TI TPS6593 PMIC arch/arm/dts/k3-am62a7-sk-u-boot.dtsi | 24 +++- .../k3-j7200-common-proc-board-u-boot.dtsi | 27 ++++ .../arm/dts/k3-j7200-r5-common-proc-board.dts | 56 +++----- .../k3-j721e-common-proc-board-u-boot.dtsi | 22 +++ .../k3-j721e-r5-common-proc-board-u-boot.dtsi | 2 +- .../arm/dts/k3-j721e-r5-common-proc-board.dts | 48 +++---- .../k3-j721s2-common-proc-board-u-boot.dtsi | 37 ++++- .../dts/k3-j721s2-r5-common-proc-board.dts | 44 ++++++ arch/arm/dts/k3-j784s4-evm-u-boot.dtsi | 12 ++ arch/arm/dts/k3-j784s4-r5-evm.dts | 134 ++++++++++++++++++ board/ti/j721e/evm.c | 8 ++ board/ti/j721s2/evm.c | 18 ++- configs/am62ax_evm_a53_defconfig | 8 +- configs/j7200_evm_a72_defconfig | 6 + configs/j721e_evm_a72_defconfig | 6 + configs/j721s2_evm_a72_defconfig | 6 + configs/j721s2_evm_r5_defconfig | 6 + configs/j784s4_evm_a72_defconfig | 19 +-- drivers/power/pmic/tps65941.c | 61 ++++++++ drivers/power/regulator/tps65941_regulator.c | 71 ++++++++-- include/power/tps65941.h | 27 +++- 21 files changed, 558 insertions(+), 84 deletions(-) -- 2.34.1