Debian Codegraph @

Documentation/devicetree/bindings/soc/imx/fsl,imx-iomuxc-gpr.yaml

raw
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
7 title: Freescale IOMUX Controller General Purpose Registers
8
9 maintainers:
10 - Peng Fan <[email protected]>
11
12 description:
13 i.MX Processors have an IOMUXC General Purpose Register group for
14 various System Settings
15
16 properties:
17 compatible:
18 oneOf:
19 - items:
20 - enum:
21 - fsl,imx6q-iomuxc-gpr
22 - fsl,imx8mq-iomuxc-gpr
23 - const: syscon
24 - const: simple-mfd
25 - items:
26 - enum:
27 - fsl,imx6sl-iomuxc-gpr
28 - fsl,imx6sll-iomuxc-gpr
29 - fsl,imx6ul-iomuxc-gpr
30 - const: fsl,imx6q-iomuxc-gpr
31 - const: syscon
32 - items:
33 - enum:
34 - fsl,imx6sx-iomuxc-gpr
35 - fsl,imx7d-iomuxc-gpr
36 - const: fsl,imx6q-iomuxc-gpr
37 - const: syscon
38 - const: simple-mfd
39 - items:
40 - enum:
41 - fsl,imx53-iomuxc-gpr
42 - fsl,imx8mm-iomuxc-gpr
43 - fsl,imx8mn-iomuxc-gpr
44 - fsl,imx8mp-iomuxc-gpr
45 - const: syscon
46
47 reg:
48 maxItems: 1
49
50 mux-controller:
51 type: object
52 $ref: /schemas/mux/reg-mux.yaml
53
54 patternProperties:
55 "^ipu[12]_csi[01]_mux$":
56 type: object
57 $ref: /schemas/media/video-mux.yaml
58
59 allOf:
60 - if:
61 properties:
62 compatible:
63 not:
64 contains:
65 const: fsl,imx6q-iomuxc-gpr
66 then:
67 patternProperties:
68 '^ipu[12]_csi[01]_mux$': false
69
70 additionalProperties: false
71
72 required:
73 - compatible
74 - reg
75
76 examples:
77 # Pinmux controller node
78 - |
79 iomuxc_gpr: syscon@30340000 {
80 compatible = "fsl,imx8mq-iomuxc-gpr", "syscon", "simple-mfd";
81 reg = <0x30340000 0x10000>;
82
83 mux: mux-controller {
84 compatible = "mmio-mux";
85 #mux-control-cells = <1>;
86 mux-reg-masks = <0x34 0x00000004>; /* MIPI_MUX_SEL */
87 };
88 };
89
90 ...