1 == MediaTek MT7622 pinctrl controller ==
3 Required properties for the root node:
4 - compatible: Should be one of the following
5 "mediatek,mt7622-pinctrl" for MT7622 SoC
6 - reg: offset and length of the pinctrl space
8 - gpio-controller: Marks the device node as a GPIO controller.
9 - #gpio-cells: Should be two. The first cell is the pin number and the
10 second is the GPIO flags.
12 Please refer to pinctrl-bindings.txt in this directory for details of the
13 common pinctrl bindings used by client devices, including the meaning of the
14 phrase "pin configuration node".
16 MT7622 pin configuration nodes act as a container for an arbitrary number of
17 subnodes. Each of these subnodes represents some desired configuration for a
18 pin, a group, or a list of pins or groups. This configuration can include the
19 mux function to select on those pin(s)/group(s), and various pin configuration
20 parameters, such as pull-up, slew rate, etc.
22 We support 2 types of configuration nodes. Those nodes can be either pinmux
23 nodes or pinconf nodes. Each configuration node can consist of multiple nodes
24 describing the pinmux and pinconf options.
26 The name of each subnode doesn't matter as long as it is unique; all subnodes
27 should be enumerated and processed purely based on their content.
29 == pinmux nodes content ==
31 The following generic properties as defined in pinctrl-bindings.txt are valid
32 to specify in a pinmux subnode:
34 Required properties are:
35 - groups: An array of strings. Each string contains the name of a group.
36 Valid values for these names are listed below.
37 - function: A string containing the name of the function to mux to the
38 group. Valid values for function names are listed below.
40 == pinconf nodes content ==
42 The following generic properties as defined in pinctrl-bindings.txt are valid
43 to specify in a pinconf subnode:
45 Required properties are:
46 - pins: An array of strings. Each string contains the name of a pin.
47 Valid values for these names are listed below.
48 - groups: An array of strings. Each string contains the name of a group.
49 Valid values for these names are listed below.
51 Optional properies are:
52 bias-disable, bias-pull, bias-pull-down, input-enable,
53 input-schmitt-enable, input-schmitt-disable, output-enable
54 output-low, output-high, drive-strength, slew-rate
56 Valid arguments for 'slew-rate' are '0' for no slew rate controlled and '1' for
57 slower slew rate respectively.
58 Valid arguments for 'drive-strength', 4, 8, 12, or 16 in mA.
60 The following specific properties as defined are valid to specify in a pinconf
63 Optional properties are:
64 - mediatek,tdsel: An integer describing the steps for output level shifter duty
65 cycle when asserted (high pulse width adjustment). Valid arguments are from 0
67 - mediatek,rdsel: An integer describing the steps for input level shifter duty
68 cycle when asserted (high pulse width adjustment). Valid arguments are from 0
71 == Valid values for pins, function and groups on MT7622 ==
73 Valid values for pins are:
74 pins can be referenced via the pin names as the below table shown and the
75 related physical number is also put ahead of those names which helps cross
76 references to pins between groups to know whether pins assignment conflict
77 happens among devices try to acquire those available pins.
79 Pin #: Valid values for pins
80 -----------------------------
167 PIN 86: "EPHY_LED0_N"
185 Valid values for function are:
186 "emmc", "eth", "i2c", "i2s", "ir", "led", "flash", "pcie",
187 "pmic", "pwm", "sd", "spi", "tdm", "uart", "watchdog"
189 Valid values for groups are:
190 additional data is put followingly with valid value allowing us to know which
191 applicable function and which relevant pins (in pin#) are able applied for that
194 Valid value function pins (in pin#)
195 -------------------------------------------------------------------------
196 "emmc" "emmc" 40, 41, 42, 43, 44, 45,
199 "esw" "eth" 51, 52, 53, 54, 55, 56,
200 57, 58, 59, 60, 61, 62,
201 63, 64, 65, 66, 67, 68,
203 "esw_p0_p1" "eth" 51, 52, 53, 54, 55, 56,
205 "esw_p2_p3_p4" "eth" 59, 60, 61, 62, 63, 64,
206 65, 66, 67, 68, 69, 70
207 "rgmii_via_esw" "eth" 59, 60, 61, 62, 63, 64,
208 65, 66, 67, 68, 69, 70
209 "rgmii_via_gmac1" "eth" 59, 60, 61, 62, 63, 64,
210 65, 66, 67, 68, 69, 70
211 "rgmii_via_gmac2" "eth" 25, 26, 27, 28, 29, 30,
212 31, 32, 33, 34, 35, 36
213 "mdc_mdio" "eth" 23, 24
215 "i2c1_0" "i2c" 55, 56
216 "i2c1_1" "i2c" 73, 74
217 "i2c1_2" "i2c" 87, 88
218 "i2c2_0" "i2c" 57, 58
219 "i2c2_1" "i2c" 75, 76
220 "i2c2_2" "i2c" 89, 90
221 "i2s_in_mclk_bclk_ws" "i2s" 3, 4, 5
222 "i2s1_in_data" "i2s" 1
223 "i2s2_in_data" "i2s" 16
224 "i2s3_in_data" "i2s" 17
225 "i2s4_in_data" "i2s" 18
226 "i2s_out_mclk_bclk_ws" "i2s" 3, 4, 5
227 "i2s1_out_data" "i2s" 2
228 "i2s2_out_data" "i2s" 19
229 "i2s3_out_data" "i2s" 20
230 "i2s4_out_data" "i2s" 21
237 "ephy_leds" "led" 86, 91, 92, 93, 94
244 "par_nand" "flash" 37, 38, 39, 40, 41, 42,
245 43, 44, 45, 46, 47, 48,
247 "snfi" "flash" 8, 9, 10, 11, 12, 13
248 "spi_nor" "flash" 8, 9, 10, 11, 12, 13
249 "pcie0_0_waken" "pcie" 14
250 "pcie0_1_waken" "pcie" 79
251 "pcie1_0_waken" "pcie" 14
252 "pcie0_0_clkreq" "pcie" 15
253 "pcie0_1_clkreq" "pcie" 80
254 "pcie1_0_clkreq" "pcie" 15
255 "pcie0_pad_perst" "pcie" 83
256 "pcie1_pad_perst" "pcie" 84
257 "pmic_bus" "pmic" 71, 72
277 "pwm_ch6_3" "pwm" 100
280 "pwm_ch7_2" "pwm" 101
281 "sd_0" "sd" 16, 17, 18, 19, 20, 21
282 "sd_1" "sd" 25, 26, 27, 28, 29, 30
283 "spic0_0" "spi" 63, 64, 65, 66
284 "spic0_1" "spi" 79, 80, 81, 82
285 "spic1_0" "spi" 67, 68, 69, 70
286 "spic1_1" "spi" 73, 74, 75, 76
287 "spic2_0_wp_hold" "spi" 8, 9
288 "spic2_0" "spi" 10, 11, 12, 13
289 "tdm_0_out_mclk_bclk_ws" "tdm" 8, 9, 10
290 "tdm_0_in_mclk_bclk_ws" "tdm" 11, 12, 13
291 "tdm_0_out_data" "tdm" 20
292 "tdm_0_in_data" "tdm" 21
293 "tdm_1_out_mclk_bclk_ws" "tdm" 57, 58, 59
294 "tdm_1_in_mclk_bclk_ws" "tdm" 60, 61, 62
295 "tdm_1_out_data" "tdm" 55
296 "tdm_1_in_data" "tdm" 56
297 "uart0_0_tx_rx" "uart" 6, 7
298 "uart1_0_tx_rx" "uart" 55, 56
299 "uart1_0_rts_cts" "uart" 57, 58
300 "uart1_1_tx_rx" "uart" 73, 74
301 "uart1_1_rts_cts" "uart" 75, 76
302 "uart2_0_tx_rx" "uart" 3, 4
303 "uart2_0_rts_cts" "uart" 1, 2
304 "uart2_1_tx_rx" "uart" 51, 52
305 "uart2_1_rts_cts" "uart" 53, 54
306 "uart2_2_tx_rx" "uart" 59, 60
307 "uart2_2_rts_cts" "uart" 61, 62
308 "uart2_3_tx_rx" "uart" 95, 96
309 "uart3_0_tx_rx" "uart" 57, 58
310 "uart3_1_tx_rx" "uart" 81, 82
311 "uart3_1_rts_cts" "uart" 79, 80
312 "uart4_0_tx_rx" "uart" 61, 62
313 "uart4_1_tx_rx" "uart" 91, 92
314 "uart4_1_rts_cts" "uart" 93, 94
315 "uart4_2_tx_rx" "uart" 97, 98
316 "uart4_2_rts_cts" "uart" 95, 96
317 "watchdog" "watchdog" 78
321 pio: pinctrl@10211000 {
322 compatible = "mediatek,mt7622-pinctrl";
323 reg = <0 0x10211000 0 0x1000>;
327 pinctrl_eth_default: eth-default {
331 drive-strength = <12>;
337 drive-strength = <12>;
343 drive-strength = <8>;