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 21EE2C77B61 for ; Fri, 7 Apr 2023 13:34:00 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 22894860F1; Fri, 7 Apr 2023 15:33: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.20210112.gappssmtp.com header.i=@baylibre-com.20210112.gappssmtp.com header.b="iJJy0kGl"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id F0E7786113; Fri, 7 Apr 2023 15:33:55 +0200 (CEST) Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) (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 75BE085DD7 for ; Fri, 7 Apr 2023 15:33:52 +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=jneanne@baylibre.com Received: by mail-wr1-x443.google.com with SMTP id m2so42330026wrh.6 for ; Fri, 07 Apr 2023 06:33:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1680874432; x=1683466432; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=i0cPGKCIINozrdLeDzRNVP5H4vX2Ky39P5SdjfNHKO4=; b=iJJy0kGlIQPvy/wKk6+ylspdz9Lf67bkBn25QlqOq4brTKRmsd3B1198XWbumALDLn fiRb1QQeHk1vWj8oj1W8mG/H4vnsaOTIQtIwoOX6vmqk+UBH6k2B0/1Ns2UUzTJsm2iq /WVG7Cmkg+JJBazkTDFGKvi58/iQ6E5bZHWQ97axea9vQg6Y3F/IKwLK0S5F/7IwaIXr z5ru250Rp36T0pQ6kKNJTXeDu+yWlwWW+HlKdYe0p+hU0pcFSNdVNelyLcjeOQG/bljb 054va91K/PrWOgsdx0wGs/+Cb0yMEOhgPCAmg0p9o4cIDcu2T5MFxreJM9JPfwL0Z5SL yeCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680874432; x=1683466432; 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=i0cPGKCIINozrdLeDzRNVP5H4vX2Ky39P5SdjfNHKO4=; b=au/o/VSjFWBqrU3AN/29nvtXdTA/XcBtoas2FAMmiAm3T9rKrICe45MVG5jcmOf3tn qbpgPdyogmD5kScTTrtIx0bMKzFNsTUO+7AA1JFXT0Zja2sxRwx/73aN/HA0CN5Bl0kL 8RD5Cz/Witpv0V9e2DVODXSx2OqrHDmZG1fFBo7szavxbNMF+zlH4GLLsg5YAz6XznLJ HQi2u2HPEqPY4thKAzCrDz1NhHTOfKPQ3+t/yV3fn4JZ3aujosjHJONO+rViwTu0yawo gvDp8TQHP4zuw2cJ4IDmkf1VgWpwC0Jjflz+dzUX7uSU+Lca3kcKvsbpLG48UspN116S azFw== X-Gm-Message-State: AAQBX9e00sgvj3RMwjKG0H0PgnUfHzSPjtOdfXPAwKa5zIZWsPk5DS8W NCDgQusx518GYcc00Sj1v/9Zgw== X-Google-Smtp-Source: AKy350bjTKBXKDJvt1WTnqg0Dw67k+CVVepBFbDuf0aftMSNG90Kei7t3NxPhUm4GwrdVUYHBQCf9Q== X-Received: by 2002:a5d:4411:0:b0:2ef:b614:3269 with SMTP id z17-20020a5d4411000000b002efb6143269mr113889wrq.23.1680874431849; Fri, 07 Apr 2023 06:33:51 -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 z16-20020a5d4c90000000b002cf1c435afcsm4573138wrs.11.2023.04.07.06.33.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Apr 2023 06:33:51 -0700 (PDT) From: Jerome Neanne To: vigneshr@ti.com, bb@ti.com, jh80.chung@samsung.com, nm@ti.com, g-vlaev@ti.com, d-gerlach@ti.com, jpanis@baylibre.com, jneanne@baylibre.com, vaishnav.a@ti.com, michal.simek@amd.com, j-keerthy@ti.com Cc: u-boot@lists.denx.de, sterzik@ti.com, u-kumar1@ti.com, eblanc@baylibre.com, khilman@baylibre.com Subject: [PATCH v2 00/13] TI TPS6594 PMIC support for multiple TI EVMs Date: Fri, 7 Apr 2023 15:33:34 +0200 Message-Id: <20230407133347.2957435-1-jneanne@baylibre.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 LP8764X are derivatives. This series fixes LDO voltage conversion for TPS6594 PMIC, it adds support for its derivatives. The features implemented are: - Regulators - WD disable WD disable is not a watchdog driver implementation. Watchdog is active by default causing a reboot even if not used. This implementation allow to disable the watchdog at boot time. Due to current situation with upstream u-boot dts, this patch suite can be applied only after u-boot dts upstream is resynched 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/20230406075622.8990-1-jpanis@baylibre.com/ Link: https://lore.kernel.org/all/20230328091448.648452-1-eblanc@baylibre.com/ Tested on boards listed below (resynched manually on Linux 6.3 dts) Supported boards: - j721eXSOMXEVM: Link: https://www.ti.com/tool/J721EXSOMXEVM - j721s2: Link: https://www.ti.com/tool/J721S2XSOMXEVM - j7200XSOMXEVM: Link: https://www.ti.com/tool/J7200XSOMXEVM - 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 WD reset is not happening when dip switch SW2 on GPIO8 is High. History: v1 gated by moderator, no link available Changes: - added support for 2 additional boards: j721s2 and j7200 - Convert driver model tags to use new schema: 8c103c33f Esteban Blanc (2): configs: j7200_evm: Enable TP6594 family PMICs configs: j721s2_evm: Enable TP6594 PMIC and AVS0 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 familly PMICs Julien Panis (1): configs: am62ax_evm_a53: Enable support for TI TPS6593 PMIC arch/arm/dts/k3-am62a7-sk-u-boot.dtsi | 22 ++++++ .../k3-j7200-common-proc-board-u-boot.dtsi | 17 +++++ .../arm/dts/k3-j7200-r5-common-proc-board.dts | 56 ++++++--------- .../k3-j721e-common-proc-board-u-boot.dtsi | 21 ++++++ .../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 | 29 +++++++- .../dts/k3-j721s2-r5-common-proc-board.dts | 44 ++++++++++++ board/ti/j721e/evm.c | 8 +++ configs/am62ax_evm_a53_defconfig | 9 ++- configs/j7200_evm_a72_defconfig | 8 +++ configs/j721e_evm_a72_defconfig | 9 +++ configs/j721s2_evm_a72_defconfig | 8 +++ configs/j721s2_evm_r5_defconfig | 7 ++ drivers/power/pmic/tps65941.c | 36 ++++++++++ drivers/power/regulator/tps65941_regulator.c | 71 ++++++++++++++++--- include/power/tps65941.h | 25 ++++++- 17 files changed, 346 insertions(+), 74 deletions(-) -- 2.34.1