Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1751507yba; Fri, 17 May 2019 04:53:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqyX39zR/p51LMPOWJWmsUMKtRKKG/kP7dwdBf2zKejP/u9OOdWS1LJZWHjuodTDtJf795LK X-Received: by 2002:a62:ee05:: with SMTP id e5mr58750470pfi.117.1558094015682; Fri, 17 May 2019 04:53:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558094015; cv=none; d=google.com; s=arc-20160816; b=yTZvn2GpbYEuZhdo7kLsezSVjk2B6CzL+1HBXtSzdyAYnEzQm/BfPs64lRGRXppkE5 8Lm2SedjDGCXzV788JDWP1z79zTVMLEJVHSATW66WRkgdHFbsyRd5Qy1cO169RXeKYKN tDoWeRFZcfsrGXoteK5uxzNRO6Whff1F4Z4vZDkyZSjwul7IaWJSHemREvv2lQe7vPLq Bn6AKyT4X8hElm2s9GmWEBbuOm1zaCNwtO/mK0GD8Tejhoc3xNCa+PmBxnUGmVzdRej/ z7m2VjYwdNMcxDfPtFocK3fjzcle8d2mIKcuTjbvP1w+wdFKzg1wIs+5fSYAInkEtCC5 y2uA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=LXmp6ZYHn+42tPsNl+FzOB08hT4lqAPUWHkEl1m2m/Y=; b=iqMMONb6i0KouNUoMThuWSmURz1j9Qf9G7oYRqksHbjrXR7ss06BuoeGugEtRls+yP hFCuCaSqj0viiMkVDlqOF3IT0DjWGNwqxd/QUy9t9lTImnrmdoOTYWGzu68+qYo8p9nU wZxkDxxOa4b9Y9AEEHCnYRCzwHn6KtqiYkh1akcoX2ZeBZAxE+SBcOzzBC7imReA911b HWYWfoX8MR2KgTjXVSm1r24EIjNiHWwdZna7T8pptLoMqwJsZq9ApGZ4X5AC8w1bt90m v/YuPetFeCWU+Zm5+nNEPf9brhIK8Mrw3s8ayR+RKmn2Ue6JFSJxqYeIkAtuaf6DM0m7 i4ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=lRznjCQU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d2si8247402pgi.579.2019.05.17.04.53.20; Fri, 17 May 2019 04:53:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=lRznjCQU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728575AbfEQLeH (ORCPT + 99 others); Fri, 17 May 2019 07:34:07 -0400 Received: from hqemgate16.nvidia.com ([216.228.121.65]:16041 "EHLO hqemgate16.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728103AbfEQLeG (ORCPT ); Fri, 17 May 2019 07:34:06 -0400 Received: from hqpgpgate102.nvidia.com (Not Verified[216.228.121.13]) by hqemgate16.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Fri, 17 May 2019 04:34:00 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate102.nvidia.com (PGP Universal service); Fri, 17 May 2019 04:34:04 -0700 X-PGP-Universal: processed; by hqpgpgate102.nvidia.com on Fri, 17 May 2019 04:34:04 -0700 Received: from [10.24.47.197] (10.124.1.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Fri, 17 May 2019 11:34:00 +0000 Subject: Re: [PATCH V3 1/4] dt-binding: Tegra194 pinctrl support To: Krishna Yarlagadda , , , , , , , CC: , , , References: <1558007594-14824-1-git-send-email-kyarlagadda@nvidia.com> X-Nvconfidentiality: public From: Vidya Sagar Message-ID: <83198211-5c66-6f41-5ec2-cb16eb96fc5f@nvidia.com> Date: Fri, 17 May 2019 17:03:56 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <1558007594-14824-1-git-send-email-kyarlagadda@nvidia.com> X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL101.nvidia.com (172.20.187.10) To HQMAIL107.nvidia.com (172.20.187.13) Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1558092840; bh=LXmp6ZYHn+42tPsNl+FzOB08hT4lqAPUWHkEl1m2m/Y=; h=X-PGP-Universal:Subject:To:CC:References:X-Nvconfidentiality:From: Message-ID:Date:User-Agent:MIME-Version:In-Reply-To: X-Originating-IP:X-ClientProxiedBy:Content-Type:Content-Language: Content-Transfer-Encoding; b=lRznjCQUph2ruDExMk0DG47xR4wb5Mhom7YH0zfQLIwf6MM/r298Echm6FmErmP7T amXvv3EalMvt/LGVOG7twozj3dSHKE/MmQ52cQwgH3xo04/Yok7dhjQZGk0M78qwOz Kg8qKeMh6UFAlRyOZGDhxm24TiP2SXme7YjYPqaT6MKAelIIllB8vfN5g3L1P/pW1d l4tDdHrL49cpnx+7XjE9qoe4rpL5PXVbw+0WUJnwRSdmzlIwT77mj6vpt+716Ea1kc H7WuJraBHQPnk9GtHupoSU9ddmBba5sVIP53W8q0CDPM/P8vrXdn3d8S1GfRIEGWxl OHh0I8G3h6zkg== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/16/2019 5:23 PM, Krishna Yarlagadda wrote: > Add binding doc for Tegra 194 pinctrl driver > > Signed-off-by: Krishna Yarlagadda > --- > Changes in V3: > remove optional fields not supported by pins published here > > .../bindings/pinctrl/nvidia,tegra194-pinmux.txt | 107 +++++++++++++++++++++ > 1 file changed, 107 insertions(+) > create mode 100644 Documentation/devicetree/bindings/pinctrl/nvidia,tegra194-pinmux.txt > > diff --git a/Documentation/devicetree/bindings/pinctrl/nvidia,tegra194-pinmux.txt b/Documentation/devicetree/bindings/pinctrl/nvidia,tegra194-pinmux.txt > new file mode 100644 > index 0000000..8763f44 > --- /dev/null > +++ b/Documentation/devicetree/bindings/pinctrl/nvidia,tegra194-pinmux.txt > @@ -0,0 +1,107 @@ > +NVIDIA Tegra194 pinmux controller > + > +Required properties: > +- compatible: "nvidia,tegra194-pinmux" > +- reg: Should contain a list of base address and size pairs for: > + - first entry: The APB_MISC_GP_*_PADCTRL registers (pad control) > + - second entry: The PINMUX_AUX_* registers (pinmux) > + > +Please refer to pinctrl-bindings.txt in this directory for details of the > +common pinctrl bindings used by client devices, including the meaning of the > +phrase "pin configuration node". > + > +Tegra's pin configuration nodes act as a container for an arbitrary number of > +subnodes. Each of these subnodes represents some desired configuration for a > +pin, a group, or a list of pins or groups. This configuration can include the > +mux function to select on those pin(s)/group(s), and various pin configuration > +parameters, such as pull-up, tristate, drive strength, etc. > + > +See the TRM to determine which properties and values apply to each pin/group. > +Macro values for property values are defined in > +include/dt-binding/pinctrl/pinctrl-tegra.h. > + > +Required subnode-properties: > +- nvidia,pins : An array of strings. Each string contains the name of a pin or > + group. Valid values for these names are listed below. > + > +Optional subnode-properties: > +- nvidia,function: A string containing the name of the function to mux to the > + pin or group. > +- nvidia,pull: Integer, representing the pull-down/up to apply to the pin. > + 0: none, 1: down, 2: up. > +- nvidia,tristate: Integer. > + 0: drive, 1: tristate. > +- nvidia,enable-input: Integer. Enable the pin's input path. > + enable :TEGRA_PIN_ENABLE and > + disable or output only: TEGRA_PIN_DISABLE. > +- nvidia,open-drain: Integer. > + enable: TEGRA_PIN_ENABLE. > + disable: TEGRA_PIN_DISABLE. > +- nvidia,lock: Integer. Lock the pin configuration against further changes > + until reset. > + enable: TEGRA_PIN_ENABLE. > + disable: TEGRA_PIN_DISABLE. > +- nvidia,io-hv: Integer. Select high-voltage receivers. > + normal: TEGRA_PIN_DISABLE > + high: TEGRA_PIN_ENABLE > +- nvidia,schmitt: Integer. Enables Schmitt Trigger on the input. > + normal: TEGRA_PIN_DISABLE > + high: TEGRA_PIN_ENABLE > +- nvidia,drive-type: Integer. Valid range 0...3. > +- nvidia,pull-down-strength: Integer. Controls drive strength. 0 is weakest. > + The range of valid values depends on the pingroup. See "CAL_DRVDN" in the > + Tegra TRM. > +- nvidia,pull-up-strength: Integer. Controls drive strength. 0 is weakest. > + The range of valid values depends on the pingroup. See "CAL_DRVUP" in the > + Tegra TRM. > + > +Valid values for pin and group names (nvidia,pin) are: > + > + These correspond to Tegra PADCTL_* (pinmux) registers. > + > + Mux groups: > + > + These correspond to Tegra PADCTL_* (pinmux) registers. Any property > + that exists in those registers may be set for the following pin names. > + > + pex_l5_clkreq_n_pgg0, pex_l5_rst_n_pgg1 > + > + Drive groups: > + > + These registers controls a single pin for which a mux group exists. > + See the list above for the pin name to use when configuring the pinmux. > + > + pex_l5_clkreq_n_pgg0, pex_l5_rst_n_pgg1 > + > +Valid values for nvidia,functions are: > + > + pe5 > + > +Power Domain: > + pex_l5_clkreq_n_pgg0 and pex_l5_rst_n_pgg1 are part of PCIE C5 power > + partition. Client devices must enable this partition before accessing > + these pins here. > + > + > +Example: > + > + tegra_pinctrl: pinmux: pinmux@2430000 { > + compatible = "nvidia,tegra194-pinmux"; > + reg = <0x2430000 0x17000 > + 0xc300000 0x4000>; > + > + pinctrl-names = "pex_rst"; > + pinctrl-0 = <&pex_rst_c5_out_state>; > + > + pex_rst_c5_out_state: pex_rst_c5_out { > + pex_rst { > + nvidia,pins = "pex_l5_rst_n_pgg1"; > + nvidia,schmitt = ; > + nvidia,lpdr = ; > + nvidia,enable-input = ; > + nvidia,io-high-voltage = ; > + nvidia,tristate = ; > + nvidia,pull = ; > + }; > + }; > + }; > Tested-by: Vidya Sagar