3 from spec
.interfaces
import Pinouts
5 from spec
.ifaceprint
import display
, display_fns
, check_functions
6 from spec
.ifaceprint
import display_fixed
19 pkeys
= sorted(pinbanks
.keys())
25 pinouts
= Pinouts(bankspec
)
28 pinouts
.gpio("", ('A', 0), "A", 0, 16, 0)
29 pinouts
.spi("0", ('A', 0), "A", 3)
30 pinouts
.uartfull("1", ('A', 0), "A", 2)
31 pinouts
.i2c("1", ('A', 4), "A", 2)
32 pinouts
.emmc("", ('A', 0), "A", 1)
33 #pinouts.uart("2", ('A', 14), "A", 1)
34 pinouts
.spi("1", ('A', 6), "A", 2)
35 pinouts
.eint("", ('A', 10), "A", 0, 6)
36 pinouts
.eint("", ('A', 4), "A", 0, 6, mux
=3)
37 pinouts
.sdmmc("0", ('A', 10), "A", 2)
38 pinouts
.jtag("1", ('A', 10), "A", 3)
39 pinouts
.uart("2", ('A', 14), "A", 3)
42 pinouts
.gpio("", ('B', 0), "B", 0, 28, 0)
43 pinouts
.rgbttl("0", ('B', 0), "B", 1)
44 pinouts
.spi("0", ('B', 12), "B", 2)
45 pinouts
.quadspi("", ('B', 4), "B", 2, limit
=4)
46 pinouts
.uart("3", ('B', 16), "B", 2)
47 pinouts
.i2c("3", ('B', 18), "B", 2)
48 pinouts
.pwm("", ('B', 9), "B", 0, 1, mux
=2)
49 pinouts
.pwm("", ('B', 20), "B", 1, 2, mux
=2)
50 pinouts
.sdmmc("0", ('B', 22), "B", 2)
51 pinouts
.eint("", ('B', 0), "B", 6, 4, mux
=3)
52 pinouts
.flexbus2("", ('B', 4), "B", 3)
53 pinouts
.i2c("1", ('B', 0), "B", 2)
54 pinouts
.uart("2", ('B', 2), "B", 2)
55 pinouts
.uart("4", ('B', 10), "B", 2)
58 pinouts
.gpio("", ("C", 0), "C", 0, 24, 0)
59 pinouts
.ulpi("1", ('C', 0), "C", 1)
60 pinouts
.ulpi("2", ('C', 12), "C", 1)
61 pinouts
.spi("1", ('C', 8), "C", 2)
62 #pinouts.spi("1", ('C', 28), "C", 2)
63 pinouts
.uartfull("0", ('C', 20), "C", 3)
64 pinouts
.eint("", ('C', 0), "C", 10, 8, mux
=3)
65 pinouts
.jtag("2", ('C', 8), "C", 3)
66 pinouts
.eint("", ('C', 12), "C", 22, 8, mux
=3)
67 pinouts
.uart("2", ('C', 22), "C", 2)
68 pinouts
.i2s("", ('C', 13), "C", 2)
69 pinouts
.pwm("", ('C', 21), "C", 2, 1, mux
=2)
73 # ok this is slightly complicated, basically there's extra
74 # functions that we want to be on the same pin (but a different mux)
75 # because their use is mutually-exclusive. you can't have FB_TS
76 # at the same time as FB_ALE for example. FB_BWE2 even has two
77 # mutually exclusive functions. these extra functions are
78 # specified here, so that when e.g. FB_BWE2 has been positioned,
79 # FB_A0 will be placed in bank d, mux column 3, *on the same pin*.
80 # this saves messing about, because if FB_BWE2 moved to a
81 # different pin so would FB_A0 (and FB_CS2) likewise have to be
82 # moved. and the rest.
84 'FB_TS': ('FB_ALE', 2, "D"),
85 'FB_CS2': ('FB_BWE2', 2, "D"),
86 'FB_A0': ('FB_BWE2', 3, "D"),
87 'FB_CS3': ('FB_BWE3', 2, "D"),
88 'FB_A1': ('FB_BWE3', 3, "D"),
89 'FB_TBST': ('FB_OE', 2, "D"),
90 'FB_TSIZ0': ('FB_BWE0', 2, "D"),
91 'FB_TSIZ1': ('FB_BWE1', 2, "D"),
93 #pinouts.mcu8080("", 72, "D", 1)
94 pinouts
.gpio("", ('D', 0), "D", 0, 24, 0)
95 pinouts
.flexbus1("", ('D', 0), "D", 1, spec
=flexspec
)
96 pinouts
.i2c("2", ('D', 8), "D", 3)
97 pinouts
.pwm("", ('D', 21), "D", 0, 3, mux
=1)
98 pinouts
.i2c("1", ('D', 10), "D", 3)
99 pinouts
.i2c("3", ('D', 19), "D", 2)
100 pinouts
.uartfull("0", ('D', 0), "D", 2)
101 pinouts
.uart("3", ('D', 21), "D", 2)
102 pinouts
.uart("4", ('D', 13), "D", 2)
103 pinouts
.eint("", ('D', 19), "D", 18, 4, mux
=3)
104 pinouts
.eint("", ('D', 23), "D", 9, 1, mux
=3)
105 pinouts
.eint("", ('D', 13), "D", 5, 4, mux
=3)
106 pinouts
.eint("", ('D', 0), "D", 30, 2, mux
=3)
107 pinouts
.i2c("2", ('D', 2), "D", 3)
108 pinouts
.sdmmc("1", ('D', 4), "D", 2)
111 pinouts
.gpio("", ('E', 0), "E", 0, 24, 0)
112 pinouts
.flexbus2("", ('E', 0), "E", 1)
113 pinouts
.sdmmc("1", ('E', 0), "E", 2)
114 pinouts
.sdmmc("2", ('E', 8), "E", 2)
115 pinouts
.quadspi("", ('E', 18), "E", 2)
116 pinouts
.uartfull("1", ('E', 14), "E", 2)
117 pinouts
.i2c("2", ('E', 6), "E", 2)
118 pinouts
.eint("", ('E', 0), "E", 10, 8, mux
=3)
119 pinouts
.eint("", ('E', 8), "E", 22, 6, mux
=3)
120 pinouts
.emmc("", ('E', 14), "E", 3)
123 pinouts
.gpio("", ('F', 0), "F", 0, 10, 0)
124 pinouts
.i2s("", ('F', 0), "F", 1)
125 pinouts
.i2c("1", ('F', 6), "F", 2)
126 pinouts
.pwm("", ('F', 8), "F", 0, 1, mux
=2)
127 pinouts
.pwm("", ('F', 9), "F", 1, 1, mux
=2)
128 pinouts
.uart("4", ('F', 8), "F", 1)
129 pinouts
.sdmmc("2", ('F', 0), "F", 2)
130 pinouts
.eint("", ('F', 0), "F", 18, 4, mux
=3)
131 pinouts
.pwm("", ('F', 4), "F", 2, 1, mux
=3)
132 pinouts
.eint("", ('F', 5), "F", 7, 1, mux
=3)
133 pinouts
.eint("", ('F', 6), "F", 28, 4, mux
=3)
136 pinouts
.gpio("", ('G', 0), "G", 0, 32, 0)
137 pinouts
.rgmii("", ('G', 0), "G", 1)
138 pinouts
.ulpi("3", ('G', 20), "G", 1)
139 pinouts
.rgbttl("1", ('G', 0), "G", 2)
140 pinouts
.quadspi("", ('G', 26), "G", 3)
141 pinouts
.flexbus2("", ('G', 0), "G", 3)
142 pinouts
.sdmmc("1", ('G', 24), "G", 3, limit
=2)
143 pinouts
.sdmmc("1", ('G', 28), "G", 2, start
=2)
145 print ("""# Pinouts (PinMux)
146 auto-generated by [[pinouts.py]]
152 print ("\n# Pinouts (Fixed function)\n")
336 fixedpins
= display_fixed(fixedpins
, len(pinouts
))
338 print ("""# Functions (PinMux)
340 auto-generated by [[pinouts.py]]
343 function_names
= {'EINT': 'External Interrupt',
344 'FB': 'MC68k FlexBus',
346 'JTAG1': 'JTAG (same as JTAG2, JTAG_SEL=LOW)',
347 'JTAG2': 'JTAG (same as JTAG1, JTAG_SEL=HIGH)',
348 'LCD': '24-pin RGB/TTL LCD',
349 'RG': 'RGMII Ethernet',
350 'MMC': 'eMMC 1/2/4/8 pin',
351 'PWM': 'PWM (pulse-width modulation)',
355 'SPI0': 'SPI (Serial Peripheral Interface) 0',
356 'SPI1': 'SPI (Serial Peripheral Interface) 1',
357 'QSPI': 'Quad SPI (Serial Peripheral Interface) 1',
361 'UARTQ0': 'UART (TX/RX/CTS/RTS) 0',
362 'UARTQ1': 'UART (TX/RX/CTS/RTS) 1',
363 'UART2': 'UART (TX/RX) 2',
364 'UART3': 'UART (TX/RX) 3',
365 'UART4': 'UART (TX/RX) 4',
366 'ULPI1': 'ULPI (USB Low Pin-count) 1',
367 'ULPI2': 'ULPI (USB Low Pin-count) 2',
368 'ULPI3': 'ULPI (USB Low Pin-count) 3',
371 fns
= display_fns(bankspec
, pinouts
, function_names
)
374 # Scenarios below can be spec'd out as either "find first interface"
375 # by name/number e.g. SPI0, or as "find in bank/mux" which must be
376 # spec'd as "BM:Name" where B is bank (A-F), M is Mux (0-3)
377 # EINT and PWM are grouped together, specially, but may still be spec'd
378 # using "BM:Name". Pins are removed in-order as listed from
379 # lists (interfaces, EINTs, PWMs) from available pins.
381 # EOMA68 scenario. not totally complete (some GPIO needed for PMIC)
382 # One interface to be connected to the MCU to give RTC and boot/dbg
383 # VBUS_EN, OTG_ID etc. are all not included below, there is plenty
386 eoma68
= ['B1:LCD/22', 'ULPI1/8', 'ULPI2', 'MMC', 'SD0', 'UART3',
387 'TWI3', 'SPI1', 'E2:SD1', ]
388 eoma68_eint
= ['EINT_16', 'EINT_17', 'EINT_18', 'EINT_19']
389 eoma68_pwm
= ['D1:PWM_2']
391 'MMC': 'internal (on Card)',
392 'SD0': 'user-facing: internal (on Card), multiplexed with JTAG1\n'
393 'and UART2, for debug purposes',
394 'TWI3': 'EOMA68-compliance: must be entirely free of devices.\n'
395 'Address 0x51 used (externally) for EOMA68 EEPROM Id',
396 'E2:SD1': 'EOMA68-compliance',
397 'SPI1': 'EOMA68-compliance',
398 'UART3': 'EOMA68-compliance',
399 'B1:LCD/22': 'EOMA68-compliance, 18-bit RGB/TTL LCD',
400 'ULPI1/8': 'user-facing: internal (on Card), USB-OTG ULPI PHY',
401 'ULPI2': 'EOMA68-compliance: dual USB2 Host ULPI PHY'
404 unused_pins
= check_functions("EOMA68", bankspec
, fns
, pinouts
,
405 eoma68
, eoma68_eint
, eoma68_pwm
,
408 # Industrial scenario. not totally complete (some GPIO needed for PMIC)
409 # One interface to be connected to the MCU to give RTC, boot/dbg,
410 # option of CAN Bus, ADC, DAC, OWB, more GPIO, more PWM etc. etc.
411 # Focus is on getting as many UARTs, SPIs and TWIs as possible.
412 # OTG_ID (if to be used) would require dropping some functions in order
413 # to free up GPIO. LCD could be reduced to 15-bit (freeing 3).
414 # MMC could be reduced to 4-bit-wide, used as SD/MMC (freeing 4).
415 # QSPI could be used in 1-bit (MOSI/MISO) mode (freeing up 2 more).
417 industrial
= ['D1:FB/17', 'E1:FB/8', 'B1:LCD/22', 'ULPI1/8', 'ULPI2/8',
419 'JTAG1', 'A3:UART2', 'E2:UART1', 'C3:UART0',
420 'F2:TWI1', 'D2:TWI2', 'D2:TWI3', 'SPI1', 'QSPI', 'F2:SD2']
421 industrial_pwm
= ['F2:PWM_0', 'F2:PWM_1', 'D1:PWM_2']
422 industrial_eint
= ['EINT_24', 'EINT_25', 'EINT_26', 'EINT_27',
423 'EINT_20', 'EINT_21', 'EINT_22', 'EINT_23']
425 unused_pins
= check_functions("Industrial", bankspec
, fns
, pinouts
,
426 industrial
, industrial_eint
, industrial_pwm
)
428 # Industrial scenario, using an SPI-based LCD instead of RGB/TTL
429 # not totally complete (some GPIO needed for PMIC)
430 # One interface to be connected to the MCU to give RTC, boot/dbg,
431 # option of CAN Bus, ADC, DAC, OWB, more GPIO, more PWM etc. etc.
432 # Focus is on getting as many UARTs, SPIs and TWIs as possible,
433 # leaving some GPIO spare from the RGB/TTL bank (SPI CS#)
434 # also possibility of freeing up FlexBus CS# with a little reorg.
436 industrial
= ['D1:FB/17', 'E1:FB/8', 'B2:SPI0', 'ULPI1/8', 'ULPI2/8',
439 'A3:UART2', 'E2:UART1', 'C3:UART0', 'B2:UART4', 'B2:UART3',
440 'F2:TWI1', 'D2:TWI2', 'D2:TWI3', 'SPI1', 'QSPI', 'F2:SD2']
441 industrial_pwm
= ['F2:PWM_0', 'F2:PWM_1', 'D1:PWM_2']
442 industrial_eint
= ['EINT_24', 'EINT_25', 'EINT_26', 'EINT_27',
443 'EINT_20', 'EINT_21', 'EINT_22', 'EINT_23']
445 'B2:SPI0': 'Used for 320x240 or 640x480 etc. SPI-based LCD.\n'
446 'Frees up large numbers of GPIO from RGB/TTL bank'
448 unused_pins
= check_functions("Industrial with SPI-LCD",
449 bankspec
, fns
, pinouts
,
450 industrial
, industrial_eint
, industrial_pwm
,
453 # Smartphone / Tablet - basically the same thing
455 tablet
= ['B1:LCD/22', 'ULPI1/8', 'ULPI2/8',
457 'F1:IIS', # I2C Audio
459 'E2:UART1', # WIFI/BT
464 'D3:TWI1', 'D2:TWI3', 'SPI1', 'QSPI']
465 tablet_pwm
= ['F2:PWM_0', # LCD_BACKLIGHT
466 'F2:PWM_1', 'D1:PWM_2']
467 tablet_eint
= ['EINT_24', # BT_HOST_WAKE
468 'EINT_25', # WIFI_HOST_WAKE
470 'EINT_27', # GSENSOR_INT
472 'EINT_7', # TILT_SENSOR_INT
473 'EINT_22', # COMPASS_INT
475 'EINT_16', # PMIC_INT
476 'EINT_17', # PWR_BUTTON_INT
482 'RGB/TTL LCD, 800x480 or use SN75LVDS83b for up to 1440x900',
483 'MMC': 'eMMC: main internal storage',
484 'ULPI1/8': 'USB-OTG, connect to ULPI OTG PHY (for charging)\n'
485 'as well as USB Host or USB Device',
486 'ULPI2/8': 'USB2 Host, connect to ULPI PHY w/and 4-port USB2 Hub\n'
487 'for example GL850G or FE1.1. '
488 'Connects to 2/3/4G/LTE Modem, 2x USB-Camera (VC0345)',
489 'SD0': 'internal, multiplexed with JTAG1\n'
490 'and UART2, for debug purposes',
491 'F1:IIS': 'I2C Audio, connect to AC97 Audio IC',
492 'TWI2': 'Connect to AC97 Audio IC',
493 'E2:UART1': 'Connect to BT on AP6234/AP6335',
494 'E2:SD1': 'Connect to WIFI on AP6234/AP6335',
495 'QSPI': 'Boot Storage (connection to companion / debug / boot MCU)\n'
496 'Only actually needs MISO/MOSI, bootstrap loader v. small\n'
497 'Bootstrap loader checks eMMC, USB-OTG, SD/MMC, SPI, etc.',
498 'SPI1': 'Spare? SPI, connect to higher-speed sensor?',
499 'D2:UART3': 'Spare? UART (or 2 extra GPIO / EINT)',
500 'D2:UART4': 'Spare? UART (or 2 extra GPIO)',
501 'D3:TWI1': 'Connect to PMIC',
502 'D2:TWI3': 'Connect to sensors (Trackpad? CTP GSENSOR TILT COMPASS)',
503 'GPIO': '9 spare GPIO pins for miscellaneous functions:\n'
504 'wake-up of BT, WIFI, LCD power, sensor power etc.\n'
505 '4 GPIO may be needed for PWM Audio from Modem.\n'
506 'LED lights for camera will be needed.\n'
507 'Some phones may have clam-shell or lid switch.\n'
508 'Some Modems have spare GPIO (over AT commandset).\n'
509 'AXP209 PMIC has 4x GPIO, accessible over I2C.\n'
510 'SPI1, UART3-4, PWM1-2 may also be spare (10 extra GPIO).\n'
511 'If more needed, companion MCU may be used (48+ pin variant)\n'
512 'which also includes ADC, DAC, more PWM etc.',
513 'F2:PWM_0': 'LCD Backlight',
514 'F2:PWM_1': 'Spare? PWM (or extra GPIO / EINT)',
515 'D1:PWM_2': 'Spare? PWM (or extra GPIO / EINT)',
516 'EINT_24': 'BT_HOST_WAKE',
517 'EINT_25': 'WIFI_HOST_WAKE',
518 'EINT_26': 'CTP_INT',
519 'EINT_27': 'GSENSOR_INT',
521 'EINT_7': 'TILT_SENSOR_INT',
522 'EINT_22': 'COMPASS_INT',
523 'EINT_23': 'MCU_INT',
524 'EINT_16': 'PMIC_INT',
525 'EINT_17': 'PWR_BUTTON_INT',
529 unused_pins
= check_functions("Smartphone / Tablet",
530 bankspec
, fns
, pinouts
,
531 tablet
, tablet_eint
, tablet_pwm
,
536 laptop
= ['D1:FB/17', 'E1:FB/8', 'B1:LCD/22', 'ULPI1/8', 'ULPI2/8',
538 'F1:IIS', # I2C Audio
540 'E2:UART1', # WIFI/BT
543 laptop_pwm
= ['F2:PWM_0', # LCD_BACKLIGHT
545 laptop_eint
= ['EINT_20', # BT_HOST_WAKE
546 'EINT_21', # WIFI_HOST_WAKE
548 'EINT_31', # PMIC_INT
551 'D1:FB/17': 'FlexBus. Connect to DM9000 or AX99896A MCU-style Bus\n'
552 '10/100 Ethernet PHY.',
553 'E1:FB/8': 'FlexBus bus bits 8-15, needed to make a 16-bit bus width',
554 'B1:LCD/22': 'RGB/TTL LCD, use SN75LVDS83b for '
555 'LVDS or SSD2828 for MIPI,\n'
556 'or a Chrontel CH7039, CH7038, CH7034 or CH7018 for dual\n'
557 'display output (eDP/LVDS and HDMI/VGA) '
559 'MMC': 'eMMC: main internal storage',
560 'ULPI1/8': 'USB-OTG, connect to ULPI OTG PHY (for charging)\n'
561 'as well as USB Host or USB Device',
562 'ULPI2/8': 'USB2 Host, connect to ULPI PHY w/and 4-port USB2 Hub\n'
563 'for example GL850G or FE1.1. '
564 'Connects to USB-Camera (VC0345 and 3x external USB Ports)',
565 'SD0': 'internal, multiplexed with JTAG1\n'
566 'and UART2, for debug purposes',
567 'F1:IIS': 'I2C Audio, connect to AC97 Audio IC',
568 'TWI2': 'Connect to AC97 Audio IC',
569 'E2:UART1': 'Connect to BT on AP6234/AP6335',
570 'E2:SD2': 'Connect to WIFI on AP6234/AP6335',
571 'QSPI': 'Boot Storage (connection to companion / debug / boot MCU)\n'
572 'Only actually needs MISO/MOSI, bootstrap loader v. small\n'
573 'Bootstrap loader checks eMMC, USB-OTG, SD/MMC, SPI, etc.\n'
574 'MCU implements keyboard-matrix for keyboard (also trackpad?)',
575 'D2:TWI3': 'Connect to PMIC',
576 'GPIO': 'Plenty of spare GPIO pins for miscellaneous functions\n'
577 'MCU EINT-capable GPIO may be used to generate extra EINTs\n'
578 'on the single MCU_INT line, if really needed',
579 'F2:PWM_0': 'LCD Backlight',
580 'EINT_20': 'BT_HOST_WAKE',
581 'EINT_21': 'WIFI_HOST_WAKE',
583 'EINT_31': 'PMIC_INT',
585 unused_pins
= check_functions("Laptop / Netbook",
586 bankspec
, fns
, pinouts
,
587 laptop
, laptop_eint
, laptop_pwm
,
592 iot
= ['B1:LCD', 'ULPI2/8', 'ULPI1/8',
594 'F1:IIS', # I2C Audio
596 'C3:UART0', # HSPA UART
597 'E2:UART1', # BT UART
598 'C2:SPI1', # HSPI SPI
600 'D3:TWI1', # sensors CTP,
602 iot_pwm
= ['F2:PWM_0', # LCD_BACKLIGHT
604 iot_eint
= ['EINT_5', # 'HSPA_MST_RDY',
605 'EINT_6', # 'HSPA_SL_RDY',
606 'EINT_7', # 'HSPA_RING',
607 'EINT_8', # 'WL_PMU_EN',
608 'EINT_9', # HSPA_GPIO1
610 'EINT_11', # 'BT_PCM_CLK',
611 'EINT_12', # 'BT_PCM_DIN',
612 'EINT_13', # 'BT_PCM_SYNC',
613 'EINT_14', # 'BT_PCM_DOUT',
614 'EINT_16', # 'USB_DRVVBUS',
615 'EINT_17', # 'USB_VBUSDET',
616 'EINT_21', # 'USB_ID',
617 'EINT_30', # 'CTP_INT',
618 'EINT_31', # 'SD_DET#',
622 'RGB/TTL LCD, use SN75LVDS83b for LVDS or SSD2828 for MIPI,\n'
623 'or a Chrontel CH7039, CH7038, CH7034 or CH7018 for dual\n'
624 'display output (eDP/LVDS and HDMI/VGA) '
626 'MMC': 'eMMC: main internal storage',
627 'F1:IIS': 'I2C Audio, connect to AC97 Audio IC',
628 'ULPI2/8': 'USB-OTG, connect to ULPI OTG PHY (for charging)\n'
629 'as well as USB Host or USB Device',
630 'ULPI1/8': 'USB2 Host, connect to ULPI PHY',
631 'SD0': 'internal, multiplexed with JTAG1\n'
632 'and UART2, for debug purposes',
633 'C3:UART0': 'Connect to HSPA UART',
634 'E2:UART1': 'Connect to BT UART',
635 'E2:SD2': 'Connect to WIFI',
636 'C2:SPI1': 'HSPA SPI',
637 'QSPI': 'Boot Storage (connection to companion / debug / boot MCU)\n'
638 'Only actually needs MISO/MOSI, bootstrap loader v. small\n'
639 'Bootstrap loader checks eMMC, USB-OTG, SD/MMC, SPI, etc.\n'
640 'MCU implements keyboard-matrix for keyboard (also trackpad?)',
641 'D2:TWI3': 'Connect to PMIC',
642 'D3:TWI1': 'Connect to sensors CTP',
643 'GPIO': 'Plenty of spare GPIO pins for miscellaneous functions\n'
644 'MCU EINT-capable GPIO may be used to generate extra EINTs\n'
645 'on the single MCU_INT line, if really needed',
646 'F2:PWM_0': 'LCD Backlight',
647 'GPIOD_D4': 'WL_WAKE_AP',
648 'GPIOD_D5': 'BT_WAKE_AP',
649 'GPIOD_D6': 'AP_WAKE_BT',
650 'GPIOD_D7': 'AP_CK32KO',
651 'GPIOD_D8': 'HSPA_PWRON',
652 'GPIOD_D9': 'BT_RST_N',
653 'GPIOE_E5': 'HSPA_ON_OFF',
654 'GPIOD_D2': 'HSPA_SHUTDOWN',
655 'GPIOD_D3': 'CTP_RST',
656 'GPIOD_D12': 'LCD_RDN',
657 'GPIOD_D17': 'LCD_WRN',
658 'GPIOD_D18': 'LCD_RS',
659 'GPIOD_D21': 'LCD_CSN',
661 'EINT_5': 'HSPA_MST_RDY',
662 'EINT_6': 'HSPA_SL_RDY',
663 'EINT_7': 'HSPA_RING',
664 'EINT_8': 'WL_PMU_EN',
665 'EINT_9': 'HSPA_GPIO1',
667 'EINT_11': 'BT_PCM_CLK',
668 'EINT_12': 'BT_PCM_DIN',
669 'EINT_13': 'BT_PCM_SYNC',
670 'EINT_14': 'BT_PCM_DOUT',
672 'EINT_16': 'USB_DRVVBUS',
673 'EINT_17': 'USB_VBUSDET',
675 'EINT_30': 'CTP_INT',
676 'EINT_31': 'SD_DETN',
678 unused_pins
= check_functions("IoT",
679 bankspec
, fns
, pinouts
,
680 iot
, iot_eint
, iot_pwm
,
683 print ("""# Reference Datasheets
685 datasheets and pinout links
686 * <http://datasheets.chipdb.org/AMD/8018x/80186/amd-80186.pdf>
687 * <http://hands.com/~lkcl/eoma/shenzen/frida/FRD144A2701.pdf>
688 * <http://pinouts.ru/Memory/sdcard_pinout.shtml>
689 * p8 <http://www.onfi.org/~/media/onfi/specs/onfi_2_0_gold.pdf?la=en>
690 * <https://www.heyrick.co.uk/blog/files/datasheets/dm9000aep.pdf>
691 * <http://cache.freescale.com/files/microcontrollers/doc/app_note/AN4393.pdf>
692 * <https://www.nxp.com/docs/en/data-sheet/MCF54418.pdf>
693 * ULPI OTG PHY, ST <http://www.st.com/en/interfaces-and-transceivers/stulpi01a.html>
694 * ULPI OTG PHY, TI TUSB1210 <http://ti.com/product/TUSB1210/>
697 return pinouts
, bankspec
, pinbanks
, fixedpins