Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp60805pxv; Thu, 24 Jun 2021 02:49:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyrE27G/ukC+7vsv6pReFE8rX3ShngmHYrAdXXaz0K/Y8NL8D6zch0WZMifYywOwZ8Ihngt X-Received: by 2002:a02:3781:: with SMTP id r123mr810868jar.26.1624528196681; Thu, 24 Jun 2021 02:49:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624528196; cv=none; d=google.com; s=arc-20160816; b=kohvE7PZPPJX15FylzTV4MxkfEpp37khF6ojXk5e/egOJK6KZCXUu5uwC9vYKUSju3 dMLWmwV4wWdyF7lel7SxIsLj2bjQTriFcrR2RIxlTu5/XEG2uGkGiSvDuSnaoD778YFa +hSaVQOWJEdtSIDyeptRnWM2juZJwjnPM9jk1v+pH9WKf/fkzugGFKVqJ4qC+HMsoMbl G8W9jwxymCEgxUgUQkHmWZYklzbK9G9v902Pc3kzogyNascT15DUQI0RyQbNip5JeHsk pqC2eBLTX0cdDf7xJ1piHsVYT3P2BNnVPUM+k+TvnjuzirvLYshvhkRL0vPG6XWCnAMm 5klg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=/kroWqcKlXWFFemZQ/NRzbiGg9xEeZfy1xoLaGDU8GA=; b=ueMeztLx2HYHBgED815fagw8G2O8Lw5vNp9oMyt2JMwvbyfEERzxpm5dCU9dXHFUkT s6ifablkFSaecJ2kVrDLiPnl7TkKRfOjYeZ5NNEXshePazH2P9Yg4BzvaH1pS2eWWZnJ lZ2Hx85oEIKyF4Zty89lDPgxRUjkNDJc2DfTHbm1lTwGxpwdVZcx8L9+YacxOjfs9MT6 qXOSaquLBi5bm9m8rmXB61SOai8/FInpD7DT4j1bcswH1g5V+JOnLAh8DkwD3xcAo0YX N5Yc+GenttJxzNCbgxqFmXiSY04zEfrYzNS0MAHE0HGQkMPyeyrZxmmpFK+gBDrKhU7F wfeQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g9si1888943iom.21.2021.06.24.02.49.45; Thu, 24 Jun 2021 02:49:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232056AbhFXJvE (ORCPT + 99 others); Thu, 24 Jun 2021 05:51:04 -0400 Received: from mail-ua1-f47.google.com ([209.85.222.47]:45631 "EHLO mail-ua1-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232043AbhFXJvE (ORCPT ); Thu, 24 Jun 2021 05:51:04 -0400 Received: by mail-ua1-f47.google.com with SMTP id c20so1968997uar.12; Thu, 24 Jun 2021 02:48:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/kroWqcKlXWFFemZQ/NRzbiGg9xEeZfy1xoLaGDU8GA=; b=PdO5VS++jkgz2JRcGxjSjdLq4YVhm7cFfidPA97d5eQ7hvDD1CpWVxoLrF2qGR7jYY vp/aslcGiGbtQm06MyJVQ1JJWF3kpLjY+jf8Dh1Br44LSov1rnMVVHZXMi05B3QpmSn3 6X4yH8rYNnqJTDaHVnSmzFgmuqIEbK+7+k+2ynTVGAPWQ6X6vlE7Aj3b8wCjzzrgon4w RiDQ/yeqdHSwygQo1hhRY3KWAC0IVeLnpDvSLFRWJZ2Ek9g97YpmVbn1pyrrBWoVf5VM Mk3D/dsX1bPY6RGj0qR9sqQ86Ne0NjG+pj9z6jBeGBg1nBL6mAmEXwbV/WqVEZ/Dd9l3 LHqA== X-Gm-Message-State: AOAM530LzX+3uie/WDwaz7uBq+2QT/DkbiSB3gzUL6IjH/TJF+cbWTL1 4EnxH+h4tKZLuosgHUs8VfnKHFejbJHNcdooe7o= X-Received: by 2002:ab0:3734:: with SMTP id s20mr4456679uag.106.1624528123937; Thu, 24 Jun 2021 02:48:43 -0700 (PDT) MIME-Version: 1.0 References: <20210616132641.29087-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20210616132641.29087-2-prabhakar.mahadev-lad.rj@bp.renesas.com> In-Reply-To: <20210616132641.29087-2-prabhakar.mahadev-lad.rj@bp.renesas.com> From: Geert Uytterhoeven Date: Thu, 24 Jun 2021 11:48:32 +0200 Message-ID: Subject: Re: [PATCH 1/3] dt-bindings: pinctrl: renesas,rzg2l-pinctrl: Add DT bindings for RZ/G2L pinctrl To: Lad Prabhakar Cc: Rob Herring , Linus Walleij , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux Kernel Mailing List , Linux-Renesas , "open list:GPIO SUBSYSTEM" , Prabhakar , Biju Das , Chris Brandt Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Prabhakar, On Wed, Jun 16, 2021 at 3:27 PM Lad Prabhakar wrote: > Add device tree binding documentation and header file for Renesas > RZ/G2L pinctrl. > > Signed-off-by: Lad Prabhakar > Reviewed-by: Biju Das Thanks for your patch! > --- /dev/null > +++ b/Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-pinctrl.yaml > @@ -0,0 +1,121 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/pinctrl/renesas,rzg2l-pinctrl.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Renesas RZ/G2L combined Pin and GPIO controller > + > +maintainers: > + - Geert Uytterhoeven > + > +description: > + The Renesas SoCs of the RZ/G2L series feature a combined Pin and GPIO > + controller. > + Pin multiplexing and GPIO configuration is performed on a per-pin basis. > + Each port features up to 8 pins, each of them configurable for GPIO function > + (port mode) or in alternate function mode. > + Up to 8 different alternate function modes exist for each single pin. > + > +properties: > + compatible: > + enum: > + - renesas,r9a07g044-pinctrl # RZ/G2{L,LC} > + > + reg: > + maxItems: 1 > + > + gpio-controller: true > + > + '#gpio-cells': > + const: 2 > + description: > + The first cell contains the global GPIO port index, constructed using the > + RZG2L_GPIO() helper macro in and the , for consistency with other Renesas header files? > + second cell represents consumer flag as mentioned in ../gpio/gpio.txt > + E.g. "RZG2L_GPIO(39, 1)" for P39_1. > + > + gpio-ranges: > + maxItems: 1 > + > + clocks: > + maxItems: 1 > + > + power-domains: > + maxItems: 1 > + > + resets: > + maxItems: 1 > + > +additionalProperties: > + anyOf: > + - type: object > + allOf: > + - $ref: pincfg-node.yaml# > + - $ref: pinmux-node.yaml# > + > + description: > + Pin controller client devices use pin configuration subnodes (children > + and grandchildren) for desired pin configuration. > + Client device subnodes use below standard properties. > + > + properties: > + phandle: true > + function: true > + groups: true RZ/G2L uses per-pin configuration, and, unlike R-Car, the configuration registers do not have the concept of pin groups. Hence I'm wondering why you are using "function" and "group" properties, and not per-pin "pinmux" properties, like RZ/A2? > + pins: true > + bias-disable: true > + bias-pull-down: true > + bias-pull-up: true > + drive-strength: > + enum: [ 2, 4, 8, 12 ] > + power-source: > + enum: [ 1800, 2500, 3300 ] > + slew-rate: true > + gpio-hog: true > + gpios: true > + input-enable: true > + output-high: true > + output-low: true > + line-name: true > --- /dev/null > +++ b/include/dt-bindings/pinctrl/pinctrl-rzg2l.h include/dt-bindings/pinctrl/rzg2l-pinctrl.h, for consistency? > @@ -0,0 +1,16 @@ > +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ > +/* > + * This header provides constants for Renesas RZ/G2{L,LC} pinctrl bindings. > + * > + * Copyright (C) 2021 Renesas Electronics Corp. > + * > + */ > + > +#ifndef __DT_BINDINGS_PINCTRL_RZG2L_H > +#define __DT_BINDINGS_PINCTRL_RZG2L_H __DT_BINDINGS_RZG2L_PINCTRL_H Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds