From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755315AbdDMQmi (ORCPT ); Thu, 13 Apr 2017 12:42:38 -0400 Received: from mail-eopbgr10123.outbound.protection.outlook.com ([40.107.1.123]:28087 "EHLO EUR02-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752864AbdDMQmG (ORCPT ); Thu, 13 Apr 2017 12:42:06 -0400 Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=axentia.se; 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 , Philipp Zabel , Subject: [PATCH v13 05/10] dt-bindings: iio: io-channel-mux: document io-channel-mux bindings Date: Thu, 13 Apr 2017 18:43:09 +0200 Message-ID: <1492101794-13444-6-git-send-email-peda@axentia.se> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1492101794-13444-1-git-send-email-peda@axentia.se> References: <1492101794-13444-1-git-send-email-peda@axentia.se> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [81.224.171.159] X-ClientProxiedBy: AM4PR05CA0010.eurprd05.prod.outlook.com (10.171.184.151) To AM5PR0202MB2547.eurprd02.prod.outlook.com (10.173.89.8) X-MS-Office365-Filtering-Correlation-Id: 4edd0a23-c103-447d-3b14-08d4828bfad2 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201703131423075);SRVR:AM5PR0202MB2547; X-Microsoft-Exchange-Diagnostics: 1;AM5PR0202MB2547;3:idZKoOhQJJ4L+CZnjGyiNt562NM5z7Z93G8NEwV7nXJgffIMnyh6mthdRXMTJqa3xHe2u6CAx1RNkz9aszG4IPYiL02lPSuT0eSnKbzzpvGNDzQHOcJ6ls9C5qRT+g2GAVfmZ5PejA3MbmFv1aSwwUMH3T4bgCxed9NqFPWXGMnrXyHyroO+PwBrF2htNvYLZNadlt9nCjoioORuraJV4s/sJrIkamxsAhyD0mRsNQUA7NoRq6mBOeI5f0um+unXpZP6WcgYJkv75s5FTwtu0uS+oOCfOrGcXJwBxy46z0NLvI1vwBV08kFtK4mae+cR;25:IHrcXOw6DEHkgj+SEx00FB265ozapFsxkHRUIiH9SaDjSWAtH24wVwCP6/Eg+rRjjaFRuCcmILDNb78cq+b5ogkaQxSbrHMs0Vglu/qhs37JWqZ2HmgoqW6MKmNBkSUE4zbFSV3xWj5DG+i1fcrAPyoZOJ61OZQyF67abaa9fA4cuBFA1gcEpv7SbOprxxqcxkG4hC73CxWyMbAPtX5g9xfN0vy2D7/GH7VdfOopDEbjEd0XSZkr+iIYAnEqsA5uI6pCDuk7luJubbCBJod8YGiP8SXdtaD3V7XWgLm/tNw/TMywMRTu12qi0aPqSV4QqU7lqsL/QujPeOZJm6N1V8kNWCr+QyRx9z/+FQFSe7ekqC66m4nlQvfqqzys+hB2yz/b5S+IspbKUCi1ULHcvp9FJ5ADxl7kzIdmdNyiUHMHnjH/BOx4bvR8PS+TQvZzJ88ue9Sh43gJj9jXxNlcRw== X-Microsoft-Exchange-Diagnostics: 1;AM5PR0202MB2547;31:cR2j5HovJQtNt8grVXblF07QjItACqrqZicnfv+MRw52z6Hg3PMpWpiHDe5VxKHj7z3pXSAUhp3X1f4KoU9mEy2wVFOZYCz2rXM9cDchJxxbVDChHMeIxbW3G+gxpZNgvPXyOxV2DIJNJZsuIMI3CDR9lSpTP6HqZjRsAc7Vr/wit3fT9bpgs/FGSsjeqMoLMw8pn+9UVkp1gp5Yj/cbfEY/G9vbRW+v8EgQP3wNA3Dma2+Vmt6ex7KDww76MIE/ X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(26323138287068)(9452136761055); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(3002001)(93006095)(93001095)(10201501046)(6041248)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(20161123562025)(2016111802025)(20161123555025)(20161123560025)(6043046)(6072148);SRVR:AM5PR0202MB2547;BCL:0;PCL:0;RULEID:;SRVR:AM5PR0202MB2547; X-Microsoft-Exchange-Diagnostics: 1;AM5PR0202MB2547;4:0WO5j0E1wQpWONarliIj6rYU1goIRPqmi1FG5f64k3yfcQOexGane89jPXOq0DB8Eitxh1z9usqe/4VncaAX3iz0MIVizkf1a+m6KBpxIGdVFFrnxt8jPdKKWa6rn0EK0F3SgNINnhMSs+LXaXBgZ3ALkP5ghNqQ5A5wmfeGl8nqBSqz5eyPSWEWRcFpnf2N6nggK2PN7sDvTjyw1L6RjgazPuXBxYv51QvuUn3BMXjWRqQ+cUXmtfwiIlKK5uufOSTyoVCR2OLJ8yRSx9um0zVL0iS6IsrH7dXMRmf7ARzlK3Pj7tq4PC4FsFNPoam27zoYEWz2kmz5QX4S+YbXWYN+y21bQUPipXy5kb4vy/UzOY6mK1DsLoxDKER305xlx9FwYG7a31BlZylP/xKAWjXe/G7w85pI1X5jIomK6ROV0asIOdaOPmQDmrfSsEQMjDHN/NKfJh37fiRmWXUx5/dYS3UUblgJaBlgUAYt6TMCPWGPPQ7JZmiiB1hNaecLOtHt7Aqje/HFjrFsNTCnOGnydjuRXcsyv4TZwYFkEdMPXdJmFOEpVJ++mDyM5CXpVaMNw2nBB7rumaqNvJugiYEs/9mxjSEZrXOiCz1VJrvgasX+Gah3kcZHEOvGhyQu0l/qwKDXt5lREMo/3UzrzvKn/oPgvURWpklXUiaenJQ0EKQKjlV8t7g4ppkqxBCZII9GKFigIXegw3Wc5Y0BqSNPZvK6h5Ey1Ucy9eICzseMxNVrAVTqZJl5+0DOLHXxks4BEqCiuR8edu3htMM6T1T++u4HE4oZ4FJs7ozQEj2sfta0dg6jumjiMkpHwVRLTLr+HJjw7AeTx/L3qm6TLQ== X-Forefront-PRVS: 02760F0D1C X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(6009001)(6069001)(39450400003)(39410400002)(39840400002)(4326008)(25786009)(48376002)(47776003)(50466002)(6116002)(8666007)(50986999)(81166006)(33646002)(74482002)(86362001)(189998001)(66066001)(3846002)(6486002)(230783001)(6512007)(305945005)(2950100002)(6666003)(53936002)(54906002)(76176999)(7736002)(5660300001)(7416002)(42186005)(38730400002)(8676002)(36756003)(6506006)(50226002)(42262002);DIR:OUT;SFP:1102;SCL:1;SRVR:AM5PR0202MB2547;H:localhost.localdomain;FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;AM5PR0202MB2547;23:DzTc8bqSFjmcUQeVD59PFfHXXHE8sGFM98/OpFz?= =?us-ascii?Q?jbqHQ70Ni9XAkfkQ86E1dgBIMzNAJlGikuTSJaODr1hLcsQbL3/zmwC2EiWj?= =?us-ascii?Q?e/NplkrUJJ9iZeVb/jMDzCHFGk5C379rnnxAJ+gyoq5QUx1n57Bd21IW2uwH?= =?us-ascii?Q?Drs+QTFbdJFxQ1XK/DkiQ6V1VyM9NZ6tzz00FvtnrgfNa8PdUV5WBPdHJGC1?= =?us-ascii?Q?0/s2LIRDhYX3qUrRVaUMkWLmV7hocZzAiSjkZUn40+w5i2aMjJ0hQOn90yes?= =?us-ascii?Q?AjO8HdC0AJEaywAwjX8jrJQNE1hRso8ui72LsfUu299rOuBXTxd1IgsNgQxe?= =?us-ascii?Q?MMuFomspWKxoaRoiU0UMNTiKqPyK6FWntBX2RgyPY8EqDTw/ct0beTifxc4T?= =?us-ascii?Q?5BragitoRic1MwHMYt/g3lVt5TPg/HWrD6BMLfmYTkUfkLWuOV+sVhU1UoPB?= =?us-ascii?Q?9WJQASJpres9e9WlEC/igO6TvqG/vfRfvWybjg+JU52exJ6m2gWOlyyxOSkW?= =?us-ascii?Q?z1WcksW7nyl0XgP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Ju/NKwV4mCAYHVQ==;5:0aZbmYgxyd6z6V17fNW0V9B2KXjMwp85kszhjuiwPugZ6AE6KnEXC9P7UlC5RhmGvRcihCNBpLP/+MMUZ3Hy4Xp8AuVFe7aB/Kd0lWItr7MGAUL3eCcLWkavBN5FERTYDuHHMKiW+zCQz6UgIYo1c5RNFfNkikZ8pLsb7QRI7y4=;24:j9+H/Ykj/1dMDfQHnCui9ki5VeQAoyxfpxTRNduO4ZkyDnYFXrAOeOc/DM60hLC19rRK8MYHAbYKFlheDFnPGNQVeB+kyYxo4h+x7VCSm4w= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;AM5PR0202MB2547;7:m5m3UUon1/+6wqB/qhoyoKt39LggzfMIXvcHNz3p0HX3Fe8IjnQFafKfAWUqO1DhQmijDmB3t6k3K1yiJk4GYP1etTZMkqHjJihrYyZbp11fRxcnZ8s1rQ6OZLIAD5ckETflty0lqpINOmMTrev5A36vravN6p/UYhhdZ795srrDVi7cqQqaPHsZx6U7S2Eg2RZ9GZZWvx5NT+PfAKOpkKJ3WDzY2Srif3eLVJ7qcXJDt/pmxdU0sy0jMJd/YxoGkzdSOw+L8KBwQjEVcSQ01A3n9ieGfFgKtZ5K1JUVmurnb/jOPHU5iBgZdMRRVrjQuz/Pc815XoOS/vPqPwrA1g== X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Apr 2017 16:41:47.1266 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0202MB2547 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Describe how a multiplexer can be used to select which signal is fed to an io-channel. Acked-by: Jonathan Cameron Acked-by: Rob Herring Signed-off-by: Peter Rosin --- .../bindings/iio/multiplexer/io-channel-mux.txt | 39 ++++++++++++++++++++++ MAINTAINERS | 6 ++++ 2 files changed, 45 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/multiplexer/io-channel-mux.txt diff --git a/Documentation/devicetree/bindings/iio/multiplexer/io-channel-mux.txt b/Documentation/devicetree/bindings/iio/multiplexer/io-channel-mux.txt new file mode 100644 index 000000000000..c82794002595 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/multiplexer/io-channel-mux.txt @@ -0,0 +1,39 @@ +I/O channel multiplexer bindings + +If a multiplexer is used to select which hardware signal is fed to +e.g. an ADC channel, these bindings describe that situation. + +Required properties: +- compatible : "io-channel-mux" +- io-channels : Channel node of the parent channel that has multiplexed + input. +- io-channel-names : Should be "parent". +- #address-cells = <1>; +- #size-cells = <0>; +- mux-controls : Mux controller node to use for operating the mux +- channels : List of strings, labeling the mux controller states. + +For each non-empty string in the channels property, an io-channel will +be created. The number of this io-channel is the same as the index into +the list of strings in the channels property, and also matches the mux +controller state. The mux controller state is described in +../mux/mux-controller.txt + +Example: + mux: mux-controller { + compatible = "mux-gpio"; + #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", "in", "system-regulator"; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 591eba737678..4af912305d2c 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -6360,6 +6360,12 @@ F: Documentation/ABI/testing/sysfs-bus-iio-adc-envelope-detector F: Documentation/devicetree/bindings/iio/adc/envelope-detector.txt F: drivers/iio/adc/envelope-detector.c +IIO MULTIPLEXER +M: Peter Rosin +L: linux-iio@vger.kernel.org +S: Maintained +F: Documentation/devicetree/bindings/iio/multiplexer/iio-mux.txt + IIO SUBSYSTEM AND DRIVERS M: Jonathan Cameron R: Hartmut Knaack -- 2.1.4 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Rosin Subject: [PATCH v13 05/10] dt-bindings: iio: io-channel-mux: document io-channel-mux bindings Date: Thu, 13 Apr 2017 18:43:09 +0200 Message-ID: <1492101794-13444-6-git-send-email-peda@axentia.se> References: <1492101794-13444-1-git-send-email-peda@axentia.se> Mime-Version: 1.0 Content-Type: text/plain Return-path: In-Reply-To: <1492101794-13444-1-git-send-email-peda-koto5C5qi+TLoDKTGw+V6w@public.gmane.org> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Greg Kroah-Hartman Cc: Peter Rosin , Wolfram Sang , Rob Herring , Mark Rutland , Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Jonathan Corbet , linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-iio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-doc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Andrew Morton , Colin Ian King , Paul Gortmaker , Philipp Zabel , kernel-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org List-Id: devicetree@vger.kernel.org Describe how a multiplexer can be used to select which signal is fed to an io-channel. Acked-by: Jonathan Cameron Acked-by: Rob Herring Signed-off-by: Peter Rosin --- .../bindings/iio/multiplexer/io-channel-mux.txt | 39 ++++++++++++++++++++++ MAINTAINERS | 6 ++++ 2 files changed, 45 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/multiplexer/io-channel-mux.txt diff --git a/Documentation/devicetree/bindings/iio/multiplexer/io-channel-mux.txt b/Documentation/devicetree/bindings/iio/multiplexer/io-channel-mux.txt new file mode 100644 index 000000000000..c82794002595 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/multiplexer/io-channel-mux.txt @@ -0,0 +1,39 @@ +I/O channel multiplexer bindings + +If a multiplexer is used to select which hardware signal is fed to +e.g. an ADC channel, these bindings describe that situation. + +Required properties: +- compatible : "io-channel-mux" +- io-channels : Channel node of the parent channel that has multiplexed + input. +- io-channel-names : Should be "parent". +- #address-cells = <1>; +- #size-cells = <0>; +- mux-controls : Mux controller node to use for operating the mux +- channels : List of strings, labeling the mux controller states. + +For each non-empty string in the channels property, an io-channel will +be created. The number of this io-channel is the same as the index into +the list of strings in the channels property, and also matches the mux +controller state. The mux controller state is described in +../mux/mux-controller.txt + +Example: + mux: mux-controller { + compatible = "mux-gpio"; + #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", "in", "system-regulator"; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 591eba737678..4af912305d2c 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -6360,6 +6360,12 @@ F: Documentation/ABI/testing/sysfs-bus-iio-adc-envelope-detector F: Documentation/devicetree/bindings/iio/adc/envelope-detector.txt F: drivers/iio/adc/envelope-detector.c +IIO MULTIPLEXER +M: Peter Rosin +L: linux-iio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org +S: Maintained +F: Documentation/devicetree/bindings/iio/multiplexer/iio-mux.txt + IIO SUBSYSTEM AND DRIVERS M: Jonathan Cameron R: Hartmut Knaack -- 2.1.4 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html