scripts/genpinctrl: Add config for USB signals generation

Includes USB, OTG_FS and OTG_HS various signals.
This only concerns signals that are configured using alternate.
Signals requiring analog configuration are left a part for now on.
This could lead to situations where only USB_NOE signals are
available on some SoCs (other signals will require a script update
to be generated).


Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
Erwan Gouriou 2020-10-19 17:43:32 +02:00 committed by Kumar Gala
parent 8895167f75
commit b861dc701d
2 changed files with 18 additions and 7 deletions

View File

@ -129,15 +129,18 @@
match: "^(?:LP)?US?ART\\d+_RX$"
mode: alternate
- name: USB_OTG_FS_DM
match: "^USB_OTG_FS_DM$"
- name: USB_OTG_FS
match: "^USB_OTG_FS_(?:DM)?(?:DP)?(?:SOF)?(?:ID)?(?:VBUS)?$"
mode: alternate
- name: USB_OTG_FS_DP
match: "^USB_OTG_FS_DP$"
- name: USB_OTG_HS
match: "^USB_OTG_HS_(?:DM)?(?:DP)?(?:SOF)?(?:ID)?(?:VBUS)?$"
mode: alternate
- name: USB_OTG_FS_ID
match: "^USB_OTG_FS_ID$"
- name: USB_OTG_HS_ULPI
match: "^USB_OTG_HS_ULPI_(?:DIR)?(?:STP)?(?:NXT)?(?:D\\d+)?$"
mode: alternate
- name: USB
match: "^USB_(?:DM)?(?:DP)?(?:NOE)?$"
mode: alternate
bias: pull-up

View File

@ -136,3 +136,11 @@
- name: UART_RX / USART_RX
match: "^US?ART\\d+_RX$"
mode: input
- name: USB_OTG_FS
match: "^USB_OTG_FS_(?:DM)?(?:DP)?(?:SOF)?(?:ID)?(?:VBUS)?$"
mode: input
- name: USB
match: "^USB_(?:DM)?(?:DP)?$"
mode: input