Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4218873ybg; Mon, 21 Oct 2019 05:45:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqywbsDmnyoqXJbsaln5c8xpmBfmY4p8cVSGuuspJeNEJCp1cP1IIckDknmAGQ4Yojzj3TAA X-Received: by 2002:aa7:c587:: with SMTP id g7mr24690468edq.151.1571661942671; Mon, 21 Oct 2019 05:45:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571661942; cv=none; d=google.com; s=arc-20160816; b=s3g/sMz1/j/M9tmZbqShZFQa7wbDhRB+zgh4CsK2vgPpBAV3/UcX9uULDdDzB73+wI 86YluY+VoAogg5JuIUpxF9IJc42o91lapNvc94hiiwDRqUYN8GvRX493JlLZ3pv8F+H2 TMXqic3bKGJuBCF53MgRnPzD+/hd6rYqEhuAerp67uyxu6hERDMQPwLaEPxkLhrHONTq W/KcoZ4ZRrNsla9G6h1lO+hz/YzuT9wTmrGtzpwQ2g9VyWPPXmFZ4ORADqMG4RmUMvJn bcP2S5jchFWmNQ1ynQ8A0orEvesmAFlHZ9j76Zi0IQgWT5RSpqj23vBmei8XiP92MSFK yeIA== 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=Y7gENDxapt1vI6u/xEHM9T0bQ8UH+GWKfmCLbv4CxrI=; b=Bv13kds0n1sIczaTf2DKX9kvirB4e2ssRF6odkjZctQQYBb9DpdIugHL0bvP5Nwxak UO4Y4fXpImkb4D46HqjazILyfrPU0e+aHbNLs9W0/UQYnpIDU/rkHT/SVU34b5JUi2kS tZf6OrOJSQsKIArjxroj55tPjVxLsD6IXtYrLIW2xx8VG6DEg1K+GQ+3LNlJktqPpgPJ KI5oRXZu8xg4EMjaNZRIPX0757jHCHzJ3FFoPNMUaiw+EaHy1v7FyNJ72ZYbMHt8qCQg 1N3++QYvoACD0CVHtkDBBYMDIqIzMulmD3w3CZ2smFRb0nKXVpZZsGZBoQMirFfahLqd EluA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=N3K6Ornt; 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 y3si11291820ede.38.2019.10.21.05.45.19; Mon, 21 Oct 2019 05:45:42 -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=N3K6Ornt; 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 S1728840AbfJUMon (ORCPT + 99 others); Mon, 21 Oct 2019 08:44:43 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:51209 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728826AbfJUMol (ORCPT ); Mon, 21 Oct 2019 08:44:41 -0400 Received: by mail-wm1-f66.google.com with SMTP id q70so5993762wme.1 for ; Mon, 21 Oct 2019 05:44:39 -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=Y7gENDxapt1vI6u/xEHM9T0bQ8UH+GWKfmCLbv4CxrI=; b=N3K6Ornt7pVIdC7MOhYN8b5+hpGvtXx5FMdIjNZGjFHAS/cW4aEbX8MP3dEIi+DYEM d6JpBo4Oxb+FrN4/KDdcxikUxOl9ABTtBHaHIVMGYs8+lA/UEgOp7SCOFtPR7qqN2dMw MUdwwA2lJtgfVxwZl4Z6aNm5tsB4o34qXsKSuoPUypi7wPVkkWAFBkCU/+U1zF7caUa7 aGwX+oH2PAMc0n4WNW64kbw/eLYDQY+oZCZVi9Dl4veWXZBdLDM+0ZYdQq8EcFcTejrY 5jTE9ihlV3laSEl/b2hx9QNLEjDDpX/0JiIeiQgLbQDE5q/W0Wgu0Kr/rEOQMtPenB4H hpYg== 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=Y7gENDxapt1vI6u/xEHM9T0bQ8UH+GWKfmCLbv4CxrI=; b=fVmpfYEMpiGT2ssynBKk7Vb8Jb07/cMrmEZGeAWXKZdl2yDPHJnHhGfVuM6MEaG+Uf IBkYty7FhGqd23AFY8VlE7xrkCCDcrihuHoEJNFPwhWjV3TH2fn944CXha9xc5VMfpWd acOp6gFxWaaO8ybYVsqJ38zucd48GqKM6S8aJS6Laas9oGe351cZciHcTWEgVYy0F+DM X1P5A1cPObxNKUNksPr3px+UnpBZFjUXxmuJKg6E8zi5SkZ3mXriYv+ekaInzD0jzXOO ygcVlot7ia34l8OJG5Ikc8Rsd0mQIaxDHYPfhs2TXL3EOEFqvx66Gphy3qSPMxSHKe0h lbNw== X-Gm-Message-State: APjAAAWG82W69cQnr/DxOWSnMESIxthLsaU5CtW4QQrtTBCnTHqkRAAK wQZhCtZjfLpQH1zcEJFg6iYt9Q== X-Received: by 2002:a1c:7311:: with SMTP id d17mr17985960wmb.49.1571661878539; Mon, 21 Oct 2019 05:44:38 -0700 (PDT) Received: from debian-brgl.home ([2a01:cb1d:af:5b00:6d6c:8493:1ab5:dad7]) by smtp.gmail.com with ESMTPSA id a17sm10216150wmb.8.2019.10.21.05.44.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Oct 2019 05:44:38 -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 v4 4/6] dt-bindings: leds: max77650: convert the binding document to yaml Date: Mon, 21 Oct 2019 14:44:26 +0200 Message-Id: <20191021124428.2541-5-brgl@bgdev.pl> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191021124428.2541-1-brgl@bgdev.pl> References: <20191021124428.2541-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 | 51 +++++++++++++++++ 2 files changed, 51 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..8c43f1e1bf7d --- /dev/null +++ b/Documentation/devicetree/bindings/leds/leds-max77650.yaml @@ -0,0 +1,51 @@ +# 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.yaml. + + 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. + minimum: 0 + maximum: 2 + + label: true + + linux,default-trigger: true + +required: + - compatible + - "#address-cells" + - "#size-cells" -- 2.23.0