Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp488743ybg; Fri, 18 Oct 2019 02:58:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqxJzP5vy+4hLgf8czvp+wD+2LQBtCr0WLEE+kp2ks2QUviNFs0inFHYalE/8gjhhileKAh3 X-Received: by 2002:a17:906:5388:: with SMTP id g8mr7757882ejo.278.1571392707156; Fri, 18 Oct 2019 02:58:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571392707; cv=none; d=google.com; s=arc-20160816; b=ZATPx2VbLaRim04Xn/BuryZzimZqcWoLrhgycOdZCh27UxOIdaFlKFeR4kOvmULYHj lrVGvp1xDGkTwCcD80+6zhXDuHeqBRrm515/7qDt/05NL3tpKJjLseRr/xbH4bEAcZfs zHC5TWi7tbWcLAKVUD4B64/JwuZwdV2PAPeOlb2/hg0KaNNAfdkL62ZZRztkpfEEZQe1 DAXmPcpbVfM+qWVTTXJC6xjiNSNOFvyBFKdg3PH6bIKgsKmcv2WY7JsUeEePklHmRSyi lJH890s75UUQrgL/1bCsQs8uovNXfe1OqrqdMt82iDdeTDv9iHy5mAWwj/GCtwsXcvL1 +LAQ== 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=jtsw/4UntyGw67VLNOhcjzxELMgX+JeILTIqyblBVJA=; b=hwz0N3wt7XFj0buhXXM3GucppZ9lM/B6MlGGRdQPMJPM+gxR3ZTkf8C/bLBmTX4nPk EYOX3FD7LufmmHVSH7Jv1CAVsJ0sXSpUsHHXDlY6vwAPyBIYzRG6tTq7yzXuYajJI57V 8I7C+7RtxYP1rzelEWal0jpZcKTU2jAZNJgNISzCzJPBCQU8pWzsjecLkcnN7rfJBjsF F3RirVgXqUujeIjvr5qlv2VsFwTO2pGiHLeSXetufDUKikkGqA2L7+KW7vSwSYb7tgLX fmm5Hccj6XRUjGDS7GKr2f1bcq5nBZ7RX+FowFOFTn65b/Wd0ifGCyjIjVR/DfHFy4X1 V8xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=X5Jinmjg; 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 j21si3226429edr.376.2019.10.18.02.58.02; Fri, 18 Oct 2019 02:58:27 -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=X5Jinmjg; 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 S2407995AbfJQHMt (ORCPT + 99 others); Thu, 17 Oct 2019 03:12:49 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:38683 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2407981AbfJQHMs (ORCPT ); Thu, 17 Oct 2019 03:12:48 -0400 Received: by mail-wr1-f68.google.com with SMTP id o15so584316wru.5 for ; Thu, 17 Oct 2019 00:12:47 -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=jtsw/4UntyGw67VLNOhcjzxELMgX+JeILTIqyblBVJA=; b=X5JinmjgIkKJQpv+P0y918lzg/UTXtP4Z13GlneUwVOYLulrog7RUzvQX265GH7ylP FsUKjc8aqMXvXm0tNHlejVzh4KUoqzLcG+3Co3q9WswjCUn6kRSVx7Fp0dNyBe4ScMYp IJLRVe28ScqUUH+UbM3v/n95UL+yg9ojO6ujD4TSCvTqkiZbG8+K4FqYqhfwq+gb6mbR bq2jT5OTuKVmGdztMKaQ40ByU2zJ8bYKRz/1RPNa0lrJXA2YNdItFfbdnDslFyLl2HTd ttPzG4qc8j2WhxAPmSwNGEhiLgzekgtWGOwWM33aH5BCSEvi0ZFipsLQaxljc+gN9sn+ pwjw== 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=jtsw/4UntyGw67VLNOhcjzxELMgX+JeILTIqyblBVJA=; b=euRZ9aHaVjmXEp3qmShsdEcIcPxYzdJSHqJz++FhbTsHHbSW9ROnHMc9TXpijBBgR8 DwWLe7L+l/4vVieICUJWEa79d82ZgyKLSZqFxp6gJEqpLRukcNjiUZrz7hwjoBinhqgx ea+j5P2XU91ikwHi1XpTyGTt9ZZSrOdHTEiUCfcltRLQQWTuDdIwS2/S+Tlmzwj4vUfr cxhuhGFpSYT/IuFCiN4pomhzVPPEQrQI1FPeNnYF05bnmGVirMDn8Yckb8qPLTO+WoOL bCntCDsyFb5efBiwDegkTeaQVPtvYr6gaAraS6+Qbp8AVVe+us+Nd/ybw08+WmJ/pjLw +7/Q== X-Gm-Message-State: APjAAAW/csilBd0O/k/bow43+2/7RecOPrbzRn+ZuVc3BWa2IMZhXI4m M1hVfOnJyHVSaqKivY/ZY927eg== X-Received: by 2002:a5d:4302:: with SMTP id h2mr1674992wrq.35.1571296366334; Thu, 17 Oct 2019 00:12:46 -0700 (PDT) Received: from debian-brgl.home ([2a01:cb1d:af:5b00:6d6c:8493:1ab5:dad7]) by smtp.gmail.com with ESMTPSA id n22sm1156689wmk.19.2019.10.17.00.12.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Oct 2019 00:12:45 -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 v3 5/6] dt-bindings: leds: max77650: convert the binding document to yaml Date: Thu, 17 Oct 2019 09:12:33 +0200 Message-Id: <20191017071234.8719-6-brgl@bgdev.pl> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191017071234.8719-1-brgl@bgdev.pl> References: <20191017071234.8719-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 LED module to YAML. Signed-off-by: Bartosz Golaszewski --- .../bindings/leds/leds-max77650.txt | 57 ------------------ .../bindings/leds/leds-max77650.yaml | 58 +++++++++++++++++++ 2 files changed, 58 insertions(+), 57 deletions(-) delete mode 100644 Documentation/devicetree/bindings/leds/leds-max77650.txt create mode 100644 Documentation/devicetree/bindings/leds/leds-max77650.yaml diff --git a/Documentation/devicetree/bindings/leds/leds-max77650.txt b/Documentation/devicetree/bindings/leds/leds-max77650.txt deleted file mode 100644 index 3a67115cc1da..000000000000 --- a/Documentation/devicetree/bindings/leds/leds-max77650.txt +++ /dev/null @@ -1,57 +0,0 @@ -LED 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 LED controller is represented as a sub-node of the PMIC node on -the device tree. - -This device has three current sinks. - -Required properties: --------------------- -- compatible: Must be "maxim,max77650-led" -- #address-cells: Must be <1>. -- #size-cells: Must be <0>. - -Each LED is represented as a sub-node of the LED-controller node. Up to -three sub-nodes can be defined. - -Required properties of the sub-node: ------------------------------------- - -- reg: Must be <0>, <1> or <2>. - -Optional properties of the sub-node: ------------------------------------- - -- label: See Documentation/devicetree/bindings/leds/common.txt -- linux,default-trigger: See Documentation/devicetree/bindings/leds/common.txt - -For more details, please refer to the generic GPIO DT binding document -. - -Example: --------- - - leds { - compatible = "maxim,max77650-led"; - #address-cells = <1>; - #size-cells = <0>; - - led@0 { - reg = <0>; - label = "blue:usr0"; - }; - - led@1 { - reg = <1>; - label = "red:usr1"; - linux,default-trigger = "heartbeat"; - }; - - led@2 { - reg = <2>; - label = "green:usr2"; - }; - }; diff --git a/Documentation/devicetree/bindings/leds/leds-max77650.yaml b/Documentation/devicetree/bindings/leds/leds-max77650.yaml new file mode 100644 index 000000000000..5a1e256185bd --- /dev/null +++ b/Documentation/devicetree/bindings/leds/leds-max77650.yaml @@ -0,0 +1,58 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/leds/leds-max77650.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: LED 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 LED controller is represented as a sub-node of the PMIC node on + the device tree. + + This device has three current sinks. + +properties: + compatible: + const: maxim,max77650-led + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + +patternProperties: + "^led@[0-2]$": + type: object + description: | + Properties for a single LED. + + properties: + reg: + description: + Index of the LED. + maxItems: 1 + minimum: 0 + maximum: 2 + + label: + $ref: "/schemas/types.yaml#/definitions/string" + description: + The label of this LED. + + linux,default-trigger: + $ref: "/schemas/types.yaml#/definitions/string" + description: + String defining the default trigger assigned to this LED. + +required: + - compatible + - "#address-cells" + - "#size-cells" -- 2.23.0