* [PATCH 1/4] usb: chipidea: msm: Add device tree binding information [not found] ` <1384176937-1658-1-git-send-email-iivanov-NEYub+7Iv8PQT0dZR+AlfA@public.gmane.org> @ 2013-11-11 13:35 ` Ivan T. Ivanov 2013-12-04 5:40 ` Peter Chen 2013-11-11 13:35 ` [PATCH 2/4] usb: chipidea: msm: Add device tree support Ivan T. Ivanov 1 sibling, 1 reply; 5+ messages in thread From: Ivan T. Ivanov @ 2013-11-11 13:35 UTC (permalink / raw) To: alexander.shishkin-VuQAYsv1563Yd54FQh9/CA Cc: gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r, rob.herring-bsGFqQB8/DxBDgjK7y7TUQ, pawel.moll-5wv7dgnIgG8, mark.rutland-5wv7dgnIgG8, swarren-3lzwWm7+Weoh9ZMKESR00Q, ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg, davidb-sgV2jX0FEOL9JmXXK+q4OQ, linux-usb-u79uwXL29TY76Z2rM5mHXA, linux-arm-msm-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA, Ivan T. Ivanov, devicetree-u79uwXL29TY76Z2rM5mHXA From: "Ivan T. Ivanov" <iivanov-NEYub+7Iv8PQT0dZR+AlfA@public.gmane.org> Signed-off-by: Ivan T. Ivanov <iivanov-NEYub+7Iv8PQT0dZR+AlfA@public.gmane.org> Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org --- .../devicetree/bindings/usb/msm-hsusb.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/msm-hsusb.txt b/Documentation/devicetree/bindings/usb/msm-hsusb.txt index 5ea26c6..0a85eba 100644 --- a/Documentation/devicetree/bindings/usb/msm-hsusb.txt +++ b/Documentation/devicetree/bindings/usb/msm-hsusb.txt @@ -15,3 +15,19 @@ Example EHCI controller device node: usb-phy = <&usb_otg>; }; +CI13xxx (Chipidea) USB controllers + +Required properties: +- compatible: should contain "qcom,ci-hdrc" +- reg: offset and length of the register set in the memory map +- interrupts: interrupt-specifier for the controller interrupt. +- usb-phy: phandle for the PHY device +- dr_mode: Sould be "peripheral" + + gadget@f9a55000 { + compatible = "qcom,ci-hdrc"; + reg = <0xf9a55000 0x400>; + dr_mode = "peripheral"; + interrupts = <0 134 0>; + usb-phy = <&usb_otg>; + }; \ No newline at end of file -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" 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] 5+ messages in thread
* Re: [PATCH 1/4] usb: chipidea: msm: Add device tree binding information 2013-11-11 13:35 ` [PATCH 1/4] usb: chipidea: msm: Add device tree binding information Ivan T. Ivanov @ 2013-12-04 5:40 ` Peter Chen 2013-12-04 8:33 ` Ivan T. Ivanov 0 siblings, 1 reply; 5+ messages in thread From: Peter Chen @ 2013-12-04 5:40 UTC (permalink / raw) To: Ivan T. Ivanov Cc: alexander.shishkin, gregkh, rob.herring, pawel.moll, mark.rutland, swarren, ijc+devicetree, davidb, linux-usb, linux-arm-msm, linux-kernel, devicetree On Mon, Nov 11, 2013 at 03:35:34PM +0200, Ivan T. Ivanov wrote: > From: "Ivan T. Ivanov" <iivanov@mm-sol.com> > Please add something in commit log > Signed-off-by: Ivan T. Ivanov <iivanov@mm-sol.com> > Cc: devicetree@vger.kernel.org > --- > .../devicetree/bindings/usb/msm-hsusb.txt | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) > > diff --git a/Documentation/devicetree/bindings/usb/msm-hsusb.txt b/Documentation/devicetree/bindings/usb/msm-hsusb.txt > index 5ea26c6..0a85eba 100644 > --- a/Documentation/devicetree/bindings/usb/msm-hsusb.txt > +++ b/Documentation/devicetree/bindings/usb/msm-hsusb.txt > @@ -15,3 +15,19 @@ Example EHCI controller device node: > usb-phy = <&usb_otg>; > }; > > +CI13xxx (Chipidea) USB controllers > + We have already renamed ci13xxx to ci_hdrc. > +Required properties: > +- compatible: should contain "qcom,ci-hdrc" > +- reg: offset and length of the register set in the memory map > +- interrupts: interrupt-specifier for the controller interrupt. > +- usb-phy: phandle for the PHY device > +- dr_mode: Sould be "peripheral" > + Please keep alignment for "reg" Peter > + gadget@f9a55000 { > + compatible = "qcom,ci-hdrc"; > + reg = <0xf9a55000 0x400>; > + dr_mode = "peripheral"; > + interrupts = <0 134 0>; > + usb-phy = <&usb_otg>; > + }; > \ No newline at end of file > -- > 1.7.9.5 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-usb" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- Best Regards, Peter Chen ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/4] usb: chipidea: msm: Add device tree binding information 2013-12-04 5:40 ` Peter Chen @ 2013-12-04 8:33 ` Ivan T. Ivanov 2013-12-04 13:13 ` Peter Chen 0 siblings, 1 reply; 5+ messages in thread From: Ivan T. Ivanov @ 2013-12-04 8:33 UTC (permalink / raw) To: Peter Chen Cc: alexander.shishkin, gregkh, rob.herring, pawel.moll, mark.rutland, swarren, ijc+devicetree, davidb, linux-usb, linux-arm-msm, linux-kernel, devicetree Hi Peter, Thank you for reviewing this patch. On Wed, 2013-12-04 at 13:40 +0800, Peter Chen wrote: > On Mon, Nov 11, 2013 at 03:35:34PM +0200, Ivan T. Ivanov wrote: > > From: "Ivan T. Ivanov" <iivanov@mm-sol.com> > > > > Please add something in commit log > > > Signed-off-by: Ivan T. Ivanov <iivanov@mm-sol.com> > > Cc: devicetree@vger.kernel.org > > --- > > .../devicetree/bindings/usb/msm-hsusb.txt | 16 ++++++++++++++++ > > 1 file changed, 16 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/usb/msm-hsusb.txt b/Documentation/devicetree/bindings/usb/msm-hsusb.txt > > index 5ea26c6..0a85eba 100644 > > --- a/Documentation/devicetree/bindings/usb/msm-hsusb.txt > > +++ b/Documentation/devicetree/bindings/usb/msm-hsusb.txt > > @@ -15,3 +15,19 @@ Example EHCI controller device node: > > usb-phy = <&usb_otg>; > > }; > > > > +CI13xxx (Chipidea) USB controllers > > + > > We have already renamed ci13xxx to ci_hdrc. Yes, but the chip is still CI13XXX. Freescale documentations is also referring to actual chip family. > > > +Required properties: > > +- compatible: should contain "qcom,ci-hdrc" > > +- reg: offset and length of the register set in the memory map > > +- interrupts: interrupt-specifier for the controller interrupt. > > +- usb-phy: phandle for the PHY device > > +- dr_mode: Sould be "peripheral" > > + > > Please keep alignment for "reg" > It looks aligned in editor with smart-tab support. Regards, Ivan > Peter > > > + gadget@f9a55000 { > > + compatible = "qcom,ci-hdrc"; > > + reg = <0xf9a55000 0x400>; > > + dr_mode = "peripheral"; > > + interrupts = <0 134 0>; > > + usb-phy = <&usb_otg>; > > + }; > > \ No newline at end of file > > -- > > 1.7.9.5 > > > > -- > > To unsubscribe from this list: send the line "unsubscribe linux-usb" in > > the body of a message to majordomo@vger.kernel.org > > More majordomo info at http://vger.kernel.org/majordomo-info.html > > > ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/4] usb: chipidea: msm: Add device tree binding information 2013-12-04 8:33 ` Ivan T. Ivanov @ 2013-12-04 13:13 ` Peter Chen 0 siblings, 0 replies; 5+ messages in thread From: Peter Chen @ 2013-12-04 13:13 UTC (permalink / raw) To: Ivan T. Ivanov Cc: alexander.shishkin, gregkh, rob.herring, pawel.moll, mark.rutland, swarren, ijc+devicetree, davidb, linux-usb, linux-arm-msm, linux-kernel, devicetree On Wed, Dec 04, 2013 at 10:33:57AM +0200, Ivan T. Ivanov wrote: > Hi Peter, > > Thank you for reviewing this patch. > > On Wed, 2013-12-04 at 13:40 +0800, Peter Chen wrote: > > On Mon, Nov 11, 2013 at 03:35:34PM +0200, Ivan T. Ivanov wrote: > > > From: "Ivan T. Ivanov" <iivanov@mm-sol.com> > > > > > > > Please add something in commit log > > > > > Signed-off-by: Ivan T. Ivanov <iivanov@mm-sol.com> > > > Cc: devicetree@vger.kernel.org > > > --- > > > .../devicetree/bindings/usb/msm-hsusb.txt | 16 ++++++++++++++++ > > > 1 file changed, 16 insertions(+) > > > > > > diff --git a/Documentation/devicetree/bindings/usb/msm-hsusb.txt b/Documentation/devicetree/bindings/usb/msm-hsusb.txt > > > index 5ea26c6..0a85eba 100644 > > > --- a/Documentation/devicetree/bindings/usb/msm-hsusb.txt > > > +++ b/Documentation/devicetree/bindings/usb/msm-hsusb.txt > > > @@ -15,3 +15,19 @@ Example EHCI controller device node: > > > usb-phy = <&usb_otg>; > > > }; > > > > > > +CI13xxx (Chipidea) USB controllers > > > + > > > > We have already renamed ci13xxx to ci_hdrc. > > Yes, but the chip is still CI13XXX. Freescale documentations is also > referring to actual chip family. OK, let's keep IP reference at doc. I will change the Freescale doc name from ci13xxx-imx.txt to ci-hdrc-imx.txt > > > > > > +Required properties: > > > +- compatible: should contain "qcom,ci-hdrc" > > > +- reg: offset and length of the register set in the memory map > > > +- interrupts: interrupt-specifier for the controller interrupt. > > > +- usb-phy: phandle for the PHY device > > > +- dr_mode: Sould be "peripheral" > > > + > > > > Please keep alignment for "reg" > > > > It looks aligned in editor with smart-tab support. > OK, let's keep it -- Best Regards, Peter Chen ^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 2/4] usb: chipidea: msm: Add device tree support [not found] ` <1384176937-1658-1-git-send-email-iivanov-NEYub+7Iv8PQT0dZR+AlfA@public.gmane.org> 2013-11-11 13:35 ` [PATCH 1/4] usb: chipidea: msm: Add device tree binding information Ivan T. Ivanov @ 2013-11-11 13:35 ` Ivan T. Ivanov 1 sibling, 0 replies; 5+ messages in thread From: Ivan T. Ivanov @ 2013-11-11 13:35 UTC (permalink / raw) To: alexander.shishkin-VuQAYsv1563Yd54FQh9/CA Cc: gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r, rob.herring-bsGFqQB8/DxBDgjK7y7TUQ, pawel.moll-5wv7dgnIgG8, mark.rutland-5wv7dgnIgG8, swarren-3lzwWm7+Weoh9ZMKESR00Q, ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg, davidb-sgV2jX0FEOL9JmXXK+q4OQ, linux-usb-u79uwXL29TY76Z2rM5mHXA, linux-arm-msm-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA, Ivan T. Ivanov, devicetree-u79uwXL29TY76Z2rM5mHXA From: "Ivan T. Ivanov" <iivanov-NEYub+7Iv8PQT0dZR+AlfA@public.gmane.org> Allows controller to be specified via device tree. Pass PHY phandle specified in DT to core driver. Signed-off-by: Ivan T. Ivanov <iivanov-NEYub+7Iv8PQT0dZR+AlfA@public.gmane.org> Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org --- drivers/usb/chipidea/ci_hdrc_msm.c | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/drivers/usb/chipidea/ci_hdrc_msm.c b/drivers/usb/chipidea/ci_hdrc_msm.c index 2d51d85..747d6c1 100644 --- a/drivers/usb/chipidea/ci_hdrc_msm.c +++ b/drivers/usb/chipidea/ci_hdrc_msm.c @@ -57,9 +57,21 @@ static struct ci_hdrc_platform_data ci_hdrc_msm_platdata = { static int ci_hdrc_msm_probe(struct platform_device *pdev) { struct platform_device *plat_ci; + struct usb_phy *phy; dev_dbg(&pdev->dev, "ci_hdrc_msm_probe\n"); + /* + * OTG(PHY) driver takes care of PHY initialization, clock management, + * powering up VBUS, mapping of registers address space and power + * management. + */ + phy = devm_usb_get_phy_by_phandle(&pdev->dev, "usb-phy", 0); + if (IS_ERR(phy)) + return PTR_ERR(phy); + else + ci_hdrc_msm_platdata.phy = phy; + plat_ci = ci_hdrc_add_device(&pdev->dev, pdev->resource, pdev->num_resources, &ci_hdrc_msm_platdata); @@ -86,10 +98,19 @@ static int ci_hdrc_msm_remove(struct platform_device *pdev) return 0; } +static struct of_device_id msm_ci_dt_match[] = { + { .compatible = "qcom,ci-hdrc", }, + { } +}; +MODULE_DEVICE_TABLE(of, msm_ci_dt_match); + static struct platform_driver ci_hdrc_msm_driver = { .probe = ci_hdrc_msm_probe, .remove = ci_hdrc_msm_remove, - .driver = { .name = "msm_hsusb", }, + .driver = { + .name = "msm_hsusb", + .of_match_table = msm_ci_dt_match, + }, }; module_platform_driver(ci_hdrc_msm_driver); -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" 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] 5+ messages in thread
end of thread, other threads:[~2013-12-04 13:13 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <1384176937-1658-1-git-send-email-iivanov@mm-sol.com> [not found] ` <1384176937-1658-1-git-send-email-iivanov-NEYub+7Iv8PQT0dZR+AlfA@public.gmane.org> 2013-11-11 13:35 ` [PATCH 1/4] usb: chipidea: msm: Add device tree binding information Ivan T. Ivanov 2013-12-04 5:40 ` Peter Chen 2013-12-04 8:33 ` Ivan T. Ivanov 2013-12-04 13:13 ` Peter Chen 2013-11-11 13:35 ` [PATCH 2/4] usb: chipidea: msm: Add device tree support Ivan T. Ivanov
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).