From patchwork Fri Oct 7 15:17:27 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pantelis Antoniou X-Patchwork-Id: 679301 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3srCrn34KQz9t2F for ; Sat, 8 Oct 2016 02:20:41 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b=YjSq5Y1T; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757057AbcJGPUf (ORCPT ); Fri, 7 Oct 2016 11:20:35 -0400 Received: from mail-wm0-f47.google.com ([74.125.82.47]:38596 "EHLO mail-wm0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756931AbcJGPUB (ORCPT ); Fri, 7 Oct 2016 11:20:01 -0400 Received: by mail-wm0-f47.google.com with SMTP id i130so45819989wmg.1 for ; Fri, 07 Oct 2016 08:20:01 -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=EBcSMtBcqi3GfFGfq0O9Mnja5acMfTh0BrzN0Y6g8No=; b=YjSq5Y1TV/OfnUnfFJ/fiRwNwFyhwIX8euN/P1jsgsYsv8vOxgsVPgEtNodL92yj14 ST/oDVF6qenCxj/+xRYcX6aKOyuOkHMoaT1OvQcxbX26p0TC+C0EWYHfjL4LF87V+l4T JaTtPT+mArYspkXAuzdbyh6li19KFVIXkQ6Qo= 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=EBcSMtBcqi3GfFGfq0O9Mnja5acMfTh0BrzN0Y6g8No=; b=Aio8Td15M+Y5DOWe9jVqHnIWcRPRK47/ZVtYI6Zlo5Nqjerziz1Aq1qbNjs5Gq6cYj Yk4/e/xvSgwxXUwxJm2evNMOHHBfP1FhzbZHLOXh2eb1KUwBwS7/BukP2oezST/zxhFh qw66T7pUOEYsuy7yrc7IgL8QUNOUCkjaS1FG8NTjs4CphNWcKnvnuy6ce4Mymr5kuSWa EBPpcgxG++1LB1j3p4bqYi+jdZJbglbM9F5kYBmqX/7LBhMXa/c+8q5XYjEEMg8xR6h8 ANLC1MdO7D1FDL/eX3LgJZdEOMQiUkaeyZpflCIqKpvpaBmtL2GVV58C9eKOK7x4YfyM 3IRg== X-Gm-Message-State: AA6/9RkPBPZEVh/zJoZE0vJcmfoxzWf3KmShoBjiEj5k2nBz9b6VArZrwnxa8+I4KXNsqw== X-Received: by 10.28.188.139 with SMTP id m133mr21244092wmf.10.1475853599431; Fri, 07 Oct 2016 08:19:59 -0700 (PDT) Received: from localhost.localdomain ([195.97.110.117]) by smtp.gmail.com with ESMTPSA id y2sm20136528wji.42.2016.10.07.08.19.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 07 Oct 2016 08:19:59 -0700 (PDT) From: Pantelis Antoniou To: Lee Jones Cc: Rob Herring , Linus Walleij , Alexandre Courbot , Mark Rutland , Frank Rowand , Wolfram Sang , David Woodhouse , Brian Norris , Wim Van Sebroeck , Guenter Roeck , Peter Rosin , Debjit Ghosh , Georgi Vlaev , Guenter Roeck , JawaharBalaji Thirumalaisamy , Rajat Jain , Pantelis Antoniou , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-i2c@vger.kernel.org, linux-mtd@lists.infradead.org, linux-watchdog@vger.kernel.org Subject: [PATCH 06/10] i2c: i2c-mux-ptxpmb-cpld: Add device tree bindings Date: Fri, 7 Oct 2016 18:17:27 +0300 Message-Id: <1475853451-22121-7-git-send-email-pantelis.antoniou@konsulko.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1475853451-22121-1-git-send-email-pantelis.antoniou@konsulko.com> References: <1475853451-22121-1-git-send-email-pantelis.antoniou@konsulko.com> Sender: linux-i2c-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org From: Georgi Vlaev Add binding document for the i2c driver of PTXPMB CPLD. Signed-off-by: Georgi Vlaev [Ported from Juniper kernel] Signed-off-by: Pantelis Antoniou --- .../bindings/i2c/jnx,i2c-mux-ptxpmb-cpld.txt | 50 ++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 Documentation/devicetree/bindings/i2c/jnx,i2c-mux-ptxpmb-cpld.txt diff --git a/Documentation/devicetree/bindings/i2c/jnx,i2c-mux-ptxpmb-cpld.txt b/Documentation/devicetree/bindings/i2c/jnx,i2c-mux-ptxpmb-cpld.txt new file mode 100644 index 0000000..3b201f7 --- /dev/null +++ b/Documentation/devicetree/bindings/i2c/jnx,i2c-mux-ptxpmb-cpld.txt @@ -0,0 +1,50 @@ +* Juniper PTXPMB CPLD I2C Mux + +I2C mux on the PTXPMB CPLD on Juniper series of routers. + +Required properties: + + - compatible: Must contain one of the following. + "jnx,i2c-mux-ptxpmb-cpld", "jnx,i2c-mux-ngpmb-bcpld" + - num-enable: Number of muxes to enable. + + The following required properties are defined externally: + + - Standard I2C mux properties. See i2c-mux.txt in this directory. + - I2C child bus nodes. See i2c-mux.txt in this directory. + +Optional Properties: + + - num-channels: Number of channels. If not present the default is 8. + - base-bus-num: Base bus number. If not present it is 0. + - use-force: Use the force method of the controller. + + +Example: + +cpld-i2c-mux { + compatible = "jnx,i2c-mux-ptxpmb-cpld"; + #address-cells = <1>; + #size-cells = <0>; + + i2c-parent = <&i2c1>; + + num-enable = <1>; + + i2c@0 { + reg = <0>; + #address-cells = <1>; + #size-cells = <0>; + + /* PMB devices are accessed through FPC */ + + temp-sensor@1a { /* FPC */ + compatible = "maxim,max6697"; + reg = <0x1a>; + smbus-timeout-disable; + resistance-cancellation; + alert-mask = <0xff>; + over-temperature-mask = <0xff>; + }; + }; +};