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