1/* 2 * Copyright (c) 2022 Nuvoton Technology Corporation. 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7&pinctrl { 8 /* Prebuild nodes for peripheral device's pin-muxing and pad properties */ 9 /* Host peripheral interfaces */ 10 /omit-if-no-ref/ espi_lpc_gp46_47_51_52_53_54_55_57: periph-lpc-espi { 11 pinmux = <&alt1_no_lpc_espi>; 12 }; 13 14 /* I2C peripheral interfaces */ 15 /omit-if-no-ref/ i2c0_0_sda_scl_gpb4_b5: periph-i2c0-0 { 16 pinmux = <&alt2_i2c0_0_sl>; 17 periph-pupd = <0x00 0>; 18 }; 19 20 /omit-if-no-ref/ i2c1_0_sda_scl_gp87_90: periph-i2c1-0 { 21 pinmux = <&alt2_i2c1_0_sl>; 22 periph-pupd = <0x00 2>; 23 }; 24 25 /omit-if-no-ref/ i2c2_0_sda_scl_gp91_92: periph-i2c2-0 { 26 pinmux = <&alt2_i2c2_0_sl>; 27 periph-pupd = <0x00 4>; 28 }; 29 30 /omit-if-no-ref/ i2c3_0_sda_scl_gpd0_d1: periph-i2c3-0 { 31 pinmux = <&alt2_i2c3_0_sl>; 32 periph-pupd = <0x00 6>; 33 }; 34 35 /omit-if-no-ref/ i2c4_1_sda_scl_gpf2_f3: periph-i2c4-1 { 36 pinmux = <&alt6_i2c4_1_sl>; 37 periph-pupd = <0x01 2>; 38 }; 39 40 /omit-if-no-ref/ i2c5_0_sda_scl_gp33_36: periph-i2c5-0 { 41 pinmux = <&alt2_i2c5_0_sl>; 42 periph-pupd = <0x00 5>; 43 }; 44 45 /omit-if-no-ref/ i2c5_1_sda_scl_gpf4_f5: periph-i2c5-1 { 46 pinmux = <&alt6_i2c5_1_sl>; 47 periph-pupd = <0x01 1>; 48 }; 49 50 /omit-if-no-ref/ i2c6_0_sda_scl_gpc1_c2: periph-i2c6-0 { 51 pinmux = <&alt2_i2c6_0_sl>; 52 periph-pupd = <0x00 3>; 53 }; 54 55 /omit-if-no-ref/ i2c6_1_sda_scl_gpe3_e4: periph-i2c6-1 { 56 pinmux = <&alt6_i2c6_1_sl>; 57 periph-pupd = <0x01 0>; 58 }; 59 60 /omit-if-no-ref/ i2c7_0_sda_scl_gpb2_b3: periph-i2c7-0 { 61 pinmux = <&alt2_i2c7_0_sl>; 62 periph-pupd = <0x00 1>; 63 }; 64 65 /* PS2 peripheral interfaces */ 66 /omit-if-no-ref/ ps2_0_dat_clk_gp67_70: periph-ps2-0 { 67 pinmux = <&alt3_ps2_0_sl>; 68 }; 69 70 /omit-if-no-ref/ ps2_1_dat_clk_gp62_63: periph-ps2-1 { 71 pinmux = <&alt3_ps2_1_sl>; 72 }; 73 74 /omit-if-no-ref/ ps2_2_dat_clk_gp34_37: periph-ps2-2 { 75 pinmux = <&alt3_ps2_2_sl>; 76 }; 77 78 /omit-if-no-ref/ ps2_3_2_dat_clk_gpa6_a7: periph-ps2-3-2 { 79 pinmux = <&altc_ps2_3_sl2>; 80 }; 81 82 /* Tachometer peripheral interfaces */ 83 /omit-if-no-ref/ ta1_1_in_gp40: periph-ta1-1 { 84 pinmux = <&alt3_ta1_sl1>; 85 }; 86 87 /omit-if-no-ref/ ta1_2_in_gp93: periph-ta1-2 { 88 pinmux = <&altc_ta1_sl2>; 89 }; 90 91 /omit-if-no-ref/ ta2_1_in_gp73: periph-ta2-1 { 92 pinmux = <&alt3_ta2_sl1>; 93 }; 94 95 /omit-if-no-ref/ ta2_2_in_gpa6: periph-ta2-2 { 96 pinmux = <&altc_ta2_sl2>; 97 }; 98 99 /omit-if-no-ref/ tb1_1_in_gpa4: periph-tb1-1 { 100 pinmux = <&alt3_tb1_sl1>; 101 }; 102 103 /omit-if-no-ref/ tb1_2_in_gpd3: periph-tb1-2 { 104 pinmux = <&altc_tb1_sl2>; 105 }; 106 107 /omit-if-no-ref/ tb2_2_in_gpa7: periph-tb2-2 { 108 pinmux = <&altc_tb2_sl2>; 109 }; 110 111 /* PWM peripheral interfaces */ 112 /omit-if-no-ref/ pwm0_gpc3: periph-pwm0 { 113 pinmux = <&alt4_pwm0_sl>; 114 }; 115 116 /omit-if-no-ref/ pwm1_gpc2: periph-pwm1 { 117 pinmux = <&alt4_pwm1_sl>; 118 }; 119 120 /omit-if-no-ref/ pwm2_gpc4: periph-pwm2 { 121 pinmux = <&alt4_pwm2_sl>; 122 }; 123 124 /omit-if-no-ref/ pwm3_gp80: periph-pwm3 { 125 pinmux = <&alt4_pwm3_sl>; 126 }; 127 128 /omit-if-no-ref/ pwm4_gpb6: periph-pwm4 { 129 pinmux = <&alt4_pwm4_sl>; 130 }; 131 132 /omit-if-no-ref/ pwm5_gpb7: periph-pwm5 { 133 pinmux = <&alt4_pwm5_sl>; 134 }; 135 136 /omit-if-no-ref/ pwm6_gpc0: periph-pwm6 { 137 pinmux = <&alt4_pwm6_sl>; 138 }; 139 140 /omit-if-no-ref/ pwm7_gp60: periph-pwm7 { 141 pinmux = <&alt4_pwm7_sl>; 142 }; 143 144 /* Keyboard peripheral interfaces. */ 145 /omit-if-no-ref/ ksi0_gp31: periph-kbscan-ksi0 { 146 pinmux = <&alt7_no_ksi0_sl>; 147 }; 148 149 /omit-if-no-ref/ ksi1_gp30: periph-kbscan-ksi1 { 150 pinmux = <&alt7_no_ksi1_sl>; 151 }; 152 153 /omit-if-no-ref/ ksi2_gp27: periph-kbscan-ksi2 { 154 pinmux = <&alt7_no_ksi2_sl>; 155 }; 156 157 /omit-if-no-ref/ ksi3_gp26: periph-kbscan-ksi3 { 158 pinmux = <&alt7_no_ksi3_sl>; 159 }; 160 161 /omit-if-no-ref/ ksi4_gp25: periph-kbscan-ksi4 { 162 pinmux = <&alt7_no_ksi4_sl>; 163 }; 164 165 /omit-if-no-ref/ ksi5_gp24: periph-kbscan-ksi5 { 166 pinmux = <&alt7_no_ksi5_sl>; 167 }; 168 169 /omit-if-no-ref/ ksi6_gp23: periph-kbscan-ksi6 { 170 pinmux = <&alt7_no_ksi6_sl>; 171 }; 172 173 /omit-if-no-ref/ ksi7_gp22: periph-kbscan-ksi7 { 174 pinmux = <&alt7_no_ksi7_sl>; 175 }; 176 177 /omit-if-no-ref/ kso00_gp21: periph-kbscan-kso00 { 178 pinmux = <&alt8_no_kso00_sl>; 179 }; 180 181 /omit-if-no-ref/ kso01_gp20: periph-kbscan-kso01 { 182 pinmux = <&alt8_no_kso01_sl>; 183 }; 184 185 /omit-if-no-ref/ kso02_gp17: periph-kbscan-kso02 { 186 pinmux = <&alt8_no_kso02_sl>; 187 }; 188 189 /omit-if-no-ref/ kso03_gp16: periph-kbscan-kso03 { 190 pinmux = <&alt8_no_kso03_sl>; 191 }; 192 193 /omit-if-no-ref/ kso04_gp15: periph-kbscan-kso04 { 194 pinmux = <&alt8_no_kso04_sl>; 195 }; 196 197 /omit-if-no-ref/ kso05_gp14: periph-kbscan-kso05 { 198 pinmux = <&alt8_no_kso05_sl>; 199 }; 200 201 /omit-if-no-ref/ kso06_gp13: periph-kbscan-kso06 { 202 pinmux = <&alt8_no_kso06_sl>; 203 }; 204 205 /omit-if-no-ref/ kso07_gp12: periph-kbscan-kso07 { 206 pinmux = <&alt8_no_kso07_sl>; 207 }; 208 209 /omit-if-no-ref/ kso08_gp11: periph-kbscan-kso08 { 210 pinmux = <&alt9_no_kso08_sl>; 211 }; 212 213 /omit-if-no-ref/ kso09_gp10: periph-kbscan-kso09 { 214 pinmux = <&alt9_no_kso09_sl>; 215 }; 216 217 /omit-if-no-ref/ kso10_gp07: periph-kbscan-kso10 { 218 pinmux = <&alt9_no_kso10_sl>; 219 }; 220 221 /omit-if-no-ref/ kso11_gp06: periph-kbscan-kso11 { 222 pinmux = <&alt9_no_kso11_sl>; 223 }; 224 225 /omit-if-no-ref/ kso12_gp05: periph-kbscan-kso12 { 226 pinmux = <&alt9_no_kso12_sl>; 227 }; 228 229 /omit-if-no-ref/ kso13_gp04: periph-kbscan-kso13 { 230 pinmux = <&alt9_no_kso13_sl>; 231 }; 232 233 /omit-if-no-ref/ kso14_gp82: periph-kbscan-kso14 { 234 pinmux = <&alt9_no_kso14_sl>; 235 }; 236 237 /omit-if-no-ref/ kso15_gp83: periph-kbscan-kso15 { 238 pinmux = <&alt9_no_kso15_sl>; 239 }; 240 241 /omit-if-no-ref/ kso16_gp03: periph-kbscan-kso16 { 242 pinmux = <&alta_no_kso16_sl>; 243 }; 244 245 /omit-if-no-ref/ kso17_gpb1: periph-kbscan-kso17 { 246 pinmux = <&alta_no_kso17_sl>; 247 }; 248 249 /* Miscellaneous peripheral interfaces */ 250 /omit-if-no-ref/ clk_32k_out_gp75: periph-clk-32k-out { 251 pinmux = <&alta_32k_out_sl>; 252 }; 253 254 /omit-if-no-ref/ vcc1_rst_gp77: periph-vcc1-rst { 255 pinmux = <&alta_no_vcc1_rst>; 256 }; 257 258 /omit-if-no-ref/ peci_dat_gp81: periph-peci-dat { 259 pinmux = <&alta_no_peci_en>; 260 }; 261 262 /* Host UART peripheral interfaces */ 263 /omit-if-no-ref/ huart_rxd_gp75: periph-host-uart-rxd { 264 pinmux = <&altb_rxd_sl>; 265 }; 266 267 /omit-if-no-ref/ huart_txd_gp86: periph-host-uart-txd { 268 pinmux = <&altb_txd_sl>; 269 }; 270 271 /omit-if-no-ref/ huart_rts_gp36: periph-host-uart-rts { 272 pinmux = <&altb_rts_sl>; 273 }; 274 275 /omit-if-no-ref/ huart_cts_gp33: periph-host-uart-cts { 276 pinmux = <&altb_cts_sl>; 277 }; 278 279 /omit-if-no-ref/ huart_ri_gp42: periph-host-uart-ri { 280 pinmux = <&altb_ri_sl>; 281 }; 282 283 /omit-if-no-ref/ huart_dtr_bout_gpc7: periph-host-uart-dtr_bout { 284 pinmux = <&altb_dtr_bout_sl>; 285 }; 286 287 /omit-if-no-ref/ huart_dcd_gpb3: periph-host-uart-dcd { 288 pinmux = <&altb_dcd_sl>; 289 }; 290 291 /omit-if-no-ref/ huart_dsr_gpb2: periph-host-uart-dsr { 292 pinmux = <&altb_dsr_sl>; 293 }; 294 295 /* SHI peripheral interfaces */ 296 /omit-if-no-ref/ shi_gp46_47_53_55: periph-shi { 297 pinmux = <&altc_shi_sl>; 298 periph-pupd = <0x01 4>; 299 }; 300 301 /* ADC peripheral interfaces. */ 302 /omit-if-no-ref/ adc0_chan0_gp45: periph-adc0-0 { 303 pinmux = <&alt6_adc0_sl>; 304 }; 305 306 /omit-if-no-ref/ adc0_chan1_gp44: periph-adc0-1 { 307 pinmux = <&alt6_adc1_sl>; 308 }; 309 310 /omit-if-no-ref/ adc0_chan2_gp43: periph-adc0-2 { 311 pinmux = <&alt6_adc2_sl>; 312 }; 313 314 /omit-if-no-ref/ adc0_chan3_gp42: periph-adc0-3 { 315 pinmux = <&alt6_adc3_sl>; 316 }; 317 318 /omit-if-no-ref/ adc0_chan4_gp41: periph-adc0-4 { 319 pinmux = <&alt6_adc4_sl>; 320 }; 321 322 /omit-if-no-ref/ adc0_chan5_gp37: periph-adc0-5 { 323 pinmux = <&altf_adc5_sl>; 324 }; 325 326 /omit-if-no-ref/ adc0_chan6_gp34: periph-adc0-6 { 327 pinmux = <&altf_adc6_sl>; 328 }; 329 330 /omit-if-no-ref/ adc0_chan7_gpe1: periph-adc0-7 { 331 pinmux = <&altf_adc7_sl>; 332 }; 333 334 /omit-if-no-ref/ adc0_chan8_gpf1: periph-adc0-8 { 335 pinmux = <&altf_adc8_sl>; 336 }; 337 338 /omit-if-no-ref/ adc0_chan9_gpf0: periph-adc0-9 { 339 pinmux = <&altf_adc9_sl>; 340 }; 341 342 /omit-if-no-ref/ adc0_chan10_gpe0: periph-adc0-10 { 343 pinmux = <&altf_adc10_sl>; 344 }; 345 346 /omit-if-no-ref/ adc0_chan11_gpc7: periph-adc0-11 { 347 pinmux = <&altf_adc11_sl>; 348 }; 349 350 /* PSL peripheral interfaces */ 351 /omit-if-no-ref/ psl_in1_gpd2: periph-psl-in1 { 352 pinmux = <&altd_npsl_in1_sl>; 353 psl-offset = <0>; 354 psl-polarity = <&altd_psl_in1_ahi>; 355 }; 356 357 /omit-if-no-ref/ psl_in2_gp00: periph-psl-in2 { 358 pinmux = <&altd_npsl_in2_sl>; 359 psl-offset = <1>; 360 psl-polarity = <&altd_psl_in2_ahi>; 361 }; 362 363 /omit-if-no-ref/ psl_in3_gp01: periph-psl-in3 { 364 pinmux = <&altd_psl_in3_sl>; 365 psl-offset = <2>; 366 psl-polarity = <&altd_psl_in3_ahi>; 367 }; 368 369 /omit-if-no-ref/ psl_in4_gp02: periph-psl-in4 { 370 pinmux = <&altd_psl_in4_sl>; 371 psl-offset = <3>; 372 psl-polarity = <&altd_psl_in4_ahi>; 373 }; 374 375 /omit-if-no-ref/ psl_gpo_gpd7: periph-psl-gpo { 376 pinmux = <&altg_psl_gpo_sl>; 377 }; 378 379 /omit-if-no-ref/ psl_out_gp85: periph-psl-out { 380 pinmux = <&altg_psl_out_sl>; 381 }; 382 383 /* I3C peripheral interfaces */ 384 /omit-if-no-ref/ i3c_sda_scl_gpe3_e4: periph-i3c { 385 pinmux = <&alth_i3c_sl>; 386 }; 387 388 /* UART peripheral interfaces */ 389 /omit-if-no-ref/ uart1_1_sin_gp10: periph-uart1-1-sin { 390 pinmux = <&altj_cr_sin1_sl1>; 391 }; 392 393 /omit-if-no-ref/ uart1_1_sout_gp11: periph-uart1-1-sout { 394 pinmux = <&altj_cr_sout1_sl1>; 395 }; 396 397 /omit-if-no-ref/ uart1_2_sin_gp64: periph-uart1-2-sin { 398 pinmux = <&altj_cr_sin1_sl2>; 399 }; 400 401 /omit-if-no-ref/ uart1_2_sout_gp65: periph-uart1-2-sout { 402 pinmux = <&altj_cr_sout1_sl2>; 403 }; 404 405 /omit-if-no-ref/ uart2_sin_gp75: periph-uart2-sin { 406 pinmux = <&altj_cr_sin2_sl>; 407 }; 408 409 /omit-if-no-ref/ uart2_sout_gp86: periph-uart2-sout { 410 pinmux = <&altj_cr_sout2_sl>; 411 }; 412 413 /omit-if-no-ref/ uart3_sin_gpd4: periph-uart3-sin { 414 pinmux = <&altj_cr_sin3_sl>; 415 }; 416 417 /omit-if-no-ref/ uart3_sout_gpd6: periph-uart3-sout { 418 pinmux = <&altj_cr_sout3_sl>; 419 }; 420 421 /omit-if-no-ref/ uart4_sin_gpb1: periph-uart4-sin { 422 pinmux = <&alte_cr_sin4_sl>; 423 }; 424 425 /omit-if-no-ref/ uart4_sout_gp35: periph-uart4-sout { 426 pinmux = <&alte_cr_sout4_sl>; 427 }; 428}; 429