diff options
Diffstat (limited to 'Documentation/devicetree/bindings/pinctrl/fsl,imx-pinctrl.txt')
| -rw-r--r-- | Documentation/devicetree/bindings/pinctrl/fsl,imx-pinctrl.txt | 37 |
1 files changed, 18 insertions, 19 deletions
diff --git a/Documentation/devicetree/bindings/pinctrl/fsl,imx-pinctrl.txt b/Documentation/devicetree/bindings/pinctrl/fsl,imx-pinctrl.txt index 3a7caf7a744a..9fde25f1401a 100644 --- a/Documentation/devicetree/bindings/pinctrl/fsl,imx-pinctrl.txt +++ b/Documentation/devicetree/bindings/pinctrl/fsl,imx-pinctrl.txt | |||
| @@ -22,11 +22,12 @@ Required properties for iomux controller: | |||
| 22 | Please refer to each fsl,<soc>-pinctrl.txt binding doc for supported SoCs. | 22 | Please refer to each fsl,<soc>-pinctrl.txt binding doc for supported SoCs. |
| 23 | 23 | ||
| 24 | Required properties for pin configuration node: | 24 | Required properties for pin configuration node: |
| 25 | - fsl,pins: two integers array, represents a group of pins mux and config | 25 | - fsl,pins: each entry consists of 6 integers and represents the mux and config |
| 26 | setting. The format is fsl,pins = <PIN_FUNC_ID CONFIG>, PIN_FUNC_ID is a | 26 | setting for one pin. The first 5 integers <mux_reg conf_reg input_reg mux_val |
| 27 | pin working on a specific function, which consists of a tuple of | 27 | input_val> are specified using a PIN_FUNC_ID macro, which can be found in |
| 28 | <mux_reg conf_reg input_reg mux_val input_val>. CONFIG is the pad setting | 28 | imx*-pinfunc.h under device tree source folder. The last integer CONFIG is |
| 29 | value like pull-up on this pin. | 29 | the pad setting value like pull-up on this pin. And that's why fsl,pins entry |
| 30 | looks like <PIN_FUNC_ID CONFIG> in the example below. | ||
| 30 | 31 | ||
| 31 | Bits used for CONFIG: | 32 | Bits used for CONFIG: |
| 32 | NO_PAD_CTL(1 << 31): indicate this pin does not need config. | 33 | NO_PAD_CTL(1 << 31): indicate this pin does not need config. |
| @@ -72,17 +73,18 @@ iomuxc@020e0000 { | |||
| 72 | /* shared pinctrl settings */ | 73 | /* shared pinctrl settings */ |
| 73 | usdhc4 { | 74 | usdhc4 { |
| 74 | pinctrl_usdhc4_1: usdhc4grp-1 { | 75 | pinctrl_usdhc4_1: usdhc4grp-1 { |
| 75 | fsl,pins = <1386 0x17059 /* MX6Q_PAD_SD4_CMD__USDHC4_CMD */ | 76 | fsl,pins = < |
| 76 | 1392 0x10059 /* MX6Q_PAD_SD4_CLK__USDHC4_CLK */ | 77 | MX6QDL_PAD_SD4_CMD__SD4_CMD 0x17059 |
| 77 | 1462 0x17059 /* MX6Q_PAD_SD4_DAT0__USDHC4_DAT0 */ | 78 | MX6QDL_PAD_SD4_CLK__SD4_CLK 0x10059 |
| 78 | 1470 0x17059 /* MX6Q_PAD_SD4_DAT1__USDHC4_DAT1 */ | 79 | MX6QDL_PAD_SD4_DAT0__SD4_DATA0 0x17059 |
| 79 | 1478 0x17059 /* MX6Q_PAD_SD4_DAT2__USDHC4_DAT2 */ | 80 | MX6QDL_PAD_SD4_DAT1__SD4_DATA1 0x17059 |
| 80 | 1486 0x17059 /* MX6Q_PAD_SD4_DAT3__USDHC4_DAT3 */ | 81 | MX6QDL_PAD_SD4_DAT2__SD4_DATA2 0x17059 |
| 81 | 1493 0x17059 /* MX6Q_PAD_SD4_DAT4__USDHC4_DAT4 */ | 82 | MX6QDL_PAD_SD4_DAT3__SD4_DATA3 0x17059 |
| 82 | 1501 0x17059 /* MX6Q_PAD_SD4_DAT5__USDHC4_DAT5 */ | 83 | MX6QDL_PAD_SD4_DAT4__SD4_DATA4 0x17059 |
| 83 | 1509 0x17059 /* MX6Q_PAD_SD4_DAT6__USDHC4_DAT6 */ | 84 | MX6QDL_PAD_SD4_DAT5__SD4_DATA5 0x17059 |
| 84 | 1517 0x17059>; /* MX6Q_PAD_SD4_DAT7__USDHC4_DAT7 */ | 85 | MX6QDL_PAD_SD4_DAT6__SD4_DATA6 0x17059 |
| 85 | }; | 86 | MX6QDL_PAD_SD4_DAT7__SD4_DATA7 0x17059 |
| 87 | >; | ||
| 86 | }; | 88 | }; |
| 87 | .... | 89 | .... |
| 88 | }; | 90 | }; |
| @@ -90,6 +92,3 @@ Refer to the IOMUXC controller chapter in imx6q datasheet, | |||
| 90 | 0x17059 means enable hysteresis, 47KOhm Pull Up, 50Mhz speed, | 92 | 0x17059 means enable hysteresis, 47KOhm Pull Up, 50Mhz speed, |
| 91 | 80Ohm driver strength and Fast Slew Rate. | 93 | 80Ohm driver strength and Fast Slew Rate. |
| 92 | User should refer to each SoC spec to set the correct value. | 94 | User should refer to each SoC spec to set the correct value. |
| 93 | |||
| 94 | TODO: when dtc macro support is available, we can change above raw data | ||
| 95 | to dt macro which can get better readability in dts file. | ||
