Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753979AbdDKMOw (ORCPT ); Tue, 11 Apr 2017 08:14:52 -0400 Received: from mail-by2nam03on0069.outbound.protection.outlook.com ([104.47.42.69]:53856 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752748AbdDKMOt (ORCPT ); Tue, 11 Apr 2017 08:14:49 -0400 Authentication-Results: spf=pass (sender IP is 137.71.25.57) 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 v5 1/2] dt-bindings: i2c: mux: ltc4306: Add dt-bindings for I2C multiplexer/switch Date: Tue, 11 Apr 2017 14:16:15 +0200 Message-ID: <1491912976-8396-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.57;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(39400400002)(39850400002)(39410400002)(39860400002)(39450400003)(2980300002)(438002)(189002)(37524003)(199003)(48376002)(77096006)(50986999)(107886003)(33646002)(4326008)(50226002)(54906002)(86362001)(2906002)(38730400002)(8936002)(2876002)(8676002)(86152003)(5003940100001)(356003)(36756003)(5660300001)(47776003)(7636002)(305945005)(189998001)(50466002)(6666003)(106466001);DIR:OUT;SFP:1101;SCL:1;SRVR:CY1PR0301MB1289;H:nwd2mta2.analog.com;FPR:;SPF:Pass;MLV:sfv;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BN1AFFO11FD015;1:+DQtLUlMTPIeLGDgBirO14CXGEwURFUwfwYRUKcf21YfxCYSFncRN2O2rtrhY9Gjva1XwiFwL4Eqtr93C/VyTck+A3ymI3RGOTo2DkqJ9u6XEfGrunv7scPhNa2oHP8umK6tluy0lyG8zxRtB7rUqbAZ93vmK4LAjCpF/JTE+/n9vKXTqiy8vl0elUNQ16wCHPUNJq10LmuBdggESnwEwLFMaAQ3H+B46ioK9APGHLkfTt42ZLEDI9nO/MNWZSr0t943PffIA9/dkfAfd5/bU4WHeBWrVNLc8wBiMu9r3r1C+4K3iOP40h0V3DllgoO5iVUZ8ndr/gxkLh1sudlT78SHq3VXwdQnk1FrgmKK9lEShwZnBDvzjd5Wj49pPIH1YExahZh1f0Z8vDt9ZMAZACDOg4DEZtMobdNzIPmTgrKPnSN94Zg+Cn1TBuB/vdL9kM+UGDHYr9LGaSUivXdXsiYjwmqcDxzxBS+ELVb1FEds+/JxW6f5C/5eTru12MhFtJqkM1afex2misH6HKG3GPsaUvlwASGr2OXyrBvrpEH7XjhOLvKkGy5ypndj/TRG47O7YvcI1IDiyjW7gc+/8Sy+mI6YkwY1JEaEmFNsxQQIxjRQqjSGNqpXWFUqJcq9 X-MS-Office365-Filtering-Correlation-Id: b640ae1e-de00-4f64-73d0-08d480d4589f X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081);SRVR:CY1PR0301MB1289; X-Microsoft-Exchange-Diagnostics: 1;CY1PR0301MB1289;3:vsG3qhMj52G25iyi+0mPLbc8L9MxKygGldG2hPn4inikT1q8nNLjd8ua9llo4zDGcLJ3BCk/i+p0ZouJOSfoJYuMGAqFwprB8pBKvBH0WQ7/hNv3w3SkhkDHqJz3Dl250iRzWvhkHTnWy5TGAg4idBu+B7xGXAr7JRtBmvxiSvzNw0qPm3C8QQVNl+n2gaJRokS3UCnwk0wTLcelu15c5SmDkeBc9UuV8ozdnlTymsw3SV9rsQCAF5proxKMxMxy2xK+0FLuN4RbUW4n9DSETknIstK6aobo4kCO7qBz4YRW6wzNzPg0brfXuunct9ukad+4l+81OfuQt+9vyp9cO0ZDuik40O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+nHhjhf/605MRmfBki7CiDumWNEry083CPbVLQz19AB43esqOLgCp2o0ZXOA3itd6K411wcOTP6ru/uQBpBOUJCKERv9YVR5Vdrfj08jfiQqBbO+BYWE4htVob6MOC2LjltfUV+M1Mqpyhje6olInvWtV9aOFQBYNHoz1/l0XB1DwazBFobTLxAMLNcbUzWwc2X5q6IOxOVJ3ffP+fb7FNQLxiIJT/bP7468AifOng+yU6jtI/vEuVa4LKpNanqMnqTvJVf1k5l9BU4FHBBbOUhM+QRFgCUBLaKsFrFf1IJd6/nlllT7s6OPmvtFzMd9FNS9HXkBCJSBlwRnroCeSHIjce1VpP0Eo9brpdACVBm9puV0nhFNZds/WtNSFpj3b6E6Z2WDFwAzQLscBcqpduybrfvBDuM0Dmfm+Qwi9 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)(13017025)(13024025)(13023025)(13018025)(13015025)(8121501046)(5005006)(3002001)(10201501046)(93006095)(93004095)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(20161123564025)(20161123560025)(20161123555025)(20161123562025)(6072148);SRVR:CY1PR0301MB1289;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0301MB1289; X-Microsoft-Exchange-Diagnostics: 1;CY1PR0301MB1289;4:JHUfDmjxPsBswPd+Wf1bWEASZOx/S0sk3EwcTYL2+Tjy+B9cz3WP2hacqVETwfdOn4WwCJY58ZhpjXKqJ4k8wCKUIJqjQyFPSJGPIjx9vfn7Vd05CCLKGeWFiMjysZwkqXxivaYFVN5uSXHtUyi8767kdI3+bPxkOZFbiS4+ikK7dXgE/BHd66BQjJUfeJRoMhe4Ve/z9t/I/tBFH+YjoP2QFTG2ky1FGpgyH/OHED8fvi0bobQMeTDbQE5XbCZbFx7I4CnjrhemaU8Q2WlMxOrahpfPHn7Ojst0fXD1I6hsKvPnXqj3neMCLtKNIkPGjgsK/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VJi3x4e9MB46N+f+u8nEeyqv5H0IHnjan3ausFNz3LSJMZNtouvp/RO6EwZ9V58cs35i1XpfeRCzYtJOIiP6AG4Ij9iFJ+DE7GOBlzbsO/YcDEskNPyw==;24:zMKYuC2AKumT1yRIv5tssHP/n5NCgKMRcN1/QDojSFW5y9VTVqvbnZxoManybK+bVtqxLNocoCTcrrvwJlF3VRUn/0z3Fb8ZL+RuSMiLnsU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;CY1PR0301MB1289;7:V0zCfKeLkixGHVUqmxxU4xWzCn7Vvcs8SPqkqlh8d+MrcUHmmNTa+5gGOjbCCSoJdOULGMqofuKX9CozCKLBOxCBMXFAvZ15WBNNoGLhNvpa5/7r6cFqPun84m8PNfxllWdbKix4STaGRxbjmGWeZ9pBzwYjYqIeiEDWW41SldN/C3GMpqL4vr2MY3iXha9MI5kZAJ66V5z9kKWqxas+cm6/lfIGl+01team2bLQEGSnxqO3aT3MMFMtv/+tolbEganIPBqfeP6QEQbejVMMA3EwFyN+MGHP48vXZ+l6lgp90hZ0vqdMFYJ1sDh4DTfYiyggHBBx2qAq7WPRqAtvYQ== X-OriginatorOrg: analog.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Apr 2017 12:14:47.3101 (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.57];Helo=[nwd2mta2.analog.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0301MB1289 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