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