* [PATCH 0/2] usb: ohci: s3c2410: add device tree support @ 2016-11-25 14:47 Sergio Prado [not found] ` <1480085249-25014-1-git-send-email-sergio.prado-1e4yhPs3/ABSwrhanM7KvQ@public.gmane.org> 2016-11-25 14:47 ` [PATCH 2/2] usb: ohci: s3c2410: allow probing from device tree Sergio Prado 0 siblings, 2 replies; 6+ messages in thread From: Sergio Prado @ 2016-11-25 14:47 UTC (permalink / raw) To: gregkh, robh+dt, mark.rutland, stern, kgene, krzk, javier, linux-usb, devicetree, linux-kernel, linux-arm-kernel, linux-samsung-soc Cc: Sergio Prado 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 ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <1480085249-25014-1-git-send-email-sergio.prado-1e4yhPs3/ABSwrhanM7KvQ@public.gmane.org>]
* [PATCH 1/2] dt-bindings: usb: add DT binding for s3c2410 USB OHCI controller [not found] ` <1480085249-25014-1-git-send-email-sergio.prado-1e4yhPs3/ABSwrhanM7KvQ@public.gmane.org> @ 2016-11-25 14:47 ` Sergio Prado 2016-11-27 16:32 ` Krzysztof Kozlowski 2016-11-30 21:53 ` Rob Herring 0 siblings, 2 replies; 6+ messages in thread From: Sergio Prado @ 2016-11-25 14:47 UTC (permalink / raw) To: gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r, robh+dt-DgEjT+Ai2ygdnm+yROfE0A, mark.rutland-5wv7dgnIgG8, stern-nwvwT67g6+6dFdvTe/nMLpVzexx5G7lz, kgene-DgEjT+Ai2ygdnm+yROfE0A, krzk-DgEjT+Ai2ygdnm+yROfE0A, javier-JPH+aEBZ4P+UEJcrhfAQsw, linux-usb-u79uwXL29TY76Z2rM5mHXA, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-samsung-soc-u79uwXL29TY76Z2rM5mHXA Cc: Sergio Prado Adds the device tree bindings description for Samsung S3C2410 and compatible USB OHCI controller. Signed-off-by: Sergio Prado <sergio.prado-1e4yhPs3/ABSwrhanM7KvQ@public.gmane.org> --- .../devicetree/bindings/usb/s3c2410-usb.txt | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/s3c2410-usb.txt diff --git a/Documentation/devicetree/bindings/usb/s3c2410-usb.txt b/Documentation/devicetree/bindings/usb/s3c2410-usb.txt new file mode 100644 index 000000000000..e45b38ce2986 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/s3c2410-usb.txt @@ -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@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 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH 1/2] dt-bindings: usb: add DT binding for s3c2410 USB OHCI controller 2016-11-25 14:47 ` [PATCH 1/2] dt-bindings: usb: add DT binding for s3c2410 USB OHCI controller Sergio Prado @ 2016-11-27 16:32 ` Krzysztof Kozlowski 2016-11-30 21:53 ` Rob Herring 1 sibling, 0 replies; 6+ messages in thread From: Krzysztof Kozlowski @ 2016-11-27 16:32 UTC (permalink / raw) To: Sergio Prado Cc: gregkh, robh+dt, mark.rutland, stern, kgene, krzk, javier, linux-usb, devicetree, linux-kernel, linux-arm-kernel, linux-samsung-soc On Fri, Nov 25, 2016 at 12:47:28PM -0200, Sergio Prado wrote: > Adds the device tree bindings description for Samsung S3C2410 and > compatible USB OHCI controller. > > Signed-off-by: Sergio Prado <sergio.prado@e-labworks.com> > --- > .../devicetree/bindings/usb/s3c2410-usb.txt | 22 ++++++++++++++++++++++ > 1 file changed, 22 insertions(+) > create mode 100644 Documentation/devicetree/bindings/usb/s3c2410-usb.txt > > diff --git a/Documentation/devicetree/bindings/usb/s3c2410-usb.txt b/Documentation/devicetree/bindings/usb/s3c2410-usb.txt > new file mode 100644 > index 000000000000..e45b38ce2986 > --- /dev/null > +++ b/Documentation/devicetree/bindings/usb/s3c2410-usb.txt > @@ -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@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 > ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 1/2] dt-bindings: usb: add DT binding for s3c2410 USB OHCI controller 2016-11-25 14:47 ` [PATCH 1/2] dt-bindings: usb: add DT binding for s3c2410 USB OHCI controller Sergio Prado 2016-11-27 16:32 ` Krzysztof Kozlowski @ 2016-11-30 21:53 ` Rob Herring 1 sibling, 0 replies; 6+ messages in thread From: Rob Herring @ 2016-11-30 21:53 UTC (permalink / raw) To: Sergio Prado Cc: gregkh, mark.rutland, stern, kgene, krzk, javier, linux-usb, devicetree, linux-kernel, linux-arm-kernel, linux-samsung-soc On Fri, Nov 25, 2016 at 12:47:28PM -0200, Sergio Prado wrote: > Adds the device tree bindings description for Samsung S3C2410 and > compatible USB OHCI controller. > > Signed-off-by: Sergio Prado <sergio.prado@e-labworks.com> > --- > .../devicetree/bindings/usb/s3c2410-usb.txt | 22 ++++++++++++++++++++++ > 1 file changed, 22 insertions(+) > create mode 100644 Documentation/devicetree/bindings/usb/s3c2410-usb.txt Acked-by: Rob Herring <robh@kernel.org> ^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 2/2] usb: ohci: s3c2410: allow probing from device tree 2016-11-25 14:47 [PATCH 0/2] usb: ohci: s3c2410: add device tree support Sergio Prado [not found] ` <1480085249-25014-1-git-send-email-sergio.prado-1e4yhPs3/ABSwrhanM7KvQ@public.gmane.org> @ 2016-11-25 14:47 ` Sergio Prado 2016-11-27 16:36 ` Krzysztof Kozlowski 1 sibling, 1 reply; 6+ messages in thread From: Sergio Prado @ 2016-11-25 14:47 UTC (permalink / raw) To: gregkh, robh+dt, mark.rutland, stern, kgene, krzk, javier, linux-usb, devicetree, linux-kernel, linux-arm-kernel, linux-samsung-soc Cc: Sergio Prado Allows configuring Samsung's s3c2410 USB OHCI controller using a devicetree. Signed-off-by: Sergio Prado <sergio.prado@e-labworks.com> --- drivers/usb/host/ohci-s3c2410.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/usb/host/ohci-s3c2410.c b/drivers/usb/host/ohci-s3c2410.c index 7a1919ca543a..d8e03a801f2e 100644 --- a/drivers/usb/host/ohci-s3c2410.c +++ b/drivers/usb/host/ohci-s3c2410.c @@ -457,6 +457,13 @@ static int ohci_hcd_s3c2410_drv_resume(struct device *dev) .resume = ohci_hcd_s3c2410_drv_resume, }; +static const struct of_device_id ohci_hcd_s3c2410_dt_ids[] = { + { .compatible = "samsung,s3c2410-ohci" }, + { /* sentinel */ } +}; + +MODULE_DEVICE_TABLE(of, ohci_hcd_s3c2410_dt_ids); + static struct platform_driver ohci_hcd_s3c2410_driver = { .probe = ohci_hcd_s3c2410_drv_probe, .remove = ohci_hcd_s3c2410_drv_remove, @@ -464,6 +471,7 @@ static int ohci_hcd_s3c2410_drv_resume(struct device *dev) .driver = { .name = "s3c2410-ohci", .pm = &ohci_hcd_s3c2410_pm_ops, + .of_match_table = ohci_hcd_s3c2410_dt_ids, }, }; -- 1.9.1 ^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH 2/2] usb: ohci: s3c2410: allow probing from device tree 2016-11-25 14:47 ` [PATCH 2/2] usb: ohci: s3c2410: allow probing from device tree Sergio Prado @ 2016-11-27 16:36 ` Krzysztof Kozlowski 0 siblings, 0 replies; 6+ messages in thread From: Krzysztof Kozlowski @ 2016-11-27 16:36 UTC (permalink / raw) To: Sergio Prado Cc: mark.rutland, devicetree, linux-samsung-soc, gregkh, linux-usb, linux-kernel, krzk, javier, robh+dt, stern, kgene, linux-arm-kernel On Fri, Nov 25, 2016 at 12:47:29PM -0200, Sergio Prado wrote: > Allows configuring Samsung's s3c2410 USB OHCI controller using a > devicetree. > > Signed-off-by: Sergio Prado <sergio.prado@e-labworks.com> > --- > drivers/usb/host/ohci-s3c2410.c | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/drivers/usb/host/ohci-s3c2410.c b/drivers/usb/host/ohci-s3c2410.c > index 7a1919ca543a..d8e03a801f2e 100644 > --- a/drivers/usb/host/ohci-s3c2410.c > +++ b/drivers/usb/host/ohci-s3c2410.c > @@ -457,6 +457,13 @@ static int ohci_hcd_s3c2410_drv_resume(struct device *dev) > .resume = ohci_hcd_s3c2410_drv_resume, > }; > > +static const struct of_device_id ohci_hcd_s3c2410_dt_ids[] = { > + { .compatible = "samsung,s3c2410-ohci" }, > + { /* sentinel */ } > +}; > + 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 > +MODULE_DEVICE_TABLE(of, ohci_hcd_s3c2410_dt_ids); > + > static struct platform_driver ohci_hcd_s3c2410_driver = { > .probe = ohci_hcd_s3c2410_drv_probe, > .remove = ohci_hcd_s3c2410_drv_remove, > @@ -464,6 +471,7 @@ static int ohci_hcd_s3c2410_drv_resume(struct device *dev) > .driver = { > .name = "s3c2410-ohci", > .pm = &ohci_hcd_s3c2410_pm_ops, > + .of_match_table = ohci_hcd_s3c2410_dt_ids, > }, > }; > > -- > 1.9.1 > ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2016-11-30 21:53 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2016-11-25 14:47 [PATCH 0/2] usb: ohci: s3c2410: add device tree support Sergio Prado [not found] ` <1480085249-25014-1-git-send-email-sergio.prado-1e4yhPs3/ABSwrhanM7KvQ@public.gmane.org> 2016-11-25 14:47 ` [PATCH 1/2] dt-bindings: usb: add DT binding for s3c2410 USB OHCI controller Sergio Prado 2016-11-27 16:32 ` Krzysztof Kozlowski 2016-11-30 21:53 ` Rob Herring 2016-11-25 14:47 ` [PATCH 2/2] usb: ohci: s3c2410: allow probing from device tree Sergio Prado 2016-11-27 16:36 ` Krzysztof Kozlowski
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).