Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp6332026ybp; Tue, 15 Oct 2019 13:16:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqwZ4Wrer8cNzvD/qUvK5NTulCeRwAgV4MgkWgrQlfqW7DYzTKMaEtzC22H0BJm1/n6adLiF X-Received: by 2002:aa7:ccd3:: with SMTP id y19mr19842330edt.122.1571170574171; Tue, 15 Oct 2019 13:16:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571170574; cv=none; d=google.com; s=arc-20160816; b=GERJvYEZZzPwMG26sOOturszgoq579ysdXoE0LIz7K3NV/COR02560Mrl8qa7b2u5i tFjG9DXxdHNQYjZSOg+Pr4jDf0bIHUGnZbYraeJAHqy8Tq3d08il9gNdRjZq8i6mqw3T yzCK22BQf77YH/xLh7xjRMwcUcYyeSKJZLAWI6o7lRFnNsB3+wcm9cg6IAUkmeUDhu8E F32DMwAmoaBGgjMDPj8nReI0hpfq/qzyych1ZpfkP2DcKg23oaGhi5UE7TUb5CtL679m P36inJn7PHYc41HbcrLpQ1y/Hmrre4lTFFzAeX0l4NE5l16y3SSe3IBiRLfgMipqHgPH oYqw== 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=ex0SLXkZGXD3DFPb0/08PvEQYRToQtcPv9JSualxRuI=; b=rxBqNcIeb1Zoc82LN+e0TS4aW22/ENBtVdCYgH9Q2nvf7JOCGVuTpnNfm/buDX3UyS SAQu0ql8Gp5bt3JbFZC2PO5rCS9QD97wsV03uqNnDQlLhpuuF5m+D1uzjr/1Njeh4g/2 0Wm0PCHpRdvQVZQ19F/G3I8QRb9wmHkblbouavxcNSNF/QhrzZUh9RQN2snClYTBXcm+ k6j8hRuFCPOShrHdm381XvTHxzrAA/LbP5iopZoK4c5plwJUzUAiat+lEGBGt30M6nib +njEab54040EZuR1fKudB6326EP/dhrI7lugIqF0DKWUzIaOPOXmnfP5xW7YZh6y8fs1 bIOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b="BIJz1e/f"; 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 l6si16357076edc.67.2019.10.15.13.15.50; Tue, 15 Oct 2019 13:16:14 -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="BIJz1e/f"; 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 S2388023AbfJOQXl (ORCPT + 99 others); Tue, 15 Oct 2019 12:23:41 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:55786 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726237AbfJOQXJ (ORCPT ); Tue, 15 Oct 2019 12:23:09 -0400 Received: by mail-wm1-f67.google.com with SMTP id a6so21529058wma.5 for ; Tue, 15 Oct 2019 09:23:08 -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=ex0SLXkZGXD3DFPb0/08PvEQYRToQtcPv9JSualxRuI=; b=BIJz1e/fCpl0NKvbL/GHwCFIzcJBblO+Nq6Cpv7EOXKlPk5kR2etqCqSpAVdnEafjy kuN+I3NsQr7MQzEmyfvk9SThXgsbwcHTjjjRNp/I1wwoFYCI+c+l7GthAeXxBESBEd5c NFrZYAkBvgHkaNDbRD4cGcJ4By4LGi+jq1aiMkORXyjKoqlZQkPYr5waREf2DTtMQJPZ 2li2D6JTV4YhOD0s94JVlr9I5JiECTT4MnBLD9bX8aemqQgKJFrbPZ4uG4363CJYPJ+V /obMJ9e+AZG3RhubBMkscKFBZ6asziB4WpXFo9Gca1hdKfHJDvFvI3YUIn9isgVu21Xy 3z2Q== 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=ex0SLXkZGXD3DFPb0/08PvEQYRToQtcPv9JSualxRuI=; b=N2tHBcbcN/EbfYMhY6gK6IpNgttN73c76EfU6qRvQEV8WsVEQyAtGZKvwVpkQHoArM lug2n9ynxGFlYI/BhtAgzzOBLdStM6TSB59M4bPTiY2oj4uS8JOlPm8H+eyZnDkdRYhw Lpz2AlCgrFQZVnuTu+YAuWRzlVJZW3Xr9P6taXycdIf3Z+tgf9oXruqfnlaeKM25K55k MCG7B1mnzH4WD6K4HBg87A50R/7ufFXEyPuo1ZVPdWVLyoue6IkXiDVb+dhXnwHzhX4T PoFgcynb1pxHM509Mm5dhZwyP7WkYyDVVLOC570qLISic8xW8ScUkBshbiss9njKOlG4 KeLg== X-Gm-Message-State: APjAAAUki5OV2J/AIYl74ULu1a83RLI4sqZ71aRodUGv4BEWef07nQV5 EYHkEu7uxGiH2F3JJXSAyfM07g== X-Received: by 2002:a1c:f201:: with SMTP id s1mr19060581wmc.59.1571156587196; Tue, 15 Oct 2019 09:23:07 -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.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Oct 2019 09:23:06 -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 1/6] dt-bindings: mfd: max77650: convert the binding document to yaml Date: Tue, 15 Oct 2019 18:22:55 +0200 Message-Id: <20191015162300.22024-2-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 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"; + }; -- 2.23.0