Hans de Goede
b33ecca87d
phy-sun4i-usb: Add support for peripheral-only mode
...
Use the new of_usb_get_dr_mode_by_phy() function to get the dr_mode
from the musb controller node instead of assuming that having an id_det
gpio means otg mode, and not having one means host mode.
Implement peripheral-only mode by adding a sun4i_usb_phy0_get_id_det
helper which looks at the dr_mode, always registering our extcon and
always monitoring vbus.
If dr_mode is not specified in the dts, do not register phy0 as we then
do not know how to treat it. This is actually a good thing as this means
we will not be registering phy0 on devices where the otg controller is
not enabled in the devicetree.
Signed-off-by: Hans de Goede <hdegoede@redhat.com >
Acked-by: Kishon Vijay Abraham I <kishon@ti.com >
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com >
2016-08-12 14:59:10 +05:30
..
2016-08-05 23:29:05 -04:00
2016-07-27 14:03:52 -07:00
2016-07-19 11:30:26 -07:00
2016-08-05 23:26:16 -04:00
2016-07-25 11:09:19 -07:00
2016-08-07 14:41:02 -06:00
2016-07-18 10:13:02 +02:00
2016-08-01 18:36:01 -04:00
2016-07-12 08:24:50 -07:00
2016-08-05 09:48:22 -04:00
2016-08-02 17:31:41 -04:00
2016-08-01 18:36:01 -04:00
2016-08-05 23:26:16 -04:00
2016-07-30 21:01:36 -07:00
2016-08-01 14:28:42 -04:00
2016-07-28 15:45:17 -07:00
2016-07-18 14:10:49 +02:00
2016-07-27 13:40:47 -07:00
2016-08-04 08:50:07 -04:00
2016-08-04 08:50:07 -04:00
2016-07-26 19:16:01 -07:00
2016-08-07 16:35:08 -07:00
2016-07-28 10:49:23 +02:00
2016-08-01 16:49:13 -04:00
2016-07-29 13:55:30 -07:00
2016-07-30 21:01:36 -07:00
2016-07-29 13:29:06 -07:00
2016-07-30 12:56:26 -07:00
2016-07-14 12:05:29 +09:00
2016-08-04 20:26:31 -04:00
2016-08-05 23:24:15 -04:00
2016-08-04 08:50:07 -04:00
2016-08-04 08:50:07 -04:00
2016-07-30 21:01:36 -07:00
2016-07-20 17:37:01 -06:00
2016-07-30 21:01:36 -07:00
2016-07-28 21:27:31 +05:30
2016-08-07 14:41:02 -06:00
2016-08-04 09:59:37 -04:00
2016-08-02 17:05:11 -04:00
2016-08-02 17:31:41 -04:00
2016-08-01 18:36:01 -04:00
2016-08-06 09:20:13 -04:00
2016-07-31 21:36:58 -04:00
2016-08-04 19:51:49 -04:00
2016-08-06 09:20:13 -04:00
2016-07-20 23:39:36 -07:00
2016-08-05 10:34:13 -04:00
2016-08-07 14:41:02 -06:00
2016-08-02 17:12:29 -04:00
2016-08-05 11:21:36 -07:00
2016-08-04 08:50:07 -04:00
2016-08-04 21:33:58 -04:00
2016-07-29 13:55:30 -07:00
2016-08-12 14:59:10 +05:30
2016-07-28 17:06:51 -07:00
2016-08-06 00:01:33 -04:00
2016-07-27 18:52:54 +02:00
2016-08-01 18:36:01 -04:00
2016-07-23 10:25:54 +09:00
2016-08-06 00:01:33 -04:00
2016-08-02 19:35:38 -04:00
2016-08-06 00:01:33 -04:00
2016-08-04 08:50:07 -04:00
2016-08-05 09:48:22 -04:00
2016-08-02 16:11:27 -04:00
2016-08-05 23:47:27 -04:00
2016-08-01 18:36:01 -04:00
2016-08-01 18:37:45 -04:00
2016-08-07 10:01:14 -04:00
2016-08-07 14:41:02 -06:00
2016-08-04 08:50:07 -04:00
2016-08-05 23:07:43 -04:00
2016-07-19 10:54:45 -06:00
2016-08-06 09:20:13 -04:00
2016-08-04 08:50:07 -04:00
2016-08-06 09:20:13 -04:00
2016-08-02 19:35:40 -04:00
2016-07-27 10:47:43 +02:00
2016-08-04 08:50:07 -04:00
2016-08-06 09:20:13 -04:00