18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0 28c2ecf20Sopenharmony_ci%YAML 1.2 38c2ecf20Sopenharmony_ci--- 48c2ecf20Sopenharmony_ci$id: http://devicetree.org/schemas/pinctrl/fsl,imx8mp-pinctrl.yaml# 58c2ecf20Sopenharmony_ci$schema: http://devicetree.org/meta-schemas/core.yaml# 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_cititle: Freescale IMX8MP IOMUX Controller 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_cimaintainers: 108c2ecf20Sopenharmony_ci - Anson Huang <Anson.Huang@nxp.com> 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_cidescription: 138c2ecf20Sopenharmony_ci Please refer to fsl,imx-pinctrl.txt and pinctrl-bindings.txt in this directory 148c2ecf20Sopenharmony_ci for common binding part and usage. 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ciproperties: 178c2ecf20Sopenharmony_ci compatible: 188c2ecf20Sopenharmony_ci const: fsl,imx8mp-iomuxc 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_ci reg: 218c2ecf20Sopenharmony_ci maxItems: 1 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ci# Client device subnode's properties 248c2ecf20Sopenharmony_cipatternProperties: 258c2ecf20Sopenharmony_ci 'grp$': 268c2ecf20Sopenharmony_ci type: object 278c2ecf20Sopenharmony_ci description: 288c2ecf20Sopenharmony_ci Pinctrl node's client devices use subnodes for desired pin configuration. 298c2ecf20Sopenharmony_ci Client device subnodes use below standard properties. 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_ci properties: 328c2ecf20Sopenharmony_ci fsl,pins: 338c2ecf20Sopenharmony_ci description: 348c2ecf20Sopenharmony_ci each entry consists of 6 integers and represents the mux and config 358c2ecf20Sopenharmony_ci setting for one pin. The first 5 integers <mux_reg conf_reg input_reg 368c2ecf20Sopenharmony_ci mux_val input_val> are specified using a PIN_FUNC_ID macro, which can 378c2ecf20Sopenharmony_ci be found in <arch/arm64/boot/dts/freescale/imx8mp-pinfunc.h>. The last 388c2ecf20Sopenharmony_ci integer CONFIG is the pad setting value like pull-up on this pin. Please 398c2ecf20Sopenharmony_ci refer to i.MX8M Plus Reference Manual for detailed CONFIG settings. 408c2ecf20Sopenharmony_ci $ref: /schemas/types.yaml#/definitions/uint32-matrix 418c2ecf20Sopenharmony_ci items: 428c2ecf20Sopenharmony_ci items: 438c2ecf20Sopenharmony_ci - description: | 448c2ecf20Sopenharmony_ci "mux_reg" indicates the offset of mux register. 458c2ecf20Sopenharmony_ci - description: | 468c2ecf20Sopenharmony_ci "conf_reg" indicates the offset of pad configuration register. 478c2ecf20Sopenharmony_ci - description: | 488c2ecf20Sopenharmony_ci "input_reg" indicates the offset of select input register. 498c2ecf20Sopenharmony_ci - description: | 508c2ecf20Sopenharmony_ci "mux_val" indicates the mux value to be applied. 518c2ecf20Sopenharmony_ci - description: | 528c2ecf20Sopenharmony_ci "input_val" indicates the select input value to be applied. 538c2ecf20Sopenharmony_ci - description: | 548c2ecf20Sopenharmony_ci "pad_setting" indicates the pad configuration value to be applied. 558c2ecf20Sopenharmony_ci 568c2ecf20Sopenharmony_ci required: 578c2ecf20Sopenharmony_ci - fsl,pins 588c2ecf20Sopenharmony_ci 598c2ecf20Sopenharmony_ci additionalProperties: false 608c2ecf20Sopenharmony_ci 618c2ecf20Sopenharmony_cirequired: 628c2ecf20Sopenharmony_ci - compatible 638c2ecf20Sopenharmony_ci - reg 648c2ecf20Sopenharmony_ci 658c2ecf20Sopenharmony_ciadditionalProperties: false 668c2ecf20Sopenharmony_ci 678c2ecf20Sopenharmony_ciexamples: 688c2ecf20Sopenharmony_ci # Pinmux controller node 698c2ecf20Sopenharmony_ci - | 708c2ecf20Sopenharmony_ci iomuxc: pinctrl@30330000 { 718c2ecf20Sopenharmony_ci compatible = "fsl,imx8mp-iomuxc"; 728c2ecf20Sopenharmony_ci reg = <0x30330000 0x10000>; 738c2ecf20Sopenharmony_ci 748c2ecf20Sopenharmony_ci pinctrl_uart2: uart2grp { 758c2ecf20Sopenharmony_ci fsl,pins = 768c2ecf20Sopenharmony_ci <0x228 0x488 0x5F0 0x0 0x6 0x49>, 778c2ecf20Sopenharmony_ci <0x228 0x488 0x000 0x0 0x0 0x49>; 788c2ecf20Sopenharmony_ci }; 798c2ecf20Sopenharmony_ci }; 808c2ecf20Sopenharmony_ci 818c2ecf20Sopenharmony_ci... 82