From patchwork Thu Apr 6 15:38:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: jerome Neanne X-Patchwork-Id: 1766289 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=baylibre-com.20210112.gappssmtp.com header.i=@baylibre-com.20210112.gappssmtp.com header.a=rsa-sha256 header.s=20210112 header.b=Mhemzpra; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PsphQ6x2Hz1yYs for ; Fri, 7 Apr 2023 03:41:25 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8139886097; Thu, 6 Apr 2023 19:41:08 +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="Mhemzpra"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 27A988606E; Thu, 6 Apr 2023 17:38:29 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) (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 1ABA886063 for ; Thu, 6 Apr 2023 17:38:26 +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-wm1-x344.google.com with SMTP id l15-20020a05600c4f0f00b003ef6d684102so20457627wmq.3 for ; Thu, 06 Apr 2023 08:38:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1680795505; x=1683387505; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=yJdtGz8qLX295j3eP/xkUiJllyVla9HFnomVfaHbUYg=; b=MhemzpraFItkKMQqUEegHKNHowCV4PVzRyNvGG1m9ZXmhOC57DgbLcAZlVG26N1pRY It0gYZ4Xf0Dto1bn8RTWQYzVnCy4x6g6k2A9VkZA/n9XIoLhKjxoWS2yyc5IUm+cbqdl Jm5B4AWHXY0L6EIQ4IwTLVMaARpfftqXU2S1yRlXau23vC/DS+4nNzRRrkBZhNWZVmLk 4dT/U7PtV6Cpp4VUxdIzlhwP9opow4XQa5rv8SRTfL7rxIRBliLbX+lsca1G2GosEe7u 3aK568AKRelYBF0MJPZxqnQlI8cHd00xq0ZU+XJ4tBUzj2/8yuK9lNigKMNcw/upUhmj HahA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680795505; x=1683387505; 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=yJdtGz8qLX295j3eP/xkUiJllyVla9HFnomVfaHbUYg=; b=Dv12fljGjzwkLXOHDGqhpZ+iZIlpj41Kk0gHc64KwZDEaArL1OQ2pwVmw1xy7711IB HGqObZTAKjVqe4a+h6tTKEHY4Yw4qY3R0KiYef9LAiffTMh1TTCuB8jdxla8vH22NL1K gTi5NL2CjqYmx8UsvrQTiGpkWgw3F2xt3HWCnuNOPWm6sIARpBXu4ONbupVHUrOcjxcY shEZ/leaXCOQTzWiPsCRKBYU5H53F17GFz8GOo+JqNRfL/EtweU1K1EdFt8GxgtvPtIs bFwzWc96IimR30bT/P0H5b25Hp8DPSwMSJRyry5PRmH2GGOj5zwUy0m2opmbwGbNML8i kACQ== X-Gm-Message-State: AAQBX9fx+O7rBaZ6V1vx7VaBesKu6d8UeMte4ACTFQ+ehBB4C4TL2VRh TsDff2f79+HNmvVBt6XxOc5DAw== X-Google-Smtp-Source: AKy350ZFL1jsd16ZfqLVN/IjNQGwzcoDnzYm110Hx0gSYcZMnE/dBY59QuId0eW2Qd7bnD8wTmUmpg== X-Received: by 2002:a1c:ed18:0:b0:3ef:61f7:7d34 with SMTP id l24-20020a1ced18000000b003ef61f77d34mr7070929wmh.1.1680795505486; Thu, 06 Apr 2023 08:38:25 -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 m21-20020a7bcb95000000b003ee4e99a8f6sm1891760wmi.33.2023.04.06.08.38.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Apr 2023 08:38:24 -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 v1 0/9] TI TPS6594 PMIC support for multiple TI EVMs Date: Thu, 6 Apr 2023 17:38:11 +0200 Message-Id: <20230406153820.2800054-1-jneanne@baylibre.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Mailman-Approved-At: Thu, 06 Apr 2023 19:41:06 +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 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 - 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. Jerome Neanne (4): 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 Jerome Neanne (4): 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 Julien Panis (1): configs: am62ax_evm_a53: Enable support for TI TPS6593 PMIC arch/arm/dts/k3-am62a7-sk-u-boot.dtsi | 24 ++++++- .../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 ++++++------- board/ti/j721e/evm.c | 8 +++ configs/am62ax_evm_a53_defconfig | 9 ++- configs/j721e_evm_a72_defconfig | 9 +++ drivers/power/pmic/tps65941.c | 36 ++++++++++ drivers/power/regulator/tps65941_regulator.c | 71 ++++++++++++++++--- include/power/tps65941.h | 25 ++++++- 10 files changed, 213 insertions(+), 40 deletions(-)