Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3675070imm; Tue, 17 Jul 2018 08:32:08 -0700 (PDT) X-Google-Smtp-Source: AAOMgpetGjkz9vDUcFpOsw5EpQnd8uLlTJ6grJFl7ZOr0MzxgAMPS3RlL4bmn817u3Vzmn2h39F5 X-Received: by 2002:a17:902:722:: with SMTP id 31-v6mr2133962pli.3.1531841528466; Tue, 17 Jul 2018 08:32:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531841528; cv=none; d=google.com; s=arc-20160816; b=ech4+B66duJ3uzszo5hKb3pxtOPmA4naBmY0vLL+gFACD6l3RRx7DaD3hlG1s1BvV8 TWAt7GVRy5nNOqCYYQtJNVB3k5zR3F6OZWtGk3bKuY1inLeD/ZQ/+gc5tpS/wQZ2nFhK vsgsW7Tav5LOQrT4V44OrN26oSFsNlyS/adskgMTup7X8wktBNFCcNGm/L/9Ahql/NT6 /Oal2E+HWZkRL1agJIEtMcNoqLMgbsJs6dUKdt+kAQr+kZa2qGJgDhOwpq3x/8e2ZLv4 4gKUoWKO06eMyb7tVjVRTIpBXAfLar34Fv2MBKL86H5tz/9ujA5wptag+/mmQMs/GSA/ hXhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=HX/nG8SvBHL1fuBFVymi0uKeDUmM44Z6MQPeOwvCphE=; b=VhkKARQjFz/Zk9kiNUjekGyu5/FykMXt2W9+ScWUv5kASXN4cKnryoANZLkUt8ICqc Ra2x0E/pQ9sL0J4u72AgHAEN7LF3ZGxn8aU76SDYLqbpcViHNtAPuE1KFGTclxXtK4Fj JG7U6N3xK524J3e6tNG3qAPfRbCsbdGA4CZDwZecAe26JDgg2/N4Sc9OLXlyLTdNeLSA 44QfMj3LW/eCZsohISv2GqCbYQrFvvLqY3UR6bhhNsOeGYxwscJRUCAL92O7QD8YlSca NePzRtjBQoRMW3+7GReFV1zaadncNTXFlBaiy+FO84b7SjYndffDWs8V/L8tTeEH4AA9 eHeQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 l190-v6si1101490pgd.375.2018.07.17.08.31.53; Tue, 17 Jul 2018 08:32:08 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729802AbeGQQDl (ORCPT + 99 others); Tue, 17 Jul 2018 12:03:41 -0400 Received: from hqemgate15.nvidia.com ([216.228.121.64]:5816 "EHLO hqemgate15.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729243AbeGQQDl (ORCPT ); Tue, 17 Jul 2018 12:03:41 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate15.nvidia.com (using TLS: TLSv1, AES128-SHA) id ; Tue, 17 Jul 2018 08:29:39 -0700 Received: from HQMAIL101.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Tue, 17 Jul 2018 08:30:29 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Tue, 17 Jul 2018 08:30:29 -0700 Received: from dhcp-10-21-25-168 (10.21.25.201) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Tue, 17 Jul 2018 15:30:26 +0000 Date: Tue, 17 Jul 2018 18:30:20 +0300 From: Aapo Vienamo To: Rob Herring CC: Mark Rutland , Thierry Reding , Jon Hunter , "Mikko Perttunen" , Laxman Dewangan , , , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v3 5/7] dt-bindings: Add Tegra PMC pad configuration bindings Message-ID: <20180717183020.5ab9bfa6@dhcp-10-21-25-168> In-Reply-To: References: <1531396813-6581-1-git-send-email-avienamo@nvidia.com> <1531396813-6581-6-git-send-email-avienamo@nvidia.com> <20180716154309.GA16477@rob-hp-laptop> <20180717152318.3608e3f9@dhcp-10-21-25-168> X-NVConfidentiality: public MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.21.25.201] X-ClientProxiedBy: UKMAIL101.nvidia.com (10.26.138.13) To HQMAIL101.nvidia.com (172.20.187.10) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 17 Jul 2018 08:22:07 -0600 Rob Herring wrote: > On Tue, Jul 17, 2018 at 6:23 AM Aapo Vienamo wrote: > > > > On Mon, 16 Jul 2018 09:43:09 -0600 > > Rob Herring wrote: > > > > > On Thu, Jul 12, 2018 at 03:00:11PM +0300, Aapo Vienamo wrote: > > > > Document the pinctrl bindings used by the PMC driver for performing pad > > > > configuration. Both nvidia,tegra186-pmc.txt and nvidia,tegra20-pmc.txt > > > > are modified as they both cover SoC generations for which these bindings > > > > apply. > > > > > > > > Add a header defining Tegra PMC pad voltage configurations. > > > > > > > > Signed-off-by: Aapo Vienamo > > > > Acked-by: Jon Hunter > > > > --- > > > > .../bindings/arm/tegra/nvidia,tegra186-pmc.txt | 84 +++++++++++++++++++ > > > > .../bindings/arm/tegra/nvidia,tegra20-pmc.txt | 95 ++++++++++++++++++++++ > > > > include/dt-bindings/pinctrl/pinctrl-tegra-io-pad.h | 18 ++++ > > > > 3 files changed, 197 insertions(+) > > > > create mode 100644 include/dt-bindings/pinctrl/pinctrl-tegra-io-pad.h > > > > > > > > diff --git a/Documentation/devicetree/bindings/arm/tegra/nvidia,tegra186-pmc.txt b/Documentation/devicetree/bindings/arm/tegra/nvidia,tegra186-pmc.txt > > > > index 5a3bf7c..9528f41 100644 > > > > --- a/Documentation/devicetree/bindings/arm/tegra/nvidia,tegra186-pmc.txt > > > > +++ b/Documentation/devicetree/bindings/arm/tegra/nvidia,tegra186-pmc.txt > > > > @@ -34,3 +34,87 @@ Board DTS: > > > > pmc@c360000 { > > > > nvidia,invert-interrupt; > > > > }; > > > > + > > > > +== Pad Control Nodes == > > > > + > > > > +The PMC can be used to set pad power state and voltage configuration. > > > > +The pad configuration is done via the pinctrl framework. The driver > > > > +implements power-source, low-power-enable, and low-power-disable pinconf > > > > +pin configuration node properties. Each pinctrl pin corresponds to a > > > > +single Tegra PMC pad. Thus, in the following sections of this document > > > > +pin refers to the pinctrl frameworks notion of a Tegra PMC pad. > > > > > > "pinctrl framework" is Linux specific and doesn't belong in the binding. > > > Neither does what a driver supports. Describe what the h/w supports. > > > > > > > + > > > > +The pad configuration state nodes are placed under the pmc node and they > > > > +are referred to by the pinctrl client device properties. For more > > > > > > Another driver detail not relevant. > > > > > > > +information see the examples presented later and > > > > > > examples don't document bindings. The documentation should be complete > > > without examples. > > > > > > > +Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt. > > > > + > > > > +The values accepted by power-source property are > > > > +TEGRA_IO_PAD_VOLTAGE_1V8 and TEGRA_IO_PAD_VOLTAGE_3V3, which are defined > > > > +in dt-bindings/pinctrl/pinctrl-tegra-io-pad.h. > > > > > > You need to list out what properties the child nodes can have. > > > > > > power-source needs a vendor prefix. > > > > Isn't it a generic pinctrl property? > > I don't know offhand. Doesn't look like it if you have custom values. It's listed under "Supported generic properties" in pinctrl-bindings.txt. The convention seems to be not to add a vendor prefix even though such custom macro values are used. The property is currently used by qcom,pmic-gpio, qcom,pmic-mpp, and renesas,pfc-pinctrl. I could not find a bindings document describing it with a vendor prefix. -Aapo