Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933310AbdDENHl (ORCPT ); Wed, 5 Apr 2017 09:07:41 -0400 Received: from mail-by2nam01on0059.outbound.protection.outlook.com ([104.47.34.59]:18880 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932722AbdDENGa (ORCPT ); Wed, 5 Apr 2017 09:06:30 -0400 Authentication-Results: spf=pass (sender IP is 137.71.25.55) smtp.mailfrom=analog.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=analog.com; From: To: , , , , CC: , , , , "Michael Hennerich" Subject: [PATCH v4 1/2] dt-bindings: i2c: mux: ltc4306: Add dt-bindings for I2C multiplexer/switch Date: Wed, 5 Apr 2017 15:07:50 +0200 Message-ID: <1491397671-14675-1-git-send-email-michael.hennerich@analog.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:137.71.25.55;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(39840400002)(39860400002)(39410400002)(39450400003)(39400400002)(39850400002)(2980300002)(438002)(199003)(189002)(47776003)(4326008)(305945005)(356003)(189998001)(5003940100001)(7636002)(2876002)(54906002)(86152003)(38730400002)(50466002)(107886003)(48376002)(50986999)(77096006)(36756003)(8676002)(50226002)(8936002)(6666003)(86362001)(33646002);DIR:OUT;SFP:1101;SCL:1;SRVR:BLUPR0301MB1972;H:nwd2mta1.analog.com;FPR:;SPF:Pass;MLV:sfv;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BY2FFO11FD044;1:5614W/XyJFOStEdMWgOVqr8pY9EQbMJZ5iQuGRn7PP4chf81gOPvCArderya/HZgdyuolhGHI7R9aW3QA+KeTmUdp3zOA5b5fogpG4on36lnZeq397Rp0dgmRy+OD2/1P+kZN5yMUv8tlo2v10r/0hjbrAbJ6IeDKZDiXtKAFow9vhBeDK685h4TXzBQq2k+PM6zWM4TcC5O6643Smv1Z2Y0iXY4OC6dhV5DaJk76Y4sgLb+Hvqugjj/tebUoiBWXM0fivW9U38YOgHl1zjYbV/a0ihHhYyjxnc6NcN799u0puUKOnoK+js1QDfrPYEm5P8YUvhhPkwD6zFBPjfJr1gw+cM8uIKDqoJzr9ICsfujigy8g3ghy9yLhf+iMEckqdSRtx135XH/caK/SsPS0WZ9l5+jkuUV0I3tPHxl/8XhMAIp+AUO0o2P5ky2MjSq4o/IIpmqul7k1OEUtcBYNHCS5f4WvhPJ8QWZHEArwZTZX7YnZmb4tJxvlFIujlcOadmkLBpXslSkXZGyGyPSrmoxdEh2TZTKa0IDf6SyAhUZpRkHOuNsRHTk4Oa6nyL0h2kE0yRYrt93+OHicatsg8hIKkKLqoWPtYIjgmY+UoxssJYGt3ElQe+ZkCoH/dMF X-MS-Office365-Filtering-Correlation-Id: 6b03d565-5ae7-4725-250c-08d47c2491ea X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081);SRVR:BLUPR0301MB1972; X-Microsoft-Exchange-Diagnostics: 1;BLUPR0301MB1972;3:p+aIgCaPH6NDsgUzyQGBs5Oh4l0yhh3qTDmenQovkpYWt4zj1KnY7KwOfjmvcC4QDMGhS+Z8adT8Q2RcWYxty7V9FJW4JxURzEZSSGaA/BPstfhhcJd439iI6EVmU8Vdnd8oMDz8FkBN+cHOKWLdoEOM7XuLT5hoVZRTcthVllQFmw8NjtPYwb+maWUdSB033fNRY8IR9Br4+kGpGRBi9F1zPMVH3JsfmmSXn2ZwXyf9JLaUkxZSvPHKaoX5AmtTEpw3QWpMNrK3e1+D1fUPxRyp+Ha+EEzCdYhSOi9nbH4/AyTLnDdzM4jvYA9aGXWaRkxPF/dxiicJaa5FE41kH+y1vVhC5pfEXuybE45O0MaFjODqXy/YPob6atOSiIyp0nGLFWhsYgmBzZde311dUuztjWncQJ2IYK/ECubwl40eCFJADjOJRGbL9nmwaFindi90CKRdO6Yf/CUITy3fjsXAfkKFrxcadRclmpDOySYD//rgxRaUnYLXMLvSqjTl X-Microsoft-Exchange-Diagnostics: 1;BLUPR0301MB1972;25:IEdeEMZb48AJDdPV/pATNxA1AM6J+x2am8imRqCJA/decsNNwZGd2heHXrTzuQnB/rJffhx/b6ktxYWqiKLMiQCdmKuPvaHUlaqw0+/cOiUpRzv+l3PUar2yqJzOyJBS77S2aGQAe60ob8Lj3vDFVlwRy6l4izULrTeqVhZ6iuljNVGjcPcnCHreR03reHGWKc6zYaV2koTH6lmJwv66JS1/9+9ZBOO8chCZQI31bHHM564Ub+Fyozh9TYozsOiSrG3JuzzPL9KIMlndfdW01eVJF1XXL2x/+/tP7HDvw14aOckKIzu7xE/ZA0js1e9y2EAxE7MsORqkfG+gGuIxtDX56EF6zX6HnyT5Sl6bPgqOkjtliyYIQ9KkfmoZqSWhA2N5KUlzzp0kG3wt5PXIhhtAgIc+RMWRlkNTY8NpCIBzFofLzRzhAUogpKz+L6zLxe/Aw8ckH05MRMU7TfVpTQ==;31:0VbEUbKFrcWDFWUiefcOG/5NsjqLHrrVj42p+s7bFTCSvdPqmE3gokWjNexn5Bgf4axmHS6lTg+vcs94p9O/74B//nb2DmscIY0aFrHFipJhXROGaUnv22W3hkE1rm4mjqkx/o4Hrr0Gpv2HiimFFzdWuypvtpRRSqMkBVA90Qt8UtfasgcbZNcmM1q72Mor/WTR9nR8F4y/cEMWnPU3p/CYfLseB4pYN7glKglCa3xN6sG5KHDkcEXHGSCtuWAcy7iByBIoXSWokWAaOoQoQg== X-Microsoft-Exchange-Diagnostics: 1;BLUPR0301MB1972;20:jm9VGK7uyALR+lJAEtOHCcgPl73lILbmScdxa919qdOcrabcLewrT5xBfUTKRcrtddnVO6wCgN5vvsVmyd/BzkfA077aTJvCeZGTna8hRlNLQ+4qReqdWuf1xT9cVa9rpIH4/XiSmdoV8krbT/969RmKA20ydrvgQS1fJdxMHuWJJRwgyubxf0Mnzgbf5d1IzKy95M/lHqxTSv8VhgWrJkbY2nZ9MTZ093/x3GA37kxLyukwaHtYwfIue7fSD1NPEnime1Baprc20BbR37W8HWvI7+4lx18Wd1ia61qnHBxQYv/kYUXe75nyyZBMLuz1+ELVnwRZEjnccrJqiQcyV31GyEjlvJwVYjnHdRX/VK07ax8sW1R2hmWi8wzhYGz7fgt2ZSvLbOuqYPUQXm+cwq8vt0m3eDLwiXnsXRHNlgvf/DSghnKAFsPczxJblOd7ghIkNyokO69aMcxsuFI/+mIHJy8W3F7WqY+yy7oUTPm3RRavSTfBTFDW+OLZNCCJ X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(232431446821674); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040450)(601004)(2401047)(13024025)(13023025)(13018025)(8121501046)(5005006)(13015025)(13017025)(3002001)(93006095)(93004095)(10201501046)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(20161123562025)(20161123564025)(20161123555025)(20161123560025)(6072148);SRVR:BLUPR0301MB1972;BCL:0;PCL:0;RULEID:;SRVR:BLUPR0301MB1972; X-Microsoft-Exchange-Diagnostics: 1;BLUPR0301MB1972;4:rwSYUbypdEXUJGOKuaXTH6DUXCXHlh2wKczhrWIYFQbiRThzVF1IzgijclhrvnawYqLSqeNyhp1+UjrtGTxQcCZxQW0c/R+1hUcGVvS3Fojmc2NWLRvLLNHkHQ87t06pLo93xbmqa38bd2yNEDUvkZq9qxFLjVxCdL4qnp/aSBfXMAJsmoQVEa0NLUnzMvnox6wlNekVyLxXo3qSf8xQupKrHvIN/TsM7CuCNBGMlR50YGFghsaKaU3Y3seyHLFhXkBrS3HLLN7fLaCo8b8RKnue/niwl4EG0OJyW+w/Zgj/lotuKAiTC6QFbcZ+yQghfiiIpCmaRKPH89V535C7cDzQsC3wHL2RSZJ2f4z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dZ9M3Sq6dKXXe62iwMVeM5st4hf7O5RL7mBROpM/x8YPC7QF5ZLKNaW29Ys/ZbimludBKJ6Bk= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;BLUPR0301MB1972;7:jckqD+iAA4OEQWsU+C1zoUprADqxKPQZ5q05ZEFvGYC69JvIzS/Rh+Ws2SryPE84/nyj8yUQqAi+gfVfqnCct+bfptUO+gsKKNeiCRe9WP1OrFBvGiUQITjIERUb/D1AeRvv2toIe+fYJgWzMt8RNZz+kCCvwNh6kZMyzJtlzWlZ6c1fMCwnaPtw+lWkZS56px9XChSfRpVPWm6wc/iiKHAjRSxspMV0esy1GpHwjfAmbyElB/h7xodeYt9Tadp0bypW+et+4B7J99HsrFLLxqPuLEOij6G0EKNm9ZvbJXMA7gEh4/R7+GxywyferD3R+Im0Ouw2raf086E4Ip+m8Q== X-OriginatorOrg: analog.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Apr 2017 13:06:27.1670 (UTC) X-MS-Exchange-CrossTenant-Id: eaa689b4-8f87-40e0-9c6f-7228de4d754a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=eaa689b4-8f87-40e0-9c6f-7228de4d754a;Ip=[137.71.25.55];Helo=[nwd2mta1.analog.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0301MB1972 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2625 Lines: 84 From: Michael Hennerich This patch adds support for the Analog Devices / Linear Technology LTC4306 and LTC4305 4/2 Channel I2C Bus Multiplexer/Switches. The LTC4306 optionally provides two general purpose input/output pins (GPIOs) that can be configured as logic inputs, opendrain outputs or push-pull outputs via the generic GPIOLIB framework. Signed-off-by: Michael Hennerich Acked-by: Rob Herring --- .../devicetree/bindings/i2c/i2c-mux-ltc4306.txt | 61 ++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 Documentation/devicetree/bindings/i2c/i2c-mux-ltc4306.txt diff --git a/Documentation/devicetree/bindings/i2c/i2c-mux-ltc4306.txt b/Documentation/devicetree/bindings/i2c/i2c-mux-ltc4306.txt new file mode 100644 index 0000000..1e98c6b --- /dev/null +++ b/Documentation/devicetree/bindings/i2c/i2c-mux-ltc4306.txt @@ -0,0 +1,61 @@ +* Linear Technology / Analog Devices I2C bus switch + +Required Properties: + + - compatible: Must contain one of the following. + "lltc,ltc4305", "lltc,ltc4306" + - reg: The I2C address of the device. + + 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: + + - enable-gpios: Reference to the GPIO connected to the enable input. + - i2c-mux-idle-disconnect: Boolean; if defined, forces mux to disconnect all + children in idle state. This is necessary for example, if there are several + multiplexers on the bus and the devices behind them use same I2C addresses. + - gpio-controller: Marks the device node as a GPIO Controller. + - #gpio-cells: Should be two. The first cell is the pin number and + the second cell is used to specify flags. + See ../gpio/gpio.txt for more information. + - ltc,downstream-accelerators-enable: Enables the rise time accelerators + on the downstream port. + - ltc,upstream-accelerators-enable: Enables the rise time accelerators + on the upstream port. + +Example: + + ltc4306: i2c-mux@4a { + compatible = "lltc,ltc4306"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x4a>; + + gpio-controller; + #gpio-cells = <2>; + + i2c@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + + eeprom@50 { + compatible = "at,24c02"; + reg = <0x50>; + }; + }; + + i2c@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + + eeprom@50 { + compatible = "at,24c02"; + reg = <0x50>; + }; + }; + }; -- 2.7.4