Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965227AbcDLPPb (ORCPT ); Tue, 12 Apr 2016 11:15:31 -0400 Received: from nat-hk.nvidia.com ([203.18.50.4]:27028 "EHLO hkmmgate102.nvidia.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933499AbcDLPP3 (ORCPT ); Tue, 12 Apr 2016 11:15:29 -0400 X-Greylist: delayed 314 seconds by postgrey-1.27 at vger.kernel.org; Tue, 12 Apr 2016 11:15:28 EDT X-PGP-Universal: processed; by hkpgpgate102.nvidia.com on Tue, 12 Apr 2016 08:10:12 -0700 From: Laxman Dewangan To: , , , , , , CC: , , , , Laxman Dewangan Subject: [PATCH 0/7] pinctrl: soc/tegra: Add support to configure IO rail voltage and pad power states Date: Tue, 12 Apr 2016 20:26:40 +0530 Message-ID: <1460473007-11535-1-git-send-email-ldewangan@nvidia.com> X-Mailer: git-send-email 2.1.4 MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1854 Lines: 39 NVIDIA Tegra210 supports the IO pads which can operate at 1.8V or 3.3V I/O voltage levels. Also the IO pads can be configured for power down state if it is not used. SW needs to configure the voltage level of IO pads based on IO rail voltage and its power state based on platform usage. The voltage rail configuration and pad power states are done in Tegra PMC registers. This series add the required interface in soc/tegra/pmc for required configruations. This series also add the pincontrol driver for tegra210 IO pads conifguration. This will helps to provide framework for IO pad configurations via pincontrol DT support and pincontrol dynamic configruations. Laxman Dewangan (7): soc/tegra: pmc: Use BIT macro for register field definition soc/tegra: pmc: Add new Tegra210 IO rails soc/tegra: pmc: Add interface to get IO rail power status soc/tegra: pmc: Add interface to set voltage of IO rails soc/tegra: pmc: Register sub-devices of PMC pinctrl: tegra: Add DT binding for io pads control pinctrl: tegra: Add driver to configure voltage and power state of io pads .../bindings/pinctrl/nvidia,tegra210-io-pad.txt | 102 +++++++ drivers/pinctrl/tegra/Kconfig | 11 + drivers/pinctrl/tegra/Makefile | 1 + drivers/pinctrl/tegra/pinctrl-tegra210-io-pad.c | 302 +++++++++++++++++++++ drivers/soc/tegra/pmc.c | 159 +++++++++-- .../dt-bindings/pinctrl/pinctrl-tegra210-io-pad.h | 24 ++ include/soc/tegra/pmc.h | 52 ++++ 7 files changed, 630 insertions(+), 21 deletions(-) create mode 100644 Documentation/devicetree/bindings/pinctrl/nvidia,tegra210-io-pad.txt create mode 100644 drivers/pinctrl/tegra/pinctrl-tegra210-io-pad.c create mode 100644 include/dt-bindings/pinctrl/pinctrl-tegra210-io-pad.h -- 2.1.4