usb: misc: usb3503: Support operation with no I2C control
Refactor so that register writes for configuration are only performed if the device has a regmap provided and also register as a platform driver. This allows the driver to be used to manage GPIO based control of the device. Signed-off-by: Mark Brown <broonie@linaro.org> Cc: devicetree@vger.kernel.org Reviewed-by: Dongjin Kim <tobetter@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
e5162d40b9
commit
3f0d1c67fa
2 changed files with 78 additions and 18 deletions
|
@ -2,9 +2,10 @@ SMSC USB3503 High-Speed Hub Controller
|
|||
|
||||
Required properties:
|
||||
- compatible: Should be "smsc,usb3503" or "smsc,usb3503a".
|
||||
- reg: Specifies the i2c slave address, it should be 0x08.
|
||||
|
||||
Optional properties:
|
||||
- reg: Specifies the i2c slave address, it is required and should be 0x08
|
||||
if I2C is used.
|
||||
- connect-gpios: Should specify GPIO for connect.
|
||||
- disabled-ports: Should specify the ports unused.
|
||||
'1' or '2' or '3' are availe for this property to describe the port
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue