From patchwork Mon Sep 30 13:02:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 11166629 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 61D291709 for ; Mon, 30 Sep 2019 13:03:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3716B21924 for ; Mon, 30 Sep 2019 13:03:35 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=bgdev-pl.20150623.gappssmtp.com header.i=@bgdev-pl.20150623.gappssmtp.com header.b="vkzdkYyv" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731168AbfI3NDe (ORCPT ); Mon, 30 Sep 2019 09:03:34 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:51292 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731065AbfI3NDC (ORCPT ); Mon, 30 Sep 2019 09:03:02 -0400 Received: by mail-wm1-f65.google.com with SMTP id 7so13337939wme.1 for ; Mon, 30 Sep 2019 06:02:59 -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=LYsu0lDWKxQ5G5EtJe6rqenJarRBonlZ3Wzg4XP51lM=; b=vkzdkYyv2bRGrVpXlSpwKW1x1i3bMfFqKHl5cSYQBhEh1uUC6r5j8/n3/+ZXRdqJKI avVUnCaR9hEQ4nmnEfQxdbaNF+0LwMEuhcodmBd2yOmBm6H4CskDhXbXwL/JXuLCC+qR EcUhrKv8nFvLg+trHNhrJGlgpXJH5odOS/q+9QvOgsBXS7oZGUz6JPGClRKCSokZ8xGh tA0tpnyV2ZKmFfjPLEpBrR6GCcNH3BVvREjdz+H7UGfLx38NYx/O2wwy4AwYuqnS25Ov ZaxDDwlAQswY1AdeOZA4X2+zZuqQBQfi3VCUQtoNdz1hMsSWRsbKf8Lbnwc6c1YAwDK1 RYwg== 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=LYsu0lDWKxQ5G5EtJe6rqenJarRBonlZ3Wzg4XP51lM=; b=lgKzzgKa5soXj6+a0ha56edE5RS7/RVPLbdetLqpDM1JHz/arJWlOvD/E7L9PXcgZr Dqilil33h71sVq43X3CLzJTOBSAWiCjn2PHasef6ujnHtJaoEjxm8C7SniKnCrH2vplS 5fdD0KetXQXLNaNP6EZ5Foh9l7+wc6iRmkJSJeFmYelEDn+01MtbcB6+oD36LCKnMlIP 7c1XHpJ/7mj+eqEqmPxXThgCLLAJlNnbFuHTtGMXCByTKYobUV8HQ3a9CrDPyoNjdeZV 3TEU4IBVzft1stWR16Rpm1WJtzkpX1Fs4vOHhu3BrnkA2U4qlH68oSfNcvlFc9aH7JdG /oeA== X-Gm-Message-State: APjAAAXmxZGRJX7h/yvTEPh0z33ql/WRYpUPrnIYdQvZskhpbFB2twbz aIXKSWV/pxCF71QutmtWwy4LVg== X-Google-Smtp-Source: APXvYqyvZKOkmn0n9oatNC3JwQ6hUqFw5xzAHpgRsWRv/OpnGW9BxVRR9MkFoMz95vAimW545q6P+Q== X-Received: by 2002:a1c:cc0e:: with SMTP id h14mr17436338wmb.117.1569848578775; Mon, 30 Sep 2019 06:02:58 -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.02.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Sep 2019 06:02:58 -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 1/6] dt-bindings: mfd: max77650: convert the binding document to yaml Date: Mon, 30 Sep 2019 15:02:41 +0200 Message-Id: <20190930130246.4860-2-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 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org From: Bartosz Golaszewski Convert the binding document for max77650 core mfd module to yaml. Signed-off-by: Bartosz Golaszewski --- .../devicetree/bindings/mfd/max77650.txt | 47 +---------- .../devicetree/bindings/mfd/max77650.yaml | 83 +++++++++++++++++++ 2 files changed, 84 insertions(+), 46 deletions(-) create mode 100644 Documentation/devicetree/bindings/mfd/max77650.yaml diff --git a/Documentation/devicetree/bindings/mfd/max77650.txt b/Documentation/devicetree/bindings/mfd/max77650.txt index b529d8d19335..080871686b3b 100644 --- a/Documentation/devicetree/bindings/mfd/max77650.txt +++ b/Documentation/devicetree/bindings/mfd/max77650.txt @@ -1,46 +1 @@ -MAX77650 ultra low-power PMIC from Maxim Integrated. - -Required properties: -------------------- -- compatible: Must be "maxim,max77650" -- reg: I2C device address. -- interrupts: The interrupt on the parent the controller is - connected to. -- interrupt-controller: Marks the device node as an interrupt controller. -- #interrupt-cells: Must be <2>. - -- gpio-controller: Marks the device node as a gpio controller. -- #gpio-cells: Must be <2>. The first cell is the pin number and - the second cell is used to specify the gpio active - state. - -Optional properties: --------------------- -gpio-line-names: Single string containing the name of the GPIO line. - -The GPIO-controller module is represented as part of the top-level PMIC -node. The device exposes a single GPIO line. - -For device-tree bindings of other sub-modules (regulator, power supply, -LEDs and onkey) refer to the binding documents under the respective -sub-system directories. - -For more details on GPIO bindings, please refer to the generic GPIO DT -binding document . - -Example: --------- - - pmic@48 { - compatible = "maxim,max77650"; - reg = <0x48>; - - interrupt-controller; - interrupt-parent = <&gpio2>; - #interrupt-cells = <2>; - interrupts = <3 IRQ_TYPE_LEVEL_LOW>; - - gpio-controller; - #gpio-cells = <2>; - gpio-line-names = "max77650-charger"; - }; +This file has been moved to max77650.yaml. diff --git a/Documentation/devicetree/bindings/mfd/max77650.yaml b/Documentation/devicetree/bindings/mfd/max77650.yaml new file mode 100644 index 000000000000..5186ad287ec7 --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/max77650.yaml @@ -0,0 +1,83 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/max77650.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MAX77650 ultra low-power PMIC from Maxim Integrated. + +maintainers: + - Bartosz Golaszewski + +description: | + This document describes the DT properties of the core MFD controller. + + The GPIO-controller module is represented as part of the top-level PMIC + node. The device exposes a single GPIO line. + + For device-tree bindings of other sub-modules (regulator, power supply, + LEDs and onkey) refer to the binding documents under the respective + sub-system directories. + + For more details on GPIO bindings, please refer to the generic GPIO DT + binding document . + +properties: + compatible: + const: maxim,max77650 + + reg: + description: + I2C device address. + maxItems: 1 + + interrupts: + description: + The interrupt on the parent the controller is connected to. + maxItems: 1 + + interrupt-controller: true + + "#interrupt-cells": + const: 2 + description: + The first cell is the IRQ number, the second cell is the trigger type. + + gpio-controller: true + + "#gpio-cells": + const: 2 + description: + The first cell is the pin number and the second cell is used to specify + the gpio active state. + + gpio-line-names: + $ref: '/schemas/types.yaml#/definitions/string-array' + maxItems: 1 + description: + Single string containing the name of the GPIO line. + +required: + - compatible + - reg + - interrupts + - interrupt-controller + - "#interrupt-cells" + - gpio-controller + - "#gpio-cells" + +examples: + - | + pmic@48 { + compatible = "maxim,max77650"; + reg = <0x48>; + + interrupt-controller; + interrupt-parent = <&gpio2>; + #interrupt-cells = <2>; + interrupts = <3 IRQ_TYPE_LEVEL_LOW>; + + gpio-controller; + #gpio-cells = <2>; + gpio-line-names = "max77650-charger"; + };