From patchwork Fri Oct 7 15:21:01 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pantelis Antoniou X-Patchwork-Id: 9366281 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 D33686075E for ; Fri, 7 Oct 2016 15:24:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C3EB0296CD for ; Fri, 7 Oct 2016 15:24:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B83E9296D8; Fri, 7 Oct 2016 15:24:19 +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 3048F296CD for ; Fri, 7 Oct 2016 15:24:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S938921AbcJGPXw (ORCPT ); Fri, 7 Oct 2016 11:23:52 -0400 Received: from mail-wm0-f42.google.com ([74.125.82.42]:37916 "EHLO mail-wm0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756820AbcJGPX1 (ORCPT ); Fri, 7 Oct 2016 11:23:27 -0400 Received: by mail-wm0-f42.google.com with SMTP id i130so46036404wmg.1 for ; Fri, 07 Oct 2016 08:23:26 -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=9V0m1yHvw9yLaSkgu+nJfudQSgRKuG5B1BHPA+I8//g=; b=FZ0Og5AzdngcqqUpfy2vtnMxUKNKxFRb2MeRbbQEWYbZLrQE8m8j9obA2V5WV64Pgz Ys45/2LIU1xxpWwEIRICiPU5d5/Ok/8zDK24Fn+7gzGOP9ewBveDB8VypZdeQ0btvilg 0w256LOXMym/3JhWdW30s+sWcpdIMx5EvhlfQ= 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=9V0m1yHvw9yLaSkgu+nJfudQSgRKuG5B1BHPA+I8//g=; b=kmGNKGxCYmFUszEHg5k6vyq0waFVxYNdKOvi510mFRxBjflHOLbOrsSLB/XCKkSr+F YQZf9CVUA/y561Jg2Ly3Z2WNFBjDQ1oxhAhZGRZyo0uWSxUIrl6HjxzHobgI3fEDbqCC t6PcSksKnpxerDGBU12D00lwjJYb9tDqeNxuf9fKEtoays0iwoAmY26LjyKMEDBct5HF xapEQ7D3FVqTv2iq5hyCX8wBe/PedwLklUVSnrSfnkiius5Erk/+c0lb6JeZrTcPvpgL MlYWJf2Xs0uRU0uMeNJmAFFRWy38v0hD0p4l5iPEUyaG6PzRUjDBgL6DNdOKJfjQe6Yc 3nog== X-Gm-Message-State: AA6/9RkztCyjMtlpG7QeEJeclfdWe8qBcc7IARFpxwTw+Akt8HkNlv5bnm9L5z8rsLi6HQ== X-Received: by 10.28.154.142 with SMTP id c136mr17043754wme.58.1475853805740; Fri, 07 Oct 2016 08:23:25 -0700 (PDT) Received: from localhost.localdomain ([195.97.110.117]) by smtp.gmail.com with ESMTPSA id n5sm20048269wjv.35.2016.10.07.08.23.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 07 Oct 2016 08:23:25 -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 02/10] mfd: dt-bindings: Add bindings for the Juniper I2CS MFD Date: Fri, 7 Oct 2016 18:21:01 +0300 Message-Id: <1475853669-22480-3-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 Add device tree bindings for the Juniper I2CS MFD driver. Signed-off-by: Georgi Vlaev [Ported from Juniper kernel] Signed-off-by: Pantelis Antoniou --- Documentation/devicetree/bindings/mfd/jnx-i2cs.txt | 68 ++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/jnx-i2cs.txt diff --git a/Documentation/devicetree/bindings/mfd/jnx-i2cs.txt b/Documentation/devicetree/bindings/mfd/jnx-i2cs.txt new file mode 100644 index 0000000..0ec103b --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/jnx-i2cs.txt @@ -0,0 +1,68 @@ +Device-Tree bindings for Juniper Networks I2CS FPGA MFD + +Required properties: +- compatible - Must be one of: + "jnx,i2cs-rcb" (Routing Engine or Control Board FRUs) + "jnx,i2cs-fpc" (Flexible Port Concentrator FRUs) + "jnx,i2cs-sib" (Switching Interface Board FRUs) + "jnx,i2cs-fan" (Fan Tray FRUs) + +Optional properties: + +Depending on the FRU, the I2CS MFD has varied group of sub-devices: + +Device Description +------ ----------- +jnx,i2cs-gpio : Virtual gpio mapping driver +jnx,i2cs-fan-hwmon : hwmon driver for fan trays +jnx,i2c-mux-i2cs : I2C Mux driver for FPC FRUs +jnx,leds-i2cs : Led driver + +All these optional nodes are described in their respective binding +documents. + +Example node: + +i2cs@54 { + compatible = "jnx,i2cs-fpc"; + reg = <0x54>; + #address-cells = <0>; + #size-cells = <0>; + + fpc2_mux { + compatible = "jnx,i2c-mux-i2cs"; + #address-cells = <1>; + #size-cells = <0>; + + fpc2i2c0: i2c@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + }; + }; + + fpc2_gpiomap: gpio-jnx-i2cs { + compatible = "jnx,gpio-i2cs"; + reg = <0x54>; + #gpio-cells = <2>; + gpio-controller; + interrupt-controller; + + /* + * Map bits [0-3] of reg 0x21 as gpio inputs, bits [4-7] + * as gpio outputs + */ + i2c-gpio-map = <0x21 0x0f>; + }; + + leds-jnx-i2cs { + compatible = "jnx,leds-i2cs"; + #address-cells = <1>; + #size-cells = <0>; + + sib8-active { + reg = <0>; + linux,default-trigger = "sib8-active"; + }; + }; +};