Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4559782pxu; Wed, 9 Dec 2020 22:40:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJynITIUTvCc9SfUr/REuHX2W5bNf7l0iixfzo/Jp02z27R6hLxU6cXHwylduRATophmFQ0X X-Received: by 2002:a17:906:e206:: with SMTP id gf6mr5210216ejb.342.1607582446510; Wed, 09 Dec 2020 22:40:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607582446; cv=none; d=google.com; s=arc-20160816; b=CdHe1yzdsQbTjoCLLc1BSeXrxULYpEDWmEOF57xwGhnNglMnX/cDqIELr2QlpJ2BjF tGi+XoFd+6/mu0eo9I0aAItZhHY3le0kI/0T5ebEQmAl2dT0P83fJqaGSB9NUOdOom+m ksZprWruSBy0t2Fs5WFiH6l9k714V6mnIA8VriNpfGG8x0NWzCWCBc8NMW0R7X+PAGc7 0MAJ+hvtYugaVxAoUQYhdXF0T5UWEvS4nrUMTuZXldJAsXEgo8OMx6sr8cWS2K3e7U/G xZSiPXx/T9O6Aj2cqcPiTwX2mla62PrjHUQWPmcCdmNP1v5WZ/izM2LnZmEbUvy4EspI nmzQ== 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=k01pd2TL0Q1IVccOy0UTvc82bt2W7sVgi1L7XqyXwxo=; b=spjzA51KEg/qRC/RmCq6pBGlXKvwV8KoTLIfAhPphoG2xHfPUHVZDNJJq6XXxUdwag fBgdej6GhcPVe6jFMRS4YxZNqajLvFeQGSkuncqjFtEYirUX0ysC0Z4f++CozRS4AyeZ 3toE/jCK900VdJ8BrnuW1S1PO4XiruF/ZvdWHRAMSxDGf7DycThh61gxRhEd2Rob6Y5T B00dgekGGfawCcQScZBk6lHdh1AlGU6XlvePFyY4XQRLlQDgr9qtXn2mhMoNJ+b/cAzd IowUhuoaTY1Rq+gDqQKkRzsE/O8fsQYxui0hcsevnzh2fWDb60W0i3bZlEG96A7Lmpwk rYxw== 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 hq4si2076306ejc.14.2020.12.09.22.40.23; Wed, 09 Dec 2020 22:40:46 -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 S1728974AbgLJDQB (ORCPT + 99 others); Wed, 9 Dec 2020 22:16:01 -0500 Received: from mo-csw1516.securemx.jp ([210.130.202.155]:47784 "EHLO mo-csw.securemx.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728657AbgLJDQB (ORCPT ); Wed, 9 Dec 2020 22:16:01 -0500 Received: by mo-csw.securemx.jp (mx-mo-csw1516) id 0BA3Df8W011928; Thu, 10 Dec 2020 12:13:41 +0900 X-Iguazu-Qid: 34tr90iprcJokcJh9V X-Iguazu-QSIG: v=2; s=0; t=1607570021; q=34tr90iprcJokcJh9V; m=ue1X5DO76l9Ed9NyhOcclSFO4L1NFOkSfjaiDpssMro= Received: from imx2.toshiba.co.jp (imx2.toshiba.co.jp [106.186.93.51]) by relay.securemx.jp (mx-mr1510) id 0BA3DegK018871; Thu, 10 Dec 2020 12:13:40 +0900 Received: from enc01.toshiba.co.jp ([106.186.93.100]) by imx2.toshiba.co.jp with ESMTP id 0BA3DeP4008733; Thu, 10 Dec 2020 12:13:40 +0900 (JST) Received: from hop001.toshiba.co.jp ([133.199.164.63]) by enc01.toshiba.co.jp with ESMTP id 0BA3DeEm029454; Thu, 10 Dec 2020 12:13:40 +0900 From: Punit Agrawal To: Rob Herring Cc: devicetree@vger.kernel.org, Linus Walleij , linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, Nobuhiro Iwamatsu , 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> <87sg8n483w.fsf@kokedama.swc.toshiba.co.jp> <20201209163945.GA570905@robh.at.kernel.org> Date: Thu, 10 Dec 2020 12:13:33 +0900 In-Reply-To: <20201209163945.GA570905@robh.at.kernel.org> (Rob Herring's message of "Wed, 9 Dec 2020 10:39:45 -0600") X-TSB-HOP: ON Message-ID: <87sg8e2w0y.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 Rob Herring writes: [...] >> > + 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. > > If you know how many (or a range) entries there are for gpio-ranges, > then maxItems is good. If you don't, then 'gpio-ranges: true' is fine. > That doesn't make the property a boolean, but just says the property can > be present. Makes sense. Thanks for the explanation. [...]