Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2697966ybd; Thu, 27 Jun 2019 17:50:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqxzqSwe2/iDHsfRxY7TlSKy1JMh/1aTT6vtkbfs1vTRJLCZrb0hTOBe3wH85ucO7cAPzYu2 X-Received: by 2002:a65:5901:: with SMTP id f1mr6480474pgu.84.1561683012829; Thu, 27 Jun 2019 17:50:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561683012; cv=none; d=google.com; s=arc-20160816; b=BcWKQrHVgPvoUIJ9zc1XtcJUBULPBqR+RgtaPxr3D18xrAHfegMK9DUkcSV6u1tFuT Dwdr0rFSuafxoYgu9OdnNslxhdXai11w0MKYqvHZPGG7he0e1r3lrRKvvwf/Hhfdpw6k sEgecQ2jb6Umm+OiDxEVgKI9Yj33ne9SVxvHEvhKy5R6FY3jlIJhj+gt//fXjkrqxFW7 fqk1JZ1cOBo+NZMRJ3F4qypl4NmG+SRs+Fy7XJ0/3OuF8CBPYt+731r143mYwJP8cmWW A8h8H/58qpyr88cqi4PRoUnvXOt8z5YoLTu1YYsRMP/Szd51A3X8/nlXrY9K9PdJYyut TVlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:cc:to:from:date:references :in-reply-to:message-id:mime-version:user-agent:dkim-signature :dkim-signature; bh=M2zdMuVXrO3RS7mphjNsozbVtL93heOH6wA/NOHeb+0=; b=F7lyARsNEaZ8KOlOjpZ81J4BC41Xf1LU2wa6P4USAgtafS8BC2/ECH0WGw+TT6aGOm kmOopHliye0O3v9Pn8icC3JobdD5NKyRd4PHpzmZrdrmqqFmWQ9sNbqqM2h7op4YYrdx EsCZrY7qLjKPcR0eum8rmYv3oUC6fisCCOzWOugBvhPm9ZBn8WzLAGCUIGb46WrgaVvg x9EMwCSxaFY8i5Xqe74Yv7zalAxBVmf+ZVz4YGm/Wd9D1yzr592ADWt5fqWRx+15tH9Y 9eDr1clGWhu1SNxndxbYgFQxtrG4/2QasGxjroDcASQ/fh6hUWPDJWtFCdbM1lZ3UQ63 WekQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aj.id.au header.s=fm3 header.b=BAelTGQd; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=VAghNPWM; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g195si689819pfb.158.2019.06.27.17.49.56; Thu, 27 Jun 2019 17:50:12 -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; dkim=pass header.i=@aj.id.au header.s=fm3 header.b=BAelTGQd; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=VAghNPWM; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726691AbfF1AsZ (ORCPT + 99 others); Thu, 27 Jun 2019 20:48:25 -0400 Received: from new1-smtp.messagingengine.com ([66.111.4.221]:60369 "EHLO new1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726601AbfF1AsZ (ORCPT ); Thu, 27 Jun 2019 20:48:25 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id 6B66A1A78; Thu, 27 Jun 2019 20:48:21 -0400 (EDT) Received: from imap2 ([10.202.2.52]) by compute4.internal (MEProxy); Thu, 27 Jun 2019 20:48:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aj.id.au; h= mime-version:message-id:in-reply-to:references:date:from:to:cc :subject:content-type; s=fm3; bh=M2zdMuVXrO3RS7mphjNsozbVtL93heO H6wA/NOHeb+0=; b=BAelTGQdCOAoWnKgT4nPGmV09/oxDSrIMYG0yGTKzPDLRdS A1kF29+nQO+5Bht8vmcJseivJ5+K5NcDr34J6KEjOKASvwWZ3HA8bYKC4J+YtFBj m5FeOGOFRnH5lJuOEOgaCe/lLG9Tj+HSmWrFB8w0HrgQ9y+TtoCmTtybNXL6GiGs 2sGHl8u5r26oweibUscllP04sLPqo3Tap/iTrdnLojETEj1wd0b4NKNcFC/8tjrP SUnjrRS3lGPYs/EMzxpKI46V/hagG6eMJCu1433IMiUj4RV4r0zesKg/1VIsEnkn 7w0g+cPJ5Pfzj0ewIqfUMM+6UoxssWuYC4t7vXg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=M2zdMu VXrO3RS7mphjNsozbVtL93heOH6wA/NOHeb+0=; b=VAghNPWMpfYQAih/+t1B7h TM5h0Cmp8xF2l6IqUzaLabOyXKQVDwa1nMKBDsm40TdCJ17oYOn26qWAeM0Zmn4b mIpgoD8dzm3+/2O/5R/THItQC1+T4Ohw3MaAYpx32znHpCAsEituY8MuC8GmMA++ +BhtO0/vYfgRgvXqQrBB8M2Bg19OoYstd87+4qB8m+k4BLi+1gup1urE/2KlQHEC 8ER4CaNxbxDIhrBhYQnqf+FMhfp4FZjwg/90rArk+1UMKRa5tUyiMkgMkedykTmX xlpSmhRCvC647fo4tsN/psw7GQadIyvQTBG1t+qUhtx+grivSwAXQr60zzRslnuA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrudelgdeflecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvufgtsehttdertderreejnecuhfhrohhmpedftehnughr vgifucflvghffhgvrhihfdcuoegrnhgurhgvfiesrghjrdhiugdrrghuqeenucfrrghrrg hmpehmrghilhhfrhhomheprghnughrvgifsegrjhdrihgurdgruhenucevlhhushhtvghr ufhiiigvpedt X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id BA943E00A2; Thu, 27 Jun 2019 20:48:19 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.1.6-731-g19d3b16-fmstable-20190627v1 Mime-Version: 1.0 Message-Id: In-Reply-To: References: <20190626071430.28556-1-andrew@aj.id.au> <20190626071430.28556-3-andrew@aj.id.au> Date: Fri, 28 Jun 2019 10:17:39 +0930 From: "Andrew Jeffery" To: "Rob Herring" Cc: "open list:GPIO SUBSYSTEM" , "Ryan Chen" , "Linus Walleij" , "Mark Rutland" , "Joel Stanley" , linux-aspeed@lists.ozlabs.org, "OpenBMC Maillist" , devicetree@vger.kernel.org, "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , "linux-kernel@vger.kernel.org" Subject: =?UTF-8?Q?Re:_[PATCH_2/8]_dt-bindings:_pinctrl:_aspeed:_Convert_AST2400_?= =?UTF-8?Q?bindings_to_json-schema?= Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 27 Jun 2019, at 23:40, Rob Herring wrote: > On Wed, Jun 26, 2019 at 6:44 PM Andrew Jeffery wrote: > > > > > > > > On Wed, 26 Jun 2019, at 23:17, Rob Herring wrote: > > > On Wed, Jun 26, 2019 at 1:21 AM Andrew Jeffery wrote: > > > > > > > > Convert ASPEED pinctrl bindings to DT schema format using json-schema > > > > > > BTW, ASPEED is one of the remaining platforms needing the top-level > > > board bindings converted. > > > > Okay, I'll put together patches to fix that. > > > > > > > > > > > > > Signed-off-by: Andrew Jeffery > > > > --- > > > > .../pinctrl/aspeed,ast2400-pinctrl.txt | 80 ------------------- > > > > .../pinctrl/aspeed,ast2400-pinctrl.yaml | 73 +++++++++++++++++ > > > > 2 files changed, 73 insertions(+), 80 deletions(-) > > > > delete mode 100644 Documentation/devicetree/bindings/pinctrl/aspeed,ast2400-pinctrl.txt > > > > create mode 100644 Documentation/devicetree/bindings/pinctrl/aspeed,ast2400-pinctrl.yaml > > > > > > > diff --git a/Documentation/devicetree/bindings/pinctrl/aspeed,ast2400-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/aspeed,ast2400-pinctrl.yaml > > > > new file mode 100644 > > > > index 000000000000..3b8cf3e51506 > > > > --- /dev/null > > > > +++ b/Documentation/devicetree/bindings/pinctrl/aspeed,ast2400-pinctrl.yaml > > > > @@ -0,0 +1,73 @@ > > > > +# SPDX-License-Identifier: GPL-2.0+ > > > > > > Do you have rights to change the license? > > > > Where are you coming from with this question? The bindings previously didn't list a > > license, is there some implicit license for them? I would have thought it was GPL-2.0? > > Yes, it is implicitly GPL-2.0 since it is in the kernel tree and has > no other license text. > > > IBM's (my employer's) preferred contribution license is GPL 2.0-or-later, so I was just > > adding the SPDX marker to clarify. > > Adding 'or-later' is a licensing change. If IBM is the copyright > holder on all this file, then that is fine. I authored the file for IBM and they hold the copyright, so the change is permitted. > > > > If so, the preference is to > > > dual license with (GPL-2.0 OR BSD-2-Clause). > > > > You're asking if I have the power to relicense so I can dual license it this way? > > It would probably be up to your company. If that's an issue, then not > dual licensing is fine. I don't want to hold things up on that. Okay. I've asked and the query is being resolved internally. I'm not sure when that will occur though, so I'll relicense it in a future patch if the request gets the go ahead. Just for the record, what's the motivation for the dual license? Understanding why will likely help resolve the request. > > [...] > > > > > +required: > > > > + - compatible > > > > + > > > > +description: |+ > > > > > > description goes before properties. > > > > Okay. I wouldn't have thought the ordering mattered. Is this just a preference? > > Yes, just a preference. > > > The tools seemed to run fine as is. > > > > I'll re-order it regardless. > > > > > > > > > + The pin controller node should be the child of a syscon node with the > > > > + required property: > > > > + > > > > + - compatible: Should be one of the following: > > > > + "aspeed,ast2400-scu", "syscon", "simple-mfd" > > > > + "aspeed,g4-scu", "syscon", "simple-mfd" > > > > + > > > > + Refer to the the bindings described in > > > > + Documentation/devicetree/bindings/mfd/syscon.txt > > > > + > > > > + For the AST2400 pinmux, each mux function has only one associated pin group. > > > > + Each group is named by its function. The following values for the function > > > > + and groups properties are supported: > > > > + > > > > + ACPI ADC0 ADC1 ADC10 ADC11 ADC12 ADC13 ADC14 ADC15 ADC2 ADC3 ADC4 ADC5 ADC6 > > > > + ADC7 ADC8 ADC9 BMCINT DDCCLK DDCDAT EXTRST FLACK FLBUSY FLWP GPID GPID0 GPID2 > > > > + GPID4 GPID6 GPIE0 GPIE2 GPIE4 GPIE6 I2C10 I2C11 I2C12 I2C13 I2C14 I2C3 I2C4 > > > > + I2C5 I2C6 I2C7 I2C8 I2C9 LPCPD LPCPME LPCRST LPCSMI MAC1LINK MAC2LINK MDIO1 > > > > + MDIO2 NCTS1 NCTS2 NCTS3 NCTS4 NDCD1 NDCD2 NDCD3 NDCD4 NDSR1 NDSR2 NDSR3 NDSR4 > > > > + NDTR1 NDTR2 NDTR3 NDTR4 NDTS4 NRI1 NRI2 NRI3 NRI4 NRTS1 NRTS2 NRTS3 OSCCLK > > > > + PWM0 PWM1 PWM2 PWM3 PWM4 PWM5 PWM6 PWM7 RGMII1 RGMII2 RMII1 RMII2 ROM16 ROM8 > > > > + ROMCS1 ROMCS2 ROMCS3 ROMCS4 RXD1 RXD2 RXD3 RXD4 SALT1 SALT2 SALT3 SALT4 SD1 > > > > + SD2 SGPMCK SGPMI SGPMLD SGPMO SGPSCK SGPSI0 SGPSI1 SGPSLD SIOONCTRL SIOPBI > > > > + SIOPBO SIOPWREQ SIOPWRGD SIOS3 SIOS5 SIOSCI SPI1 SPI1DEBUG SPI1PASSTHRU > > > > + SPICS1 TIMER3 TIMER4 TIMER5 TIMER6 TIMER7 TIMER8 TXD1 TXD2 TXD3 TXD4 UART6 > > > > + USB11D1 USB11H2 USB2D1 USB2H1 USBCKI VGABIOS_ROM VGAHS VGAVS VPI18 VPI24 > > > > + VPI30 VPO12 VPO24 WDTRST1 WDTRST2 > > > > > > This should be a schema. > > > > Yeah, I covered this in my cover letter. I was hoping to get away without > > that for the moment as this seems like the first pinctrl binding to be > > converted, however if you insist... > > That generally doesn't matter. You can assume common properties will > have a schema and you don't need to define common constraints (like > 'function' is a string array). You only need what is specific to this > binding which is possible values. Right, it just wasn't clear to me how much effort was involved. Having hacked around a bit now I've found it's not so much. Thanks for your feedback. Andrew