1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2%YAML 1.2 3--- 4$id: http://devicetree.org/schemas/pinctrl/pinctrl-multiplexer.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: Generic pinctrl device for on-board MUX Chips 8 9maintainers: 10 - Frank Li <Frank.Li@nxp.com> 11 12description: 13 Generic pinctrl device for on-board MUX Chips, which switch SoC signals 14 between different peripherals (e.g. MMC and UART). 15 16 The MUX select lines are often driven by a I2C GPIO expander. 17 18properties: 19 compatible: 20 const: pinctrl-multiplexer 21 22patternProperties: 23 '-grp$': 24 type: object 25 additionalProperties: false 26 properties: 27 mux-states: 28 maxItems: 1 29 30 required: 31 - mux-states 32 33required: 34 - compatible 35 36allOf: 37 - $ref: pinctrl.yaml# 38 39unevaluatedProperties: false 40 41examples: 42 - | 43 pinctrl-mux { 44 compatible = "pinctrl-multiplexer"; 45 46 uart-grp { 47 mux-states = <&mux 0>; 48 }; 49 50 spi-grp { 51 mux-states = <&mux 1>; 52 }; 53 54 i2c-grp { 55 mux-states = <&mux 2>; 56 }; 57 }; 58