From patchwork Thu Oct 24 09:30:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Keerthy X-Patchwork-Id: 1182758 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=quarantine dis=none) header.from=ti.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ti.com header.i=@ti.com header.b="g6E2JgCx"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 46zMSF3dQyz9sPh for ; Thu, 24 Oct 2019 20:31:09 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 1E713C21C51; Thu, 24 Oct 2019 09:31:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id D8439C21C6A; Thu, 24 Oct 2019 09:31:02 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id D32B9C21C51; Thu, 24 Oct 2019 09:31:00 +0000 (UTC) Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lists.denx.de (Postfix) with ESMTPS id 41E5BC21C3F for ; Thu, 24 Oct 2019 09:31:00 +0000 (UTC) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id x9O9UuXB099900; Thu, 24 Oct 2019 04:30:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1571909456; bh=lgB5nnhi9kq9MF/SFoowmzgSJjVgQ6kdjY3P3KT3rx4=; h=From:To:CC:Subject:Date; b=g6E2JgCx9CYxVTV4C1m4miJrNPrMH+0AECBfj1321HX7P25LEOdgVLdMuza/u6MgX 5mVhUnYOgHxukuVkqYZnsYKlciJgtkYJp7y+30rGEAM92zNldAoP1uaeb/4AoDcmvQ 1XBFBMB8Wik7t24shhAk5yRhAxphkpP9wPlxwCt8= Received: from DFLE101.ent.ti.com (dfle101.ent.ti.com [10.64.6.22]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x9O9UuwG066492 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 24 Oct 2019 04:30:56 -0500 Received: from DFLE106.ent.ti.com (10.64.6.27) by DFLE101.ent.ti.com (10.64.6.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Thu, 24 Oct 2019 04:30:46 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE106.ent.ti.com (10.64.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Thu, 24 Oct 2019 04:30:46 -0500 Received: from a0393675ula.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id x9O9UrhK104197; Thu, 24 Oct 2019 04:30:54 -0500 From: Keerthy To: , , Date: Thu, 24 Oct 2019 15:00:45 +0530 Message-ID: <20191024093103.13220-1-j-keerthy@ti.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Cc: t-kristo@ti.com, u-boot@lists.denx.de Subject: [U-Boot] [PATCH v3 00/18] misc: Add AVS class 0 support for AM6 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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" Adaptive Voltage Scaling is a technology used in TI SoCs to optimize the operating voltage based on characterization data written to efuse during production. Add support for Adaptive Voltage scaling class 0 support for AM6 family of devices. Adaptive voltage scaling class 0 implies that optimized voltage values for a particular OPP of a particular voltage domain are read from Efuse and programmed on the pmic/regulator. Tested on AM654-EVM for MPU @800 MHz. Tested on J721e-evm for MPU. The series is based on top of the branch: https://github.com/lokeshvutla/u-boot/tree/devel/j721e-full-boot Changes in v3: * Extended the support for j721e-evm. * Moved vtm node under r5-board dts. Changes in v2: * Avoided creation of new uclass. AVS driver is now under misc. Keerthy (11): clk: clk-ti-sci: Notify AVS driver upon setting clock rate misc: k3_avs: Add j721e support power: pmic: tps65941: Add support for tps65941 family of PMICs power: regulator: tps65941: add regulator support arm: mach-k3: am6_init: Initialize AVS class 0 arm: mach-k3: j721e_init: Initialize avs class 0 arm: dts: k3-am654-r5-base-board: Add VTM node arm: dts: k3-j721e-r5-common-proc-board: Add VTM node arm: dts: k3-j721e-r5-common: Add tps65941 node and dependent wkup_i2c0 node arm: dts: k3-j721e-r5-common-proc-board: Hook buck12_reg to vtm supply configs: j721e_evm_r5_defconfig: Enable AVS Class 0 & dependent configs Tero Kristo (7): misc: k3_avs: add driver for K3 Adaptive Voltage Scaling Class 0 power: regulator: tps6236x: add support for tps6236x regulators arm: dts: k3-am654-r5-base-board: enable wkup_i2c0 driver for spl arm: dts: k3-am654-r5-base-board: add supply rail for MPU arm: dts: k3-am654-r5-base-board: enable wkup_vtm0 node and link in supplies configs: am65x_evm_r5_defconfig: Enable TPS62363 regulator support configs: am65x_evm_r5_defconfig: Enable AVS class 0 support arch/arm/dts/k3-am654-r5-base-board.dts | 27 ++ arch/arm/dts/k3-j721e-mcu-wakeup.dtsi | 11 + .../arm/dts/k3-j721e-r5-common-proc-board.dts | 44 ++ arch/arm/mach-k3/am6_init.c | 7 + arch/arm/mach-k3/j721e_init.c | 7 + configs/am65x_evm_r5_defconfig | 2 + configs/j721e_evm_r5_defconfig | 9 + drivers/clk/clk-ti-sci.c | 5 + drivers/misc/Kconfig | 9 + drivers/misc/Makefile | 1 + drivers/misc/k3_avs.c | 388 +++++++++++++++++ drivers/power/pmic/Kconfig | 7 + drivers/power/pmic/Makefile | 1 + drivers/power/pmic/tps65941.c | 83 ++++ drivers/power/regulator/Kconfig | 20 + drivers/power/regulator/Makefile | 2 + drivers/power/regulator/tps62360_regulator.c | 123 ++++++ drivers/power/regulator/tps65941_regulator.c | 407 ++++++++++++++++++ include/k3-avs.h | 30 ++ include/power/tps65941.h | 26 ++ 20 files changed, 1209 insertions(+) create mode 100644 drivers/misc/k3_avs.c create mode 100644 drivers/power/pmic/tps65941.c create mode 100644 drivers/power/regulator/tps62360_regulator.c create mode 100644 drivers/power/regulator/tps65941_regulator.c create mode 100644 include/k3-avs.h create mode 100644 include/power/tps65941.h Reviewed-by: Lokesh Vutla