Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp314002pxu; Thu, 3 Dec 2020 00:23:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJwNxGOtwJ6hgaJ96SnqlXjwBwed/5giUzX4dW2naGPsjWAGT8sYk5H30BdoAxv6TGiJRYZy X-Received: by 2002:a17:906:1646:: with SMTP id n6mr1457645ejd.89.1606983836764; Thu, 03 Dec 2020 00:23:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606983836; cv=none; d=google.com; s=arc-20160816; b=0PkJ0DzXEzIoSJ4MUHOXp2pQpBgeqDoCUssp05MJiMBBpXgq7tz7fPuCWK+hypaZ2H cj3313dsP1lA6MymxAtdAT72Leysq0MTInhCNRtDrxt6/ASDFQPk93teLFsbl/YUVenW Ok1LhbK9medMD2g9PM0vCjL0j2PeSgj8q3cvdqb4Oqwlx9ChlsrGLB1I8LKZKxxtvgzp 2Os28S45z4f/d8onyw4+pmeGIl6xsWeLgmPF5we7RHc0fDN7SG/OJucUwqPrI7L+CbTw h0eVEAOYwDU1TLjlxtIUXJAPrtsVeg1EfgExBA3m/yM7kJxnOMrEgt6ufqAubqB3cd/E iPPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from; bh=ukKnN/IftemnkkiNQds9nFL8dRXOO8U1E144gLK4Eqo=; b=xgBZJU63Zs6WczujZ7GlZE+m2CE1YBMM2vVnFKtltmKPs9U5qu+yBxg3u/KoCPF8wz pnQHK8/NYcsEa49xD3KZTXtjbntiUnLWEWufLj+qXCNjK7f40hP/3CQ9N/xIg7OyoPBp Eq2cZ11EMx68485C6HEflGKIlGEB6KHwx01Po0YXveXXtcS3NxTYuIWHYn7cUbf2jXKD HvWWtNBL7n0mf1d/DswCGhfclPAUtTJ4xx5K0IMO8Vu+2BdQdUI7UkOsw8VNaooMYz0N tZz2TsXY6b/423iBsKFZJBXvZOcR+iVvmxU2KPlKjEz1m90mtkh8YS2HwpKSBFGZqSjJ rAXA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=toshiba.co.jp Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x15si686571ejf.349.2020.12.03.00.23.33; Thu, 03 Dec 2020 00:23:56 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=toshiba.co.jp Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388313AbgLCITF (ORCPT + 99 others); Thu, 3 Dec 2020 03:19:05 -0500 Received: from mo-csw1114.securemx.jp ([210.130.202.156]:57296 "EHLO mo-csw.securemx.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387629AbgLCITE (ORCPT ); Thu, 3 Dec 2020 03:19:04 -0500 Received: by mo-csw.securemx.jp (mx-mo-csw1114) id 0B38GtsC030349; Thu, 3 Dec 2020 17:16:55 +0900 X-Iguazu-Qid: 2wHHO7WlUUsYyHhPnC X-Iguazu-QSIG: v=2; s=0; t=1606983414; q=2wHHO7WlUUsYyHhPnC; m=esrYAEcl8iFwxarpR4rmTqyCBxWwvF3ZB9Rezqxt6L4= Received: from imx12.toshiba.co.jp (imx12.toshiba.co.jp [61.202.160.132]) by relay.securemx.jp (mx-mr1110) id 0B38GrpO000301; Thu, 3 Dec 2020 17:16:54 +0900 Received: from enc02.toshiba.co.jp ([61.202.160.51]) by imx12.toshiba.co.jp with ESMTP id 0B38GrWo002495; Thu, 3 Dec 2020 17:16:53 +0900 (JST) Received: from hop101.toshiba.co.jp ([133.199.85.107]) by enc02.toshiba.co.jp with ESMTP id 0B38Grch028118; Thu, 3 Dec 2020 17:16:53 +0900 From: Punit Agrawal To: Nobuhiro Iwamatsu Cc: Rob Herring , Linus Walleij , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, yuji2.ishikawa@toshiba.co.jp, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v3 1/4] dt-bindings: gpio: Add bindings for Toshiba Visconti GPIO Controller References: <20201201181406.2371881-1-nobuhiro1.iwamatsu@toshiba.co.jp> <20201201181406.2371881-2-nobuhiro1.iwamatsu@toshiba.co.jp> Date: Thu, 03 Dec 2020 17:16:51 +0900 In-Reply-To: <20201201181406.2371881-2-nobuhiro1.iwamatsu@toshiba.co.jp> (Nobuhiro Iwamatsu's message of "Wed, 2 Dec 2020 03:14:03 +0900") X-TSB-HOP: ON Message-ID: <87sg8n483w.fsf@kokedama.swc.toshiba.co.jp> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Iwamatsu-san, Nobuhiro Iwamatsu writes: > Add bindings for the Toshiba Visconti GPIO Controller. > > Signed-off-by: Nobuhiro Iwamatsu > --- > .../bindings/gpio/toshiba,gpio-visconti.yaml | 85 +++++++++++++++++++ > 1 file changed, 85 insertions(+) > create mode 100644 Documentation/devicetree/bindings/gpio/toshiba,gpio-visconti.yaml > > diff --git a/Documentation/devicetree/bindings/gpio/toshiba,gpio-visconti.yaml b/Documentation/devicetree/bindings/gpio/toshiba,gpio-visconti.yaml > new file mode 100644 > index 000000000000..5168a15b90e1 > --- /dev/null > +++ b/Documentation/devicetree/bindings/gpio/toshiba,gpio-visconti.yaml > @@ -0,0 +1,85 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/gpio/toshiba,gpio-visconti.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Toshiba Visconti ARM SoCs GPIO controller > + > +maintainers: > + - Nobuhiro Iwamatsu > + > +properties: > + compatible: > + items: > + - const: toshiba,gpio-tmpv7708 > + > + reg: > + maxItems: 1 > + > + "#gpio-cells": > + const: 2 > + > + gpio-ranges: true I am not sure I have a good handle on the yaml schema definitions but "gpio-ranges" feels like it should be a list of ranges not a boolean. Something like - gpio-ranges: maxItems: 1 feels more appropriate. I see both the usages in gpio bindings and for other range properties so maybe it's OK. I hope Rob or somebody more knowledgeable on this can clarify the usage. Otherwise, the patch looks good. Thanks, Punit > + > + gpio-controller: true > + > + interrupt-controller: true > + > + "#interrupt-cells": > + const: 2 > + > + interrupts: > + description: > + interrupt mapping one per GPIO. > + minItems: 16 > + maxItems: 16 > + > +required: > + - compatible > + - reg > + - "#gpio-cells" > + - gpio-ranges > + - gpio-controller > + - interrupt-controller > + - "#interrupt-cells" > + - interrupts > + > +additionalProperties: false > + > +examples: > + - | > + #include > + #include > + > + soc { > + #address-cells = <2>; > + #size-cells = <2>; > + > + gpio: gpio@28020000 { > + compatible = "toshiba,gpio-tmpv7708"; > + reg = <0 0x28020000 0 0x1000>; > + #gpio-cells = <0x2>; > + gpio-ranges = <&pmux 0 0 32>; > + gpio-controller; > + interrupt-controller; > + #interrupt-cells = <2>; > + interrupts = , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + ; > + }; > + }; > +...