xref: /openbmc/linux/Documentation/devicetree/bindings/pinctrl/fsl,imx8m-pinctrl.yaml (revision 1ac731c529cd4d6adbce134754b51ff7d822b145)
1f4720b84SPeng Fan# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2f4720b84SPeng Fan%YAML 1.2
3f4720b84SPeng Fan---
4f4720b84SPeng Fan$id: http://devicetree.org/schemas/pinctrl/fsl,imx8m-pinctrl.yaml#
5f4720b84SPeng Fan$schema: http://devicetree.org/meta-schemas/core.yaml#
6f4720b84SPeng Fan
7f4720b84SPeng Fantitle: Freescale IMX8M IOMUX Controller
8f4720b84SPeng Fan
9f4720b84SPeng Fanmaintainers:
10f4720b84SPeng Fan  - Peng Fan <peng.fan@nxp.com>
11f4720b84SPeng Fan
12f4720b84SPeng Fandescription:
13f4720b84SPeng Fan  Please refer to fsl,imx-pinctrl.txt and pinctrl-bindings.txt in this directory
14f4720b84SPeng Fan  for common binding part and usage.
15f4720b84SPeng Fan
16f4720b84SPeng Fanproperties:
17f4720b84SPeng Fan  compatible:
18f4720b84SPeng Fan    enum:
19f4720b84SPeng Fan      - fsl,imx8mm-iomuxc
20f4720b84SPeng Fan      - fsl,imx8mn-iomuxc
21f4720b84SPeng Fan      - fsl,imx8mp-iomuxc
22f4720b84SPeng Fan      - fsl,imx8mq-iomuxc
23f4720b84SPeng Fan
24f4720b84SPeng Fan  reg:
25f4720b84SPeng Fan    maxItems: 1
26f4720b84SPeng Fan
27f4720b84SPeng Fan# Client device subnode's properties
28f4720b84SPeng FanpatternProperties:
29f4720b84SPeng Fan  'grp$':
30f4720b84SPeng Fan    type: object
31f4720b84SPeng Fan    description:
32f4720b84SPeng Fan      Pinctrl node's client devices use subnodes for desired pin configuration.
33f4720b84SPeng Fan      Client device subnodes use below standard properties.
34f4720b84SPeng Fan
35f4720b84SPeng Fan    properties:
36f4720b84SPeng Fan      fsl,pins:
37f4720b84SPeng Fan        description:
38f4720b84SPeng Fan          each entry consists of 6 integers and represents the mux and config
39f4720b84SPeng Fan          setting for one pin. The first 5 integers <mux_reg conf_reg input_reg
40f4720b84SPeng Fan          mux_val input_val> are specified using a PIN_FUNC_ID macro, which can
41f4720b84SPeng Fan          be found in <arch/arm64/boot/dts/freescale/imx8m[m,n,p,q]-pinfunc.h>.
42f4720b84SPeng Fan          The last integer CONFIG is the pad setting value like pull-up on this
43f4720b84SPeng Fan          pin. Please refer to i.MX8M Mini/Nano/Plus/Quad Reference Manual for
44f4720b84SPeng Fan          detailed CONFIG settings.
45f4720b84SPeng Fan        $ref: /schemas/types.yaml#/definitions/uint32-matrix
46f4720b84SPeng Fan        items:
47f4720b84SPeng Fan          items:
48f4720b84SPeng Fan            - description: |
49f4720b84SPeng Fan                "mux_reg" indicates the offset of mux register.
50f4720b84SPeng Fan            - description: |
51f4720b84SPeng Fan                "conf_reg" indicates the offset of pad configuration register.
52f4720b84SPeng Fan            - description: |
53f4720b84SPeng Fan                "input_reg" indicates the offset of select input register.
54f4720b84SPeng Fan            - description: |
55f4720b84SPeng Fan                "mux_val" indicates the mux value to be applied.
56f4720b84SPeng Fan            - description: |
57f4720b84SPeng Fan                "input_val" indicates the select input value to be applied.
58f4720b84SPeng Fan            - description: |
59f4720b84SPeng Fan                "pad_setting" indicates the pad configuration value to be
60f4720b84SPeng Fan                applied.
61f4720b84SPeng Fan
62f4720b84SPeng Fan    required:
63f4720b84SPeng Fan      - fsl,pins
64f4720b84SPeng Fan
65f4720b84SPeng Fan    additionalProperties: false
66f4720b84SPeng Fan
67f4720b84SPeng FanallOf:
68*49cd1dd1SRob Herring  - $ref: pinctrl.yaml#
69f4720b84SPeng Fan
70f4720b84SPeng Fanrequired:
71f4720b84SPeng Fan  - compatible
72f4720b84SPeng Fan  - reg
73f4720b84SPeng Fan
74f4720b84SPeng FanadditionalProperties: false
75f4720b84SPeng Fan
76f4720b84SPeng Fanexamples:
77f4720b84SPeng Fan  # Pinmux controller node
78f4720b84SPeng Fan  - |
79f4720b84SPeng Fan    iomuxc: pinctrl@30330000 {
80f4720b84SPeng Fan        compatible = "fsl,imx8mm-iomuxc";
81f4720b84SPeng Fan        reg = <0x30330000 0x10000>;
82f4720b84SPeng Fan
83f4720b84SPeng Fan        pinctrl_uart2: uart2grp {
84f4720b84SPeng Fan            fsl,pins =
85f4720b84SPeng Fan                <0x23C 0x4A4 0x4FC 0x0 0x0	0x140>,
86f4720b84SPeng Fan                <0x240 0x4A8 0x000 0x0 0x0	0x140>;
87f4720b84SPeng Fan        };
88f4720b84SPeng Fan    };
89f4720b84SPeng Fan
90f4720b84SPeng Fan...
91