This series adds support for configuring Samsung's s3c2410 and
compatible USB OHCI controller via devicetree.
Tested on FriendlyARM mini2440, based on s3c2440 SoC.
Sergio Prado (2):
dt-bindings: usb: add DT binding for s3c2410 USB OHCI controller
usb: ohci: s3c2410: allow probing from device tree
.../devicetree/bindings/usb/s3c2410-usb.txt | 22 ++++++++++++++++++++++
drivers/usb/host/ohci-s3c2410.c | 8 ++++++++
2 files changed, 30 insertions(+)
create mode 100644 Documentation/devicetree/bindings/usb/s3c2410-usb.txt
--
1.9.1
@@ -0,0 +1,22 @@+Samsung S3C2410 and compatible SoC USB controller++OHCI++Required properties:+ - compatible: should be "samsung,s3c2410-ohci" for USB host controller+ - reg: address and lenght of the controller memory mapped region+ - interrupts: interrupt number for the USB OHCI controller+ - clocks: Should reference the bus and host clocks+ - clock-names: Should contain two strings+ "usb-bus-host" for the USB bus clock+ "usb-host" for the USB host clock++Example:++usb0: ohci at 49000000 {+ compatible = "samsung,s3c2410-ohci";+ reg = <0x49000000 0x100>;+ interrupts = <0 0 26 3>;+ clocks = <&clocks UCLK>, <&clocks HCLK_USBH>;+ clock-names = "usb-bus-host", "usb-host";+};
@@ -0,0 +1,22 @@+Samsung S3C2410 and compatible SoC USB controller++OHCI++Required properties:+ - compatible: should be "samsung,s3c2410-ohci" for USB host controller+ - reg: address and lenght of the controller memory mapped region
s/lenght/length/
Acked-by: Krzysztof Kozlowski <krzk@kernel.org>
Best regards,
Krzysztof
+ - interrupts: interrupt number for the USB OHCI controller
+ - clocks: Should reference the bus and host clocks
+ - clock-names: Should contain two strings
+ "usb-bus-host" for the USB bus clock
+ "usb-host" for the USB host clock
+
+Example:
+
+usb0: ohci at 49000000 {
+ compatible = "samsung,s3c2410-ohci";
+ reg = <0x49000000 0x100>;
+ interrupts = <0 0 26 3>;
+ clocks = <&clocks UCLK>, <&clocks HCLK_USBH>;
+ clock-names = "usb-bus-host", "usb-host";
+};
--
1.9.1
A nit, usually MODULE_DEVICE_TABLE comes right after the table, without
a blank line.
Beside that:
Acked-by: Krzysztof Kozlowski <krzk@kernel.org>
Best regards,
Krzysztof