* [PATCH v3 0/7] USB support for DRA7-evm @ 2014-05-05 9:54 Roger Quadros 2014-05-05 9:54 ` [PATCH v3 2/7] phy: omap-usb2: Add clock names to Documentation binding Roger Quadros ` (3 more replies) 0 siblings, 4 replies; 24+ messages in thread From: Roger Quadros @ 2014-05-05 9:54 UTC (permalink / raw) To: kishon-l0cyMroinI0, tony-4v6yS6AI5VpBDgjK7y7TUQ, balbi-l0cyMroinI0, bcousson-rdvid1DuHRBWk0Htik3J/w Cc: george.cherian-l0cyMroinI0, sergei.shtylyov-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8, nm-l0cyMroinI0, linux-omap-u79uwXL29TY76Z2rM5mHXA, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-usb-u79uwXL29TY76Z2rM5mHXA, Roger Quadros Hi, This series enables the 2 USB ports on the DRA7-evm. NOTE: USB1 port is hard coded to work in peripheral mode and USB2 port in host mode. This is due to missing ID pin interrupt in pre ver.E boards. USB1 port doesn't in peripheral mode out of the box due to missing VBUS detection and mailbox write. To test this I had to do a manual write to enable VBUSVALID in the USB_UTMI_OTG_STATUS register. omapconf set bit 0x48880084 1 USB2 port works well in host mode. Patches are based on 3.15-rc3. cheers, -roger Changelog: v3: -Rearraged patches. PHY related stuff first. -Addressed backward compatibility issue for phy-omap-usb2. v2: -Rebased on v3.15-rc3 --- Roger Quadros (7): phy: omap-usb2: Use generic clock names "wkupclk" and "refclk" phy: omap-usb2: Add clock names to Documentation binding ARM: dts: omap4+: Add clocks to USB2 PHY node ARM: dts: dra7-clock: Add "l3init_960m_gfclk" clock gate ARM: DRA7: hwmod: Add SYSCONFIG for usb_otg_ss ARM: dts: dra7: Add USB related nodes dts: dra7-evm: add USB support Documentation/devicetree/bindings/phy/ti-phy.txt | 7 ++ arch/arm/boot/dts/dra7-evm.dts | 24 ++++ arch/arm/boot/dts/dra7.dtsi | 149 +++++++++++++++++++++++ arch/arm/boot/dts/dra7xx-clocks.dtsi | 12 +- arch/arm/boot/dts/omap4.dtsi | 2 + arch/arm/boot/dts/omap5.dtsi | 2 + arch/arm/mach-omap2/omap_hwmod_7xx_data.c | 22 ++-- drivers/phy/phy-omap-usb2.c | 30 +++-- 8 files changed, 229 insertions(+), 19 deletions(-) -- 1.8.3.2 -- 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 [flat|nested] 24+ messages in thread
* [PATCH v3 2/7] phy: omap-usb2: Add clock names to Documentation binding 2014-05-05 9:54 [PATCH v3 0/7] USB support for DRA7-evm Roger Quadros @ 2014-05-05 9:54 ` Roger Quadros 2014-05-05 9:54 ` [PATCH v3 4/7] ARM: dts: dra7-clock: Add "l3init_960m_gfclk" clock gate Roger Quadros ` (2 subsequent siblings) 3 siblings, 0 replies; 24+ messages in thread From: Roger Quadros @ 2014-05-05 9:54 UTC (permalink / raw) To: kishon, tony, balbi, bcousson Cc: george.cherian, sergei.shtylyov, nm, linux-omap, devicetree, linux-usb, Roger Quadros Add "wkupclk" and "refclk" information to DT binding information. Reviewed-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Roger Quadros <rogerq@ti.com> --- Documentation/devicetree/bindings/phy/ti-phy.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/phy/ti-phy.txt b/Documentation/devicetree/bindings/phy/ti-phy.txt index 788fb0f..9ce458f 100644 --- a/Documentation/devicetree/bindings/phy/ti-phy.txt +++ b/Documentation/devicetree/bindings/phy/ti-phy.txt @@ -32,6 +32,11 @@ Required properties: - reg : Address and length of the register set for the device. - #phy-cells: determine the number of cells that should be given in the phandle while referencing this phy. + - clocks: a list of phandles and clock-specifier pairs, one for each entry in + clock-names. + - clock-names: should include: + * "wkupclk" - wakeup clock. + * "refclk" - reference clock (optional). Optional properties: - ctrl-module : phandle of the control module used by PHY driver to power on @@ -44,6 +49,8 @@ usb2phy@4a0ad080 { reg = <0x4a0ad080 0x58>; ctrl-module = <&omap_control_usb>; #phy-cells = <0>; + clocks = <&usb_phy_cm_clk32k>, <&usb_otg_ss_refclk960m>; + clock-names = "wkupclk", "refclk"; }; TI PIPE3 PHY -- 1.8.3.2 ^ permalink raw reply related [flat|nested] 24+ messages in thread
* [PATCH v3 4/7] ARM: dts: dra7-clock: Add "l3init_960m_gfclk" clock gate 2014-05-05 9:54 [PATCH v3 0/7] USB support for DRA7-evm Roger Quadros 2014-05-05 9:54 ` [PATCH v3 2/7] phy: omap-usb2: Add clock names to Documentation binding Roger Quadros @ 2014-05-05 9:54 ` Roger Quadros 2014-05-06 10:10 ` Tero Kristo [not found] ` <1399283686-6127-1-git-send-email-rogerq-l0cyMroinI0@public.gmane.org> 2014-05-05 9:54 ` [PATCH v3 7/7] dts: dra7-evm: add USB support Roger Quadros 3 siblings, 1 reply; 24+ messages in thread From: Roger Quadros @ 2014-05-05 9:54 UTC (permalink / raw) To: kishon, tony, balbi, bcousson Cc: george.cherian, sergei.shtylyov, nm, linux-omap, devicetree, linux-usb, Roger Quadros, Tero Kristo This clock gate description is missing in the older Reference manuals. It is present on the SoC to provide 960MHz reference clock to the internal USB PHYs. Reference: DRA75x_DRA74x_ES1.1_NDA_TRM_vO.pdf, pg. 900, Table 3-812. CM_COREAON_L3INIT_60M_GFCLK_CLKCTRL Use l3init_960m_gfclk as parent of usb_otg_ss1_refclk960m and usb_otg_ss2_refclk960m. CC: Benoît Cousson <bcousson@baylibre.com> CC: Tero Kristo <t-kristo@ti.com> Signed-off-by: Roger Quadros <rogerq@ti.com> --- arch/arm/boot/dts/dra7xx-clocks.dtsi | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/dra7xx-clocks.dtsi b/arch/arm/boot/dts/dra7xx-clocks.dtsi index cfb8fc7..c767687 100644 --- a/arch/arm/boot/dts/dra7xx-clocks.dtsi +++ b/arch/arm/boot/dts/dra7xx-clocks.dtsi @@ -1386,6 +1386,14 @@ ti,dividers = <1>, <8>; }; + l3init_960m_gfclk: l3init_960m_gfclk { + #clock-cells = <0>; + compatible = "ti,gate-clock"; + clocks = <&dpll_usb_clkdcoldo>; + ti,bit-shift = <8>; + reg = <0x06c0>; + }; + dss_32khz_clk: dss_32khz_clk { #clock-cells = <0>; compatible = "ti,gate-clock"; @@ -1533,7 +1541,7 @@ usb_otg_ss1_refclk960m: usb_otg_ss1_refclk960m { #clock-cells = <0>; compatible = "ti,gate-clock"; - clocks = <&dpll_usb_clkdcoldo>; + clocks = <&l3init_960m_gfclk>; ti,bit-shift = <8>; reg = <0x13f0>; }; @@ -1541,7 +1549,7 @@ usb_otg_ss2_refclk960m: usb_otg_ss2_refclk960m { #clock-cells = <0>; compatible = "ti,gate-clock"; - clocks = <&dpll_usb_clkdcoldo>; + clocks = <&l3init_960m_gfclk>; ti,bit-shift = <8>; reg = <0x1340>; }; -- 1.8.3.2 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" 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 related [flat|nested] 24+ messages in thread
* Re: [PATCH v3 4/7] ARM: dts: dra7-clock: Add "l3init_960m_gfclk" clock gate 2014-05-05 9:54 ` [PATCH v3 4/7] ARM: dts: dra7-clock: Add "l3init_960m_gfclk" clock gate Roger Quadros @ 2014-05-06 10:10 ` Tero Kristo 0 siblings, 0 replies; 24+ messages in thread From: Tero Kristo @ 2014-05-06 10:10 UTC (permalink / raw) To: Roger Quadros, kishon, tony, balbi, bcousson Cc: george.cherian, sergei.shtylyov, nm, linux-omap, devicetree, linux-usb On 05/05/2014 12:54 PM, Roger Quadros wrote: > This clock gate description is missing in the older Reference manuals. > It is present on the SoC to provide 960MHz reference clock to the > internal USB PHYs. > > Reference: DRA75x_DRA74x_ES1.1_NDA_TRM_vO.pdf, pg. 900, > Table 3-812. CM_COREAON_L3INIT_60M_GFCLK_CLKCTRL > > Use l3init_960m_gfclk as parent of usb_otg_ss1_refclk960m and > usb_otg_ss2_refclk960m. > > CC: Benoît Cousson <bcousson@baylibre.com> > CC: Tero Kristo <t-kristo@ti.com> > Signed-off-by: Roger Quadros <rogerq@ti.com> Got myself to download the latest copy of the TRM, so this patch looks valid. Acked-by: Tero Kristo <t-kristo@ti.com> > --- > arch/arm/boot/dts/dra7xx-clocks.dtsi | 12 ++++++++++-- > 1 file changed, 10 insertions(+), 2 deletions(-) > > diff --git a/arch/arm/boot/dts/dra7xx-clocks.dtsi b/arch/arm/boot/dts/dra7xx-clocks.dtsi > index cfb8fc7..c767687 100644 > --- a/arch/arm/boot/dts/dra7xx-clocks.dtsi > +++ b/arch/arm/boot/dts/dra7xx-clocks.dtsi > @@ -1386,6 +1386,14 @@ > ti,dividers = <1>, <8>; > }; > > + l3init_960m_gfclk: l3init_960m_gfclk { > + #clock-cells = <0>; > + compatible = "ti,gate-clock"; > + clocks = <&dpll_usb_clkdcoldo>; > + ti,bit-shift = <8>; > + reg = <0x06c0>; > + }; > + > dss_32khz_clk: dss_32khz_clk { > #clock-cells = <0>; > compatible = "ti,gate-clock"; > @@ -1533,7 +1541,7 @@ > usb_otg_ss1_refclk960m: usb_otg_ss1_refclk960m { > #clock-cells = <0>; > compatible = "ti,gate-clock"; > - clocks = <&dpll_usb_clkdcoldo>; > + clocks = <&l3init_960m_gfclk>; > ti,bit-shift = <8>; > reg = <0x13f0>; > }; > @@ -1541,7 +1549,7 @@ > usb_otg_ss2_refclk960m: usb_otg_ss2_refclk960m { > #clock-cells = <0>; > compatible = "ti,gate-clock"; > - clocks = <&dpll_usb_clkdcoldo>; > + clocks = <&l3init_960m_gfclk>; > ti,bit-shift = <8>; > reg = <0x1340>; > }; > -- To unsubscribe from this list: send the line "unsubscribe linux-omap" 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] 24+ messages in thread
[parent not found: <1399283686-6127-1-git-send-email-rogerq-l0cyMroinI0@public.gmane.org>]
* [PATCH v3 1/7] phy: omap-usb2: Use generic clock names "wkupclk" and "refclk" [not found] ` <1399283686-6127-1-git-send-email-rogerq-l0cyMroinI0@public.gmane.org> @ 2014-05-05 9:54 ` Roger Quadros [not found] ` <1399283686-6127-2-git-send-email-rogerq-l0cyMroinI0@public.gmane.org> 2014-05-05 9:54 ` [PATCH v3 3/7] ARM: dts: omap4+: Add clocks to USB2 PHY node Roger Quadros ` (3 subsequent siblings) 4 siblings, 1 reply; 24+ messages in thread From: Roger Quadros @ 2014-05-05 9:54 UTC (permalink / raw) To: kishon-l0cyMroinI0, tony-4v6yS6AI5VpBDgjK7y7TUQ, balbi-l0cyMroinI0, bcousson-rdvid1DuHRBWk0Htik3J/w Cc: george.cherian-l0cyMroinI0, sergei.shtylyov-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8, nm-l0cyMroinI0, linux-omap-u79uwXL29TY76Z2rM5mHXA, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-usb-u79uwXL29TY76Z2rM5mHXA, Roger Quadros As clocks might be named differently on multiple platforms, use a generic name in the driver and allow device tree node to specify the platform specific clock name. Signed-off-by: Roger Quadros <rogerq-l0cyMroinI0@public.gmane.org> --- drivers/phy/phy-omap-usb2.c | 30 +++++++++++++++++++++++------- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/drivers/phy/phy-omap-usb2.c b/drivers/phy/phy-omap-usb2.c index a2205a8..7007c11 100644 --- a/drivers/phy/phy-omap-usb2.c +++ b/drivers/phy/phy-omap-usb2.c @@ -275,18 +275,34 @@ static int omap_usb2_probe(struct platform_device *pdev) if (IS_ERR(phy_provider)) return PTR_ERR(phy_provider); - phy->wkupclk = devm_clk_get(phy->dev, "usb_phy_cm_clk32k"); + phy->wkupclk = devm_clk_get(phy->dev, "wkupclk"); if (IS_ERR(phy->wkupclk)) { - dev_err(&pdev->dev, "unable to get usb_phy_cm_clk32k\n"); - return PTR_ERR(phy->wkupclk); + dev_warn(&pdev->dev, "unable to get wkupclk, trying old name\n"); + phy->wkupclk = devm_clk_get(phy->dev, "usb_phy_cm_clk32k"); + if (IS_ERR(phy->wkupclk)) { + dev_err(&pdev->dev, "unable to get usb_phy_cm_clk32k\n"); + return PTR_ERR(phy->wkupclk); + } else { + dev_warn(&pdev->dev, + "found usb_phy_cm_clk32k, please fix DTS\n"); + } } clk_prepare(phy->wkupclk); - phy->optclk = devm_clk_get(phy->dev, "usb_otg_ss_refclk960m"); - if (IS_ERR(phy->optclk)) - dev_vdbg(&pdev->dev, "unable to get refclk960m\n"); - else + phy->optclk = devm_clk_get(phy->dev, "refclk"); + if (IS_ERR(phy->optclk)) { + dev_dbg(&pdev->dev, "unable to get refclk, trying old name\n"); + phy->optclk = devm_clk_get(phy->dev, "usb_otg_ss_refclk960m"); + if (IS_ERR(phy->optclk)) { + dev_dbg(&pdev->dev, + "unable to get usb_otg_ss_refclk960m\n"); + } else { + dev_warn(&pdev->dev, + "found usb_otg_ss_refclk960m, please fix DTS\n"); + } + } else { clk_prepare(phy->optclk); + } usb_add_phy_dev(&phy->phy); -- 1.8.3.2 -- 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] 24+ messages in thread
[parent not found: <1399283686-6127-2-git-send-email-rogerq-l0cyMroinI0@public.gmane.org>]
* Re: [PATCH v3 1/7] phy: omap-usb2: Use generic clock names "wkupclk" and "refclk" [not found] ` <1399283686-6127-2-git-send-email-rogerq-l0cyMroinI0@public.gmane.org> @ 2014-05-05 18:14 ` Felipe Balbi 0 siblings, 0 replies; 24+ messages in thread From: Felipe Balbi @ 2014-05-05 18:14 UTC (permalink / raw) To: Roger Quadros Cc: kishon-l0cyMroinI0, tony-4v6yS6AI5VpBDgjK7y7TUQ, balbi-l0cyMroinI0, bcousson-rdvid1DuHRBWk0Htik3J/w, george.cherian-l0cyMroinI0, sergei.shtylyov-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8, nm-l0cyMroinI0, linux-omap-u79uwXL29TY76Z2rM5mHXA, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-usb-u79uwXL29TY76Z2rM5mHXA [-- Attachment #1: Type: text/plain, Size: 2266 bytes --] On Mon, May 05, 2014 at 12:54:40PM +0300, Roger Quadros wrote: > As clocks might be named differently on multiple platforms, use a generic > name in the driver and allow device tree node to specify the platform > specific clock name. > > Signed-off-by: Roger Quadros <rogerq-l0cyMroinI0@public.gmane.org> Reviewed-by: Felipe Balbi <balbi-l0cyMroinI0@public.gmane.org> > --- > drivers/phy/phy-omap-usb2.c | 30 +++++++++++++++++++++++------- > 1 file changed, 23 insertions(+), 7 deletions(-) > > diff --git a/drivers/phy/phy-omap-usb2.c b/drivers/phy/phy-omap-usb2.c > index a2205a8..7007c11 100644 > --- a/drivers/phy/phy-omap-usb2.c > +++ b/drivers/phy/phy-omap-usb2.c > @@ -275,18 +275,34 @@ static int omap_usb2_probe(struct platform_device *pdev) > if (IS_ERR(phy_provider)) > return PTR_ERR(phy_provider); > > - phy->wkupclk = devm_clk_get(phy->dev, "usb_phy_cm_clk32k"); > + phy->wkupclk = devm_clk_get(phy->dev, "wkupclk"); > if (IS_ERR(phy->wkupclk)) { > - dev_err(&pdev->dev, "unable to get usb_phy_cm_clk32k\n"); > - return PTR_ERR(phy->wkupclk); > + dev_warn(&pdev->dev, "unable to get wkupclk, trying old name\n"); > + phy->wkupclk = devm_clk_get(phy->dev, "usb_phy_cm_clk32k"); > + if (IS_ERR(phy->wkupclk)) { > + dev_err(&pdev->dev, "unable to get usb_phy_cm_clk32k\n"); > + return PTR_ERR(phy->wkupclk); > + } else { > + dev_warn(&pdev->dev, > + "found usb_phy_cm_clk32k, please fix DTS\n"); > + } > } > clk_prepare(phy->wkupclk); > > - phy->optclk = devm_clk_get(phy->dev, "usb_otg_ss_refclk960m"); > - if (IS_ERR(phy->optclk)) > - dev_vdbg(&pdev->dev, "unable to get refclk960m\n"); > - else > + phy->optclk = devm_clk_get(phy->dev, "refclk"); > + if (IS_ERR(phy->optclk)) { > + dev_dbg(&pdev->dev, "unable to get refclk, trying old name\n"); > + phy->optclk = devm_clk_get(phy->dev, "usb_otg_ss_refclk960m"); > + if (IS_ERR(phy->optclk)) { > + dev_dbg(&pdev->dev, > + "unable to get usb_otg_ss_refclk960m\n"); > + } else { > + dev_warn(&pdev->dev, > + "found usb_otg_ss_refclk960m, please fix DTS\n"); > + } > + } else { > clk_prepare(phy->optclk); > + } > > usb_add_phy_dev(&phy->phy); > > -- > 1.8.3.2 > -- balbi [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 819 bytes --] ^ permalink raw reply [flat|nested] 24+ messages in thread
* [PATCH v3 3/7] ARM: dts: omap4+: Add clocks to USB2 PHY node [not found] ` <1399283686-6127-1-git-send-email-rogerq-l0cyMroinI0@public.gmane.org> 2014-05-05 9:54 ` [PATCH v3 1/7] phy: omap-usb2: Use generic clock names "wkupclk" and "refclk" Roger Quadros @ 2014-05-05 9:54 ` Roger Quadros 2014-05-05 9:54 ` [PATCH v3 5/7] ARM: DRA7: hwmod: Add SYSCONFIG for usb_otg_ss Roger Quadros ` (2 subsequent siblings) 4 siblings, 0 replies; 24+ messages in thread From: Roger Quadros @ 2014-05-05 9:54 UTC (permalink / raw) To: kishon-l0cyMroinI0, tony-4v6yS6AI5VpBDgjK7y7TUQ, balbi-l0cyMroinI0, bcousson-rdvid1DuHRBWk0Htik3J/w Cc: george.cherian-l0cyMroinI0, sergei.shtylyov-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8, nm-l0cyMroinI0, linux-omap-u79uwXL29TY76Z2rM5mHXA, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-usb-u79uwXL29TY76Z2rM5mHXA, Roger Quadros The USB2 PHY driver expects named clocks for wakeup clock and reference clock. Provide this information for USB2 PHY nodes in OMAP4 and OMAP5 SoC DTS. CC: Benoît Cousson <bcousson-rdvid1DuHRBWk0Htik3J/w@public.gmane.org> Reviewed-by: Felipe Balbi <balbi-l0cyMroinI0@public.gmane.org> Signed-off-by: Roger Quadros <rogerq-l0cyMroinI0@public.gmane.org> --- arch/arm/boot/dts/omap4.dtsi | 2 ++ arch/arm/boot/dts/omap5.dtsi | 2 ++ 2 files changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/omap4.dtsi b/arch/arm/boot/dts/omap4.dtsi index 649b5cd..f866de9 100644 --- a/arch/arm/boot/dts/omap4.dtsi +++ b/arch/arm/boot/dts/omap4.dtsi @@ -642,6 +642,8 @@ compatible = "ti,omap-usb2"; reg = <0x4a0ad080 0x58>; ctrl-module = <&omap_control_usb2phy>; + clocks = <&usb_phy_cm_clk32k>; + clock-names = "wkupclk"; #phy-cells = <0>; }; }; diff --git a/arch/arm/boot/dts/omap5.dtsi b/arch/arm/boot/dts/omap5.dtsi index f8c9855..47b714c 100644 --- a/arch/arm/boot/dts/omap5.dtsi +++ b/arch/arm/boot/dts/omap5.dtsi @@ -803,6 +803,8 @@ compatible = "ti,omap-usb2"; reg = <0x4a084000 0x7c>; ctrl-module = <&omap_control_usb2phy>; + clocks = <&usb_phy_cm_clk32k>, <&usb_otg_ss_refclk960m>; + clock-names = "wkupclk", "refclk"; #phy-cells = <0>; }; -- 1.8.3.2 -- 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] 24+ messages in thread
* [PATCH v3 5/7] ARM: DRA7: hwmod: Add SYSCONFIG for usb_otg_ss [not found] ` <1399283686-6127-1-git-send-email-rogerq-l0cyMroinI0@public.gmane.org> 2014-05-05 9:54 ` [PATCH v3 1/7] phy: omap-usb2: Use generic clock names "wkupclk" and "refclk" Roger Quadros 2014-05-05 9:54 ` [PATCH v3 3/7] ARM: dts: omap4+: Add clocks to USB2 PHY node Roger Quadros @ 2014-05-05 9:54 ` Roger Quadros 2014-06-13 19:08 ` Paul Walmsley 2014-06-18 11:10 ` Roger Quadros 2014-05-05 9:54 ` [PATCH v3 6/7] ARM: dts: dra7: Add USB related nodes Roger Quadros 2014-05-06 7:19 ` [PATCH v3 0/7] USB support for DRA7-evm Roger Quadros 4 siblings, 2 replies; 24+ messages in thread From: Roger Quadros @ 2014-05-05 9:54 UTC (permalink / raw) To: kishon-l0cyMroinI0, tony-4v6yS6AI5VpBDgjK7y7TUQ, balbi-l0cyMroinI0, bcousson-rdvid1DuHRBWk0Htik3J/w Cc: george.cherian-l0cyMroinI0, sergei.shtylyov-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8, nm-l0cyMroinI0, linux-omap-u79uwXL29TY76Z2rM5mHXA, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-usb-u79uwXL29TY76Z2rM5mHXA, Roger Quadros, Paul Walmsley Add the sysconfig class bits for the Super Speed USB controllers CC: Paul Walmsley <paul-DWxLp4Yu+b8AvxtiuMwx3w@public.gmane.org> Signed-off-by: Roger Quadros <rogerq-l0cyMroinI0@public.gmane.org> --- arch/arm/mach-omap2/omap_hwmod_7xx_data.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c index 810c205..067d322 100644 --- a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c @@ -1731,8 +1731,20 @@ static struct omap_hwmod dra7xx_uart6_hwmod = { * */ +static struct omap_hwmod_class_sysconfig dra7xx_usb_otg_ss_sysc = { + .rev_offs = 0x0000, + .sysc_offs = 0x0010, + .sysc_flags = (SYSC_HAS_DMADISABLE | SYSC_HAS_MIDLEMODE | + SYSC_HAS_SIDLEMODE), + .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART | + SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO | + MSTANDBY_SMART | MSTANDBY_SMART_WKUP), + .sysc_fields = &omap_hwmod_sysc_type2, +}; + static struct omap_hwmod_class dra7xx_usb_otg_ss_hwmod_class = { .name = "usb_otg_ss", + .sysc = &dra7xx_usb_otg_ss_sysc, }; /* usb_otg_ss1 */ -- 1.8.3.2 -- 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] 24+ messages in thread
* Re: [PATCH v3 5/7] ARM: DRA7: hwmod: Add SYSCONFIG for usb_otg_ss 2014-05-05 9:54 ` [PATCH v3 5/7] ARM: DRA7: hwmod: Add SYSCONFIG for usb_otg_ss Roger Quadros @ 2014-06-13 19:08 ` Paul Walmsley 2014-06-18 11:10 ` Roger Quadros 1 sibling, 0 replies; 24+ messages in thread From: Paul Walmsley @ 2014-06-13 19:08 UTC (permalink / raw) To: Roger Quadros Cc: kishon, tony, balbi, bcousson, george.cherian, sergei.shtylyov, nm, linux-omap, devicetree, linux-usb Hi Roger, On Mon, 5 May 2014, Roger Quadros wrote: > Add the sysconfig class bits for the Super Speed USB > controllers > > CC: Paul Walmsley <paul@pwsan.com> > Signed-off-by: Roger Quadros <rogerq@ti.com> As with the previous DRA7 hwmod patch, I'd like to get a Reviewed-by: and a Tested-by: before merging this one. - Paul ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH v3 5/7] ARM: DRA7: hwmod: Add SYSCONFIG for usb_otg_ss 2014-05-05 9:54 ` [PATCH v3 5/7] ARM: DRA7: hwmod: Add SYSCONFIG for usb_otg_ss Roger Quadros 2014-06-13 19:08 ` Paul Walmsley @ 2014-06-18 11:10 ` Roger Quadros 2014-06-18 11:19 ` Rajendra Nayak 1 sibling, 1 reply; 24+ messages in thread From: Roger Quadros @ 2014-06-18 11:10 UTC (permalink / raw) To: kishon, tony, balbi, bcousson, Rajendra Nayak Cc: george.cherian, sergei.shtylyov, nm, linux-omap, devicetree, linux-usb, Paul Walmsley + Nishant and Rajendra for review. On 05/05/2014 12:54 PM, Roger Quadros wrote: > Add the sysconfig class bits for the Super Speed USB > controllers > > CC: Paul Walmsley <paul@pwsan.com> > Signed-off-by: Roger Quadros <rogerq@ti.com> > --- > arch/arm/mach-omap2/omap_hwmod_7xx_data.c | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > > diff --git a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c > index 810c205..067d322 100644 > --- a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c > +++ b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c > @@ -1731,8 +1731,20 @@ static struct omap_hwmod dra7xx_uart6_hwmod = { > * > */ > > +static struct omap_hwmod_class_sysconfig dra7xx_usb_otg_ss_sysc = { > + .rev_offs = 0x0000, > + .sysc_offs = 0x0010, > + .sysc_flags = (SYSC_HAS_DMADISABLE | SYSC_HAS_MIDLEMODE | > + SYSC_HAS_SIDLEMODE), > + .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART | > + SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO | > + MSTANDBY_SMART | MSTANDBY_SMART_WKUP), > + .sysc_fields = &omap_hwmod_sysc_type2, > +}; > + > static struct omap_hwmod_class dra7xx_usb_otg_ss_hwmod_class = { > .name = "usb_otg_ss", > + .sysc = &dra7xx_usb_otg_ss_sysc, > }; > > /* usb_otg_ss1 */ > ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH v3 5/7] ARM: DRA7: hwmod: Add SYSCONFIG for usb_otg_ss 2014-06-18 11:10 ` Roger Quadros @ 2014-06-18 11:19 ` Rajendra Nayak [not found] ` <53A175DC.8080709-l0cyMroinI0@public.gmane.org> 2014-07-02 11:26 ` Roger Quadros 0 siblings, 2 replies; 24+ messages in thread From: Rajendra Nayak @ 2014-06-18 11:19 UTC (permalink / raw) To: Roger Quadros Cc: kishon, tony, balbi, bcousson, Menon, Nishanth, george.cherian, sergei.shtylyov, linux-omap, devicetree, linux-usb, Paul Walmsley On Wednesday 18 June 2014 04:40 PM, Roger Quadros wrote: > + Nishant and Rajendra for review. > > On 05/05/2014 12:54 PM, Roger Quadros wrote: >> Add the sysconfig class bits for the Super Speed USB >> controllers >> >> CC: Paul Walmsley <paul@pwsan.com> >> Signed-off-by: Roger Quadros <rogerq@ti.com> verified against TRM version vP, looks good to me. Reviewed-by: Rajendra Nayak <rnayak@ti.com> >> --- >> arch/arm/mach-omap2/omap_hwmod_7xx_data.c | 12 ++++++++++++ >> 1 file changed, 12 insertions(+) >> >> diff --git a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c >> index 810c205..067d322 100644 >> --- a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c >> +++ b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c >> @@ -1731,8 +1731,20 @@ static struct omap_hwmod dra7xx_uart6_hwmod = { >> * >> */ >> >> +static struct omap_hwmod_class_sysconfig dra7xx_usb_otg_ss_sysc = { >> + .rev_offs = 0x0000, >> + .sysc_offs = 0x0010, >> + .sysc_flags = (SYSC_HAS_DMADISABLE | SYSC_HAS_MIDLEMODE | >> + SYSC_HAS_SIDLEMODE), >> + .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART | >> + SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO | >> + MSTANDBY_SMART | MSTANDBY_SMART_WKUP), >> + .sysc_fields = &omap_hwmod_sysc_type2, >> +}; >> + >> static struct omap_hwmod_class dra7xx_usb_otg_ss_hwmod_class = { >> .name = "usb_otg_ss", >> + .sysc = &dra7xx_usb_otg_ss_sysc, >> }; >> >> /* usb_otg_ss1 */ >> > ^ permalink raw reply [flat|nested] 24+ messages in thread
[parent not found: <53A175DC.8080709-l0cyMroinI0@public.gmane.org>]
* Re: [PATCH v3 5/7] ARM: DRA7: hwmod: Add SYSCONFIG for usb_otg_ss [not found] ` <53A175DC.8080709-l0cyMroinI0@public.gmane.org> @ 2014-06-18 11:24 ` Roger Quadros 0 siblings, 0 replies; 24+ messages in thread From: Roger Quadros @ 2014-06-18 11:24 UTC (permalink / raw) To: Paul Walmsley Cc: Rajendra Nayak, kishon-l0cyMroinI0, tony-4v6yS6AI5VpBDgjK7y7TUQ, balbi-l0cyMroinI0, bcousson-rdvid1DuHRBWk0Htik3J/w, Menon, Nishanth, george.cherian-l0cyMroinI0, sergei.shtylyov-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8, linux-omap-u79uwXL29TY76Z2rM5mHXA, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-usb-u79uwXL29TY76Z2rM5mHXA On 06/18/2014 02:19 PM, Rajendra Nayak wrote: > On Wednesday 18 June 2014 04:40 PM, Roger Quadros wrote: >> + Nishant and Rajendra for review. >> >> On 05/05/2014 12:54 PM, Roger Quadros wrote: >>> Add the sysconfig class bits for the Super Speed USB >>> controllers >>> >>> CC: Paul Walmsley <paul-DWxLp4Yu+b8AvxtiuMwx3w@public.gmane.org> >>> Signed-off-by: Roger Quadros <rogerq-l0cyMroinI0@public.gmane.org> > > verified against TRM version vP, looks good to me. > Reviewed-by: Rajendra Nayak <rnayak-l0cyMroinI0@public.gmane.org> Tested-by: Roger Quadros <rogerq-l0cyMroinI0@public.gmane.org> against 3.16-rc1. no dependency patches. cheers, -roger > >>> --- >>> arch/arm/mach-omap2/omap_hwmod_7xx_data.c | 12 ++++++++++++ >>> 1 file changed, 12 insertions(+) >>> >>> diff --git a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c >>> index 810c205..067d322 100644 >>> --- a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c >>> +++ b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c >>> @@ -1731,8 +1731,20 @@ static struct omap_hwmod dra7xx_uart6_hwmod = { >>> * >>> */ >>> >>> +static struct omap_hwmod_class_sysconfig dra7xx_usb_otg_ss_sysc = { >>> + .rev_offs = 0x0000, >>> + .sysc_offs = 0x0010, >>> + .sysc_flags = (SYSC_HAS_DMADISABLE | SYSC_HAS_MIDLEMODE | >>> + SYSC_HAS_SIDLEMODE), >>> + .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART | >>> + SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO | >>> + MSTANDBY_SMART | MSTANDBY_SMART_WKUP), >>> + .sysc_fields = &omap_hwmod_sysc_type2, >>> +}; >>> + >>> static struct omap_hwmod_class dra7xx_usb_otg_ss_hwmod_class = { >>> .name = "usb_otg_ss", >>> + .sysc = &dra7xx_usb_otg_ss_sysc, >>> }; >>> >>> /* usb_otg_ss1 */ >>> >> > -- 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 [flat|nested] 24+ messages in thread
* Re: [PATCH v3 5/7] ARM: DRA7: hwmod: Add SYSCONFIG for usb_otg_ss 2014-06-18 11:19 ` Rajendra Nayak [not found] ` <53A175DC.8080709-l0cyMroinI0@public.gmane.org> @ 2014-07-02 11:26 ` Roger Quadros 2014-07-03 10:42 ` Sekhar Nori 1 sibling, 1 reply; 24+ messages in thread From: Roger Quadros @ 2014-07-02 11:26 UTC (permalink / raw) To: Nori, Sekhar Cc: Rajendra Nayak, kishon, tony, balbi, bcousson, Menon, Nishanth, george.cherian, sergei.shtylyov, linux-omap, devicetree, linux-usb, Paul Walmsley Sekhar, On 06/18/2014 02:19 PM, Rajendra Nayak wrote: > On Wednesday 18 June 2014 04:40 PM, Roger Quadros wrote: >> + Nishant and Rajendra for review. >> >> On 05/05/2014 12:54 PM, Roger Quadros wrote: >>> Add the sysconfig class bits for the Super Speed USB >>> controllers >>> >>> CC: Paul Walmsley <paul@pwsan.com> >>> Signed-off-by: Roger Quadros <rogerq@ti.com> > > verified against TRM version vP, looks good to me. > Reviewed-by: Rajendra Nayak <rnayak@ti.com> Could you please give your Tested-by tag for this? Then we can take this into 3.16-rc. Thanks. cheers, -roger > >>> --- >>> arch/arm/mach-omap2/omap_hwmod_7xx_data.c | 12 ++++++++++++ >>> 1 file changed, 12 insertions(+) >>> >>> diff --git a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c >>> index 810c205..067d322 100644 >>> --- a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c >>> +++ b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c >>> @@ -1731,8 +1731,20 @@ static struct omap_hwmod dra7xx_uart6_hwmod = { >>> * >>> */ >>> >>> +static struct omap_hwmod_class_sysconfig dra7xx_usb_otg_ss_sysc = { >>> + .rev_offs = 0x0000, >>> + .sysc_offs = 0x0010, >>> + .sysc_flags = (SYSC_HAS_DMADISABLE | SYSC_HAS_MIDLEMODE | >>> + SYSC_HAS_SIDLEMODE), >>> + .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART | >>> + SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO | >>> + MSTANDBY_SMART | MSTANDBY_SMART_WKUP), >>> + .sysc_fields = &omap_hwmod_sysc_type2, >>> +}; >>> + >>> static struct omap_hwmod_class dra7xx_usb_otg_ss_hwmod_class = { >>> .name = "usb_otg_ss", >>> + .sysc = &dra7xx_usb_otg_ss_sysc, >>> }; >>> >>> /* usb_otg_ss1 */ >>> >> > ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH v3 5/7] ARM: DRA7: hwmod: Add SYSCONFIG for usb_otg_ss 2014-07-02 11:26 ` Roger Quadros @ 2014-07-03 10:42 ` Sekhar Nori 0 siblings, 0 replies; 24+ messages in thread From: Sekhar Nori @ 2014-07-03 10:42 UTC (permalink / raw) To: Roger Quadros Cc: Rajendra Nayak, kishon, tony, balbi, bcousson, Menon, Nishanth, george.cherian, sergei.shtylyov, linux-omap, devicetree, linux-usb, Paul Walmsley On Wednesday 02 July 2014 04:56 PM, Roger Quadros wrote: > Sekhar, > > On 06/18/2014 02:19 PM, Rajendra Nayak wrote: >> On Wednesday 18 June 2014 04:40 PM, Roger Quadros wrote: >>> + Nishant and Rajendra for review. >>> >>> On 05/05/2014 12:54 PM, Roger Quadros wrote: >>>> Add the sysconfig class bits for the Super Speed USB >>>> controllers >>>> >>>> CC: Paul Walmsley <paul@pwsan.com> >>>> Signed-off-by: Roger Quadros <rogerq@ti.com> >> >> verified against TRM version vP, looks good to me. >> Reviewed-by: Rajendra Nayak <rnayak@ti.com> > > Could you please give your Tested-by tag for this? Then we can take this into 3.16-rc. Boot tested on my DRA7x EVM. Boot log here: http://paste.ubuntu.com/7741337/ Tested-by: Sekhar Nori <nsekhar@ti.com> Thanks, Sekhar ^ permalink raw reply [flat|nested] 24+ messages in thread
* [PATCH v3 6/7] ARM: dts: dra7: Add USB related nodes [not found] ` <1399283686-6127-1-git-send-email-rogerq-l0cyMroinI0@public.gmane.org> ` (2 preceding siblings ...) 2014-05-05 9:54 ` [PATCH v3 5/7] ARM: DRA7: hwmod: Add SYSCONFIG for usb_otg_ss Roger Quadros @ 2014-05-05 9:54 ` Roger Quadros [not found] ` <1399283686-6127-7-git-send-email-rogerq-l0cyMroinI0@public.gmane.org> 2014-05-06 7:19 ` [PATCH v3 0/7] USB support for DRA7-evm Roger Quadros 4 siblings, 1 reply; 24+ messages in thread From: Roger Quadros @ 2014-05-05 9:54 UTC (permalink / raw) To: kishon-l0cyMroinI0, tony-4v6yS6AI5VpBDgjK7y7TUQ, balbi-l0cyMroinI0, bcousson-rdvid1DuHRBWk0Htik3J/w Cc: george.cherian-l0cyMroinI0, sergei.shtylyov-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8, nm-l0cyMroinI0, linux-omap-u79uwXL29TY76Z2rM5mHXA, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-usb-u79uwXL29TY76Z2rM5mHXA, Roger Quadros Add nodes for the Super Speed USB controllers, omap-control-usb, USB2 PHY and USB3 PHY devices. Remove ocp2scp1 address space from hwmod data as it is now provided via device tree. CC: Benoît Cousson <bcousson-rdvid1DuHRBWk0Htik3J/w@public.gmane.org> Reviewed-by: Felipe Balbi <balbi-l0cyMroinI0@public.gmane.org> Signed-off-by: Roger Quadros <rogerq-l0cyMroinI0@public.gmane.org> --- arch/arm/boot/dts/dra7.dtsi | 149 ++++++++++++++++++++++++++++++ arch/arm/mach-omap2/omap_hwmod_7xx_data.c | 10 -- 2 files changed, 149 insertions(+), 10 deletions(-) diff --git a/arch/arm/boot/dts/dra7.dtsi b/arch/arm/boot/dts/dra7.dtsi index 149b550..4535e54 100644 --- a/arch/arm/boot/dts/dra7.dtsi +++ b/arch/arm/boot/dts/dra7.dtsi @@ -789,6 +789,155 @@ dma-names = "tx0", "rx0"; status = "disabled"; }; + + omap_control_usb2phy1: control-phy@4a002300 { + compatible = "ti,control-phy-usb2"; + reg = <0x4a002300 0x4>; + reg-names = "power"; + }; + + omap_control_usb3phy1: control-phy@4a002370 { + compatible = "ti,control-phy-pipe3"; + reg = <0x4a002370 0x4>; + reg-names = "power"; + }; + + omap_control_usb2phy2: control-phy@0x4a002e74 { + compatible = "ti,control-phy-usb2-dra7"; + reg = <0x4a002e74 0x4>; + reg-names = "power"; + }; + + /* OCP2SCP1 */ + ocp2scp@4a080000 { + compatible = "ti,omap-ocp2scp"; + #address-cells = <1>; + #size-cells = <1>; + ranges; + reg = <0x4a080000 0x20>; + ti,hwmods = "ocp2scp1"; + + usb2_phy1: phy@4a084000 { + compatible = "ti,omap-usb2"; + reg = <0x4a084000 0x400>; + ctrl-module = <&omap_control_usb2phy1>; + clocks = <&usb_phy1_always_on_clk32k>, + <&usb_otg_ss1_refclk960m>; + clock-names = "wkupclk", + "refclk"; + #phy-cells = <0>; + }; + + usb2_phy2: phy@4a085000 { + compatible = "ti,omap-usb2"; + reg = <0x4a085000 0x400>; + ctrl-module = <&omap_control_usb2phy2>; + clocks = <&usb_phy2_always_on_clk32k>, + <&usb_otg_ss2_refclk960m>; + clock-names = "wkupclk", + "refclk"; + #phy-cells = <0>; + }; + + usb3_phy1: phy@4a084400 { + compatible = "ti,omap-usb3"; + reg = <0x4a084400 0x80>, + <0x4a084800 0x64>, + <0x4a084c00 0x40>; + reg-names = "phy_rx", "phy_tx", "pll_ctrl"; + ctrl-module = <&omap_control_usb3phy1>; + clocks = <&usb_phy3_always_on_clk32k>, + <&sys_clkin1>, + <&usb_otg_ss1_refclk960m>; + clock-names = "wkupclk", + "sysclk", + "refclk"; + #phy-cells = <0>; + }; + }; + + omap_dwc3_1@48880000 { + compatible = "ti,dwc3"; + ti,hwmods = "usb_otg_ss1"; + reg = <0x48880000 0x10000>; + interrupts = <0 77 4>; + #address-cells = <1>; + #size-cells = <1>; + utmi-mode = <2>; + ranges; + usb1: usb@48890000 { + compatible = "snps,dwc3"; + reg = <0x48890000 0x17000>; + interrupts = <0 76 4>; + phys = <&usb2_phy1>, <&usb3_phy1>; + phy-names = "usb2-phy", "usb3-phy"; + tx-fifo-resize; + maximum-speed = "super-speed"; + dr_mode = "otg"; + }; + }; + + omap_dwc3_2@488c0000 { + compatible = "ti,dwc3"; + ti,hwmods = "usb_otg_ss2"; + reg = <0x488c0000 0x10000>; + interrupts = <0 92 4>; + #address-cells = <1>; + #size-cells = <1>; + utmi-mode = <2>; + ranges; + usb2: usb@488d0000 { + compatible = "snps,dwc3"; + reg = <0x488d0000 0x17000>; + interrupts = <0 78 4>; + phys = <&usb2_phy2>; + phy-names = "usb2-phy"; + tx-fifo-resize; + maximum-speed = "high-speed"; + dr_mode = "otg"; + }; + }; + + /* IRQ for DWC3_3 and DWC3_4 need IRQ crossbar */ + omap_dwc3_3@48900000 { + compatible = "ti,dwc3"; + ti,hwmods = "usb_otg_ss3"; + reg = <0x48900000 0x10000>; + /* interrupts = <0 TBD 4>; */ + #address-cells = <1>; + #size-cells = <1>; + utmi-mode = <2>; + ranges; + status = "disabled"; + usb3: usb@48910000 { + compatible = "snps,dwc3"; + reg = <0x48910000 0x17000>; + /* interrupts = <0 93 4>; */ + tx-fifo-resize; + maximum-speed = "high-speed"; + dr_mode = "otg"; + }; + }; + + omap_dwc3_4@48940000 { + compatible = "ti,dwc3"; + ti,hwmods = "usb_otg_ss4"; + reg = <0x48940000 0x10000>; + /* interrupts = <0 TBD 4>; */ + #address-cells = <1>; + #size-cells = <1>; + utmi-mode = <2>; + ranges; + status = "disabled"; + usb4: usb@48950000 { + compatible = "snps,dwc3"; + reg = <0x48950000 0x17000>; + /* interrupts = <0 TBD 4>; */ + tx-fifo-resize; + maximum-speed = "high-speed"; + dr_mode = "otg"; + }; + }; }; }; diff --git a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c index 067d322..d6f9709 100644 --- a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c @@ -2330,21 +2330,11 @@ static struct omap_hwmod_ocp_if dra7xx_l4_cfg__mpu = { .user = OCP_USER_MPU | OCP_USER_SDMA, }; -static struct omap_hwmod_addr_space dra7xx_ocp2scp1_addrs[] = { - { - .pa_start = 0x4a080000, - .pa_end = 0x4a08001f, - .flags = ADDR_TYPE_RT - }, - { } -}; - /* l4_cfg -> ocp2scp1 */ static struct omap_hwmod_ocp_if dra7xx_l4_cfg__ocp2scp1 = { .master = &dra7xx_l4_cfg_hwmod, .slave = &dra7xx_ocp2scp1_hwmod, .clk = "l4_root_clk_div", - .addr = dra7xx_ocp2scp1_addrs, .user = OCP_USER_MPU | OCP_USER_SDMA, }; -- 1.8.3.2 -- 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] 24+ messages in thread
[parent not found: <1399283686-6127-7-git-send-email-rogerq-l0cyMroinI0@public.gmane.org>]
* Re: [PATCH v3 6/7] ARM: dts: dra7: Add USB related nodes [not found] ` <1399283686-6127-7-git-send-email-rogerq-l0cyMroinI0@public.gmane.org> @ 2014-05-07 8:45 ` Roger Quadros 2014-05-07 11:55 ` [PATCH v4 " Roger Quadros 1 sibling, 0 replies; 24+ messages in thread From: Roger Quadros @ 2014-05-07 8:45 UTC (permalink / raw) To: kishon-l0cyMroinI0, tony-4v6yS6AI5VpBDgjK7y7TUQ, balbi-l0cyMroinI0, bcousson-rdvid1DuHRBWk0Htik3J/w Cc: george.cherian-l0cyMroinI0, sergei.shtylyov-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8, nm-l0cyMroinI0, linux-omap-u79uwXL29TY76Z2rM5mHXA, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-usb-u79uwXL29TY76Z2rM5mHXA Tony, This patch will need to be updated for IRQ crossbar changes. I will send a revised version of just this patch based on crossbar changes [1] [1] - http://article.gmane.org/gmane.linux.documentation/23293 cheers, -roger On 05/05/2014 12:54 PM, Roger Quadros wrote: > Add nodes for the Super Speed USB controllers, omap-control-usb, > USB2 PHY and USB3 PHY devices. > > Remove ocp2scp1 address space from hwmod data as it is > now provided via device tree. > > CC: Benoît Cousson <bcousson-rdvid1DuHRBWk0Htik3J/w@public.gmane.org> > Reviewed-by: Felipe Balbi <balbi-l0cyMroinI0@public.gmane.org> > Signed-off-by: Roger Quadros <rogerq-l0cyMroinI0@public.gmane.org> > --- > arch/arm/boot/dts/dra7.dtsi | 149 ++++++++++++++++++++++++++++++ > arch/arm/mach-omap2/omap_hwmod_7xx_data.c | 10 -- > 2 files changed, 149 insertions(+), 10 deletions(-) > > diff --git a/arch/arm/boot/dts/dra7.dtsi b/arch/arm/boot/dts/dra7.dtsi > index 149b550..4535e54 100644 > --- a/arch/arm/boot/dts/dra7.dtsi > +++ b/arch/arm/boot/dts/dra7.dtsi > @@ -789,6 +789,155 @@ > dma-names = "tx0", "rx0"; > status = "disabled"; > }; > + > + omap_control_usb2phy1: control-phy@4a002300 { > + compatible = "ti,control-phy-usb2"; > + reg = <0x4a002300 0x4>; > + reg-names = "power"; > + }; > + > + omap_control_usb3phy1: control-phy@4a002370 { > + compatible = "ti,control-phy-pipe3"; > + reg = <0x4a002370 0x4>; > + reg-names = "power"; > + }; > + > + omap_control_usb2phy2: control-phy@0x4a002e74 { > + compatible = "ti,control-phy-usb2-dra7"; > + reg = <0x4a002e74 0x4>; > + reg-names = "power"; > + }; > + > + /* OCP2SCP1 */ > + ocp2scp@4a080000 { > + compatible = "ti,omap-ocp2scp"; > + #address-cells = <1>; > + #size-cells = <1>; > + ranges; > + reg = <0x4a080000 0x20>; > + ti,hwmods = "ocp2scp1"; > + > + usb2_phy1: phy@4a084000 { > + compatible = "ti,omap-usb2"; > + reg = <0x4a084000 0x400>; > + ctrl-module = <&omap_control_usb2phy1>; > + clocks = <&usb_phy1_always_on_clk32k>, > + <&usb_otg_ss1_refclk960m>; > + clock-names = "wkupclk", > + "refclk"; > + #phy-cells = <0>; > + }; > + > + usb2_phy2: phy@4a085000 { > + compatible = "ti,omap-usb2"; > + reg = <0x4a085000 0x400>; > + ctrl-module = <&omap_control_usb2phy2>; > + clocks = <&usb_phy2_always_on_clk32k>, > + <&usb_otg_ss2_refclk960m>; > + clock-names = "wkupclk", > + "refclk"; > + #phy-cells = <0>; > + }; > + > + usb3_phy1: phy@4a084400 { > + compatible = "ti,omap-usb3"; > + reg = <0x4a084400 0x80>, > + <0x4a084800 0x64>, > + <0x4a084c00 0x40>; > + reg-names = "phy_rx", "phy_tx", "pll_ctrl"; > + ctrl-module = <&omap_control_usb3phy1>; > + clocks = <&usb_phy3_always_on_clk32k>, > + <&sys_clkin1>, > + <&usb_otg_ss1_refclk960m>; > + clock-names = "wkupclk", > + "sysclk", > + "refclk"; > + #phy-cells = <0>; > + }; > + }; > + > + omap_dwc3_1@48880000 { > + compatible = "ti,dwc3"; > + ti,hwmods = "usb_otg_ss1"; > + reg = <0x48880000 0x10000>; > + interrupts = <0 77 4>; > + #address-cells = <1>; > + #size-cells = <1>; > + utmi-mode = <2>; > + ranges; > + usb1: usb@48890000 { > + compatible = "snps,dwc3"; > + reg = <0x48890000 0x17000>; > + interrupts = <0 76 4>; > + phys = <&usb2_phy1>, <&usb3_phy1>; > + phy-names = "usb2-phy", "usb3-phy"; > + tx-fifo-resize; > + maximum-speed = "super-speed"; > + dr_mode = "otg"; > + }; > + }; > + > + omap_dwc3_2@488c0000 { > + compatible = "ti,dwc3"; > + ti,hwmods = "usb_otg_ss2"; > + reg = <0x488c0000 0x10000>; > + interrupts = <0 92 4>; > + #address-cells = <1>; > + #size-cells = <1>; > + utmi-mode = <2>; > + ranges; > + usb2: usb@488d0000 { > + compatible = "snps,dwc3"; > + reg = <0x488d0000 0x17000>; > + interrupts = <0 78 4>; > + phys = <&usb2_phy2>; > + phy-names = "usb2-phy"; > + tx-fifo-resize; > + maximum-speed = "high-speed"; > + dr_mode = "otg"; > + }; > + }; > + > + /* IRQ for DWC3_3 and DWC3_4 need IRQ crossbar */ > + omap_dwc3_3@48900000 { > + compatible = "ti,dwc3"; > + ti,hwmods = "usb_otg_ss3"; > + reg = <0x48900000 0x10000>; > + /* interrupts = <0 TBD 4>; */ > + #address-cells = <1>; > + #size-cells = <1>; > + utmi-mode = <2>; > + ranges; > + status = "disabled"; > + usb3: usb@48910000 { > + compatible = "snps,dwc3"; > + reg = <0x48910000 0x17000>; > + /* interrupts = <0 93 4>; */ > + tx-fifo-resize; > + maximum-speed = "high-speed"; > + dr_mode = "otg"; > + }; > + }; > + > + omap_dwc3_4@48940000 { > + compatible = "ti,dwc3"; > + ti,hwmods = "usb_otg_ss4"; > + reg = <0x48940000 0x10000>; > + /* interrupts = <0 TBD 4>; */ > + #address-cells = <1>; > + #size-cells = <1>; > + utmi-mode = <2>; > + ranges; > + status = "disabled"; > + usb4: usb@48950000 { > + compatible = "snps,dwc3"; > + reg = <0x48950000 0x17000>; > + /* interrupts = <0 TBD 4>; */ > + tx-fifo-resize; > + maximum-speed = "high-speed"; > + dr_mode = "otg"; > + }; > + }; > }; > }; > > diff --git a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c > index 067d322..d6f9709 100644 > --- a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c > +++ b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c > @@ -2330,21 +2330,11 @@ static struct omap_hwmod_ocp_if dra7xx_l4_cfg__mpu = { > .user = OCP_USER_MPU | OCP_USER_SDMA, > }; > > -static struct omap_hwmod_addr_space dra7xx_ocp2scp1_addrs[] = { > - { > - .pa_start = 0x4a080000, > - .pa_end = 0x4a08001f, > - .flags = ADDR_TYPE_RT > - }, > - { } > -}; > - > /* l4_cfg -> ocp2scp1 */ > static struct omap_hwmod_ocp_if dra7xx_l4_cfg__ocp2scp1 = { > .master = &dra7xx_l4_cfg_hwmod, > .slave = &dra7xx_ocp2scp1_hwmod, > .clk = "l4_root_clk_div", > - .addr = dra7xx_ocp2scp1_addrs, > .user = OCP_USER_MPU | OCP_USER_SDMA, > }; > > -- 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 [flat|nested] 24+ messages in thread
* [PATCH v4 6/7] ARM: dts: dra7: Add USB related nodes [not found] ` <1399283686-6127-7-git-send-email-rogerq-l0cyMroinI0@public.gmane.org> 2014-05-07 8:45 ` Roger Quadros @ 2014-05-07 11:55 ` Roger Quadros 1 sibling, 0 replies; 24+ messages in thread From: Roger Quadros @ 2014-05-07 11:55 UTC (permalink / raw) To: tony-4v6yS6AI5VpBDgjK7y7TUQ, bcousson-rdvid1DuHRBWk0Htik3J/w Cc: kishon-l0cyMroinI0, balbi-l0cyMroinI0, george.cherian-l0cyMroinI0, sergei.shtylyov-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8, nm-l0cyMroinI0, linux-omap-u79uwXL29TY76Z2rM5mHXA, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-usb-u79uwXL29TY76Z2rM5mHXA Add nodes for the Super Speed USB controllers, omap-control-usb, USB2 PHY and USB3 PHY devices. Use IRQ crossbar for interrupts. Remove ocp2scp1 address space from hwmod data as it is now provided via device tree. CC: Benoît Cousson <bcousson-rdvid1DuHRBWk0Htik3J/w@public.gmane.org> Reviewed-by: Felipe Balbi <balbi-l0cyMroinI0@public.gmane.org> Signed-off-by: Roger Quadros <rogerq-l0cyMroinI0@public.gmane.org> --- arch/arm/boot/dts/dra7.dtsi | 148 ++++++++++++++++++++++++++++++ arch/arm/mach-omap2/omap_hwmod_7xx_data.c | 10 -- 2 files changed, 148 insertions(+), 10 deletions(-) diff --git a/arch/arm/boot/dts/dra7.dtsi b/arch/arm/boot/dts/dra7.dtsi index cec826f..8bc48bd 100644 --- a/arch/arm/boot/dts/dra7.dtsi +++ b/arch/arm/boot/dts/dra7.dtsi @@ -798,6 +798,154 @@ dma-names = "tx0", "rx0"; status = "disabled"; }; + + omap_control_usb2phy1: control-phy@4a002300 { + compatible = "ti,control-phy-usb2"; + reg = <0x4a002300 0x4>; + reg-names = "power"; + }; + + omap_control_usb3phy1: control-phy@4a002370 { + compatible = "ti,control-phy-pipe3"; + reg = <0x4a002370 0x4>; + reg-names = "power"; + }; + + omap_control_usb2phy2: control-phy@0x4a002e74 { + compatible = "ti,control-phy-usb2-dra7"; + reg = <0x4a002e74 0x4>; + reg-names = "power"; + }; + + /* OCP2SCP1 */ + ocp2scp@4a080000 { + compatible = "ti,omap-ocp2scp"; + #address-cells = <1>; + #size-cells = <1>; + ranges; + reg = <0x4a080000 0x20>; + ti,hwmods = "ocp2scp1"; + + usb2_phy1: phy@4a084000 { + compatible = "ti,omap-usb2"; + reg = <0x4a084000 0x400>; + ctrl-module = <&omap_control_usb2phy1>; + clocks = <&usb_phy1_always_on_clk32k>, + <&usb_otg_ss1_refclk960m>; + clock-names = "wkupclk", + "refclk"; + #phy-cells = <0>; + }; + + usb2_phy2: phy@4a085000 { + compatible = "ti,omap-usb2"; + reg = <0x4a085000 0x400>; + ctrl-module = <&omap_control_usb2phy2>; + clocks = <&usb_phy2_always_on_clk32k>, + <&usb_otg_ss2_refclk960m>; + clock-names = "wkupclk", + "refclk"; + #phy-cells = <0>; + }; + + usb3_phy1: phy@4a084400 { + compatible = "ti,omap-usb3"; + reg = <0x4a084400 0x80>, + <0x4a084800 0x64>, + <0x4a084c00 0x40>; + reg-names = "phy_rx", "phy_tx", "pll_ctrl"; + ctrl-module = <&omap_control_usb3phy1>; + clocks = <&usb_phy3_always_on_clk32k>, + <&sys_clkin1>, + <&usb_otg_ss1_refclk960m>; + clock-names = "wkupclk", + "sysclk", + "refclk"; + #phy-cells = <0>; + }; + }; + + omap_dwc3_1@48880000 { + compatible = "ti,dwc3"; + ti,hwmods = "usb_otg_ss1"; + reg = <0x48880000 0x10000>; + interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>; + #address-cells = <1>; + #size-cells = <1>; + utmi-mode = <2>; + ranges; + usb1: usb@48890000 { + compatible = "snps,dwc3"; + reg = <0x48890000 0x17000>; + interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>; + phys = <&usb2_phy1>, <&usb3_phy1>; + phy-names = "usb2-phy", "usb3-phy"; + tx-fifo-resize; + maximum-speed = "super-speed"; + dr_mode = "otg"; + }; + }; + + omap_dwc3_2@488c0000 { + compatible = "ti,dwc3"; + ti,hwmods = "usb_otg_ss2"; + reg = <0x488c0000 0x10000>; + interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>; + #address-cells = <1>; + #size-cells = <1>; + utmi-mode = <2>; + ranges; + usb2: usb@488d0000 { + compatible = "snps,dwc3"; + reg = <0x488d0000 0x17000>; + interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>; + phys = <&usb2_phy2>; + phy-names = "usb2-phy"; + tx-fifo-resize; + maximum-speed = "high-speed"; + dr_mode = "otg"; + }; + }; + + omap_dwc3_3@48900000 { + compatible = "ti,dwc3"; + ti,hwmods = "usb_otg_ss3"; + reg = <0x48900000 0x10000>; + interrupts = <GIC_SPI 344 IRQ_TYPE_LEVEL_HIGH>; + #address-cells = <1>; + #size-cells = <1>; + utmi-mode = <2>; + ranges; + status = "disabled"; + usb3: usb@48910000 { + compatible = "snps,dwc3"; + reg = <0x48910000 0x17000>; + interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>; + tx-fifo-resize; + maximum-speed = "high-speed"; + dr_mode = "otg"; + }; + }; + + omap_dwc3_4@48940000 { + compatible = "ti,dwc3"; + ti,hwmods = "usb_otg_ss4"; + reg = <0x48940000 0x10000>; + interrupts = <GIC_SPI 346 IRQ_TYPE_LEVEL_HIGH>; + #address-cells = <1>; + #size-cells = <1>; + utmi-mode = <2>; + ranges; + status = "disabled"; + usb4: usb@48950000 { + compatible = "snps,dwc3"; + reg = <0x48950000 0x17000>; + interrupts = <GIC_SPI 345 IRQ_TYPE_LEVEL_HIGH>; + tx-fifo-resize; + maximum-speed = "high-speed"; + dr_mode = "otg"; + }; + }; }; crossbar_mpu: crossbar@4a020000 { diff --git a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c index 067d322..d6f9709 100644 --- a/arch/arm/mach-omap2/omap_hwmod_7xx_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_7xx_data.c @@ -2330,21 +2330,11 @@ static struct omap_hwmod_ocp_if dra7xx_l4_cfg__mpu = { .user = OCP_USER_MPU | OCP_USER_SDMA, }; -static struct omap_hwmod_addr_space dra7xx_ocp2scp1_addrs[] = { - { - .pa_start = 0x4a080000, - .pa_end = 0x4a08001f, - .flags = ADDR_TYPE_RT - }, - { } -}; ^ permalink raw reply related [flat|nested] 24+ messages in thread
* Re: [PATCH v3 0/7] USB support for DRA7-evm [not found] ` <1399283686-6127-1-git-send-email-rogerq-l0cyMroinI0@public.gmane.org> ` (3 preceding siblings ...) 2014-05-05 9:54 ` [PATCH v3 6/7] ARM: dts: dra7: Add USB related nodes Roger Quadros @ 2014-05-06 7:19 ` Roger Quadros 2014-05-06 8:19 ` Kishon Vijay Abraham I 4 siblings, 1 reply; 24+ messages in thread From: Roger Quadros @ 2014-05-06 7:19 UTC (permalink / raw) To: kishon-l0cyMroinI0, tony-4v6yS6AI5VpBDgjK7y7TUQ, balbi-l0cyMroinI0, bcousson-rdvid1DuHRBWk0Htik3J/w Cc: george.cherian-l0cyMroinI0, sergei.shtylyov-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8, nm-l0cyMroinI0, linux-omap-u79uwXL29TY76Z2rM5mHXA, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-usb-u79uwXL29TY76Z2rM5mHXA Hi Kishon, Could you please pick the first 2 patches in this series for phy-next? They are independent of the rest. Thanks. cheers, -roger On 05/05/2014 12:54 PM, Roger Quadros wrote: > Hi, > > This series enables the 2 USB ports on the DRA7-evm. > > NOTE: USB1 port is hard coded to work in peripheral mode and USB2 port > in host mode. This is due to missing ID pin interrupt in pre ver.E boards. > > USB1 port doesn't in peripheral mode out of the box due to missing VBUS detection > and mailbox write. To test this I had to do a manual write to enable VBUSVALID > in the USB_UTMI_OTG_STATUS register. > omapconf set bit 0x48880084 1 > > USB2 port works well in host mode. > > Patches are based on 3.15-rc3. > > cheers, > -roger > > Changelog: > > v3: > -Rearraged patches. PHY related stuff first. > -Addressed backward compatibility issue for phy-omap-usb2. > > v2: > -Rebased on v3.15-rc3 > > --- > Roger Quadros (7): > phy: omap-usb2: Use generic clock names "wkupclk" and "refclk" > phy: omap-usb2: Add clock names to Documentation binding > ARM: dts: omap4+: Add clocks to USB2 PHY node > ARM: dts: dra7-clock: Add "l3init_960m_gfclk" clock gate > ARM: DRA7: hwmod: Add SYSCONFIG for usb_otg_ss > ARM: dts: dra7: Add USB related nodes > dts: dra7-evm: add USB support > > Documentation/devicetree/bindings/phy/ti-phy.txt | 7 ++ > arch/arm/boot/dts/dra7-evm.dts | 24 ++++ > arch/arm/boot/dts/dra7.dtsi | 149 +++++++++++++++++++++++ > arch/arm/boot/dts/dra7xx-clocks.dtsi | 12 +- > arch/arm/boot/dts/omap4.dtsi | 2 + > arch/arm/boot/dts/omap5.dtsi | 2 + > arch/arm/mach-omap2/omap_hwmod_7xx_data.c | 22 ++-- > drivers/phy/phy-omap-usb2.c | 30 +++-- > 8 files changed, 229 insertions(+), 19 deletions(-) > -- 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 [flat|nested] 24+ messages in thread
* Re: [PATCH v3 0/7] USB support for DRA7-evm 2014-05-06 7:19 ` [PATCH v3 0/7] USB support for DRA7-evm Roger Quadros @ 2014-05-06 8:19 ` Kishon Vijay Abraham I 0 siblings, 0 replies; 24+ messages in thread From: Kishon Vijay Abraham I @ 2014-05-06 8:19 UTC (permalink / raw) To: Roger Quadros, tony, balbi, bcousson Cc: george.cherian, sergei.shtylyov, nm, linux-omap, devicetree, linux-usb On Tuesday 06 May 2014 12:49 PM, Roger Quadros wrote: > Hi Kishon, > > Could you please pick the first 2 patches in this series for phy-next? > They are independent of the rest. Thanks. sure.. will be queuing it shortly. Thanks Kishon > > cheers, > -roger > > On 05/05/2014 12:54 PM, Roger Quadros wrote: >> Hi, >> >> This series enables the 2 USB ports on the DRA7-evm. >> >> NOTE: USB1 port is hard coded to work in peripheral mode and USB2 port >> in host mode. This is due to missing ID pin interrupt in pre ver.E boards. >> >> USB1 port doesn't in peripheral mode out of the box due to missing VBUS detection >> and mailbox write. To test this I had to do a manual write to enable VBUSVALID >> in the USB_UTMI_OTG_STATUS register. >> omapconf set bit 0x48880084 1 >> >> USB2 port works well in host mode. >> >> Patches are based on 3.15-rc3. >> >> cheers, >> -roger >> >> Changelog: >> >> v3: >> -Rearraged patches. PHY related stuff first. >> -Addressed backward compatibility issue for phy-omap-usb2. >> >> v2: >> -Rebased on v3.15-rc3 >> >> --- >> Roger Quadros (7): >> phy: omap-usb2: Use generic clock names "wkupclk" and "refclk" >> phy: omap-usb2: Add clock names to Documentation binding >> ARM: dts: omap4+: Add clocks to USB2 PHY node >> ARM: dts: dra7-clock: Add "l3init_960m_gfclk" clock gate >> ARM: DRA7: hwmod: Add SYSCONFIG for usb_otg_ss >> ARM: dts: dra7: Add USB related nodes >> dts: dra7-evm: add USB support >> >> Documentation/devicetree/bindings/phy/ti-phy.txt | 7 ++ >> arch/arm/boot/dts/dra7-evm.dts | 24 ++++ >> arch/arm/boot/dts/dra7.dtsi | 149 +++++++++++++++++++++++ >> arch/arm/boot/dts/dra7xx-clocks.dtsi | 12 +- >> arch/arm/boot/dts/omap4.dtsi | 2 + >> arch/arm/boot/dts/omap5.dtsi | 2 + >> arch/arm/mach-omap2/omap_hwmod_7xx_data.c | 22 ++-- >> drivers/phy/phy-omap-usb2.c | 30 +++-- >> 8 files changed, 229 insertions(+), 19 deletions(-) >> > ^ permalink raw reply [flat|nested] 24+ messages in thread
* [PATCH v3 7/7] dts: dra7-evm: add USB support 2014-05-05 9:54 [PATCH v3 0/7] USB support for DRA7-evm Roger Quadros ` (2 preceding siblings ...) [not found] ` <1399283686-6127-1-git-send-email-rogerq-l0cyMroinI0@public.gmane.org> @ 2014-05-05 9:54 ` Roger Quadros 2014-05-13 17:18 ` Tony Lindgren [not found] ` <1399283686-6127-8-git-send-email-rogerq-l0cyMroinI0@public.gmane.org> 3 siblings, 2 replies; 24+ messages in thread From: Roger Quadros @ 2014-05-05 9:54 UTC (permalink / raw) To: kishon, tony, balbi, bcousson Cc: george.cherian, sergei.shtylyov, nm, linux-omap, devicetree, linux-usb, Roger Quadros Add USB pinmux information and USB modes for the USB controllers. CC: Benoît Cousson <bcousson@baylibre.com> Reviewed-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Roger Quadros <rogerq@ti.com> --- arch/arm/boot/dts/dra7-evm.dts | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/arm/boot/dts/dra7-evm.dts b/arch/arm/boot/dts/dra7-evm.dts index 5babba0..1d77815 100644 --- a/arch/arm/boot/dts/dra7-evm.dts +++ b/arch/arm/boot/dts/dra7-evm.dts @@ -93,6 +93,18 @@ 0x24c (PIN_INPUT_SLEW | MUX_MODE0) /* uart3_txd */ >; }; + + usb1_pins: pinmux_usb1_pins { + pinctrl-single,pins = < + 0x280 0xc0000 /* usb1_drvvbus, SLOW_SLEW | PULLUPEN | MODE0 */ + >; + }; + + usb2_pins: pinmux_usb2_pins { + pinctrl-single,pins = < + 0x284 0xc0000 /* usb2_drvvbus, SLOW_SLEW | PULLUPEN | MODE0 */ + >; + }; }; &i2c1 { @@ -273,3 +285,15 @@ &cpu0 { cpu0-supply = <&smps123_reg>; }; + +&usb1 { + dr_mode = "peripheral"; + pinctrl-names = "default"; + pinctrl-0 = <&usb1_pins>; +}; + +&usb2 { + dr_mode = "host"; + pinctrl-names = "default"; + pinctrl-0 = <&usb2_pins>; +}; -- 1.8.3.2 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" 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 related [flat|nested] 24+ messages in thread
* Re: [PATCH v3 7/7] dts: dra7-evm: add USB support 2014-05-05 9:54 ` [PATCH v3 7/7] dts: dra7-evm: add USB support Roger Quadros @ 2014-05-13 17:18 ` Tony Lindgren [not found] ` <20140513171802.GG16837-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org> [not found] ` <1399283686-6127-8-git-send-email-rogerq-l0cyMroinI0@public.gmane.org> 1 sibling, 1 reply; 24+ messages in thread From: Tony Lindgren @ 2014-05-13 17:18 UTC (permalink / raw) To: Roger Quadros Cc: kishon, balbi, bcousson, george.cherian, sergei.shtylyov, nm, linux-omap, devicetree, linux-usb * Roger Quadros <rogerq@ti.com> [140505 02:55]: > Add USB pinmux information and USB modes > for the USB controllers. > > CC: Benoît Cousson <bcousson@baylibre.com> > Reviewed-by: Felipe Balbi <balbi@ti.com> > Signed-off-by: Roger Quadros <rogerq@ti.com> > --- > arch/arm/boot/dts/dra7-evm.dts | 24 ++++++++++++++++++++++++ > 1 file changed, 24 insertions(+) > > diff --git a/arch/arm/boot/dts/dra7-evm.dts b/arch/arm/boot/dts/dra7-evm.dts > index 5babba0..1d77815 100644 > --- a/arch/arm/boot/dts/dra7-evm.dts > +++ b/arch/arm/boot/dts/dra7-evm.dts > @@ -93,6 +93,18 @@ > 0x24c (PIN_INPUT_SLEW | MUX_MODE0) /* uart3_txd */ > >; > }; > + > + usb1_pins: pinmux_usb1_pins { > + pinctrl-single,pins = < > + 0x280 0xc0000 /* usb1_drvvbus, SLOW_SLEW | PULLUPEN | MODE0 */ > + >; > + }; > + > + usb2_pins: pinmux_usb2_pins { > + pinctrl-single,pins = < > + 0x284 0xc0000 /* usb2_drvvbus, SLOW_SLEW | PULLUPEN | MODE0 */ > + >; > + }; > }; Looks like these should use the existing defins PIN_INPUT_SLEW etc? Regards, Tony -- To unsubscribe from this list: send the line "unsubscribe linux-omap" 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] 24+ messages in thread
[parent not found: <20140513171802.GG16837-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>]
* Re: [PATCH v3 7/7] dts: dra7-evm: add USB support [not found] ` <20140513171802.GG16837-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org> @ 2014-05-14 7:53 ` Roger Quadros 0 siblings, 0 replies; 24+ messages in thread From: Roger Quadros @ 2014-05-14 7:53 UTC (permalink / raw) To: Tony Lindgren Cc: kishon-l0cyMroinI0, balbi-l0cyMroinI0, bcousson-rdvid1DuHRBWk0Htik3J/w, george.cherian-l0cyMroinI0, sergei.shtylyov-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8, nm-l0cyMroinI0, linux-omap-u79uwXL29TY76Z2rM5mHXA, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-usb-u79uwXL29TY76Z2rM5mHXA On 05/13/2014 08:18 PM, Tony Lindgren wrote: > * Roger Quadros <rogerq-l0cyMroinI0@public.gmane.org> [140505 02:55]: >> Add USB pinmux information and USB modes >> for the USB controllers. >> >> CC: Benoît Cousson <bcousson-rdvid1DuHRBWk0Htik3J/w@public.gmane.org> >> Reviewed-by: Felipe Balbi <balbi-l0cyMroinI0@public.gmane.org> >> Signed-off-by: Roger Quadros <rogerq-l0cyMroinI0@public.gmane.org> >> --- >> arch/arm/boot/dts/dra7-evm.dts | 24 ++++++++++++++++++++++++ >> 1 file changed, 24 insertions(+) >> >> diff --git a/arch/arm/boot/dts/dra7-evm.dts b/arch/arm/boot/dts/dra7-evm.dts >> index 5babba0..1d77815 100644 >> --- a/arch/arm/boot/dts/dra7-evm.dts >> +++ b/arch/arm/boot/dts/dra7-evm.dts >> @@ -93,6 +93,18 @@ >> 0x24c (PIN_INPUT_SLEW | MUX_MODE0) /* uart3_txd */ >> >; >> }; >> + >> + usb1_pins: pinmux_usb1_pins { >> + pinctrl-single,pins = < >> + 0x280 0xc0000 /* usb1_drvvbus, SLOW_SLEW | PULLUPEN | MODE0 */ >> + >; >> + }; >> + >> + usb2_pins: pinmux_usb2_pins { >> + pinctrl-single,pins = < >> + 0x284 0xc0000 /* usb2_drvvbus, SLOW_SLEW | PULLUPEN | MODE0 */ >> + >; >> + }; >> }; > > Looks like these should use the existing defins PIN_INPUT_SLEW etc? Yes, I'll fix them up. cheers, -roger -- 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 [flat|nested] 24+ messages in thread
[parent not found: <1399283686-6127-8-git-send-email-rogerq-l0cyMroinI0@public.gmane.org>]
* [PATCH v4 7/7] dts: dra7-evm: add USB support [not found] ` <1399283686-6127-8-git-send-email-rogerq-l0cyMroinI0@public.gmane.org> @ 2014-05-14 7:58 ` Roger Quadros [not found] ` <53732215.8050608-l0cyMroinI0@public.gmane.org> 0 siblings, 1 reply; 24+ messages in thread From: Roger Quadros @ 2014-05-14 7:58 UTC (permalink / raw) To: tony-4v6yS6AI5VpBDgjK7y7TUQ Cc: kishon-l0cyMroinI0, balbi-l0cyMroinI0, bcousson-rdvid1DuHRBWk0Htik3J/w, george.cherian-l0cyMroinI0, sergei.shtylyov-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8, nm-l0cyMroinI0, linux-omap-u79uwXL29TY76Z2rM5mHXA, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-usb-u79uwXL29TY76Z2rM5mHXA From: Roger Quadros <rogerq-l0cyMroinI0@public.gmane.org> Add USB pinmux information and USB modes for the USB controllers. CC: Benoît Cousson <bcousson-rdvid1DuHRBWk0Htik3J/w@public.gmane.org> Reviewed-by: Felipe Balbi <balbi-l0cyMroinI0@public.gmane.org> Signed-off-by: Roger Quadros <rogerq-l0cyMroinI0@public.gmane.org> --- arch/arm/boot/dts/dra7-evm.dts | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/arm/boot/dts/dra7-evm.dts b/arch/arm/boot/dts/dra7-evm.dts index 5babba0..222a7fa 100644 --- a/arch/arm/boot/dts/dra7-evm.dts +++ b/arch/arm/boot/dts/dra7-evm.dts @@ -93,6 +93,18 @@ 0x24c (PIN_INPUT_SLEW | MUX_MODE0) /* uart3_txd */ >; }; + + usb1_pins: pinmux_usb1_pins { + pinctrl-single,pins = < + 0x280 (PIN_INPUT_SLEW | MUX_MODE0) /* usb1_drvvbus */ + >; + }; + + usb2_pins: pinmux_usb2_pins { + pinctrl-single,pins = < + 0x284 (PIN_INPUT_SLEW | MUX_MODE0) /* usb2_drvvbus */ + >; + }; }; &i2c1 { @@ -273,3 +285,15 @@ &cpu0 { cpu0-supply = <&smps123_reg>; }; + +&usb1 { + dr_mode = "peripheral"; + pinctrl-names = "default"; + pinctrl-0 = <&usb1_pins>; +}; + +&usb2 { + dr_mode = "host"; + pinctrl-names = "default"; + pinctrl-0 = <&usb2_pins>; +}; -- 1.8.3.2 -- 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] 24+ messages in thread
[parent not found: <53732215.8050608-l0cyMroinI0@public.gmane.org>]
* Re: [PATCH v4 7/7] dts: dra7-evm: add USB support [not found] ` <53732215.8050608-l0cyMroinI0@public.gmane.org> @ 2014-05-14 21:27 ` Tony Lindgren 0 siblings, 0 replies; 24+ messages in thread From: Tony Lindgren @ 2014-05-14 21:27 UTC (permalink / raw) To: Roger Quadros Cc: kishon-l0cyMroinI0, balbi-l0cyMroinI0, bcousson-rdvid1DuHRBWk0Htik3J/w, george.cherian-l0cyMroinI0, sergei.shtylyov-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8, nm-l0cyMroinI0, linux-omap-u79uwXL29TY76Z2rM5mHXA, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-usb-u79uwXL29TY76Z2rM5mHXA * Roger Quadros <rogerq-l0cyMroinI0@public.gmane.org> [140514 00:59]: > From: Roger Quadros <rogerq-l0cyMroinI0@public.gmane.org> > > Add USB pinmux information and USB modes > for the USB controllers. Thanks, applying all the .dts changes in this series into omap-for-v3.16/dt. Using the non-irqbar versions. Tony -- 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 [flat|nested] 24+ messages in thread
end of thread, other threads:[~2014-07-03 10:42 UTC | newest] Thread overview: 24+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-05-05 9:54 [PATCH v3 0/7] USB support for DRA7-evm Roger Quadros 2014-05-05 9:54 ` [PATCH v3 2/7] phy: omap-usb2: Add clock names to Documentation binding Roger Quadros 2014-05-05 9:54 ` [PATCH v3 4/7] ARM: dts: dra7-clock: Add "l3init_960m_gfclk" clock gate Roger Quadros 2014-05-06 10:10 ` Tero Kristo [not found] ` <1399283686-6127-1-git-send-email-rogerq-l0cyMroinI0@public.gmane.org> 2014-05-05 9:54 ` [PATCH v3 1/7] phy: omap-usb2: Use generic clock names "wkupclk" and "refclk" Roger Quadros [not found] ` <1399283686-6127-2-git-send-email-rogerq-l0cyMroinI0@public.gmane.org> 2014-05-05 18:14 ` Felipe Balbi 2014-05-05 9:54 ` [PATCH v3 3/7] ARM: dts: omap4+: Add clocks to USB2 PHY node Roger Quadros 2014-05-05 9:54 ` [PATCH v3 5/7] ARM: DRA7: hwmod: Add SYSCONFIG for usb_otg_ss Roger Quadros 2014-06-13 19:08 ` Paul Walmsley 2014-06-18 11:10 ` Roger Quadros 2014-06-18 11:19 ` Rajendra Nayak [not found] ` <53A175DC.8080709-l0cyMroinI0@public.gmane.org> 2014-06-18 11:24 ` Roger Quadros 2014-07-02 11:26 ` Roger Quadros 2014-07-03 10:42 ` Sekhar Nori 2014-05-05 9:54 ` [PATCH v3 6/7] ARM: dts: dra7: Add USB related nodes Roger Quadros [not found] ` <1399283686-6127-7-git-send-email-rogerq-l0cyMroinI0@public.gmane.org> 2014-05-07 8:45 ` Roger Quadros 2014-05-07 11:55 ` [PATCH v4 " Roger Quadros 2014-05-06 7:19 ` [PATCH v3 0/7] USB support for DRA7-evm Roger Quadros 2014-05-06 8:19 ` Kishon Vijay Abraham I 2014-05-05 9:54 ` [PATCH v3 7/7] dts: dra7-evm: add USB support Roger Quadros 2014-05-13 17:18 ` Tony Lindgren [not found] ` <20140513171802.GG16837-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org> 2014-05-14 7:53 ` Roger Quadros [not found] ` <1399283686-6127-8-git-send-email-rogerq-l0cyMroinI0@public.gmane.org> 2014-05-14 7:58 ` [PATCH v4 " Roger Quadros [not found] ` <53732215.8050608-l0cyMroinI0@public.gmane.org> 2014-05-14 21:27 ` Tony Lindgren
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).