Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp6329887ybp; Tue, 15 Oct 2019 13:14:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqwRk1JgSpL/78Uca8JxDlgoI0fCidzfP6H+jw94+KkOTpIMEtW0udROf4XuDHqDRmOfo6R8 X-Received: by 2002:a50:da0f:: with SMTP id z15mr35573247edj.137.1571170445342; Tue, 15 Oct 2019 13:14:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571170445; cv=none; d=google.com; s=arc-20160816; b=ovwQk1AX87yAJV/9h4HGilAv/pyUV6+g55LoWb28q31GUiNx8sV9UoghNqTC1gNFwB Vt++NxsTi0iUoxxMtCpRuLSNve8oKa5SVUV0bMSqZ50rMSefs20vcXVi1KRSo8fuR5Kx ZZvoWYxxVyBa5cxC2v1z4w5Naf3IqIxk2s5P7YWBAhdB/QuL9D9KAp7inWcLmhZ+oUo2 RRj/o6cEhIn80G6gUm3t3ADGbzzUjrQoenEuS7eo1zS0VxKu8RHMURqnaW52+aBHnczO HnQDzf0tUs6RuQBjs/zgMS+oQbByxW5sIajML4DxmNItSXDkhioaUpjv7LDQ1YJAIxXr ZP1g== 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=Oyfsjm/f/3cTPX8e+fB49AEmLNgnRiE4f3MBNPIF/lE=; b=JmqHrDbTP6HMA0nX76OJB6bGreO57Gpbg8nq56bg1yqAd4cMDLq7dizkuCoqp4NbiH pZYXyLNHgkpHq35xOwl1ut9/A1glrYuY5sZQ90SLWvT883A5qOla1OkbMTMMOrQgspKt ELMFjPx8L6Mg96JbAVxsataiUiEh5etTM4/HoOBZiKc3rdWR/k+dwidRGxcQim7/5myd jJlbZgtHP17QLvtHDhKmBtG7gIfpMr7rxr2rtDQ3NgAE+ofLf6wDu4V518YxBsjWeu46 CE5on9fttppypX3/jYyByxF/rOx1kJplOr4KJmAN5Bw2gol2mw+6fOARCEbmkNTBuFbr zu2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b="Etexy0V/"; 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 i13si13315764edv.182.2019.10.15.13.13.41; Tue, 15 Oct 2019 13:14:05 -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="Etexy0V/"; 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 S2387935AbfJOQXP (ORCPT + 99 others); Tue, 15 Oct 2019 12:23:15 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:45307 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387929AbfJOQXN (ORCPT ); Tue, 15 Oct 2019 12:23:13 -0400 Received: by mail-wr1-f68.google.com with SMTP id r5so24576976wrm.12 for ; Tue, 15 Oct 2019 09:23:12 -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=Oyfsjm/f/3cTPX8e+fB49AEmLNgnRiE4f3MBNPIF/lE=; b=Etexy0V/KEWqggN7u8UaCF7I5tKAimc+kwBrSf/NWGcg/m0KxHUQ13yF0cGQgKRZsQ 7LCtVyLDWNzFgZ7MQPvYrBu2bqkhX04dsPGcDJt29gEz1VivuN9p08c/mgoWzIkGaA0u 6i99xQu3M87Oi+ojjpUuL4BVUirCPgSQaxTEEFBd6LCIgkZL4aP0JH4q+epKO9XkUopM 6rvaP1Ay/Du21cRj2YpAc6LU3lPQX6Mt1fejEScmeTuptV4pN3Pl9Icpq/ZN7qB7gypm m38p/d8NfQe9Ho7274BzmHoHwmPK7m7H99R9rcMDPTM0Hh3QMIErAQPR7k+mmE0UCFE2 Wj+w== 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=Oyfsjm/f/3cTPX8e+fB49AEmLNgnRiE4f3MBNPIF/lE=; b=akv00wP9HImEEGZLa0cL5JA+aDidM9SLcySZ/uLc89gj9y/tZbJkDzndy4CA2gc5wh dxl03e7x3MdB9R0aVoOJY4QT7v4fGWIJZ+FMFyb9fLuZdPjCgN4dGZiqyw9AA0ENYuwk qQ1zY05l1YnIv+oMgd8M6i7VHecz/362GAosvLbjjZkXWkYhd3BL/hw4kq3cugIn9BuZ PlRv9KRJiX1m9yHkbSO96TsQ/AdCzHvuFYn4TmkCy9uYny4Ul9Ep7BdB2JG2AV589GTv 3nduaSvlObqRhVQ3xApUwdXp8irydAUmUB4uiocxWvvKzCsZlH8ngF1wV9tQEkKPSw8I 1pOw== X-Gm-Message-State: APjAAAXmJrTRDbVQh01rCarbRyahRTtGNzGpQjlIWG0bGgfgJHdE0Vdh B7seLzGuz8dOhbRLy3HhmozR+A== X-Received: by 2002:a5d:4fcd:: with SMTP id h13mr28487052wrw.307.1571156591430; Tue, 15 Oct 2019 09:23:11 -0700 (PDT) Received: from debian-brgl.home ([2a01:cb1d:af:5b00:6d6c:8493:1ab5:dad7]) by smtp.gmail.com with ESMTPSA id x129sm41427605wmg.8.2019.10.15.09.23.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Oct 2019 09:23:10 -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 v2 4/6] dt-bindings: power: max77650: convert the binding document to yaml Date: Tue, 15 Oct 2019 18:22:58 +0200 Message-Id: <20191015162300.22024-5-brgl@bgdev.pl> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191015162300.22024-1-brgl@bgdev.pl> References: <20191015162300.22024-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