Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp6924793ybn; Mon, 30 Sep 2019 06:05:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqzjkyzCRB9v13WTYV2FEzJL36Ex0F/kev2ERRsNXCjBG5FE56k3Da2O6KX0Y6WFMJa0VK38 X-Received: by 2002:a17:906:1659:: with SMTP id n25mr19575341ejd.258.1569848723477; Mon, 30 Sep 2019 06:05:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569848723; cv=none; d=google.com; s=arc-20160816; b=Ax8Nx1AjdMkkCka0Hl9b0vy3M/0vTzvnZWVtxt6tiPj7SpNx6E5qZrwjKyUu35PsnA lHtt0LL2Q65n8kgICm15YSj6+t3cTfY6ceCDL/pZCm1GZFZCdg6ft+So9vNRznZgmidF icx2kzF0tbtAmVNCTzq4ttabRYEy6fx/DRlUiEPA9diyOu/wLKyLdOdmkYumXXf901Ow Po6Ad5h9BBAKCLWwjYUJ5Gl4Qa0aU7Q+MJT4/RWgJVOv3BlPuNTQfcJpj3cqIOXqjPxF 8AX7V06tT/WoS9Ny+l7lFANSiIX8sEIQ/Qp28VyVt26dWsMumjAn4B15UWi6z0lo/6py elXA== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=r1biT3z4HmAvefafF9uIXaOf/W/MJzkBlJwoZ49uPn4=; b=sNP8h54L4mtd2+jwivYlGv/Eo6x+ugCZTp/HXC3zxr8aUvqLMFx8N5f9mTtyVmiWkR 2A8VzQDjQ9KqGo1hxmnJfW6QUOE4LlagfRG4dBZbvVQ2+1cvVwHhnhNzH9I83GJ5Mjeu hMWW95g+gi45u0u74I7JBjBh+8ndIkQ7xB2UQfFWBwgd+C9r/8m82gbANRTQ7/yFrx77 Ek3tMllggXh1Une5LMR414PAhEnnmLC+IAkFyP3ybERtwxI5lz2bnjqswHwxUwa0jyqN 9ct7Vfu+q6EYWl3eoxpfzqef6h9OfRqOLtFK4wVUIJWBJc36L2QBPLC14l409kD76Jd7 OjfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b="Jo/WBmAF"; 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 h48si7123853ede.31.2019.09.30.06.04.57; Mon, 30 Sep 2019 06:05:23 -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=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b="Jo/WBmAF"; 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 S1731153AbfI3NDW (ORCPT + 99 others); Mon, 30 Sep 2019 09:03:22 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:53270 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731090AbfI3NDE (ORCPT ); Mon, 30 Sep 2019 09:03:04 -0400 Received: by mail-wm1-f68.google.com with SMTP id i16so13322959wmd.3 for ; Mon, 30 Sep 2019 06:03:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=r1biT3z4HmAvefafF9uIXaOf/W/MJzkBlJwoZ49uPn4=; b=Jo/WBmAF7Fx7KoQj04IyncOX+koFGrFGMhNCzZnkJrgWepLEcOtKzJoXvX4A/vSdBx aYLxRpb3bFqb4Y2UoUHhlbcrbnuA7iqopq09y4Sjq3tfr30KCoNaACPdrlcrDGQ96xF5 5eGlPPR0Ay1nXoOE30DU2fuoYr32rkhblV5QukBhpg/4cr6yd7QAtT/WfBo4f00gloEg 9KMC1Ky9gpXU+DFRTZllk/woqnzdb56JLSoeSYATshVlSY+/shvpmS0F8LOGlEHqWuBP qHIeeAwiKajIC4VyOPwQIKiWGRs4ugl/7LS1TRFqMNin5sugUHHpK1L1BSZfK6KGPEyf 5ZoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=r1biT3z4HmAvefafF9uIXaOf/W/MJzkBlJwoZ49uPn4=; b=MLq/HkUlU6czCtKY5pLSprkmrQqPA3y2vZ22hNh/opIBb4nuljrTzw6GASXI8om/p/ D1X/iGlAv2kVuT44FPxpcgq7Ht6AGFOtkCuPhbRa7IOzBOGnWv5KftwUYiTjYADprYle 4QHbsFMaYq892lC+pfkTCjJCpybg98gSvknqSZ+tidD4aoOX1/DZNAngzgEV1MpUVt0S HdiJyM1x8S/N4JFakAjFBQvk+5JyuiByN9vGv0U3UeiQxSWqnuYxcYTOjYNDf/+2X4X8 fTnl93Udluq5j1hm4YGPf4vWdpHoxBPzgeImdXY0bdExTx/VtJPCwnbbMjk13X1Oedsl ijtA== X-Gm-Message-State: APjAAAVaQNMcoOj38hwkoaC5B+gcYJqXLol2NEC5w7R03gGcz6g1WySt Sg67ApEhZpclB0oU7X/5U77q4A== X-Received: by 2002:a7b:c10b:: with SMTP id w11mr16341237wmi.108.1569848582114; Mon, 30 Sep 2019 06:03:02 -0700 (PDT) Received: from localhost.localdomain (amontpellier-652-1-281-69.w109-210.abo.wanadoo.fr. [109.210.96.69]) by smtp.gmail.com with ESMTPSA id e6sm10654756wrp.91.2019.09.30.06.03.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Sep 2019 06:03:01 -0700 (PDT) From: Bartosz Golaszewski To: Rob Herring , Mark Rutland , Dmitry Torokhov , Jacek Anaszewski , Pavel Machek , Dan Murphy , Lee Jones , Sebastian Reichel , Liam Girdwood , Mark Brown Cc: linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org, linux-pm@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH 4/6] dt-bindings: power: max77650: convert the binding document to yaml Date: Mon, 30 Sep 2019 15:02:44 +0200 Message-Id: <20190930130246.4860-5-brgl@bgdev.pl> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190930130246.4860-1-brgl@bgdev.pl> References: <20190930130246.4860-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bartosz Golaszewski Convert the binding document for max77650 charger module to yaml. Signed-off-by: Bartosz Golaszewski --- .../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/max77650-charger.yaml diff --git a/Documentation/devicetree/bindings/power/supply/max77650-charger.txt b/Documentation/devicetree/bindings/power/supply/max77650-charger.txt index e6d0fb6ff94e..fbab7d3ac8e3 100644 --- a/Documentation/devicetree/bindings/power/supply/max77650-charger.txt +++ b/Documentation/devicetree/bindings/power/supply/max77650-charger.txt @@ -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 device 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 microamps). Must - be one of: 95000, 190000, 285000, 380000, - 475000. - -Example: --------- - - charger { - compatible = "maxim,max77650-charger"; - input-voltage-min-microvolt = <4200000>; - input-current-limit-microamp = <285000>; - }; +This file was moved to max77650-charger.yaml. diff --git a/Documentation/devicetree/bindings/power/supply/max77650-charger.yaml b/Documentation/devicetree/bindings/power/supply/max77650-charger.yaml new file mode 100644 index 000000000000..9dd0dad0f948 --- /dev/null +++ b/Documentation/devicetree/bindings/power/supply/max77650-charger.yaml @@ -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 device 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 = "maxim,max77650-charger"; + input-voltage-min-microvolt = <4200000>; + input-current-limit-microamp = <285000>; + }; -- 2.23.0