summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/pinctrl/pinctrl-multiplexer.yaml
blob: 2b0385ed879b70b24ca9c39b098c3840d08d7482 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/pinctrl/pinctrl-multiplexer.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Generic pinctrl device for on-board MUX Chips

maintainers:
  - Frank Li <Frank.Li@nxp.com>

description:
  Generic pinctrl device for on-board MUX Chips, which switch SoC signals
  between different peripherals (e.g. MMC and UART).

  The MUX select lines are often driven by a I2C GPIO expander.

properties:
  compatible:
    const: pinctrl-multiplexer

patternProperties:
  '-grp$':
    type: object
    additionalProperties: false
    properties:
      mux-states:
        maxItems: 1

    required:
      - mux-states

required:
  - compatible

allOf:
  - $ref: pinctrl.yaml#

unevaluatedProperties: false

examples:
  - |
    pinctrl-mux {
        compatible = "pinctrl-multiplexer";

        uart-grp {
            mux-states = <&mux 0>;
        };

        spi-grp {
            mux-states = <&mux 1>;
        };

        i2c-grp {
            mux-states = <&mux 2>;
        };
    };