From patchwork Mon Mar 27 12:17:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 743781 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3vsCht392yz9ryv for ; Mon, 27 Mar 2017 23:17:50 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=axentiatech.onmicrosoft.com header.i=@axentiatech.onmicrosoft.com header.b="HuCBxlvQ"; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752840AbdC0MRl (ORCPT ); Mon, 27 Mar 2017 08:17:41 -0400 Received: from mail-eopbgr30137.outbound.protection.outlook.com ([40.107.3.137]:61246 "EHLO EUR03-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751751AbdC0MRc (ORCPT ); Mon, 27 Mar 2017 08:17:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axentiatech.onmicrosoft.com; s=selector1-axentia-se; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=EMezxtgBB17C/tRZUgqbtorGdoWgcivHkI2/WlqW5gM=; b=HuCBxlvQwNVCAqGOh17WdH7DzZRnXYuDhFGKHjYgL7er5ksgkyIoNI1GR/O8JBjwbzJCevydSKfGSUEt50/I1ToyyoatAyEDMId2eZR5Q4MKxgfKIYJ3PAh+k0a32QPswKGuFqtpuykgfHuAgyc4dOsqduhr4xJQMfAiQhOy78c= Authentication-Results: linuxfoundation.org; dkim=none (message not signed) header.d=none; linuxfoundation.org; dmarc=none action=none header.from=axentia.se; Received: from localhost.localdomain (81.224.171.159) by DB6PR0202MB2550.eurprd02.prod.outlook.com (10.169.211.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.961.17; Mon, 27 Mar 2017 12:16:21 +0000 From: Peter Rosin To: Greg Kroah-Hartman CC: Peter Rosin , Wolfram Sang , Rob Herring , Mark Rutland , Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Jonathan Corbet , , , , , , Andrew Morton , Colin Ian King , Paul Gortmaker Subject: [PATCH v11 02/12] dt-bindings: document devicetree bindings for mux-controllers and gpio-mux Date: Mon, 27 Mar 2017 14:17:39 +0200 Message-ID: <1490617069-13119-3-git-send-email-peda@axentia.se> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1490617069-13119-1-git-send-email-peda@axentia.se> References: <1490617069-13119-1-git-send-email-peda@axentia.se> MIME-Version: 1.0 X-Originating-IP: [81.224.171.159] X-ClientProxiedBy: HE1PR0402CA0008.eurprd04.prod.outlook.com (10.175.27.18) To DB6PR0202MB2550.eurprd02.prod.outlook.com (10.169.211.8) X-MS-Office365-Filtering-Correlation-Id: 32bf2a5e-3aff-45ed-27fe-08d4750b15e6 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:DB6PR0202MB2550; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0202MB2550; 3:3orFcdvIWxqi2D03wfrmvMnIeJpPR6iRYe4s33bnpYus8LvnZYXQ7Oy0TWaRFj9hhXyu/NE+1XlsgDrNunA2klOeZXQujFCksRH9WfFYVR//By5C1Xd2PoATi09DVfKO3W9YZT+TW+1Cm+5+224nlqh5KwphKNWqzOo9kLjZdxtuz789jJm8TAH/xmN5R0RNkFVNawHaD1J/+G0BOX5gkLRpHZoqyyO4zk8p/GbuF77ITZtZZzZSr0EcyOVnhGvcxDnD222Rtmy9Vk84xw6gfw==; 25:VwyLnyTm7yqYu1aaJeFRu75v5aLykqnz3/SKLnWuAt/GizAVUKwDJye9erxS4y4Iv1IIwM2Uicg/WtK8/P7Ig/k/+oBvjBDxetkD/VX8QFef7Vinpj6wOOzSGVhhhLKlFKnNZzkyP+2kcrNn0uYPja91S6fwasfKGz9o8yDuJbiiBtBB/M24MmWkjizXcJpuThiGn7dipAqHa03myhCd/peSPD9iLWNPi2eHRYBPAnR70br5OQcxWlmVfoWVdD5bqFIqPqdS1rebRjC/jYp1B9DELSLTnOeVjEuAUG3Qijv4Wa0hiBeuGWdt1fuunPf9Q2ZZod2sNbNDMaKFxIoDhhustQrgjsNzY5Ah5MJmlS1Gzmki0p6gwXi+Ki1zHr6gCrD2VoNITbO5flHjZOlm6NQ2Kf5N/w0wQ8d+uj+gMtUMjpwxuNNxHj3Te9q/i2AQ3fm7YLeengU6/0kpbUIx1Q== X-Microsoft-Exchange-Diagnostics: 1; DB6PR0202MB2550; 31:fs5BdF2tqu66NrAVRiOVvyKuyanqMnvah2jm5xuiIy0JLlTf6YxAu6OYPGKAki1EDvXpXyAKZk9cyrsM8VnerybV09Rpk+9FeZ/CyjBaqP0CxO6Db8p4AKyASAVjf5FGmVUCPfX40C/pR2ARJPmSfr6v7ADEJuQvmAyPLc5LBay3W7lCyn/vSiu84wBjqqFyxUqtwhrRb4tzQarRheE120ED33SBtxM6lTt3WCz4MXIN8Y0PzJX6u8wsGLTpIzSF X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(11668515415152); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(6041248)(20161123555025)(20161123558025)(20161123564025)(2016111802025)(20161123562025)(20161123560025)(6072148)(6043046); SRVR:DB6PR0202MB2550; BCL:0; PCL:0; RULEID:; SRVR:DB6PR0202MB2550; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0202MB2550; 4:6WJcj1m1V4cg9qh0kgoX8el8hVV/VJYS92cnavnRW5hpTLunYrpv92jLkLX25oM3tRvxLTZxan/5uo+ttqq9kXj6TRvo9h144Rwv3Oce0xeZWUv2rCu8z3nBviKYEGqc5c7kMgNJ1zKcY7tn8ivCilPYd9opjbz23RZAJMBETkF1rWi2bqmT0eiTwDDqiXCyxNydA2cTUhMLc2IG4lS23Z3yzwFRKwBhUye1mxk8xM0VfZfcfKkdI28spZuW42z6QlFj/IhOKEJm2MRZ9BS8CeouWkoHORGKOh9njHQevuBMEaEz8MD+BwjE+nIjZ3BNJX01G9MePmSlN8LA1q/kbYJ/zQ28fTePelS6phsQeu+Y76Ijsxa5V4VCYn544eY3yXLuuaMYQjp1NSLF7ehYJEbIwoXuM3OWRkSb6UGdYZtTMxrD2v+EV4JcsdJNSkb2gz85WA0qKhheZzanmJI5YrRyAb3a3Y/k2omsF+KmKk3VxiDCAo6oglAtn+rfJvIOXFKGRX3hlRLIkCPbBFJLCDcoZ1pMhIauJpmFp3IV8Yy6hRa7E/pmIWj5um4jQuiXQgwjnrEmKkFaNih4sHqBbfGhWvQZtZ+CS6wliTmsclCbHMfAUSJlPnB/kFdIMi9y6/SQxwVWa9zXDrYLd0xkdEkzU3+Sxn4ao/53L3nfJm2NptpLNzahzWpbBC4yG40e X-Forefront-PRVS: 02596AB7DA X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6069001)(6009001)(39410400002)(39450400003)(39830400002)(36756003)(4326008)(50466002)(5003940100001)(33646002)(76176999)(53936002)(66066001)(6506006)(47776003)(6486002)(7736002)(8666007)(50986999)(54906002)(38730400002)(50226002)(86362001)(48376002)(6512007)(3846002)(6116002)(110136004)(8676002)(2906002)(189998001)(81166006)(42186005)(7416002)(6916009)(305945005)(6666003)(74482002)(2950100002)(25786009)(5660300001)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:DB6PR0202MB2550; H:localhost.localdomain; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DB6PR0202MB2550; 23:XiI0LlxyitQbmb9O8Snz0kgXCYaPzYtKlEqWrd2?= =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MVlhbw/yRmb/3iY+WFnMVY3pJFDKwgLXirA8VEU/yaL5S8zXUGuGVlV6QnCplh0+Qm2r3cw2Rs6CT4IELeuZOTCtqbsiOSkWLxXPfRWHbDiMSzz+ZDbaiK1B8beXe15oRG0YJ0GzjjogGXLuSEsE/jY3o31+2l+niAWL4ZtYRAR45uqAYaUEbH/+wDCKCAGqCY0zr1Y+RWGhtu0NVWtejn3fwpJm78pyjXhSll5Z3lY68kW1ZtsYOtn4TN+YYefHqVGQi4/0m05jhrskKUKfsPp4D5wVxAcWCMo7A== X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Mar 2017 12:16:21.6329 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0202MB2550 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Allow specifying that a single multiplexer controller can be used to control several parallel multiplexers, thus enabling sharing of the multiplexer controller by different consumers. Add a binding for a first mux controller in the form of a GPIO based mux controller. Acked-by: Jonathan Cameron Acked-by: Rob Herring Signed-off-by: Peter Rosin --- Documentation/devicetree/bindings/mux/gpio-mux.txt | 69 +++++++++ .../devicetree/bindings/mux/mux-controller.txt | 157 +++++++++++++++++++++ MAINTAINERS | 6 + include/dt-bindings/mux/mux.h | 16 +++ 4 files changed, 248 insertions(+) create mode 100644 Documentation/devicetree/bindings/mux/gpio-mux.txt create mode 100644 Documentation/devicetree/bindings/mux/mux-controller.txt create mode 100644 include/dt-bindings/mux/mux.h diff --git a/Documentation/devicetree/bindings/mux/gpio-mux.txt b/Documentation/devicetree/bindings/mux/gpio-mux.txt new file mode 100644 index 000000000000..b8f746344d80 --- /dev/null +++ b/Documentation/devicetree/bindings/mux/gpio-mux.txt @@ -0,0 +1,69 @@ +GPIO-based multiplexer controller bindings + +Define what GPIO pins are used to control a multiplexer. Or several +multiplexers, if the same pins control more than one multiplexer. + +Required properties: +- compatible : "gpio-mux" +- mux-gpios : list of gpios used to control the multiplexer, least + significant bit first. +- #mux-control-cells : <0> +* Standard mux-controller bindings as decribed in mux-controller.txt + +Optional properties: +- idle-state : if present, the state the mux will have when idle. The + special state MUX_IDLE_AS_IS is the default. + +The multiplexer state is defined as the number represented by the +multiplexer GPIO pins, where the first pin is the least significant +bit. An active pin is a binary 1, an inactive pin is a binary 0. + +Example: + + mux: mux-controller { + compatible = "gpio-mux"; + #mux-control-cells = <0>; + + mux-gpios = <&pioA 0 GPIO_ACTIVE_HIGH>, + <&pioA 1 GPIO_ACTIVE_HIGH>; + }; + + adc-mux { + compatible = "io-channel-mux"; + io-channels = <&adc 0>; + io-channel-names = "parent"; + + mux-controls = <&mux>; + + channels = "sync-1", "in", "out", "sync-2"; + }; + + i2c-mux { + compatible = "i2c-mux"; + i2c-parent = <&i2c1>; + + mux-controls = <&mux>; + + #address-cells = <1>; + #size-cells = <0>; + + i2c@0 { + reg = <0>; + #address-cells = <1>; + #size-cells = <0>; + + ssd1307: oled@3c { + /* ... */ + }; + }; + + i2c@3 { + reg = <3>; + #address-cells = <1>; + #size-cells = <0>; + + pca9555: pca9555@20 { + /* ... */ + }; + }; + }; diff --git a/Documentation/devicetree/bindings/mux/mux-controller.txt b/Documentation/devicetree/bindings/mux/mux-controller.txt new file mode 100644 index 000000000000..4f47e4bd2fa0 --- /dev/null +++ b/Documentation/devicetree/bindings/mux/mux-controller.txt @@ -0,0 +1,157 @@ +Common multiplexer controller bindings +====================================== + +A multiplexer (or mux) controller will have one, or several, consumer devices +that uses the mux controller. Thus, a mux controller can possibly control +several parallel multiplexers. Presumably there will be at least one +multiplexer needed by each consumer, but a single mux controller can of course +control several multiplexers for a single consumer. + +A mux controller provides a number of states to its consumers, and the state +space is a simple zero-based enumeration. I.e. 0-1 for a 2-way multiplexer, +0-7 for an 8-way multiplexer, etc. + + +Consumers +--------- + +Mux controller consumers should specify a list of mux controllers that they +want to use with a property containing a 'mux-ctrl-list': + + mux-ctrl-list ::= [mux-ctrl-list] + single-mux-ctrl ::= [mux-ctrl-specifier] + mux-ctrl-phandle : phandle to mux controller node + mux-ctrl-specifier : array of #mux-control-cells specifying the + given mux controller (controller specific) + +Mux controller properties should be named "mux-controls". The exact meaning of +each mux controller property must be documented in the device tree binding for +each consumer. An optional property "mux-control-names" may contain a list of +strings to label each of the mux controllers listed in the "mux-controls" +property. + +Drivers for devices that use more than a single mux controller can use the +"mux-control-names" property to map the name of the requested mux controller +to an index into the list given by the "mux-controls" property. + +mux-ctrl-specifier typically encodes the chip-relative mux controller number. +If the mux controller chip only provides a single mux controller, the +mux-ctrl-specifier can typically be left out. + +Example: + + /* One consumer of a 2-way mux controller (one GPIO-line) */ + mux: mux-controller { + compatible = "gpio-mux"; + #mux-control-cells = <0>; + + mux-gpios = <&pioA 0 GPIO_ACTIVE_HIGH>; + }; + + adc-mux { + compatible = "io-channel-mux"; + io-channels = <&adc 0>; + io-channel-names = "parent"; + + mux-controls = <&mux>; + mux-control-names = "adc"; + + channels = "sync", "in"; + }; + +Note that in the example above, specifying the "mux-control-names" is redundant +because there is only one mux controller in the list. However, if the driver +for the consumer node in fact asks for a named mux controller, that name is of +course still required. + + /* + * Two consumers (one for an ADC line and one for an i2c bus) of + * parallel 4-way multiplexers controlled by the same two GPIO-lines. + */ + mux: mux-controller { + compatible = "gpio-mux"; + #mux-control-cells = <0>; + + mux-gpios = <&pioA 0 GPIO_ACTIVE_HIGH>, + <&pioA 1 GPIO_ACTIVE_HIGH>; + }; + + adc-mux { + compatible = "io-channel-mux"; + io-channels = <&adc 0>; + io-channel-names = "parent"; + + mux-controls = <&mux>; + + channels = "sync-1", "in", "out", "sync-2"; + }; + + i2c-mux { + compatible = "i2c-mux"; + i2c-parent = <&i2c1>; + + mux-controls = <&mux>; + + #address-cells = <1>; + #size-cells = <0>; + + i2c@0 { + reg = <0>; + #address-cells = <1>; + #size-cells = <0>; + + ssd1307: oled@3c { + /* ... */ + }; + }; + + i2c@3 { + reg = <3>; + #address-cells = <1>; + #size-cells = <0>; + + pca9555: pca9555@20 { + /* ... */ + }; + }; + }; + + +Mux controller nodes +-------------------- + +Mux controller nodes must specify the number of cells used for the +specifier using the '#mux-control-cells' property. + +Optionally, mux controller nodes can also specify the state the mux should +have when it is idle. The idle-state property is used for this. If the +idle-state is not present, the mux controller is typically left as is when +it is idle. For multiplexer chips that expose several mux controllers, the +idle-state property is an array with one idle state for each mux controller. + +The special value (-1) may be used to indicate that the mux should be left +as is when it is idle. This is the default, but can still be useful for +mux controller chips with more than one mux controller, particularly when +there is a need to "step past" a mux controller and set some other idle +state for a mux controller with a higher index. + +Some mux controllers have the ability to disconnect the input/output of the +multiplexer. Using this disconnected high-impedance state as the idle state +is indicated with idle state (-2). + +These constants are available in + + #include + +as MUX_IDLE_AS_IS (-1) and MUX_IDLE_DISCONNECT (-2). + +An example mux controller node look like this (the adg972a chip is a triple +4-way multiplexer): + + mux: mux-controller@50 { + compatible = "adi,adg792a"; + reg = <0x50>; + #mux-control-cells = <1>; + + idle-state = ; + }; diff --git a/MAINTAINERS b/MAINTAINERS index c265a5fe4848..7fc06739c8ad 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -8558,6 +8558,12 @@ S: Orphan F: drivers/mmc/host/mmc_spi.c F: include/linux/spi/mmc_spi.h +MULTIPLEXER SUBSYSTEM +M: Peter Rosin +S: Maintained +F: Documentation/devicetree/bindings/mux/ +F: include/linux/dt-bindings/mux/ + MULTISOUND SOUND DRIVER M: Andrew Veliath S: Maintained diff --git a/include/dt-bindings/mux/mux.h b/include/dt-bindings/mux/mux.h new file mode 100644 index 000000000000..c8e855c4a609 --- /dev/null +++ b/include/dt-bindings/mux/mux.h @@ -0,0 +1,16 @@ +/* + * This header provides constants for most Multiplexer bindings. + * + * Most Multiplexer bindings specify an idle state. In most cases, the + * the multiplexer can be left as is when idle, and in some cases it can + * disconnect the input/output and leave the multiplexer in a high + * impedance state. + */ + +#ifndef _DT_BINDINGS_MUX_MUX_H +#define _DT_BINDINGS_MUX_MUX_H + +#define MUX_IDLE_AS_IS (-1) +#define MUX_IDLE_DISCONNECT (-2) + +#endif