From patchwork Wed Feb 13 13:43:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 10809899 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 F13EB17E0 for ; Wed, 13 Feb 2019 13:43:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DFCAE29C10 for ; Wed, 13 Feb 2019 13:43:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D3C1B2CF1E; Wed, 13 Feb 2019 13:43:56 +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 53F3129C10 for ; Wed, 13 Feb 2019 13:43:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391121AbfBMNnz (ORCPT ); Wed, 13 Feb 2019 08:43:55 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:50504 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391113AbfBMNnz (ORCPT ); Wed, 13 Feb 2019 08:43:55 -0500 Received: by mail-wm1-f65.google.com with SMTP id x7so2502605wmj.0 for ; Wed, 13 Feb 2019 05:43:53 -0800 (PST) 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=cFkhmaEQUzdaTJR4lhnbhp1irRv/17xUnhxf+z/b5Fo=; b=I6pZ+2QWiVZhe6Vq0DlOX36dXxsIJEZi1fDtFjCoLBCitY6KirrSPj3Rk0FD6/pccD W6GtM3EUT+stkElLmyGPoYIYw4foLU2PcHWzK3mlPu2zLUXC3X8sRrUSK0uQM+nbk7Nl kphpZ6N9nVaEcjGGAElN8+NB9d2MfGFYdH0d1Ko9fZtVxfSGGPoAL01nH/PnyqFa/Pud Om5BasoYt2C3fDtD9Wjn95K+jE9PP/GllewvomJ1xGUQZjeBX6P/EvSJxDy89paPghBC djICRUQ82lzuK3LgFEgMO6FkCBZW1j9G2GOGTOX2KO7NFkAE41yZMohKnCflLJPC08TI XbpQ== 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=cFkhmaEQUzdaTJR4lhnbhp1irRv/17xUnhxf+z/b5Fo=; b=CjWeDYpUtoPfzVPL8pqlhK8udB3BFXUicTrAJfLcEvFWetoIuLf3x7kmS3qR3iKTny 5yWGWUPVc+Dl3dWDmWy5QTIxZQ6V49bu/1jiHHvrh85YadnNwkwBR1uKNP5rkSfPxFkb 8suYqmNf5pK1gPVsUrdHu1LlloW7c37DyrGJfVC5llbhZihphsXu4KIJLzw4waPxxIPu JVmrPiUtpxGuPPMScbO8xXaz5iNUl2TXylcWJGQvafBE3LdxM7lQ7chqGu41MyKsti4f HYVvozBCMYveNm4QDqLpebbuHUFHuWspoPZOL1a5wUisBsiUDbY2FoSOgrhniWKbjpRj eXIg== X-Gm-Message-State: AHQUAuboXvHMJ5ywFC3AxaeAtLmUwCsrRND9uajUVt5rhIq2pWiLp2uw yaXOnRVHQKX02Uruut+E+aho8Q== X-Google-Smtp-Source: AHgI3IbVkMrORRPGtLmlvAanfH+80GJlKtqlRHfllYN4gK9ZEXPKIp/X8JGmz7owhuruyR0TgkVRnQ== X-Received: by 2002:a1c:6589:: with SMTP id z131mr376609wmb.120.1550065433188; Wed, 13 Feb 2019 05:43:53 -0800 (PST) Received: from debian-brgl.home (amontpellier-652-1-54-116.w109-210.abo.wanadoo.fr. [109.210.45.116]) by smtp.gmail.com with ESMTPSA id e7sm2046720wrw.35.2019.02.13.05.43.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Feb 2019 05:43:52 -0800 (PST) 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 Subject: [PATCH v5 03/11] dt-bindings: leds: add DT bindings for max77650 Date: Wed, 13 Feb 2019 14:43:27 +0100 Message-Id: <20190213134335.10838-4-brgl@bgdev.pl> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190213134335.10838-1-brgl@bgdev.pl> References: <20190213134335.10838-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 --- .../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"; + }; + };