Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1234640pxk; Fri, 18 Sep 2020 07:21:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxltwIH/iJGkdkZU5esfR76pk/L4n0rRUgZEp3BNSHOMyEG+ro44IO6i4To+1qfr2vIh2rR X-Received: by 2002:a17:907:444d:: with SMTP id on21mr34886831ejb.329.1600438881573; Fri, 18 Sep 2020 07:21:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600438881; cv=none; d=google.com; s=arc-20160816; b=w56iz6A65wgmN5RXGPg0BCvvbhvuZkQExbXgC24lqL1HaMzMgkuJCcM/548NAlopif wLF8NYU6pcqc1nHY6bkynq2Qks6T+58rgrIkUSC0xBNaR75u7MknH5BK2VzFy54l9TxX Z/ka9dIis1LHBdj24W/Xi2Mvlbgr09puGYzPMmvh7BQ+rrTtS6fGeTxngBK31JKY/V2m Lz8tK7KCvmTmaSypQ4jaPBdO0pm6vXzsXGT+bwmkN+YqN1ImlSmozsoPsEiRPr0Sy4vU f3L2wacLh9QDUIpDfliPHNFLLQrKzLL6rZuSkXwmXDZrAYNL8pNBBv8EoJZKq5OI1E6A 5/AQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=do3dMziinBWEWPegHGyZZq+rz0zvkC89tMKG9mCamrg=; b=QHz8bd6W5wEf5uCHmF60sx9AsTbvyz9D3LjzpluKskSImI7MdtFrikwZhDXo95del1 iwqAOKvZU8aC1hjK7+R8c8w3t/MXyXWEzejvkgaVmVbemdNkjaJRP98U+S59csLfJOrB PtYqUfbK0p8FtCoEtqnDFCGxAPhZWeQZ9a7UyLmi6dgGVcs18Wwzea8pZ0jpSs8gll58 sTuypjj6Ai1Zhlpa9aokE/oar9/JHPHNldEsQ1MolAZRUNhSUJNeJUI0A0H316DixPa8 Jg+LfBOodxe76euTpJk974uxZLcCxk16A+aCx/KXNzWeZDjKffuCuG9LzcBaEO7YF9P9 yXaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b="E/Zvmkqb"; 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 t23si2667889ejs.552.2020.09.18.07.20.57; Fri, 18 Sep 2020 07:21:21 -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; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b="E/Zvmkqb"; 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 S1726613AbgIROTX (ORCPT + 99 others); Fri, 18 Sep 2020 10:19:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726192AbgIROTW (ORCPT ); Fri, 18 Sep 2020 10:19:22 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 033DBC0613CE; Fri, 18 Sep 2020 07:19:22 -0700 (PDT) Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 5EC382D7; Fri, 18 Sep 2020 16:19:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1600438758; bh=fIZGQZZYM2FyHIfA+1pya2D9PN88lhv1BbBbmjKpOQY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=E/ZvmkqbpHcJAzSJWAcR9DD4mJds6aQ4ZFQLl81hgVUiAjz1lfibYnZHTp00xOuII mcjifMkOztY3aI9rZ53HCbQjoKLmJZelTc6VG1oDpdrdIMGDhNOqDxzZ/QnX7EXqLb tevVCNbQW2u28SmRYp6swCcNwEWZ9cVPc2mEccA8= Date: Fri, 18 Sep 2020 17:18:47 +0300 From: Laurent Pinchart To: Krzysztof Kozlowski Cc: Linus Walleij , Bartosz Golaszewski , Rob Herring , Ray Jui , Scott Branden , bcm-kernel-feedback-list@broadcom.com, Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Manivannan Sadhasivam , Andy Gross , Bjorn Andersson , Palmer Dabbelt , Paul Walmsley , Hoan Tran , Serge Semin , Masahiro Yamada , Jacopo Mondi , Kieran Bingham , Laurent Pinchart , Niklas =?utf-8?Q?S=C3=B6derlund?= , Mauro Carvalho Chehab , Charles Keepax , Richard Fitzgerald , Lee Jones , Maxime Coquelin , Alexandre Torgue , Andreas =?utf-8?Q?F=C3=A4rber?= , Maxime Ripard , Chen-Yu Tsai , Matthias Brugger , Geert Uytterhoeven , Liam Girdwood , Mark Brown , Chris Packham , Anson Huang , Sungbo Eo , Stefan Agner , Srinivas Kandagatla , Magnus Damm , Yash Shah , Paul Kocialkowski , - , Matti Vaittinen , Amelie Delaunay , Cristian Ciocaltea , Paul Cercueil , Andy Teng , Sean Wang , Sricharan R , Chris Brandt , Jaroslav Kysela , Takashi Iwai , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, "linux-kernel@vger.kernel.org" , linux-unisoc@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-riscv@lists.infradead.org, linux-media@vger.kernel.org, alsa-devel@alsa-project.org, linux-stm32@st-md-mailman.stormreply.com, linux-mediatek@lists.infradead.org, linux-renesas-soc@vger.kernel.org Subject: Re: [PATCH v2 01/13] dt-bindings: gpio: add common schema for GPIO controllers Message-ID: <20200918141847.GE28436@pendragon.ideasonboard.com> References: <20200917165301.23100-1-krzk@kernel.org> <20200917165301.23100-2-krzk@kernel.org> <20200917200936.GF3969@pendragon.ideasonboard.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Krzysztof, On Fri, Sep 18, 2020 at 09:52:57AM +0200, Krzysztof Kozlowski wrote: > On Thu, 17 Sep 2020 at 22:10, Laurent Pinchart wrote: > > On Thu, Sep 17, 2020 at 06:52:49PM +0200, Krzysztof Kozlowski wrote: > > > Convert parts of gpio.txt bindings into common dtschema file for GPIO > > > controllers. > > > > How about deleting the part that has been converted from gpio.txt ? > > I did not move everything from the gpio.txt and it is really nicely > explained there. I think to leave it as it works as a overview/guide > better than YAML. I'm just a bit worried that duplicating some of the information in two places will lead to them becoming out of sync, but maybe the risk isn't that high. > > > The schema enforces proper naming of GPIO controller nodes and GPIO > > > hogs. > > > > > > The schema should be included by specific GPIO controllers bindings. > > > > Instead of including it manually, could we use a conditional select: to > > apply the schema automatically when a gpio-controller property is > > present ? > > You mean the same way as generic schema for GPIO controllers work? > This could be done but the point is to enforce the GPIO controller > bindings in GPIO controllers, so also in cases when someone forgets to > add "gpio-controller" property. Although, if given GPIO controller > schema requires "gpio-controller" then indeed select would work... You could just make gpio-controller mandatory in the schema, and get everything else automatically selected based on that, without needing a manual $ref. -- Regards, Laurent Pinchart