Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1353793ybg; Fri, 18 Oct 2019 16:33:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqxDcBrINXPPurZUaDkQ9r+4XsOtq+F15ohHTLOcQUO1e/QRx0OTl2HvWmBzjoHj/duSm6+y X-Received: by 2002:a17:906:95cc:: with SMTP id n12mr9494206ejy.111.1571441637537; Fri, 18 Oct 2019 16:33:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571441637; cv=none; d=google.com; s=arc-20160816; b=lQ4ukVhg2LW9BUulL5tceSkC+sYji43tO/a+phyoNGvS5PXodPH6G8qaG8E7m6zn9u /eDL8weHtCe74l4sHIbaYcWeWFjPOwGY20aX2MNWBTcx3cfUq7lgkwOrGDxjkcAkeBdR 7vyQmnj99eiEEyYcUrgnBolihwbu18euq5zGHj71RWnLGskGgSsDAfdh+2flKTCWzopu qzz2YRHf87EYDIe2EP90YBHLZquIytLGL3uBTtKQaIaAZCLmOcyav1AiiawWRIZ+si9s Phtr3JnvdWaq6trXqaYy8Mst44sYq5kTA06W2FCvM/HDs6xfMPzoqo4ZWWvyuhVFYVm7 WXxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=1lF1MIdaENKkNdKHx3QF8806cfpyw2N47Ri2S6zNu+A=; b=ltj4vP6/XqaUD4RauBQ7gJR0/1GlkGNIkIvyO2EHtfIPbQkDLva5VGGZwsy1gmgzAv 7KRCtyox92ynAbztlp4GbThPDwBlBujXw9DrRo5+LL/pu6jEJWfUQDDfv1zL5QJVsBHi 4m3zFzwB/d1YnoxgDa80e2o3PxPVafJwRCA5OHbEOhvMluTTub1pLig5zaT6NIRrmNC3 W/KjgUZWz5XZRgi1gPxLnJlTSvexgO4dhO77MCRdsRJT1EEMv8ZfQN9Bd3LAmPVLZOAC GOlNzsogKK1AqmRDl0n+AGsuMpzzBhEryY5M8o250QQxGpjCfyFp78C2p4CChp2i0Cvt z2dA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=fdz+n06H; 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 k8si4493758edx.450.2019.10.18.16.33.34; Fri, 18 Oct 2019 16:33:57 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=fdz+n06H; 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 S2504478AbfJRGpL (ORCPT + 99 others); Fri, 18 Oct 2019 02:45:11 -0400 Received: from mail-ot1-f68.google.com ([209.85.210.68]:41587 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2393594AbfJRGpL (ORCPT ); Fri, 18 Oct 2019 02:45:11 -0400 Received: by mail-ot1-f68.google.com with SMTP id g13so4060089otp.8 for ; Thu, 17 Oct 2019 23:45:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=1lF1MIdaENKkNdKHx3QF8806cfpyw2N47Ri2S6zNu+A=; b=fdz+n06HECsJp9I5yC12MLoPyso3cVdDWSygC4Y7XVo2s+raIUe7Kh+aLwemhLMU5k i7dVQR2xfPsax9aa+5VJyUvt0/X84pN8bZr2I1IqodPrl3WJd8v/DQvU0Mn7HPDL3F9G p2zjMx/ktE9PQCFIGtVBeHWjl+r/xzysY7yUr0+lRii3jz18vN6MqHlkSU45xQ55o05m G1FSO9291SHGdzv4XiuXv+oNdb3MCs2XWDCdELcJYSDl+uaG/muocWgujsYLr1TZ5iXU 5ElzuYwPbcYqYAwmJUKvQibj3nrYv8cN7CxOJQhhzGPFEDhOSpyWjgAwj+3CpwrqQEHf a/Pw== 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:content-transfer-encoding; bh=1lF1MIdaENKkNdKHx3QF8806cfpyw2N47Ri2S6zNu+A=; b=sDcrr3tRw1bIx/B5febqal53AnaaS847Pm58bbFoIk+ZVZBUBacjPWrFDjBxEi7PB9 5ntyIqeC9AJL7Wdm469bw44UeAS3x0EM+9EnLn8/S/17vMocz8yNLrtSH0PhjWbAiDR5 hP8Ts3c3c2LJcRxGORxs82hlx8C+YRApEjDHQyMi0P5KYpxSIZDiOpFsqgjXrBu3qXAL KBqON6dU8L5rs0Cmlu9nwbYlSJmjC2Eq9knmBBUTzn22m/8aL2uJgdasc7ubPZ2eiA3H e8a7tgm3adX6ifN1ov27Kxg5iEffeRjWNUNuPxsxG2t51O9mo/tKDMnBPASAE5W0dK3v tOlg== X-Gm-Message-State: APjAAAUvzEJ+MwLQsl9hcyM5ihbd9hhNlIv3R2q626xYHBzg2o/Sp7bF 7tMhKcPOCw11m+X/jSVpVB7pWwOHuPO3616y/LZavg== X-Received: by 2002:a9d:7d09:: with SMTP id v9mr6404595otn.292.1571381108752; Thu, 17 Oct 2019 23:45:08 -0700 (PDT) MIME-Version: 1.0 References: <20191017071234.8719-1-brgl@bgdev.pl> <20191017071234.8719-4-brgl@bgdev.pl> <20191017183543.GA28403@bogus> In-Reply-To: <20191017183543.GA28403@bogus> From: Bartosz Golaszewski Date: Fri, 18 Oct 2019 08:44:57 +0200 Message-ID: Subject: Re: [PATCH v3 3/6] dt-bindings: regulator: max77650: convert the binding document to yaml To: Rob Herring Cc: Bartosz Golaszewski , Mark Rutland , Dmitry Torokhov , Jacek Anaszewski , Pavel Machek , Dan Murphy , Lee Jones , Sebastian Reichel , Liam Girdwood , Mark Brown , Linux Input , linux-devicetree , LKML , Linux LED Subsystem , linux-pm Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org czw., 17 pa=C5=BA 2019 o 20:35 Rob Herring napisa=C5=82(a= ): > > On Thu, Oct 17, 2019 at 09:12:31AM +0200, Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski > > > > Convert the binding document for MAX77650 regulator module to YAML. > > > > Signed-off-by: Bartosz Golaszewski > > --- > > .../bindings/regulator/max77650-regulator.txt | 41 ------------------- > > .../regulator/max77650-regulator.yaml | 31 ++++++++++++++ > > 2 files changed, 31 insertions(+), 41 deletions(-) > > delete mode 100644 Documentation/devicetree/bindings/regulator/max7765= 0-regulator.txt > > create mode 100644 Documentation/devicetree/bindings/regulator/max7765= 0-regulator.yaml > > > > diff --git a/Documentation/devicetree/bindings/regulator/max77650-regul= ator.txt b/Documentation/devicetree/bindings/regulator/max77650-regulator.t= xt > > deleted file mode 100644 > > index f1cbe813c30f..000000000000 > > --- a/Documentation/devicetree/bindings/regulator/max77650-regulator.tx= t > > +++ /dev/null > > @@ -1,41 +0,0 @@ > > -Regulator driver for MAX77650 PMIC from Maxim Integrated. > > - > > -This module is part of the MAX77650 MFD device. For more details > > -see Documentation/devicetree/bindings/mfd/max77650.txt. > > - > > -The regulator controller is represented as a sub-node of the PMIC node > > -on the device tree. > > - > > -The device has a single LDO regulator and a SIMO buck-boost regulator = with > > -three independent power rails. > > - > > -Required properties: > > --------------------- > > -- compatible: Must be "maxim,max77650-regulator" > > - > > -Each rail must be instantiated under the regulators subnode of the top= PMIC > > -node. Up to four regulators can be defined. For standard regulator pro= perties > > -refer to Documentation/devicetree/bindings/regulator/regulator.txt. > > - > > -Available regulator compatible strings are: "ldo", "sbb0", "sbb1", "sb= b2". > > - > > -Example: > > --------- > > - > > - regulators { > > - compatible =3D "maxim,max77650-regulator"; > > - > > - max77650_ldo: regulator@0 { > > - regulator-compatible =3D "ldo"; > > - regulator-name =3D "max77650-ldo"; > > - regulator-min-microvolt =3D <1350000>; > > - regulator-max-microvolt =3D <2937500>; > > - }; > > - > > - max77650_sbb0: regulator@1 { > > - regulator-compatible =3D "sbb0"; > > - regulator-name =3D "max77650-sbb0"; > > - regulator-min-microvolt =3D <800000>; > > - regulator-max-microvolt =3D <1587500>; > > - }; > > - }; > > diff --git a/Documentation/devicetree/bindings/regulator/max77650-regul= ator.yaml b/Documentation/devicetree/bindings/regulator/max77650-regulator.= yaml > > new file mode 100644 > > index 000000000000..a8770742836d > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/regulator/max77650-regulator.ya= ml > > @@ -0,0 +1,31 @@ > > +# SPDX-License-Identifier: GPL-2.0 > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/regulator/max77650-regulator.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: Regulator driver for MAX77650 PMIC from Maxim Integrated. > > + > > +maintainers: > > + - Bartosz Golaszewski > > + > > +description: | > > + This module is part of the MAX77650 MFD device. For more details > > + see Documentation/devicetree/bindings/mfd/max77650.txt. > > .yaml? > Is there any better way of referencing the main document than mentioning it in the description? Bart > > + > > + The regulator controller is represented as a sub-node of the PMIC no= de > > + on the device tree. > > + > > + The device has a single LDO regulator and a SIMO buck-boost regulato= r with > > + three independent power rails. > > + > > +properties: > > + compatible: > > + const: maxim,max77650-regulator > > + > > +patternProperties: > > + "^regulator@[0-3]$": > > + $ref: "regulator.yaml#" > > + > > +required: > > + - compatible > > -- > > 2.23.0 > >