xref: /freebsd/sys/contrib/device-tree/Bindings/pinctrl/fsl,imx8ulp-pinctrl.yaml (revision 354d7675fe12ace9cde344cb79c7ded792802f88)
1*354d7675SEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0
2*354d7675SEmmanuel Vadot%YAML 1.2
3*354d7675SEmmanuel Vadot---
4*354d7675SEmmanuel Vadot$id: http://devicetree.org/schemas/pinctrl/fsl,imx8ulp-pinctrl.yaml#
5*354d7675SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*354d7675SEmmanuel Vadot
7*354d7675SEmmanuel Vadottitle: Freescale IMX8ULP IOMUX Controller
8*354d7675SEmmanuel Vadot
9*354d7675SEmmanuel Vadotmaintainers:
10*354d7675SEmmanuel Vadot  - Jacky Bai <ping.bai@nxp.com>
11*354d7675SEmmanuel Vadot
12*354d7675SEmmanuel Vadotdescription:
13*354d7675SEmmanuel Vadot  Please refer to fsl,imx-pinctrl.txt and pinctrl-bindings.txt in this directory
14*354d7675SEmmanuel Vadot  for common binding part and usage.
15*354d7675SEmmanuel Vadot
16*354d7675SEmmanuel Vadotproperties:
17*354d7675SEmmanuel Vadot  compatible:
18*354d7675SEmmanuel Vadot    const: fsl,imx8ulp-iomuxc1
19*354d7675SEmmanuel Vadot
20*354d7675SEmmanuel Vadot  reg:
21*354d7675SEmmanuel Vadot    maxItems: 1
22*354d7675SEmmanuel Vadot
23*354d7675SEmmanuel Vadot# Client device subnode's properties
24*354d7675SEmmanuel VadotpatternProperties:
25*354d7675SEmmanuel Vadot  'grp$':
26*354d7675SEmmanuel Vadot    type: object
27*354d7675SEmmanuel Vadot    description:
28*354d7675SEmmanuel Vadot      Pinctrl node's client devices use subnodes for desired pin configuration.
29*354d7675SEmmanuel Vadot      Client device subnodes use below standard properties.
30*354d7675SEmmanuel Vadot
31*354d7675SEmmanuel Vadot    properties:
32*354d7675SEmmanuel Vadot      fsl,pins:
33*354d7675SEmmanuel Vadot        description:
34*354d7675SEmmanuel Vadot          each entry consists of 5 integers and represents the mux and config
35*354d7675SEmmanuel Vadot          setting for one pin. The first 4 integers <mux_config_reg input_reg
36*354d7675SEmmanuel Vadot          mux_mode input_val> are specified using a PIN_FUNC_ID macro, which can
37*354d7675SEmmanuel Vadot          be found in <arch/arm64/boot/dts/freescale/imx8ulp-pinfunc.h>. The last
38*354d7675SEmmanuel Vadot          integer CONFIG is the pad setting value like pull-up on this pin. Please
39*354d7675SEmmanuel Vadot          refer to i.MX8ULP Reference Manual for detailed CONFIG settings.
40*354d7675SEmmanuel Vadot        $ref: /schemas/types.yaml#/definitions/uint32-matrix
41*354d7675SEmmanuel Vadot        items:
42*354d7675SEmmanuel Vadot          items:
43*354d7675SEmmanuel Vadot            - description: |
44*354d7675SEmmanuel Vadot                "mux_config_reg" indicates the offset of mux register.
45*354d7675SEmmanuel Vadot            - description: |
46*354d7675SEmmanuel Vadot                "input_reg" indicates the offset of select input register.
47*354d7675SEmmanuel Vadot            - description: |
48*354d7675SEmmanuel Vadot                "mux_mode" indicates the mux value to be applied.
49*354d7675SEmmanuel Vadot            - description: |
50*354d7675SEmmanuel Vadot                "input_val" indicates the select input value to be applied.
51*354d7675SEmmanuel Vadot            - description: |
52*354d7675SEmmanuel Vadot                "pad_setting" indicates the pad configuration value to be applied.
53*354d7675SEmmanuel Vadot
54*354d7675SEmmanuel Vadot    required:
55*354d7675SEmmanuel Vadot      - fsl,pins
56*354d7675SEmmanuel Vadot
57*354d7675SEmmanuel Vadot    additionalProperties: false
58*354d7675SEmmanuel Vadot
59*354d7675SEmmanuel Vadotrequired:
60*354d7675SEmmanuel Vadot  - compatible
61*354d7675SEmmanuel Vadot  - reg
62*354d7675SEmmanuel Vadot
63*354d7675SEmmanuel VadotadditionalProperties: false
64*354d7675SEmmanuel Vadot
65*354d7675SEmmanuel Vadotexamples:
66*354d7675SEmmanuel Vadot  # Pinmux controller node
67*354d7675SEmmanuel Vadot  - |
68*354d7675SEmmanuel Vadot    iomuxc: pinctrl@298c0000 {
69*354d7675SEmmanuel Vadot        compatible = "fsl,imx8ulp-iomuxc1";
70*354d7675SEmmanuel Vadot        reg = <0x298c0000 0x10000>;
71*354d7675SEmmanuel Vadot
72*354d7675SEmmanuel Vadot        pinctrl_lpuart5: lpuart5grp {
73*354d7675SEmmanuel Vadot            fsl,pins =
74*354d7675SEmmanuel Vadot                <0x0138 0x08F0 0x4 0x3	0x3>,
75*354d7675SEmmanuel Vadot                <0x013C 0x08EC 0x4 0x3	0x3>;
76*354d7675SEmmanuel Vadot        };
77*354d7675SEmmanuel Vadot    };
78*354d7675SEmmanuel Vadot
79*354d7675SEmmanuel Vadot...
80