From patchwork Fri Oct 7 15:21:07 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pantelis Antoniou X-Patchwork-Id: 9366283 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 217036075E for ; Fri, 7 Oct 2016 15:24:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 13362296CD for ; Fri, 7 Oct 2016 15:24:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0677A296D8; Fri, 7 Oct 2016 15:24:24 +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=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID 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 9BE60296CD for ; Fri, 7 Oct 2016 15:24:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756977AbcJGPYW (ORCPT ); Fri, 7 Oct 2016 11:24:22 -0400 Received: from mail-wm0-f53.google.com ([74.125.82.53]:34992 "EHLO mail-wm0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S938886AbcJGPXq (ORCPT ); Fri, 7 Oct 2016 11:23:46 -0400 Received: by mail-wm0-f53.google.com with SMTP id f193so39110054wmg.0 for ; Fri, 07 Oct 2016 08:23:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=glSdf825E9ltX1fDpjO8jZIx5Abg5X4XHPibN1gFEUQ=; b=mGUojeqWAYidf84qyDSbDfSvScnPv9xGukyercKdiN9nMqS1tSxZkFGIR/hEothzyb CsN6aC0DU8IZTHnDd2sG0QX8VEAYbYhEvDpan8Ho8ehNrJXGw9Wqmg6XEARmU5iFBzD1 mY46BQwpe5T5TiOJL+XiEK7soaEBZMsblJ5Yk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=glSdf825E9ltX1fDpjO8jZIx5Abg5X4XHPibN1gFEUQ=; b=gi5w9LhAySzuxrowqsRraoZf/WnfystzmZqc9bsS+i2ZxJTlCSBBil/XO0mDiZjndW USHVn/kbfSa+4jQuQfdS45ypBbOHnHbBV071tNNr80i3V0bLZXkRkNLNKU/wMJFK8+BO sxKNlYnAq5gwiLSvMYPQXJwOwj0H/ws4y/fX7/ZjJB4MupwPB/rFdLcGTI/fmUryC3aJ ux+m649gq+yG+9tODb88ZlV2aUzQgAl7k3BLsvNIfkO618+qyfxAHD5TYhQk/xzqTSKA kkbKHYpLsGJFC3s+mG30A/Q9JJB11nPfEGC5adjLjnAPL+eQrKX5D3Mmu6xHmfkya6+A CS2g== X-Gm-Message-State: AA6/9Rn3DwysHyeEj0TS1mA1LfQNokLGbrVXFXR0pm/fNhVMfy1o7KYpEgLr5aZzqDSJ8Q== X-Received: by 10.28.184.199 with SMTP id i190mr28604433wmf.43.1475853824698; Fri, 07 Oct 2016 08:23:44 -0700 (PDT) Received: from localhost.localdomain ([195.97.110.117]) by smtp.gmail.com with ESMTPSA id n5sm20048269wjv.35.2016.10.07.08.23.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 07 Oct 2016 08:23:44 -0700 (PDT) From: Pantelis Antoniou To: Lee Jones Cc: Linus Walleij , Alexandre Courbot , Rob Herring , Mark Rutland , Frank Rowand , Wolfram Sang , Richard Purdie , Jacek Anaszewski , Jean Delvare , Peter Rosin , Avirup Banerjee , Georgi Vlaev , Guenter Roeck , JawaharBalaji Thirumalaisamy , Pantelis Antoniou , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-i2c@vger.kernel.org, linux-leds@vger.kernel.org, linux-hwmon@vger.kernel.org Subject: [PATCH 08/10] leds: Add binding for Juniper's I2CS FPGA Date: Fri, 7 Oct 2016 18:21:07 +0300 Message-Id: <1475853669-22480-9-git-send-email-pantelis.antoniou@konsulko.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1475853669-22480-1-git-send-email-pantelis.antoniou@konsulko.com> References: <1475853669-22480-1-git-send-email-pantelis.antoniou@konsulko.com> Sender: linux-hwmon-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Georgi Vlaev Document bindings for the I2CS FPGA leds. Signed-off-by: Georgi Vlaev [Ported from Juniper kernel] Signed-off-by: Pantelis Antoniou --- .../devicetree/bindings/leds/leds-i2cs.txt | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/leds-i2cs.txt diff --git a/Documentation/devicetree/bindings/leds/leds-i2cs.txt b/Documentation/devicetree/bindings/leds/leds-i2cs.txt new file mode 100644 index 0000000..100e584 --- /dev/null +++ b/Documentation/devicetree/bindings/leds/leds-i2cs.txt @@ -0,0 +1,34 @@ +Juniper I2CS LED driver. + +This is present in Juniper platforms that use a I2CS Slave FPGA. + +Required properties: + - compatible: must be "jnx,leds-i2cs" + - #address-cells : must be 1. + - #size-cells : must be 0. + +Each led is represented as a sub-node of the jnx,leds-i2cs device. + +LED sub-node properties: +- label : (optional) see Documentation/devicetree/bindings/leds/common.txt +- reg : number of LED +- linux,default-trigger : (optional) + see Documentation/devicetree/bindings/leds/common.txt + +Example: + +leds_fpc0: leds-jnx-i2cs { + compatible = "jnx,leds-i2cs"; + #address-cells = <1>; + #size-cells = <0>; + + fpc0-fail { + reg = <1>; + linux,default-trigger = "fpc0-fail"; + }; + + fpc0-ok { + reg = <2>; + linux,default-trigger = "fpc0-ok"; + }; +};