diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-10-07 20:56:28 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-10-07 20:56:28 -0400 |
commit | 2b425a3f112aa24666fc5f415c8bf0e9132bb6c0 (patch) | |
tree | a99433c188dd5632ad496caff3608dc273940bf4 /Documentation/devicetree/bindings/pinctrl | |
parent | c91662cb18f00f225c74816353f222b6997131ca (diff) | |
parent | 2cdef8f4e1ac28adc81326758a7767c18479a95d (diff) |
Merge tag 'pinctrl-v3.18-1' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl
Pull pin control changes from Linus Walleij:
"This is the bulk of pin control changes for the v3.18 development
series:
- New drivers for the Freescale i.MX21, Qualcomm APQ8084 pin
controllers.
- Incremental new features on the Rockchip, atlas 6, OMAP, AM437x,
APQ8064, prima2, AT91, Tegra, i.MX, Berlin and Nomadik.
- Push Freescale drivers down into their own subdirectory.
- Assorted sprays of syntax and semantic fixes"
* tag 'pinctrl-v3.18-1' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl: (48 commits)
pinctrl: specify bindings for pins and groups
pinctrl: nomadik: improve GPIO debug prints
pinctrl: abx500: refactor DT parser to take two paths
pinctrl: abx500: use helpers for map allocation/free
pinctrl: alter device tree bindings for functions
pinctrl: nomadik: refactor DT parser to take two paths
pinctrl: nomadik: use utils map free function
pinctrl: nomadik: use util function to reserve maps
pinctrl: qcom: use restart_notifier mechanism for ps_hold
pinctrl: sh-pfc: sh73a0: Remove unnecessary SoC data allocation
pinctrl: berlin: fix the dt_free_map function
pinctrl: at91: disable PD or PU before enabling PU or PD
pinctrl: st: remove gpiochip in failure cases
pinctrl: at91: Fix error handling while doing gpiochio_irqchip_add
pinctrl: at91: Fix failure path in at91_gpio_probe path
pinctrl: lantiq: Release gpiochip resources in fail case
pinctrl: imx: detect uninitialized pins
pinctrl: tegra: Add MIPI pad control
pinctrl: at91: Switch to using managed clk_get
pinctrl: adi2: Remove duplicate gpiochip_remove_pin_ranges
...
Diffstat (limited to 'Documentation/devicetree/bindings/pinctrl')
7 files changed, 261 insertions, 25 deletions
diff --git a/Documentation/devicetree/bindings/pinctrl/atmel,at91-pinctrl.txt b/Documentation/devicetree/bindings/pinctrl/atmel,at91-pinctrl.txt index 02ab5ab198a4..b7a93e80a302 100644 --- a/Documentation/devicetree/bindings/pinctrl/atmel,at91-pinctrl.txt +++ b/Documentation/devicetree/bindings/pinctrl/atmel,at91-pinctrl.txt | |||
@@ -19,6 +19,7 @@ such as pull-up, multi drive, etc. | |||
19 | 19 | ||
20 | Required properties for iomux controller: | 20 | Required properties for iomux controller: |
21 | - compatible: "atmel,at91rm9200-pinctrl" or "atmel,at91sam9x5-pinctrl" | 21 | - compatible: "atmel,at91rm9200-pinctrl" or "atmel,at91sam9x5-pinctrl" |
22 | or "atmel,sama5d3-pinctrl" | ||
22 | - atmel,mux-mask: array of mask (periph per bank) to describe if a pin can be | 23 | - atmel,mux-mask: array of mask (periph per bank) to describe if a pin can be |
23 | configured in this periph mode. All the periph and bank need to be describe. | 24 | configured in this periph mode. All the periph and bank need to be describe. |
24 | 25 | ||
@@ -85,13 +86,20 @@ Required properties for pin configuration node: | |||
85 | PIN_BANK 0 is pioA, PIN_BANK 1 is pioB... | 86 | PIN_BANK 0 is pioA, PIN_BANK 1 is pioB... |
86 | 87 | ||
87 | Bits used for CONFIG: | 88 | Bits used for CONFIG: |
88 | PULL_UP (1 << 0): indicate this pin need a pull up. | 89 | PULL_UP (1 << 0): indicate this pin needs a pull up. |
89 | MULTIDRIVE (1 << 1): indicate this pin need to be configured as multidrive. | 90 | MULTIDRIVE (1 << 1): indicate this pin needs to be configured as multi-drive. |
90 | DEGLITCH (1 << 2): indicate this pin need deglitch. | 91 | Multi-drive is equivalent to open-drain type output. |
91 | PULL_DOWN (1 << 3): indicate this pin need a pull down. | 92 | DEGLITCH (1 << 2): indicate this pin needs deglitch. |
92 | DIS_SCHMIT (1 << 4): indicate this pin need to disable schmit trigger. | 93 | PULL_DOWN (1 << 3): indicate this pin needs a pull down. |
93 | DEBOUNCE (1 << 16): indicate this pin need debounce. | 94 | DIS_SCHMIT (1 << 4): indicate this pin needs to the disable schmitt trigger. |
94 | DEBOUNCE_VAL (0x3fff << 17): debounce val. | 95 | DRIVE_STRENGTH (3 << 5): indicate the drive strength of the pin using the |
96 | following values: | ||
97 | 00 - No change (reset state value kept) | ||
98 | 01 - Low | ||
99 | 10 - Medium | ||
100 | 11 - High | ||
101 | DEBOUNCE (1 << 16): indicate this pin needs debounce. | ||
102 | DEBOUNCE_VAL (0x3fff << 17): debounce value. | ||
95 | 103 | ||
96 | NOTE: | 104 | NOTE: |
97 | Some requirements for using atmel,at91rm9200-pinctrl binding: | 105 | Some requirements for using atmel,at91rm9200-pinctrl binding: |
diff --git a/Documentation/devicetree/bindings/pinctrl/nvidia,tegra124-pinmux.txt b/Documentation/devicetree/bindings/pinctrl/nvidia,tegra124-pinmux.txt index 6464bf769460..189814e7cdc7 100644 --- a/Documentation/devicetree/bindings/pinctrl/nvidia,tegra124-pinmux.txt +++ b/Documentation/devicetree/bindings/pinctrl/nvidia,tegra124-pinmux.txt | |||
@@ -10,6 +10,7 @@ Required properties: | |||
10 | - reg: Should contain a list of base address and size pairs for: | 10 | - reg: Should contain a list of base address and size pairs for: |
11 | -- first entry - the drive strength and pad control registers. | 11 | -- first entry - the drive strength and pad control registers. |
12 | -- second entry - the pinmux registers | 12 | -- second entry - the pinmux registers |
13 | -- third entry - the MIPI_PAD_CTRL register | ||
13 | 14 | ||
14 | Tegra124 adds the following optional properties for pin configuration subnodes. | 15 | Tegra124 adds the following optional properties for pin configuration subnodes. |
15 | The macros for options are defined in the | 16 | The macros for options are defined in the |
@@ -91,6 +92,12 @@ Valid values for pin and group names are: | |||
91 | dbg, sdio3, spi, uaa, uab, uart2, uart3, sdio1, ddc, gma, gme, gmf, gmg, | 92 | dbg, sdio3, spi, uaa, uab, uart2, uart3, sdio1, ddc, gma, gme, gmf, gmg, |
92 | gmh, owr, uda, gpv, dev3, cec, usb_vbus_en, ao3, ao0, hv0, sdio4, ao4. | 93 | gmh, owr, uda, gpv, dev3, cec, usb_vbus_en, ao3, ao0, hv0, sdio4, ao4. |
93 | 94 | ||
95 | MIPI pad control groups: | ||
96 | |||
97 | These support only the nvidia,function property. | ||
98 | |||
99 | dsi_b | ||
100 | |||
94 | Valid values for nvidia,functions are: | 101 | Valid values for nvidia,functions are: |
95 | 102 | ||
96 | blink, cec, cldvfs, clk12, cpu, dap, dap1, dap2, dev3, displaya, | 103 | blink, cec, cldvfs, clk12, cpu, dap, dap1, dap2, dev3, displaya, |
@@ -101,14 +108,15 @@ Valid values for nvidia,functions are: | |||
101 | sdmmc4, soc, spdif, spi1, spi2, spi3, spi4, spi5, spi6, trace, uarta, | 108 | sdmmc4, soc, spdif, spi1, spi2, spi3, spi4, spi5, spi6, trace, uarta, |
102 | uartb, uartc, uartd, ulpi, usb, vgp1, vgp2, vgp3, vgp4, vgp5, vgp6, | 109 | uartb, uartc, uartd, ulpi, usb, vgp1, vgp2, vgp3, vgp4, vgp5, vgp6, |
103 | vi, vi_alt1, vi_alt3, vimclk2, vimclk2_alt, sata, ccla, pe0, pe, pe1, | 110 | vi, vi_alt1, vi_alt3, vimclk2, vimclk2_alt, sata, ccla, pe0, pe, pe1, |
104 | dp, rtck, sys, clk tmds. | 111 | dp, rtck, sys, clk tmds, csi, dsi_b |
105 | 112 | ||
106 | Example: | 113 | Example: |
107 | 114 | ||
108 | pinmux: pinmux { | 115 | pinmux: pinmux { |
109 | compatible = "nvidia,tegra124-pinmux"; | 116 | compatible = "nvidia,tegra124-pinmux"; |
110 | reg = <0x70000868 0x164 /* Pad control registers */ | 117 | reg = <0x0 0x70000868 0x0 0x164>, /* Pad control registers */ |
111 | 0x70003000 0x434>; /* PinMux registers */ | 118 | <0x0 0x70003000 0x0 0x434>, /* Mux registers */ |
119 | <0x0 0x70000820 0x0 0x8>; /* MIPI pad control */ | ||
112 | }; | 120 | }; |
113 | 121 | ||
114 | Example pinmux entries: | 122 | Example pinmux entries: |
diff --git a/Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt b/Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt index fa40a177164c..98eb94d91a1c 100644 --- a/Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt +++ b/Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt | |||
@@ -127,6 +127,24 @@ whether there is any interaction between the child and intermediate parent | |||
127 | nodes, is again defined entirely by the binding for the individual pin | 127 | nodes, is again defined entirely by the binding for the individual pin |
128 | controller device. | 128 | controller device. |
129 | 129 | ||
130 | == Generic pin multiplexing node content == | ||
131 | |||
132 | pin multiplexing nodes: | ||
133 | |||
134 | function - the mux function to select | ||
135 | groups - the list of groups to select with this function | ||
136 | |||
137 | Example: | ||
138 | |||
139 | state_0_node_a { | ||
140 | function = "uart0"; | ||
141 | groups = "u0rxtx", "u0rtscts"; | ||
142 | }; | ||
143 | state_1_node_a { | ||
144 | function = "spi0"; | ||
145 | groups = "spi0pins"; | ||
146 | }; | ||
147 | |||
130 | == Generic pin configuration node content == | 148 | == Generic pin configuration node content == |
131 | 149 | ||
132 | Many data items that are represented in a pin configuration node are common | 150 | Many data items that are represented in a pin configuration node are common |
@@ -139,8 +157,12 @@ structure of the DT nodes that contain these properties. | |||
139 | Supported generic properties are: | 157 | Supported generic properties are: |
140 | 158 | ||
141 | pins - the list of pins that properties in the node | 159 | pins - the list of pins that properties in the node |
142 | apply to | 160 | apply to (either this or "group" has to be |
143 | function - the mux function to select | 161 | specified) |
162 | group - the group to apply the properties to, if the driver | ||
163 | supports configuration of whole groups rather than | ||
164 | individual pins (either this or "pins" has to be | ||
165 | specified) | ||
144 | bias-disable - disable any pin bias | 166 | bias-disable - disable any pin bias |
145 | bias-high-impedance - high impedance mode ("third-state", "floating") | 167 | bias-high-impedance - high impedance mode ("third-state", "floating") |
146 | bias-bus-hold - latch weakly | 168 | bias-bus-hold - latch weakly |
@@ -163,6 +185,21 @@ output-low - set the pin to output mode with low level | |||
163 | output-high - set the pin to output mode with high level | 185 | output-high - set the pin to output mode with high level |
164 | slew-rate - set the slew rate | 186 | slew-rate - set the slew rate |
165 | 187 | ||
188 | For example: | ||
189 | |||
190 | state_0_node_a { | ||
191 | pins = "GPIO0_AJ5", "GPIO2_AH4"; /* CTS+RXD */ | ||
192 | bias-pull-up; | ||
193 | }; | ||
194 | state_1_node_a { | ||
195 | pins = "GPIO1_AJ3", "GPIO3_AH3"; /* RTS+TXD */ | ||
196 | output-high; | ||
197 | }; | ||
198 | state_2_node_a { | ||
199 | group = "foo-group"; | ||
200 | bias-pull-up; | ||
201 | }; | ||
202 | |||
166 | Some of the generic properties take arguments. For those that do, the | 203 | Some of the generic properties take arguments. For those that do, the |
167 | arguments are described below. | 204 | arguments are described below. |
168 | 205 | ||
@@ -170,15 +207,6 @@ arguments are described below. | |||
170 | binding for the hardware defines: | 207 | binding for the hardware defines: |
171 | - Whether the entries are integers or strings, and their meaning. | 208 | - Whether the entries are integers or strings, and their meaning. |
172 | 209 | ||
173 | - function takes a list of function names/IDs as a required argument. The | ||
174 | specific binding for the hardware defines: | ||
175 | - Whether the entries are integers or strings, and their meaning. | ||
176 | - Whether only a single entry is allowed (which is applied to all entries | ||
177 | in the pins property), or whether there may alternatively be one entry per | ||
178 | entry in the pins property, in which case the list lengths must match, and | ||
179 | for each list index i, the function at list index i is applied to the pin | ||
180 | at list index i. | ||
181 | |||
182 | - bias-pull-up, -down and -pin-default take as optional argument on hardware | 210 | - bias-pull-up, -down and -pin-default take as optional argument on hardware |
183 | supporting it the pull strength in Ohm. bias-disable will disable the pull. | 211 | supporting it the pull strength in Ohm. bias-disable will disable the pull. |
184 | 212 | ||
diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,apq8064-pinctrl.txt b/Documentation/devicetree/bindings/pinctrl/qcom,apq8064-pinctrl.txt index 92fae82f35f2..2fb90b37aa09 100644 --- a/Documentation/devicetree/bindings/pinctrl/qcom,apq8064-pinctrl.txt +++ b/Documentation/devicetree/bindings/pinctrl/qcom,apq8064-pinctrl.txt | |||
@@ -50,7 +50,7 @@ Valid values for function are: | |||
50 | gsbi4_cam_i2c, gsbi5, gsbi5_spi_cs1, gsbi5_spi_cs2, gsbi5_spi_cs3, gsbi6, | 50 | gsbi4_cam_i2c, gsbi5, gsbi5_spi_cs1, gsbi5_spi_cs2, gsbi5_spi_cs3, gsbi6, |
51 | gsbi6_spi_cs1, gsbi6_spi_cs2, gsbi6_spi_cs3, gsbi7, gsbi7_spi_cs1, | 51 | gsbi6_spi_cs1, gsbi6_spi_cs2, gsbi6_spi_cs3, gsbi7, gsbi7_spi_cs1, |
52 | gsbi7_spi_cs2, gsbi7_spi_cs3, gsbi_cam_i2c, hdmi, mi2s, riva_bt, riva_fm, | 52 | gsbi7_spi_cs2, gsbi7_spi_cs3, gsbi_cam_i2c, hdmi, mi2s, riva_bt, riva_fm, |
53 | riva_wlan, sdc2, sdc4, slimbus, spkr_i2s, tsif1, tsif2, usb2_hsic, | 53 | riva_wlan, sdc2, sdc4, slimbus, spkr_i2s, tsif1, tsif2, usb2_hsic, ps_hold |
54 | 54 | ||
55 | Example: | 55 | Example: |
56 | 56 | ||
diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,apq8084-pinctrl.txt b/Documentation/devicetree/bindings/pinctrl/qcom,apq8084-pinctrl.txt new file mode 100644 index 000000000000..ffafa1990a30 --- /dev/null +++ b/Documentation/devicetree/bindings/pinctrl/qcom,apq8084-pinctrl.txt | |||
@@ -0,0 +1,179 @@ | |||
1 | Qualcomm APQ8084 TLMM block | ||
2 | |||
3 | This binding describes the Top Level Mode Multiplexer block found in the | ||
4 | MSM8960 platform. | ||
5 | |||
6 | - compatible: | ||
7 | Usage: required | ||
8 | Value type: <string> | ||
9 | Definition: must be "qcom,apq8084-pinctrl" | ||
10 | |||
11 | - reg: | ||
12 | Usage: required | ||
13 | Value type: <prop-encoded-array> | ||
14 | Definition: the base address and size of the TLMM register space. | ||
15 | |||
16 | - interrupts: | ||
17 | Usage: required | ||
18 | Value type: <prop-encoded-array> | ||
19 | Definition: should specify the TLMM summary IRQ. | ||
20 | |||
21 | - interrupt-controller: | ||
22 | Usage: required | ||
23 | Value type: <none> | ||
24 | Definition: identifies this node as an interrupt controller | ||
25 | |||
26 | - #interrupt-cells: | ||
27 | Usage: required | ||
28 | Value type: <u32> | ||
29 | Definition: must be 2. Specifying the pin number and flags, as defined | ||
30 | in <dt-bindings/interrupt-controller/irq.h> | ||
31 | |||
32 | - gpio-controller: | ||
33 | Usage: required | ||
34 | Value type: <none> | ||
35 | Definition: identifies this node as a gpio controller | ||
36 | |||
37 | - #gpio-cells: | ||
38 | Usage: required | ||
39 | Value type: <u32> | ||
40 | Definition: must be 2. Specifying the pin number and flags, as defined | ||
41 | in <dt-bindings/gpio/gpio.h> | ||
42 | |||
43 | Please refer to ../gpio/gpio.txt and ../interrupt-controller/interrupts.txt for | ||
44 | a general description of GPIO and interrupt bindings. | ||
45 | |||
46 | Please refer to pinctrl-bindings.txt in this directory for details of the | ||
47 | common pinctrl bindings used by client devices, including the meaning of the | ||
48 | phrase "pin configuration node". | ||
49 | |||
50 | The pin configuration nodes act as a container for an abitrary number of | ||
51 | subnodes. Each of these subnodes represents some desired configuration for a | ||
52 | pin, a group, or a list of pins or groups. This configuration can include the | ||
53 | mux function to select on those pin(s)/group(s), and various pin configuration | ||
54 | parameters, such as pull-up, drive strength, etc. | ||
55 | |||
56 | |||
57 | PIN CONFIGURATION NODES: | ||
58 | |||
59 | The name of each subnode is not important; all subnodes should be enumerated | ||
60 | and processed purely based on their content. | ||
61 | |||
62 | Each subnode only affects those parameters that are explicitly listed. In | ||
63 | other words, a subnode that lists a mux function but no pin configuration | ||
64 | parameters implies no information about any pin configuration parameters. | ||
65 | Similarly, a pin subnode that describes a pullup parameter implies no | ||
66 | information about e.g. the mux function. | ||
67 | |||
68 | |||
69 | The following generic properties as defined in pinctrl-bindings.txt are valid | ||
70 | to specify in a pin configuration subnode: | ||
71 | |||
72 | - pins: | ||
73 | Usage: required | ||
74 | Value type: <string-array> | ||
75 | Definition: List of gpio pins affected by the properties specified in | ||
76 | this subnode. Valid pins are: | ||
77 | gpio0-gpio146, | ||
78 | sdc1_clk, | ||
79 | sdc1_cmd, | ||
80 | sdc1_data | ||
81 | sdc2_clk, | ||
82 | sdc2_cmd, | ||
83 | sdc2_data | ||
84 | |||
85 | - function: | ||
86 | Usage: required | ||
87 | Value type: <string> | ||
88 | Definition: Specify the alternative function to be configured for the | ||
89 | specified pins. Functions are only valid for gpio pins. | ||
90 | Valid values are: | ||
91 | adsp_ext, audio_ref, blsp_i2c1, blsp_i2c2, blsp_i2c3, | ||
92 | blsp_i2c4, blsp_i2c5, blsp_i2c6, blsp_i2c7, blsp_i2c8, | ||
93 | blsp_i2c9, blsp_i2c10, blsp_i2c11, blsp_i2c12, | ||
94 | blsp_spi1, blsp_spi2, blsp_spi3, blsp_spi4, blsp_spi5, | ||
95 | blsp_spi6, blsp_spi7, blsp_spi8, blsp_spi9, blsp_spi10, | ||
96 | blsp_spi11, blsp_spi12, blsp_uart1, blsp_uart2, blsp_uart3, | ||
97 | blsp_uart4, blsp_uart5, blsp_uart6, blsp_uart7, blsp_uart8, | ||
98 | blsp_uart9, blsp_uart10, blsp_uart11, blsp_uart12, | ||
99 | blsp_uim1, blsp_uim2, blsp_uim3, blsp_uim4, blsp_uim5, | ||
100 | blsp_uim6, blsp_uim7, blsp_uim8, blsp_uim9, blsp_uim10, | ||
101 | blsp_uim11, blsp_uim12, cam_mclk0, cam_mclk1, cam_mclk2, | ||
102 | cam_mclk3, cci_async, cci_async_in0, cci_i2c0, cci_i2c1, | ||
103 | cci_timer0, cci_timer1, cci_timer2, cci_timer3, cci_timer4, | ||
104 | edp_hpd, gcc_gp1, gcc_gp2, gcc_gp3, gcc_obt, gcc_vtt,i | ||
105 | gp_mn, gp_pdm0, gp_pdm1, gp_pdm2, gp0_clk, gp1_clk, gpio, | ||
106 | hdmi_cec, hdmi_ddc, hdmi_dtest, hdmi_hpd, hdmi_rcv, hsic, | ||
107 | ldo_en, ldo_update, mdp_vsync, pci_e0, pci_e0_n, pci_e0_rst, | ||
108 | pci_e1, pci_e1_rst, pci_e1_rst_n, pci_e1_clkreq_n, pri_mi2s, | ||
109 | qua_mi2s, sata_act, sata_devsleep, sata_devsleep_n, | ||
110 | sd_write, sdc_emmc_mode, sdc3, sdc4, sec_mi2s, slimbus, | ||
111 | spdif_tx, spkr_i2s, spkr_i2s_ws, spss_geni, ter_mi2s, tsif1, | ||
112 | tsif2, uim, uim_batt_alarm | ||
113 | |||
114 | - bias-disable: | ||
115 | Usage: optional | ||
116 | Value type: <none> | ||
117 | Definition: The specified pins should be configued as no pull. | ||
118 | |||
119 | - bias-pull-down: | ||
120 | Usage: optional | ||
121 | Value type: <none> | ||
122 | Definition: The specified pins should be configued as pull down. | ||
123 | |||
124 | - bias-pull-up: | ||
125 | Usage: optional | ||
126 | Value type: <none> | ||
127 | Definition: The specified pins should be configued as pull up. | ||
128 | |||
129 | - output-high: | ||
130 | Usage: optional | ||
131 | Value type: <none> | ||
132 | Definition: The specified pins are configured in output mode, driven | ||
133 | high. | ||
134 | Not valid for sdc pins. | ||
135 | |||
136 | - output-low: | ||
137 | Usage: optional | ||
138 | Value type: <none> | ||
139 | Definition: The specified pins are configured in output mode, driven | ||
140 | low. | ||
141 | Not valid for sdc pins. | ||
142 | |||
143 | - drive-strength: | ||
144 | Usage: optional | ||
145 | Value type: <u32> | ||
146 | Definition: Selects the drive strength for the specified pins, in mA. | ||
147 | Valid values are: 2, 4, 6, 8, 10, 12, 14 and 16 | ||
148 | |||
149 | Example: | ||
150 | |||
151 | tlmm: pinctrl@fd510000 { | ||
152 | compatible = "qcom,apq8084-pinctrl"; | ||
153 | reg = <0xfd510000 0x4000>; | ||
154 | |||
155 | gpio-controller; | ||
156 | #gpio-cells = <2>; | ||
157 | interrupt-controller; | ||
158 | #interrupt-cells = <2>; | ||
159 | interrupts = <0 208 0>; | ||
160 | |||
161 | uart2: uart2-default { | ||
162 | mux { | ||
163 | pins = "gpio4", "gpio5"; | ||
164 | function = "blsp_uart2"; | ||
165 | }; | ||
166 | |||
167 | tx { | ||
168 | pins = "gpio4"; | ||
169 | drive-strength = <4>; | ||
170 | bias-disable; | ||
171 | }; | ||
172 | |||
173 | rx { | ||
174 | pins = "gpio5"; | ||
175 | drive-strength = <2>; | ||
176 | bias-pull-up; | ||
177 | }; | ||
178 | }; | ||
179 | }; | ||
diff --git a/Documentation/devicetree/bindings/pinctrl/rockchip,pinctrl.txt b/Documentation/devicetree/bindings/pinctrl/rockchip,pinctrl.txt index 4658b69d4f4d..388b213249fd 100644 --- a/Documentation/devicetree/bindings/pinctrl/rockchip,pinctrl.txt +++ b/Documentation/devicetree/bindings/pinctrl/rockchip,pinctrl.txt | |||
@@ -2,8 +2,8 @@ | |||
2 | 2 | ||
3 | The Rockchip Pinmux Controller, enables the IC | 3 | The Rockchip Pinmux Controller, enables the IC |
4 | to share one PAD to several functional blocks. The sharing is done by | 4 | to share one PAD to several functional blocks. The sharing is done by |
5 | multiplexing the PAD input/output signals. For each PAD there are up to | 5 | multiplexing the PAD input/output signals. For each PAD there are several |
6 | 4 muxing options with option 0 being the use as a GPIO. | 6 | muxing options with option 0 being the use as a GPIO. |
7 | 7 | ||
8 | Please refer to pinctrl-bindings.txt in this directory for details of the | 8 | Please refer to pinctrl-bindings.txt in this directory for details of the |
9 | common pinctrl bindings used by client devices, including the meaning of the | 9 | common pinctrl bindings used by client devices, including the meaning of the |
@@ -58,7 +58,7 @@ Deprecated properties for gpio sub nodes: | |||
58 | Required properties for pin configuration node: | 58 | Required properties for pin configuration node: |
59 | - rockchip,pins: 3 integers array, represents a group of pins mux and config | 59 | - rockchip,pins: 3 integers array, represents a group of pins mux and config |
60 | setting. The format is rockchip,pins = <PIN_BANK PIN_BANK_IDX MUX &phandle>. | 60 | setting. The format is rockchip,pins = <PIN_BANK PIN_BANK_IDX MUX &phandle>. |
61 | The MUX 0 means gpio and MUX 1 to 3 mean the specific device function. | 61 | The MUX 0 means gpio and MUX 1 to N mean the specific device function. |
62 | The phandle of a node containing the generic pinconfig options | 62 | The phandle of a node containing the generic pinconfig options |
63 | to use, as described in pinctrl-bindings.txt in this directory. | 63 | to use, as described in pinctrl-bindings.txt in this directory. |
64 | 64 | ||
diff --git a/Documentation/devicetree/bindings/pinctrl/ti,omap-pinctrl.txt b/Documentation/devicetree/bindings/pinctrl/ti,omap-pinctrl.txt new file mode 100644 index 000000000000..88c80273da91 --- /dev/null +++ b/Documentation/devicetree/bindings/pinctrl/ti,omap-pinctrl.txt | |||
@@ -0,0 +1,13 @@ | |||
1 | OMAP Pinctrl definitions | ||
2 | |||
3 | Required properties: | ||
4 | - compatible : Should be one of: | ||
5 | "ti,omap2420-padconf" - OMAP2420 compatible pinctrl | ||
6 | "ti,omap2430-padconf" - OMAP2430 compatible pinctrl | ||
7 | "ti,omap3-padconf" - OMAP3 compatible pinctrl | ||
8 | "ti,omap4-padconf" - OMAP4 compatible pinctrl | ||
9 | "ti,omap5-padconf" - OMAP5 compatible pinctrl | ||
10 | "ti,dra7-padconf" - DRA7 compatible pinctrl | ||
11 | "ti,am437-padconf" - AM437x compatible pinctrl | ||
12 | |||
13 | See Documentation/devicetree/bindings/pinctrl/pinctrl-single.txt for further details. | ||