Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp7235840ybp; Wed, 16 Oct 2019 05:56:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqzTlwX+xJYnSrNQY/+gdrLsH/H8DXlsbPlrqi72H36n+ybp81zDetX7+A9K/mnDhY9FcMvt X-Received: by 2002:a05:6402:1804:: with SMTP id g4mr39242692edy.266.1571230602465; Wed, 16 Oct 2019 05:56:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571230602; cv=none; d=google.com; s=arc-20160816; b=l3avT0HPszYeW59xwgIDCGc3H0ELdoUZc1BHw71jIli2HKJFRYSyf7v7KDXZEgvESc 9FxlYJbjLUYO3cZbbXNnr30/FvV/uQzGkUA+v+SuF1Z+Wquc1hDAWgSN/VPMIlwEUkQN VGVlZ0GVgqOtm5K0TSUrfBUKx6IvbbnInsBXmLBdccyGyhqAiP+NZ8U5beykbrY3J31C kXvPMsFfbjzQW+YaCrOnmLent3ukYWGC0oiZ4ujWFW/Kvk0xwkJRXT/Ct7OZ3dq+Nn39 fXs6wQVfg7MZhOQxGCe5fFxlKv56b5kH4vJRM9Vn6GuT24/h0KI3NwyZ/hsdcICOoL91 /g9Q== 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=TaAko0rHRb4gyBH2lBWVYnJuZHP/kcOSHoWKD/0YW+0=; b=d8t+jPHKh3Hu7om2iA4wYn7PJZMohvw5/ltw6tVztlUuIcdV0X7TOYVGgNKetuaJy0 J/iZAkMVqhF72P171ewW7ECbP3M5Q/BlVWTG74nPvynRLhjv3XeW4K5KBj2vA1aMdxlI 3Qs3vJusNR4mYRBf3PAES6RSjQHrbZd6cMapJ7YbZchNGmqRV32HUBDE0wK7iZTzrqTm N3kAdXTY1k5TN2DXRdd9R6yQOBYJDd+dH6mxKvyuAVixxieRAwtsn/7kPeajHe7vPvHr P6gjsEgO8cYDUVJny28/++IjeOJ1FYOrPnW+3THAHVy1ZbEzv7Y8/2vdU+t68nHEawus EHxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=uqwzsV6O; 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 k17si14477544ejz.227.2019.10.16.05.56.19; Wed, 16 Oct 2019 05:56:42 -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=uqwzsV6O; 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 S1726092AbfJPIbb (ORCPT + 99 others); Wed, 16 Oct 2019 04:31:31 -0400 Received: from mail-ot1-f68.google.com ([209.85.210.68]:34116 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730392AbfJPIba (ORCPT ); Wed, 16 Oct 2019 04:31:30 -0400 Received: by mail-ot1-f68.google.com with SMTP id m19so19447097otp.1 for ; Wed, 16 Oct 2019 01:31:28 -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=TaAko0rHRb4gyBH2lBWVYnJuZHP/kcOSHoWKD/0YW+0=; b=uqwzsV6OK3KphoWbeGbFhcWhYjV9Jubd8rt5VmBD5qSpRmrGE/3/lstncLn/ole9qk j0iwCAs3bdFZeO79+dh2d+v1jLnSkh4ZqDXFOWimb6GQP4pQ4fMiIvbDciukoNihRaIz 44kzIDO1nkMbOK9JHJ7CQkkvLHFqk3sXb7/swrQqkv6ZPZvrz6dMvy2Q6FaIRTDOUo7H cNpQD2NKK3jyfPuZUa0bxTCVNQYQlw2zhBKt0kuIOExdefo7hkSiof5+XpOu/aY/Tdck D2gERzMdFQrJsrqYbmF+uudNRJkZHa8oNdDBCU0SQUs9Oi5t6fQTSoA9oWl57XDqapqE Ivjw== 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=TaAko0rHRb4gyBH2lBWVYnJuZHP/kcOSHoWKD/0YW+0=; b=JoUQqJRvtzz1IhSZoMDpGlW7QxJC2wOtY0V5bHQ2bfzksWm5hBUiOBMYzh7IFnxqSX fr9l8g5mpV/VjuqURI/dK3kw04rSys6025McwbmcFsNjG/xrRceYfI9mmWdS/IA9GoHF 5s3NqtXpnxqk4rdZa0bGsyDKW1kei3HGCS+lak+Xl9xyIf7Zst/oTXWjP5wkwVOz0MXI VPXYBXaDA5wZMp2jEgaikB/DOpKe4peJMfWzFO9ysLewFK8wkEqoHJj4uXDIEPw2b12C n4Tgms1WjC1/MJ2O9H7QyQ43+6l5MGwmNyMtq59c0ijvRbgzY/owxGRaBGX9Vsqlg3g3 hVFw== X-Gm-Message-State: APjAAAV8+2Z3uae0slQTf4fur5u6AWddfiLmqHzxNODq4u/fX7MhL7vO wH9W5eACVU+5eAybbSItLBDbOi+3GrKTKGwDRJNdyQ== X-Received: by 2002:a9d:344a:: with SMTP id v68mr33650170otb.85.1571214688147; Wed, 16 Oct 2019 01:31:28 -0700 (PDT) MIME-Version: 1.0 References: <20191015162300.22024-1-brgl@bgdev.pl> <20191015162300.22024-5-brgl@bgdev.pl> <20191015191837.jd6lbk3qbsmzuwfu@earth.universe> In-Reply-To: <20191015191837.jd6lbk3qbsmzuwfu@earth.universe> From: Bartosz Golaszewski Date: Wed, 16 Oct 2019 10:31:17 +0200 Message-ID: Subject: Re: [PATCH v2 4/6] dt-bindings: power: max77650: convert the binding document to yaml To: Sebastian Reichel Cc: Bartosz Golaszewski , Rob Herring , Mark Rutland , Dmitry Torokhov , Jacek Anaszewski , Pavel Machek , Dan Murphy , Lee Jones , 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 wt., 15 pa=C5=BA 2019 o 21:18 Sebastian Reichel napisa=C5= =82(a): > > Hi, > > On Tue, Oct 15, 2019 at 06:22:58PM +0200, Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski > > > > Convert the binding document for MAX77650 charger module to YAML. > > > > Signed-off-by: Bartosz Golaszewski > > --- > > Looks sensible to me. Assuming this goes through Rob: > > Acked-by: Sebastian Reichel Oops, I added your ack for v1 to the leds patch in v2 by mistake. There'll be a v3 though so no worries. Thanks! Bart > > -- Sebastian > > > .../power/supply/max77650-charger.txt | 29 +------------ > > .../power/supply/max77650-charger.yaml | 42 +++++++++++++++++++ > > 2 files changed, 43 insertions(+), 28 deletions(-) > > create mode 100644 Documentation/devicetree/bindings/power/supply/max7= 7650-charger.yaml > > > > diff --git a/Documentation/devicetree/bindings/power/supply/max77650-ch= arger.txt b/Documentation/devicetree/bindings/power/supply/max77650-charger= .txt > > index e6d0fb6ff94e..fbab7d3ac8e3 100644 > > --- a/Documentation/devicetree/bindings/power/supply/max77650-charger.t= xt > > +++ b/Documentation/devicetree/bindings/power/supply/max77650-charger.t= xt > > @@ -1,28 +1 @@ > > -Battery charger 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 charger is represented as a sub-node of the PMIC node on the devic= e tree. > > - > > -Required properties: > > --------------------- > > -- compatible: Must be "maxim,max77650-charger" > > - > > -Optional properties: > > --------------------- > > -- input-voltage-min-microvolt: Minimum CHGIN regulation voltage.= Must be one > > - of: 4000000, 4100000, 4200000, 4300000, > > - 4400000, 4500000, 4600000, 4700000. > > -- input-current-limit-microamp: CHGIN input current limit (in mic= roamps). Must > > - be one of: 95000, 190000, 285000, 380000, > > - 475000. > > - > > -Example: > > --------- > > - > > - charger { > > - compatible =3D "maxim,max77650-charger"; > > - input-voltage-min-microvolt =3D <4200000>; > > - input-current-limit-microamp =3D <285000>; > > - }; > > +This file was moved to max77650-charger.yaml. > > diff --git a/Documentation/devicetree/bindings/power/supply/max77650-ch= arger.yaml b/Documentation/devicetree/bindings/power/supply/max77650-charge= r.yaml > > new file mode 100644 > > index 000000000000..9dd0dad0f948 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/power/supply/max77650-charger.y= aml > > @@ -0,0 +1,42 @@ > > +# SPDX-License-Identifier: GPL-2.0 > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/power/supply/max77650-charger.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: Battery charger 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. > > + > > + The charger is represented as a sub-node of the PMIC node on the dev= ice tree. > > + > > +properties: > > + compatible: > > + const: maxim,max77650-charger > > + > > + input-voltage-min-microvolt: > > + description: > > + Minimum CHGIN regulation voltage. > > + enum: [ 4000000, 4100000, 4200000, 4300000, > > + 4400000, 4500000, 4600000, 4700000 ] > > + > > + input-current-limit-microamp: > > + description: > > + CHGIN input current limit (in microamps). > > + enum: [ 95000, 190000, 285000, 380000, 475000 ] > > + > > +required: > > + - compatible > > + > > +examples: > > + - | > > + charger { > > + compatible =3D "maxim,max77650-charger"; > > + input-voltage-min-microvolt =3D <4200000>; > > + input-current-limit-microamp =3D <285000>; > > + }; > > -- > > 2.23.0 > >