usb: cdns3-starfive: Add extcon usb gadget state with always connected
authorJaehoon Chung <jh80.chung@samsung.com>
Thu, 21 Dec 2023 08:07:41 +0000 (17:07 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Mon, 19 Feb 2024 00:13:54 +0000 (09:13 +0900)
commit7e96f1653ad39babf34301a9561937c93ec332fb
treeefbdc15195499f15c7bf03843bd61cabc2ae478f
parent852fb37a4e16222d56816726e0b9c4c1bcde30c8
usb: cdns3-starfive: Add extcon usb gadget state with always connected

Add extcon usb gadget state and set usb gadget state as connected.

The cdns3-starfive usb c port in visionfive2 board only has usb
d-/d+ lines and vbus and ground lines are used for power supply.
Because of the H/W limitation, it is not possible to detect usb
c port connected state.

In Tizen, deviced configures usb gadget functions only with the
usb connected state, so, to support usb gadget functionality,
the usb state should be set.

Change-Id: Ib951c105e3e8dfe5d1a2f0b921dabe6a7a8d61bc
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/usb/cdns3/Kconfig
drivers/usb/cdns3/cdns3-starfive.c