usb: typec: hd3ss3220: Use OF graph API to get the connector fwnode
authorBiju Das <biju.das.jz@bp.renesas.com>
Sun, 20 Sep 2020 13:49:03 +0000 (14:49 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 Oct 2020 13:28:18 +0000 (15:28 +0200)
commita6806e32e7a41c20c6b288009cb6f30929668327
tree35fd55e3e5986566a55f260ee959852b9667e726
parent1c6e8ee63adbaf02a1e5177610fe9b77bec93d8a
usb: typec: hd3ss3220: Use OF graph API to get the connector fwnode

Some platforms have only super speed data bus connected to this device
and high speed data bus directly connected to the SoC. In such platforms
modelling connector as a child of this device is making it non compliant
with usb connector bindings. By modelling connector node as standalone
device node along with this device and the SoC data bus will make it
compliant with usb connector bindings.
Update the driver to handle this model by using OF graph API to get the
connector fwnode and usb role switch class API to get role switch handle.

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20200920134905.4370-5-biju.das.jz@bp.renesas.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/hd3ss3220.c