From patchwork Tue Apr 23 09:04:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 10912427 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4F39A922 for ; Tue, 23 Apr 2019 09:06:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4134B1FE82 for ; Tue, 23 Apr 2019 09:06:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 34D88262AE; Tue, 23 Apr 2019 09:06:09 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B591A1FE82 for ; Tue, 23 Apr 2019 09:06:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727227AbfDWJFF (ORCPT ); Tue, 23 Apr 2019 05:05:05 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:42310 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727190AbfDWJFE (ORCPT ); Tue, 23 Apr 2019 05:05:04 -0400 Received: by mail-wr1-f67.google.com with SMTP id g3so19143585wrx.9 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=J6aRPuMMBAXS0BSwnqB0irOV66P0hqL6Xo75iFxgf3eB1NWhWto6I++ysjNaBB4VSy EbWixPfWLrbgBjch+BsJhjj2tZ4TwtBqDa7V/eyf5wjg4R4CTt06EH3H+EblG2zrGt6R QkhQ/e7w1IxFtV/mmfMQoitc1di9xhpxpzN4BdsoSwmMcu/U6tHE/ktIFylcKQagJOjK jx7hpwWvIG/P1mva/q/t2TaWTRdTWMrQ2TFUQOfYSCViXdcMGd/GgsJBIOwVeIDFGVuP Z+MicRAnpyBgj9u9XS1LMDeeaBMjHJDXDL/LFqDBpX4LqZGN84G9XYOfPdadwgdIJBHg Sjbw== X-Gm-Message-State: APjAAAVdRUj8Qj/rgbCLnS2cNIWK6spMq36zRGRGsI84eqwE2SEV5dcs Px3lt52yLjT5BXsaphvyj2ziXw== X-Google-Smtp-Source: APXvYqxVfLzB+jJW1IoDVeHx8AyYnOPA7F5TVwvhN1ru9SAwA+E3zve6RNsRKus/f5ZtT7USwFPSiQ== 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 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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"; + }; + };