Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3348527yba; Tue, 23 Apr 2019 02:07:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqxFKcdT2Ho5AFL0VTApUGf+VnxcLkLOAjH1hFXSf542vR9bfJZCmD2YjOsN3ZN5qUPKSYVi X-Received: by 2002:a63:df43:: with SMTP id h3mr23879052pgj.294.1556010458611; Tue, 23 Apr 2019 02:07:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556010458; cv=none; d=google.com; s=arc-20160816; b=oruUXnJ4EZlX8YfISvmbb/S0/Uc0r+HOQpQvRi9hOrCcqXa0bRx0IaNvXMGxELrq7S OS0XTNgda6biYWnvwdTRsh3Bt+BFT1nZENAQxPyWRw3FYBrcLVeT7hMobCxTdmzXs4cS /he9ADNlvfwwr8VfSp0FGFaCNzmMy6rtXOwwN9k/6YxhO09g6lFW+DfQ3BTc85A0kHjn 6BDbzHSgmhuXnhH5UqQ7lxnwOb5f2Doy1KWkuModc9C/y6D+9WxknTr8pavHJwfZF/R8 sFcZ+YJWL0xtkv07GXFmxtIloBTRdF0RTJFrpW0wKJ5z9vYQeUSZqORxwQb+kiaCe1Qp xByg== 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=5g4/Swk4uHJKHMZmRZrqdiq0P5Jmw7elqSkjk3sVLtc=; b=nmfIopiS484MHm1PsZc/Cp/vl/bgti4Ud5weWw+ywaiihW6kkd5qQDYBKj/KzS6vFO Gsrm+Jbp80z16PDE8qUt9ZL4IP6KeASugRwYM5arsS1JTI8fwgiRUhKtRTzbkUUCLP2p xuw+qDMXqlfGNjs0pr8n+6tI4rXt2Di2L7Y8fKv+AV48mtPOBaQfFyNo/3N0FpOfkS0s M3gOO/P7v91uS+jMttC6N/nDJtDd7iSGtPi9O6Th7PkJsRjQi67NRsVNQBt7Aw18elYC 8pzdqQGrep+0UN+wPBZAv1SQPjrXIpP9vQnkg/0EePU5zQsiGwWwjazfFYS80t+Ndl4C QgDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=2FBghxgK; 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 n2si15655996pfa.129.2019.04.23.02.07.23; Tue, 23 Apr 2019 02:07:38 -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=2FBghxgK; 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 S1727192AbfDWJFG (ORCPT + 99 others); Tue, 23 Apr 2019 05:05:06 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:45069 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726911AbfDWJFE (ORCPT ); Tue, 23 Apr 2019 05:05:04 -0400 Received: by mail-wr1-f66.google.com with SMTP id s15so19106163wra.12 for ; Tue, 23 Apr 2019 02:05:03 -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=5g4/Swk4uHJKHMZmRZrqdiq0P5Jmw7elqSkjk3sVLtc=; b=2FBghxgKJ9e2gFedgDh3FwTHSyxIoAUou+9liQqL5Z6myq83FZws3K6BjcpUvAXKtH 9T33N3Grgac2H/KJEDrgJ077Us9RUZWWgq6Eh6JEOT4jTzUYHUhbP5BY8XWREQE60LI/ pfFZINifthxeNQGcOyyiVFN8uyUyQ124xGn6Ox9K38e9v/jb61/xvNnEKb3Mg5u23rAA g2lHntrMdYg55zQVsNZfp57agGwAQMBuwljHn3YtheKA4JXYPxCEaWW0M0prWeUc4iui j7OkHD0gc/Elhn1DIPfAJsUDqkXKReYF7TIUi1JqXYxeOfJJfuqB662/7poIfmCryess D9Ag== 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=5g4/Swk4uHJKHMZmRZrqdiq0P5Jmw7elqSkjk3sVLtc=; b=J7hKt3LMToDpatWmuhMTbsrxXKL8XFH0FZgkzKIoeeuDwhzy4ptTyTbBMIjuEw6zMI LIjfzDisAcdgWiQO3gMMh5icVPA2RQdrhbLGqOWbfeZMBbeLz0h75XBUlShw+SQne0XU 3zKfFPqx1dGufQxwNpLFXpct8/vGyvPuL1uvAN4K3AozD2c5vSNT+gzMapg87Y7szisr WukcY3Xx3sdPhQBRFHjrRVL7kr0Nr/+dPaGc5mcPDmYpNiO030BqIUK7wHT3Bn+i+bde aygM+4MNOlhOzG1vctZST2F4f1T9ErXJgM0V0UAE1OFps3pr0WGufde2Y+P/WR//yLR3 2Vdw== X-Gm-Message-State: APjAAAV6Qa2TamLkeUXnVRBYV76C5I29v0XvXWnTx1SfQGq5r0xI4bOb hebW0LzYnNKSxhq++r/Ue5RpPA== X-Received: by 2002:a5d:5346:: with SMTP id t6mr17440716wrv.59.1556010303199; Tue, 23 Apr 2019 02:05:03 -0700 (PDT) Received: from localhost.localdomain (aputeaux-684-1-25-101.w90-86.abo.wanadoo.fr. [90.86.250.101]) by smtp.gmail.com with ESMTPSA id v190sm15360434wme.18.2019.04.23.02.05.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Apr 2019 02:05:02 -0700 (PDT) From: Bartosz Golaszewski To: Rob Herring , Mark Rutland , Linus Walleij , Dmitry Torokhov , Jacek Anaszewski , Pavel Machek , Lee Jones , Sebastian Reichel , Liam Girdwood , Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-input@vger.kernel.org, linux-leds@vger.kernel.org, linux-pm@vger.kernel.org, Bartosz Golaszewski , Rob Herring Subject: [PATCH v10 03/11] dt-bindings: leds: add DT bindings for max77650 Date: Tue, 23 Apr 2019 11:04:43 +0200 Message-Id: <20190423090451.23711-4-brgl@bgdev.pl> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190423090451.23711-1-brgl@bgdev.pl> References: <20190423090451.23711-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 Add the DT binding document for the LEDs module of max77650. Signed-off-by: Bartosz Golaszewski Reviewed-by: Rob Herring Acked-by: Pavel Machek --- .../bindings/leds/leds-max77650.txt | 57 +++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/leds-max77650.txt diff --git a/Documentation/devicetree/bindings/leds/leds-max77650.txt b/Documentation/devicetree/bindings/leds/leds-max77650.txt new file mode 100644 index 000000000000..3a67115cc1da --- /dev/null +++ b/Documentation/devicetree/bindings/leds/leds-max77650.txt @@ -0,0 +1,57 @@ +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"; + }; + }; -- 2.21.0