1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/soc/imx/fsl,imx-iomuxc-gpr.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Freescale IOMUX Controller General Purpose Registers
8
9maintainers:
10  - Peng Fan <peng.fan@nxp.com>
11
12description:
13  i.MX Processors have an IOMUXC General Purpose Register group for
14  various System Settings
15
16properties:
17  compatible:
18    oneOf:
19      - items:
20          - const: fsl,imx8mq-iomuxc-gpr
21          - const: syscon
22          - const: simple-mfd
23      - items:
24          - enum:
25              - fsl,imx8mm-iomuxc-gpr
26              - fsl,imx8mn-iomuxc-gpr
27              - fsl,imx8mp-iomuxc-gpr
28          - const: syscon
29
30  reg:
31    maxItems: 1
32
33  mux-controller:
34    type: object
35    $ref: /schemas/mux/reg-mux.yaml
36
37additionalProperties: false
38
39required:
40  - compatible
41  - reg
42
43examples:
44  # Pinmux controller node
45  - |
46    iomuxc_gpr: syscon@30340000 {
47        compatible = "fsl,imx8mq-iomuxc-gpr", "syscon", "simple-mfd";
48        reg = <0x30340000 0x10000>;
49
50        mux: mux-controller {
51            compatible = "mmio-mux";
52            #mux-control-cells = <1>;
53            mux-reg-masks = <0x34 0x00000004>; /* MIPI_MUX_SEL */
54        };
55    };
56
57...
58