1*5f62a964SEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2*5f62a964SEmmanuel Vadot%YAML 1.2 3*5f62a964SEmmanuel Vadot--- 4*5f62a964SEmmanuel Vadot$id: http://devicetree.org/schemas/pinctrl/fsl,imx35-pinctrl.yaml# 5*5f62a964SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*5f62a964SEmmanuel Vadot 7*5f62a964SEmmanuel Vadottitle: Freescale IMX35/IMX5x/IMX6 IOMUX Controller 8*5f62a964SEmmanuel Vadot 9*5f62a964SEmmanuel Vadotmaintainers: 10*5f62a964SEmmanuel Vadot - Dong Aisheng <aisheng.dong@nxp.com> 11*5f62a964SEmmanuel Vadot 12*5f62a964SEmmanuel Vadotdescription: 13*5f62a964SEmmanuel Vadot Please refer to fsl,imx-pinctrl.txt and pinctrl-bindings.txt in this directory 14*5f62a964SEmmanuel Vadot for common binding part and usage. 15*5f62a964SEmmanuel Vadot 16*5f62a964SEmmanuel VadotallOf: 17*5f62a964SEmmanuel Vadot - $ref: pinctrl.yaml# 18*5f62a964SEmmanuel Vadot 19*5f62a964SEmmanuel Vadotproperties: 20*5f62a964SEmmanuel Vadot compatible: 21*5f62a964SEmmanuel Vadot oneOf: 22*5f62a964SEmmanuel Vadot - enum: 23*5f62a964SEmmanuel Vadot - fsl,imx35-iomuxc 24*5f62a964SEmmanuel Vadot - fsl,imx51-iomuxc 25*5f62a964SEmmanuel Vadot - fsl,imx53-iomuxc 26*5f62a964SEmmanuel Vadot - fsl,imx6dl-iomuxc 27*5f62a964SEmmanuel Vadot - fsl,imx6q-iomuxc 28*5f62a964SEmmanuel Vadot - fsl,imx6sl-iomuxc 29*5f62a964SEmmanuel Vadot - fsl,imx6sll-iomuxc 30*5f62a964SEmmanuel Vadot - fsl,imx6sx-iomuxc 31*5f62a964SEmmanuel Vadot - fsl,imx6ul-iomuxc 32*5f62a964SEmmanuel Vadot - fsl,imx6ull-iomuxc-snvs 33*5f62a964SEmmanuel Vadot - items: 34*5f62a964SEmmanuel Vadot - const: fsl,imx50-iomuxc 35*5f62a964SEmmanuel Vadot - const: fsl,imx53-iomuxc 36*5f62a964SEmmanuel Vadot 37*5f62a964SEmmanuel Vadot reg: 38*5f62a964SEmmanuel Vadot maxItems: 1 39*5f62a964SEmmanuel Vadot 40*5f62a964SEmmanuel Vadot# Client device subnode's properties 41*5f62a964SEmmanuel VadotpatternProperties: 42*5f62a964SEmmanuel Vadot 'grp$': 43*5f62a964SEmmanuel Vadot type: object 44*5f62a964SEmmanuel Vadot description: 45*5f62a964SEmmanuel Vadot Pinctrl node's client devices use subnodes for desired pin configuration. 46*5f62a964SEmmanuel Vadot Client device subnodes use below standard properties. 47*5f62a964SEmmanuel Vadot 48*5f62a964SEmmanuel Vadot properties: 49*5f62a964SEmmanuel Vadot fsl,pins: 50*5f62a964SEmmanuel Vadot description: 51*5f62a964SEmmanuel Vadot each entry consists of 6 integers and represents the mux and config 52*5f62a964SEmmanuel Vadot setting for one pin. The first 5 integers <mux_reg conf_reg input_reg 53*5f62a964SEmmanuel Vadot mux_val input_val> are specified using a PIN_FUNC_ID macro, which can 54*5f62a964SEmmanuel Vadot be found in <arch/arm/boot/dts/nxp/imx/imx*-pinfunc.h>. The last integer 55*5f62a964SEmmanuel Vadot CONFIG is the pad setting value like pull-up on this pin. Please 56*5f62a964SEmmanuel Vadot refer to matching i.MX Reference Manual for detailed CONFIG settings. 57*5f62a964SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32-matrix 58*5f62a964SEmmanuel Vadot items: 59*5f62a964SEmmanuel Vadot items: 60*5f62a964SEmmanuel Vadot - description: | 61*5f62a964SEmmanuel Vadot "mux_reg" indicates the offset of mux register. 62*5f62a964SEmmanuel Vadot - description: | 63*5f62a964SEmmanuel Vadot "conf_reg" indicates the offset of pad configuration register. 64*5f62a964SEmmanuel Vadot - description: | 65*5f62a964SEmmanuel Vadot "input_reg" indicates the offset of select input register. 66*5f62a964SEmmanuel Vadot - description: | 67*5f62a964SEmmanuel Vadot "mux_val" indicates the mux value to be applied. 68*5f62a964SEmmanuel Vadot - description: | 69*5f62a964SEmmanuel Vadot "input_val" indicates the select input value to be applied. 70*5f62a964SEmmanuel Vadot - description: | 71*5f62a964SEmmanuel Vadot "pad_setting" indicates the pad configuration value to be applied. 72*5f62a964SEmmanuel Vadot Common i.MX35 73*5f62a964SEmmanuel Vadot PAD_CTL_DRIVE_VOLAGAGE_18 (1 << 13) 74*5f62a964SEmmanuel Vadot PAD_CTL_DRIVE_VOLAGAGE_33 (0 << 13) 75*5f62a964SEmmanuel Vadot PAD_CTL_HYS (1 << 8) 76*5f62a964SEmmanuel Vadot PAD_CTL_PKE (1 << 7) 77*5f62a964SEmmanuel Vadot PAD_CTL_PUE (1 << 6) 78*5f62a964SEmmanuel Vadot PAD_CTL_PUS_100K_DOWN (0 << 4) 79*5f62a964SEmmanuel Vadot PAD_CTL_PUS_47K_UP (1 << 4) 80*5f62a964SEmmanuel Vadot PAD_CTL_PUS_100K_UP (2 << 4) 81*5f62a964SEmmanuel Vadot PAD_CTL_PUS_22K_UP (3 << 4) 82*5f62a964SEmmanuel Vadot PAD_CTL_ODE_CMOS (0 << 3) 83*5f62a964SEmmanuel Vadot PAD_CTL_ODE_OPENDRAIN (1 << 3) 84*5f62a964SEmmanuel Vadot PAD_CTL_DSE_NOMINAL (0 << 1) 85*5f62a964SEmmanuel Vadot PAD_CTL_DSE_HIGH (1 << 1) 86*5f62a964SEmmanuel Vadot PAD_CTL_DSE_MAX (2 << 1) 87*5f62a964SEmmanuel Vadot PAD_CTL_SRE_FAST (1 << 0) 88*5f62a964SEmmanuel Vadot PAD_CTL_SRE_SLOW (0 << 0) 89*5f62a964SEmmanuel Vadot Common i.MX50/i.MX51/i.MX53 bits 90*5f62a964SEmmanuel Vadot PAD_CTL_HVE (1 << 13) 91*5f62a964SEmmanuel Vadot PAD_CTL_HYS (1 << 8) 92*5f62a964SEmmanuel Vadot PAD_CTL_PKE (1 << 7) 93*5f62a964SEmmanuel Vadot PAD_CTL_PUE (1 << 6) 94*5f62a964SEmmanuel Vadot PAD_CTL_PUS_100K_DOWN (0 << 4) 95*5f62a964SEmmanuel Vadot PAD_CTL_PUS_47K_UP (1 << 4) 96*5f62a964SEmmanuel Vadot PAD_CTL_PUS_100K_UP (2 << 4) 97*5f62a964SEmmanuel Vadot PAD_CTL_PUS_22K_UP (3 << 4) 98*5f62a964SEmmanuel Vadot PAD_CTL_ODE (1 << 3) 99*5f62a964SEmmanuel Vadot PAD_CTL_DSE_LOW (0 << 1) 100*5f62a964SEmmanuel Vadot PAD_CTL_DSE_MED (1 << 1) 101*5f62a964SEmmanuel Vadot PAD_CTL_DSE_HIGH (2 << 1) 102*5f62a964SEmmanuel Vadot PAD_CTL_DSE_MAX (3 << 1) 103*5f62a964SEmmanuel Vadot PAD_CTL_SRE_FAST (1 << 0) 104*5f62a964SEmmanuel Vadot PAD_CTL_SRE_SLOW (0 << 0) 105*5f62a964SEmmanuel Vadot Common i.MX6 bits 106*5f62a964SEmmanuel Vadot PAD_CTL_HYS (1 << 16) 107*5f62a964SEmmanuel Vadot PAD_CTL_PUS_100K_DOWN (0 << 14) 108*5f62a964SEmmanuel Vadot PAD_CTL_PUS_47K_UP (1 << 14) 109*5f62a964SEmmanuel Vadot PAD_CTL_PUS_100K_UP (2 << 14) 110*5f62a964SEmmanuel Vadot PAD_CTL_PUS_22K_UP (3 << 14) 111*5f62a964SEmmanuel Vadot PAD_CTL_PUE (1 << 13) 112*5f62a964SEmmanuel Vadot PAD_CTL_PKE (1 << 12) 113*5f62a964SEmmanuel Vadot PAD_CTL_ODE (1 << 11) 114*5f62a964SEmmanuel Vadot PAD_CTL_SPEED_LOW (0 << 6) 115*5f62a964SEmmanuel Vadot PAD_CTL_SPEED_MED (1 << 6) 116*5f62a964SEmmanuel Vadot PAD_CTL_SPEED_HIGH (3 << 6) 117*5f62a964SEmmanuel Vadot PAD_CTL_DSE_DISABLE (0 << 3) 118*5f62a964SEmmanuel Vadot PAD_CTL_SRE_FAST (1 << 0) 119*5f62a964SEmmanuel Vadot PAD_CTL_SRE_SLOW (0 << 0) 120*5f62a964SEmmanuel Vadot i.MX6SL/MX6SLL specific bits 121*5f62a964SEmmanuel Vadot PAD_CTL_LVE (1 << 22) (MX6SL/SLL only) 122*5f62a964SEmmanuel Vadot i.MX6SLL/i.MX6SX/i.MX6UL/i.MX6ULL specific bits 123*5f62a964SEmmanuel Vadot PAD_CTL_DSE_260ohm (1 << 3) 124*5f62a964SEmmanuel Vadot PAD_CTL_DSE_130ohm (2 << 3) 125*5f62a964SEmmanuel Vadot PAD_CTL_DSE_87ohm (3 << 3) 126*5f62a964SEmmanuel Vadot PAD_CTL_DSE_65ohm (4 << 3) 127*5f62a964SEmmanuel Vadot PAD_CTL_DSE_52ohm (5 << 3) 128*5f62a964SEmmanuel Vadot PAD_CTL_DSE_43ohm (6 << 3) 129*5f62a964SEmmanuel Vadot PAD_CTL_DSE_37ohm (7 << 3) 130*5f62a964SEmmanuel Vadot i.MX6DL/i.MX6Q/i.MX6SL specific bits 131*5f62a964SEmmanuel Vadot PAD_CTL_DSE_240ohm (1 << 3) 132*5f62a964SEmmanuel Vadot PAD_CTL_DSE_120ohm (2 << 3) 133*5f62a964SEmmanuel Vadot PAD_CTL_DSE_80ohm (3 << 3) 134*5f62a964SEmmanuel Vadot PAD_CTL_DSE_60ohm (4 << 3) 135*5f62a964SEmmanuel Vadot PAD_CTL_DSE_48ohm (5 << 3) 136*5f62a964SEmmanuel Vadot PAD_CTL_DSE_40ohm (6 << 3) 137*5f62a964SEmmanuel Vadot PAD_CTL_DSE_34ohm (7 << 3) 138*5f62a964SEmmanuel Vadot 139*5f62a964SEmmanuel Vadot required: 140*5f62a964SEmmanuel Vadot - fsl,pins 141*5f62a964SEmmanuel Vadot 142*5f62a964SEmmanuel Vadot additionalProperties: false 143*5f62a964SEmmanuel Vadot 144*5f62a964SEmmanuel Vadotrequired: 145*5f62a964SEmmanuel Vadot - compatible 146*5f62a964SEmmanuel Vadot - reg 147*5f62a964SEmmanuel Vadot 148*5f62a964SEmmanuel VadotadditionalProperties: false 149*5f62a964SEmmanuel Vadot 150*5f62a964SEmmanuel Vadotexamples: 151*5f62a964SEmmanuel Vadot - | 152*5f62a964SEmmanuel Vadot iomuxc: pinctrl@20e0000 { 153*5f62a964SEmmanuel Vadot compatible = "fsl,imx6ul-iomuxc"; 154*5f62a964SEmmanuel Vadot reg = <0x020e0000 0x4000>; 155*5f62a964SEmmanuel Vadot 156*5f62a964SEmmanuel Vadot mux_uart: uartgrp { 157*5f62a964SEmmanuel Vadot fsl,pins = < 158*5f62a964SEmmanuel Vadot 0x0084 0x0310 0x0000 0 0 0x1b0b1 159*5f62a964SEmmanuel Vadot 0x0088 0x0314 0x0624 0 3 0x1b0b1 160*5f62a964SEmmanuel Vadot >; 161*5f62a964SEmmanuel Vadot }; 162*5f62a964SEmmanuel Vadot }; 163*5f62a964SEmmanuel Vadot - | 164*5f62a964SEmmanuel Vadot iomuxc_snvs: pinctrl@2290000 { 165*5f62a964SEmmanuel Vadot compatible = "fsl,imx6ull-iomuxc-snvs"; 166*5f62a964SEmmanuel Vadot reg = <0x02290000 0x4000>; 167*5f62a964SEmmanuel Vadot 168*5f62a964SEmmanuel Vadot pinctrl_snvs_usbc_det: snvsusbcdetgrp { 169*5f62a964SEmmanuel Vadot fsl,pins = < 170*5f62a964SEmmanuel Vadot 0x0010 0x0054 0x0000 0x5 0x0 0x130b0 171*5f62a964SEmmanuel Vadot >; 172*5f62a964SEmmanuel Vadot }; 173*5f62a964SEmmanuel Vadot }; 174*5f62a964SEmmanuel Vadot - | 175*5f62a964SEmmanuel Vadot iomuxc_mx6q: pinctrl@20e0000 { 176*5f62a964SEmmanuel Vadot compatible = "fsl,imx6q-iomuxc"; 177*5f62a964SEmmanuel Vadot reg = <0x20e0000 0x4000>; 178*5f62a964SEmmanuel Vadot 179*5f62a964SEmmanuel Vadot pinctrl_uart4: uart4grp { 180*5f62a964SEmmanuel Vadot fsl,pins = 181*5f62a964SEmmanuel Vadot <0x288 0x658 0x000 0x3 0x0 0x140>, 182*5f62a964SEmmanuel Vadot <0x28c 0x65c 0x938 0x3 0x3 0x140>; 183*5f62a964SEmmanuel Vadot }; 184*5f62a964SEmmanuel Vadot }; 185