xref: /freebsd/sys/contrib/device-tree/Bindings/pinctrl/fsl,imxrt1050.yaml (revision 8bab661a3316d8bd9b9fbd11a3b4371b91507bd2)
1e67e8565SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2e67e8565SEmmanuel Vadot%YAML 1.2
3e67e8565SEmmanuel Vadot---
4e67e8565SEmmanuel Vadot$id: http://devicetree.org/schemas/pinctrl/fsl,imxrt1050.yaml#
5e67e8565SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6e67e8565SEmmanuel Vadot
7e67e8565SEmmanuel Vadottitle: Freescale IMXRT1050 IOMUX Controller
8e67e8565SEmmanuel Vadot
9e67e8565SEmmanuel Vadotmaintainers:
10e67e8565SEmmanuel Vadot  - Giulio Benetti <giulio.benetti@benettiengineering.com>
11e67e8565SEmmanuel Vadot  - Jesse Taube <Mr.Bossman075@gmail.com>
12e67e8565SEmmanuel Vadot
13e67e8565SEmmanuel Vadotdescription:
14e67e8565SEmmanuel Vadot  Please refer to fsl,imx-pinctrl.txt and pinctrl-bindings.txt in this directory
15e67e8565SEmmanuel Vadot  for common binding part and usage.
16e67e8565SEmmanuel Vadot
17e67e8565SEmmanuel Vadotproperties:
18e67e8565SEmmanuel Vadot  compatible:
19e67e8565SEmmanuel Vadot    const: fsl,imxrt1050-iomuxc
20e67e8565SEmmanuel Vadot
21e67e8565SEmmanuel Vadot  reg:
22e67e8565SEmmanuel Vadot    maxItems: 1
23e67e8565SEmmanuel Vadot
24e67e8565SEmmanuel Vadot# Client device subnode's properties
25e67e8565SEmmanuel VadotpatternProperties:
26e67e8565SEmmanuel Vadot  'grp$':
27e67e8565SEmmanuel Vadot    type: object
28e67e8565SEmmanuel Vadot    description:
29e67e8565SEmmanuel Vadot      Pinctrl node's client devices use subnodes for desired pin configuration.
30e67e8565SEmmanuel Vadot      Client device subnodes use below standard properties.
31e67e8565SEmmanuel Vadot
32e67e8565SEmmanuel Vadot    properties:
33e67e8565SEmmanuel Vadot      fsl,pins:
34e67e8565SEmmanuel Vadot        description:
35e67e8565SEmmanuel Vadot          each entry consists of 6 integers and represents the mux and config
36e67e8565SEmmanuel Vadot          setting for one pin. The first 5 integers <mux_reg conf_reg input_reg
37e67e8565SEmmanuel Vadot          mux_val input_val> are specified using a PIN_FUNC_ID macro, which can
38*8bab661aSEmmanuel Vadot          be found in <arch/arm/boot/dts/imxrt1050-pinfunc.h>. The last
39e67e8565SEmmanuel Vadot          integer CONFIG is the pad setting value like pull-up on this pin. Please
40e67e8565SEmmanuel Vadot          refer to i.MXRT1050 Reference Manual for detailed CONFIG settings.
41e67e8565SEmmanuel Vadot        $ref: /schemas/types.yaml#/definitions/uint32-matrix
42e67e8565SEmmanuel Vadot        items:
43e67e8565SEmmanuel Vadot          items:
44e67e8565SEmmanuel Vadot            - description: |
45e67e8565SEmmanuel Vadot                "mux_reg" indicates the offset of mux register.
46e67e8565SEmmanuel Vadot            - description: |
47e67e8565SEmmanuel Vadot                "conf_reg" indicates the offset of pad configuration register.
48e67e8565SEmmanuel Vadot            - description: |
49e67e8565SEmmanuel Vadot                "input_reg" indicates the offset of select input register.
50e67e8565SEmmanuel Vadot            - description: |
51e67e8565SEmmanuel Vadot                "mux_val" indicates the mux value to be applied.
52e67e8565SEmmanuel Vadot            - description: |
53e67e8565SEmmanuel Vadot                "input_val" indicates the select input value to be applied.
54e67e8565SEmmanuel Vadot            - description: |
55e67e8565SEmmanuel Vadot                "pad_setting" indicates the pad configuration value to be applied.
56e67e8565SEmmanuel Vadot
57e67e8565SEmmanuel Vadot    required:
58e67e8565SEmmanuel Vadot      - fsl,pins
59e67e8565SEmmanuel Vadot
60e67e8565SEmmanuel Vadot    additionalProperties: false
61e67e8565SEmmanuel Vadot
62e67e8565SEmmanuel Vadotrequired:
63e67e8565SEmmanuel Vadot  - compatible
64e67e8565SEmmanuel Vadot  - reg
65e67e8565SEmmanuel Vadot
66e67e8565SEmmanuel VadotadditionalProperties: false
67e67e8565SEmmanuel Vadot
68e67e8565SEmmanuel Vadotexamples:
69e67e8565SEmmanuel Vadot  - |
70e67e8565SEmmanuel Vadot    iomuxc: iomuxc@401f8000 {
71e67e8565SEmmanuel Vadot        compatible = "fsl,imxrt1050-iomuxc";
72e67e8565SEmmanuel Vadot        reg = <0x401f8000 0x4000>;
73e67e8565SEmmanuel Vadot
74e67e8565SEmmanuel Vadot        pinctrl_lpuart1: lpuart1grp {
75e67e8565SEmmanuel Vadot            fsl,pins =
76e67e8565SEmmanuel Vadot              <0x0EC 0x2DC 0x000 0x2 0x0	0xf1>,
77e67e8565SEmmanuel Vadot              <0x0F0 0x2E0 0x000 0x2 0x0	0xf1>;
78e67e8565SEmmanuel Vadot        };
79e67e8565SEmmanuel Vadot    };
80