USB support for DRA7-evm
Subsystems (6)
v2 cover USB support for DRA7-evm
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
Roger Quadros (7):
ARM: dts: dra7-clock: Add "l3init_960m_gfclk" clock gate
ARM: DRA7: hwmod: Add SYSCONFIG for usb_otg_ss
phy: omap-usb2: Use generic clock names "wkupclk" and "refclk"
ARM: dts: omap4+: Add clocks to USB2 PHY node
phy: omap-usb2: Add clock names to Documentation binding
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 | 8 +- 8 files changed, 210 insertions(+), 16 deletions(-)
Signature · 6 lines
1.8.3.2 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 1398693687-13967-1-git-send-email-rogerq-l0cyMroinI0@public.gmane.org
PATCH v2 1/7 ARM: dts: dra7-clock: Add "l3init_960m_gfclk" clock gate
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.
--- arch/arm/boot/dts/dra7xx-clocks.dtsi | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-)
arch/arm/boot/dts/dra7xx-clocks.dtsi +10 -2
@@ -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>; };
Signature · 6 lines
1.8.3.2 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH v2 2/7 ARM: DRA7: hwmod: Add SYSCONFIG for usb_otg_ss
In reply to a message not in the archiveAdd the sysconfig class bits for the Super Speed USB controllers
--- arch/arm/mach-omap2/omap_hwmod_7xx_data.c | 12 ++++++++++++ 1 file changed, 12 insertions(+)
arch/arm/mach-omap2/omap_hwmod_7xx_data.c +12 -0
@@ -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 */
Signature · 6 lines
1.8.3.2 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH v2 3/7 phy: omap-usb2: Use generic clock names "wkupclk" and "refclk"
In reply to a message not in the archiveAs 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.
--- drivers/phy/phy-omap-usb2.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/phy/phy-omap-usb2.c +4 -4
@@ -275,16 +275,16 @@ 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" ); +dev_err (&pdev->dev,"unable to get wkupclk\n" );return PTR_ERR (phy->wkupclk); }clk_prepare (phy->wkupclk); - phy->optclk =devm_clk_get (phy->dev,"usb_otg_ss_refclk960m" ); + phy->optclk =devm_clk_get (phy->dev,"refclk" );if (IS_ERR (phy->optclk)) -dev_vdbg (&pdev->dev,"unable to get refclk960m\n" ); +dev_dbg (&pdev->dev,"unable to get refclk\n" );else clk_prepare (phy->optclk);
Signature · 6 lines
1.8.3.2 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 1398693687-13967-4-git-send-email-rogerq-l0cyMroinI0@public.gmane.org
Re: [PATCH v2 3/7] phy: omap-usb2: Use generic clock names "wkupclk" and "refclk"
Hi,
Quoted 14 lines · 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 <[email protected]>--- drivers/phy/phy-omap-usb2.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)drivers/phy/phy-omap-usb2.c +0
-0
drivers/phy/phy-omap-usb2.c static int omap_usb2_probe(struct platform_device *pdev) · line 278
Quoted 5 lines
drivers/phy/phy-omap-usb2.c +1
-1@@ -275,16 +275,16 @@ 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" );
doesn't this patch cause a regression ? I mean, you're changing the clock name before fixing DTS. Also, that DTS has been in a major version of the kernel, so we need to maintain compatibility with it. How about:
phy->wkupclk = devm_clk_get(phy->dev, "wkupclk");
if (IS_ERR(phy->wkupclk)) {
dev_err(&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 your DTS\n");
}
}a bit ugly, but at least we don't cause any regressions. Likewise for other clocks.
Signature · 1 line
balbi
A message that is not in the archive (sent off-list or not yet received): [email protected]
Re: [PATCH v2 3/7] phy: omap-usb2: Use generic clock names "wkupclk" and "refclk"
+Nishant
Hi,
Quoted 20 lines · Felipe Balbi
Hi,
Quoted 17 lines · 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 <[email protected]>--- drivers/phy/phy-omap-usb2.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)drivers/phy/phy-omap-usb2.c +0
-0@@ -275,16 +275,16 @@ static int omap_usb2_probe(struct platform_device *pdev)if (IS_ERR (phy_provider))return PTR_ERR (phy_provider);
Quoted 6 lines
drivers/phy/phy-omap-usb2.c static int omap_usb2_probe(struct platform_device *pdev) · line 278
Quoted 2 lines
drivers/phy/phy-omap-usb2.c +1
-1- phy->wkupclk =devm_clk_get (phy->dev,"usb_phy_cm_clk32k" ); + phy->wkupclk =devm_clk_get (phy->dev,"wkupclk" );doesn't this patch cause a regression ? I mean, you're changing the clock name before fixing DTS. Also, that DTS has been in a major version of the kernel, so we need to maintain compatibility with it. How about:
I'm changing the DTS in Patch 4, but I prefer to do it in this patch to prevent synchronization issues in -next.
About backward compatibility, I agree with you but at the same time I don't think anyone using TI SoCs burns the DTB to ROM and needs backward compatibility. We supply our BSPs/SDKs with the updated DTBs. Do you feel strict backward compatibility is worth the effort for TI specific blocks?
Quoted 13 lines
phy->wkupclk = devm_clk_get(phy->dev, "wkupclk");
if (IS_ERR(phy->wkupclk)) {
dev_err(&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 your DTS\n");
}
}Quoted 3 lines
a bit ugly, but at least we don't cause any regressions. Likewise for other clocks.
cheers,
-roger
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): [email protected]
Re: [PATCH v2 3/7] phy: omap-usb2: Use generic clock names "wkupclk" and "refclk"
Quoted 32 lines · Roger Quadros
+Nishant
Hi,
Quoted 20 lines · Felipe Balbi
Hi,
Quoted 17 lines · 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 <[email protected]>--- drivers/phy/phy-omap-usb2.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)drivers/phy/phy-omap-usb2.c +0
-0@@ -275,16 +275,16 @@ static int omap_usb2_probe(struct platform_device *pdev)if (IS_ERR (phy_provider))return PTR_ERR (phy_provider);Quoted 6 lines
drivers/phy/phy-omap-usb2.c static int omap_usb2_probe(struct platform_device *pdev) · line 278
Quoted 2 lines
drivers/phy/phy-omap-usb2.c +1
-1- phy->wkupclk =devm_clk_get (phy->dev,"usb_phy_cm_clk32k" ); + phy->wkupclk =devm_clk_get (phy->dev,"wkupclk" );doesn't this patch cause a regression ? I mean, you're changing the clock name before fixing DTS. Also, that DTS has been in a major version of the kernel, so we need to maintain compatibility with it. How about:
Quoted 8 lines
I'm changing the DTS in Patch 4, but I prefer to do it in this patch to prevent synchronization issues in -next.
About backward compatibility, I agree with you but at the same time I don't think anyone using TI SoCs burns the DTB to ROM and needs backward compatibility. We supply our BSPs/SDKs with the updated DTBs. Do you feel strict backward compatibility is worth the effort for TI specific blocks?
dunno, but it would, at least, avoid "synchronization issues with linux-next" :-)
Signature · 1 line
balbi
A message that is not in the archive (sent off-list or not yet received): [email protected]
Re: [PATCH v2 3/7] phy: omap-usb2: Use generic clock names "wkupclk" and "refclk"
Quoted 36 lines · Felipe Balbi
Quoted 35 lines · Roger Quadros
+Nishant
Hi,
Quoted 20 lines · Felipe Balbi
Hi,
Quoted 17 lines · 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 <[email protected]>--- drivers/phy/phy-omap-usb2.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)drivers/phy/phy-omap-usb2.c +0
-0@@ -275,16 +275,16 @@ static int omap_usb2_probe(struct platform_device *pdev)if (IS_ERR (phy_provider))return PTR_ERR (phy_provider);Quoted 6 lines
drivers/phy/phy-omap-usb2.c static int omap_usb2_probe(struct platform_device *pdev) · line 278
Quoted 2 lines
drivers/phy/phy-omap-usb2.c +1
-1- phy->wkupclk =devm_clk_get (phy->dev,"usb_phy_cm_clk32k" ); + phy->wkupclk =devm_clk_get (phy->dev,"wkupclk" );doesn't this patch cause a regression ? I mean, you're changing the clock name before fixing DTS. Also, that DTS has been in a major version of the kernel, so we need to maintain compatibility with it. How about:
I'm changing the DTS in Patch 4, but I prefer to do it in this patch to prevent synchronization issues in -next.
Quoted 8 lines
Quoted 5 lines
About backward compatibility, I agree with you but at the same time I don't think anyone using TI SoCs burns the DTB to ROM and needs backward compatibility. We supply our BSPs/SDKs with the updated DTBs. Do you feel strict backward compatibility is worth the effort for TI specific blocks?
dunno, but it would, at least, avoid "synchronization issues with linux-next" :-)
and the bisectability issue.
Signature · 1 line
balbi
A message that is not in the archive (sent off-list or not yet received): [email protected]
Re: [PATCH v2 3/7] phy: omap-usb2: Use generic clock names "wkupclk" and "refclk"
Quoted 43 lines · Felipe Balbi
Quoted 42 lines · Felipe Balbi
Quoted 40 lines · Roger Quadros
+Nishant
Hi,
Quoted 20 lines · Felipe Balbi
Hi,
Quoted 17 lines · 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 <[email protected]>--- drivers/phy/phy-omap-usb2.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)drivers/phy/phy-omap-usb2.c +0
-0@@ -275,16 +275,16 @@ static int omap_usb2_probe(struct platform_device *pdev)if (IS_ERR (phy_provider))return PTR_ERR (phy_provider);Quoted 6 lines
drivers/phy/phy-omap-usb2.c static int omap_usb2_probe(struct platform_device *pdev) · line 278
Quoted 2 lines
drivers/phy/phy-omap-usb2.c +1
-1- phy->wkupclk =devm_clk_get (phy->dev,"usb_phy_cm_clk32k" ); + phy->wkupclk =devm_clk_get (phy->dev,"wkupclk" );doesn't this patch cause a regression ? I mean, you're changing the clock name before fixing DTS. Also, that DTS has been in a major version of the kernel, so we need to maintain compatibility with it. How about:
I'm changing the DTS in Patch 4, but I prefer to do it in this patch to prevent synchronization issues in -next.
About backward compatibility, I agree with you but at the same time I don't think anyone using TI SoCs burns the DTB to ROM and needs backward compatibility. We supply our BSPs/SDKs with the updated DTBs. Do you feel strict backward compatibility is worth the effort for TI specific blocks?
Quoted 5 lines
Quoted 2 lines
dunno, but it would, at least, avoid "synchronization issues with linux-next" :-)
and the bisectability issue.
If backward compatibility is not the real worry then we could avoid the synchronization/bisectability issue by squashing the dts changes with this patch.
cheers,
-roger
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH v2 3/7] phy: omap-usb2: Use generic clock names "wkupclk" and "refclk"
In reply to Felipe BalbiQuoted 43 lines · Felipe Balbi
Quoted 42 lines · Felipe Balbi
Quoted 40 lines · Roger Quadros
+Nishant
Hi,
Quoted 20 lines · Felipe Balbi
Hi,
Quoted 17 lines · 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 <[email protected]>--- drivers/phy/phy-omap-usb2.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)drivers/phy/phy-omap-usb2.c +0
-0@@ -275,16 +275,16 @@ static int omap_usb2_probe(struct platform_device *pdev)if (IS_ERR (phy_provider))return PTR_ERR (phy_provider);Quoted 6 lines
drivers/phy/phy-omap-usb2.c static int omap_usb2_probe(struct platform_device *pdev) · line 278
Quoted 2 lines
drivers/phy/phy-omap-usb2.c +1
-1- phy->wkupclk =devm_clk_get (phy->dev,"usb_phy_cm_clk32k" ); + phy->wkupclk =devm_clk_get (phy->dev,"wkupclk" );doesn't this patch cause a regression ? I mean, you're changing the clock name before fixing DTS. Also, that DTS has been in a major version of the kernel, so we need to maintain compatibility with it. How about:
I'm changing the DTS in Patch 4, but I prefer to do it in this patch to prevent synchronization issues in -next.
About backward compatibility, I agree with you but at the same time I don't think anyone using TI SoCs burns the DTB to ROM and needs backward compatibility. We supply our BSPs/SDKs with the updated DTBs. Do you feel strict backward compatibility is worth the effort for TI specific blocks?
Quoted 4 lines
Quoted 2 lines
dunno, but it would, at least, avoid "synchronization issues with linux-next" :-)
and the bisectability issue.
I agree - we cannot drop backward compatibility for DTBs
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=2a9330010bea5982a5c6593824bc036bf62d67b7
"
+
+ 3) Bindings can be augmented, but the driver shouldn't break when given
+ the old binding. ie. add additional properties, but don't change the
+ meaning of an existing property. For drivers, default to the original
+ behaviour when a newly added property is missing.
"
Regards,
Nishanth Menon
Re: [PATCH v2 3/7] phy: omap-usb2: Use generic clock names "wkupclk" and "refclk"
Quoted 44 lines · Nishanth Menon
Quoted 43 lines · Felipe Balbi
Quoted 42 lines · Felipe Balbi
Quoted 40 lines · Roger Quadros
+Nishant
Hi,
Quoted 20 lines · Felipe Balbi
Hi,
Quoted 17 lines · 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 <[email protected]>--- drivers/phy/phy-omap-usb2.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)drivers/phy/phy-omap-usb2.c +0
-0@@ -275,16 +275,16 @@ static int omap_usb2_probe(struct platform_device *pdev)if (IS_ERR (phy_provider))return PTR_ERR (phy_provider);Quoted 6 lines
drivers/phy/phy-omap-usb2.c static int omap_usb2_probe(struct platform_device *pdev) · line 278
Quoted 2 lines
drivers/phy/phy-omap-usb2.c +1
-1- phy->wkupclk =devm_clk_get (phy->dev,"usb_phy_cm_clk32k" ); + phy->wkupclk =devm_clk_get (phy->dev,"wkupclk" );doesn't this patch cause a regression ? I mean, you're changing the clock name before fixing DTS. Also, that DTS has been in a major version of the kernel, so we need to maintain compatibility with it. How about:
I'm changing the DTS in Patch 4, but I prefer to do it in this patch to prevent synchronization issues in -next.
About backward compatibility, I agree with you but at the same time I don't think anyone using TI SoCs burns the DTB to ROM and needs backward compatibility. We supply our BSPs/SDKs with the updated DTBs. Do you feel strict backward compatibility is worth the effort for TI specific blocks?
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
dunno, but it would, at least, avoid "synchronization issues with linux-next" :-)
and the bisectability issue.
I agree - we cannot drop backward compatibility for DTBs
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=2a9330010bea5982a5c6593824bc036bf62d67b7
That says backward compatibility for stable bindings.
In this case, the binding that I changed doesn't even exist in Documentation/devicetree/bindings, so it never was a stable binding.
Quoted 7 lines
"
+
+ 3) Bindings can be augmented, but the driver shouldn't break when given
+ the old binding. ie. add additional properties, but don't change the
+ meaning of an existing property. For drivers, default to the original
+ behaviour when a newly added property is missing.
"
cheers,
-roger
Re: [PATCH v2 3/7] phy: omap-usb2: Use generic clock names "wkupclk" and "refclk"
Quoted 48 lines · Roger Quadros
Quoted 47 lines · Nishanth Menon
Quoted 46 lines · Felipe Balbi
Quoted 44 lines · Felipe Balbi
Quoted 32 lines · Roger Quadros
+Nishant
Hi,
Quoted 20 lines · Felipe Balbi
Hi,
Quoted 17 lines · 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 <[email protected]>--- drivers/phy/phy-omap-usb2.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)drivers/phy/phy-omap-usb2.c +0
-0@@ -275,16 +275,16 @@ static int omap_usb2_probe(struct platform_device *pdev)if (IS_ERR (phy_provider))return PTR_ERR (phy_provider);Quoted 6 lines
drivers/phy/phy-omap-usb2.c static int omap_usb2_probe(struct platform_device *pdev) · line 278
Quoted 2 lines
drivers/phy/phy-omap-usb2.c +1
-1- phy->wkupclk =devm_clk_get (phy->dev,"usb_phy_cm_clk32k" ); + phy->wkupclk =devm_clk_get (phy->dev,"wkupclk" );doesn't this patch cause a regression ? I mean, you're changing the clock name before fixing DTS. Also, that DTS has been in a major version of the kernel, so we need to maintain compatibility with it. How about:
Quoted 8 lines
I'm changing the DTS in Patch 4, but I prefer to do it in this patch to prevent synchronization issues in -next.
About backward compatibility, I agree with you but at the same time I don't think anyone using TI SoCs burns the DTB to ROM and needs backward compatibility. We supply our BSPs/SDKs with the updated DTBs. Do you feel strict backward compatibility is worth the effort for TI specific blocks?
dunno, but it would, at least, avoid "synchronization issues with linux-next" :-)
Quoted 8 lines
Quoted 4 lines
Quoted 1 line
and the bisectability issue.
I agree - we cannot drop backward compatibility for DTBs
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=2a9330010bea5982a5c6593824bc036bf62d67b7That says backward compatibility for stable bindings.
In this case, the binding that I changed doesn't even exist inDocumentation/devicetree/bindings, so it never was a stable binding.
Forgot to mention, I'm sending a revised version based on your and Felipe's suggestion.
cheers,
-roger
PATCH v2 4/7 ARM: dts: omap4+: Add clocks to USB2 PHY node
In reply to a message not in the archiveThe 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.
--- arch/arm/boot/dts/omap4.dtsi | 2 ++ arch/arm/boot/dts/omap5.dtsi | 2 ++ 2 files changed, 4 insertions(+)
arch/arm/boot/dts/omap4.dtsi +2 -0
@@ -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>; }; };
arch/arm/boot/dts/omap5.dtsi +2 -0
@@ -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>; };
Signature · 6 lines
1.8.3.2 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 1398693687-13967-5-git-send-email-rogerq-l0cyMroinI0@public.gmane.org
Felipe Balbi
Reviewed-byRe: [PATCH v2 4/7] ARM: dts: omap4+: Add clocks to USB2 PHY node
Quoted 5 lines · 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.
Signed-off-by Roger Quadros <[email protected]>
Quoted 34 lines
--- arch/arm/boot/dts/omap4.dtsi | 2 ++ arch/arm/boot/dts/omap5.dtsi | 2 ++ 2 files changed, 4 insertions(+)arch/arm/boot/dts/omap4.dtsi +2
-0@@ -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>; }; };arch/arm/boot/dts/omap5.dtsi +2
-0@@ -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>; };Signature · 1 line
1.8.3.2
Signature · 1 line
balbi
PATCH v2 5/7 phy: omap-usb2: Add clock names to Documentation binding
In reply to a message not in the archiveAdd "wkupclk" and "refclk" information to DT binding information.
--- Documentation/devicetree/bindings/phy/ti-phy.txt | 7 +++++++ 1 file changed, 7 insertions(+)
Documentation/devicetree/bindings/phy/ti-phy.txt +7 -0
@@ -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
Signature · 6 lines
1.8.3.2 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 1398693687-13967-6-git-send-email-rogerq-l0cyMroinI0@public.gmane.org
Felipe Balbi
Reviewed-byRe: [PATCH v2 5/7] phy: omap-usb2: Add clock names to Documentation binding
Quoted 3 lines · Roger Quadros
Add "wkupclk" and "refclk" information to DT binding information.
Signed-off-by Roger Quadros <[email protected]>
Quoted 32 lines
--- Documentation/devicetree/bindings/phy/ti-phy.txt | 7 +++++++ 1 file changed, 7 insertions(+)Documentation/devicetree/bindings/phy/ti-phy.txt +7
-0@@ -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 PHYSignature · 1 line
1.8.3.2
Signature · 1 line
balbi
Re: [PATCH v2 5/7] phy: omap-usb2: Add clock names to Documentation binding
In reply to a message not in the archiveHello.
Quoted 12 lines · Roger Quadros
Add "wkupclk" and "refclk" information to DT binding information.
Signed-off-by Roger Quadros <[email protected]>--- Documentation/devicetree/bindings/phy/ti-phy.txt | 7 +++++++ 1 file changed, 7 insertions(+)Documentation/devicetree/bindings/phy/ti-phy.txt +0
-0
Documentation/devicetree/bindings/phy/ti-phy.txt Required properties: · line 36
Quoted 5 lines
Documentation/devicetree/bindings/phy/ti-phy.txt +2
-0@@ -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.
I thought clock specifier includes phandle. Anyway, this description
doesn't seem to match your example...
Documentation/devicetree/bindings/phy/ti-phy.txt usb2phy@4a0ad080 { · line 54
Quoted 13 lines
Documentation/devicetree/bindings/phy/ti-phy.txt +5
-0+ - 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"; };
WBR, Sergei
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH v2 5/7] phy: omap-usb2: Add clock names to Documentation binding
Hi Sergei,
Quoted 11 lines · Sergei Shtylyov
Hello.
Quoted 6 lines · Roger Quadros
Add "wkupclk" and "refclk" information to DT binding information.
Signed-off-by Roger Quadros <[email protected]>--- Documentation/devicetree/bindings/phy/ti-phy.txt | 7 +++++++ 1 file changed, 7 insertions(+)
Quoted 12 lines
Documentation/devicetree/bindings/phy/ti-phy.txt Required properties: · line 36
Quoted 10 lines
Documentation/devicetree/bindings/phy/ti-phy.txt +2
-0@@ -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.I thought clock specifier includes phandle. Anyway, this description doesn't seem to match your example...
The example was taken from real world where the clock doesn't need specifier. Examples can always be a subset of supported bindings.
cheers,
-roger
Quoted 17 lines
Quoted 8 lines
Documentation/devicetree/bindings/phy/ti-phy.txt +3
-0+ - 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 onDocumentation/devicetree/bindings/phy/ti-phy.txt usb2phy@4a0ad080 { · line 54
Quoted 6 lines
Documentation/devicetree/bindings/phy/ti-phy.txt +2
-0@@ -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"; };WBR, Sergei
PATCH v2 6/7 ARM: dts: dra7: Add USB related nodes
In reply to a message not in the archiveAdd 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.
--- arch/arm/boot/dts/dra7.dtsi | 149 ++++++++++++++++++++++++++++++ arch/arm/mach-omap2/omap_hwmod_7xx_data.c | 10 -- 2 files changed, 149 insertions(+), 10 deletions(-)
arch/arm/boot/dts/dra7.dtsi +149 -0
@@ -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"; + }; + }; }; };
arch/arm/mach-omap2/omap_hwmod_7xx_data.c +0 -8
@@ -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 - }, - { } -};
Re: [PATCH v2 6/7] ARM: dts: dra7: Add USB related nodes
Quoted 7 lines · 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.
Signed-off-by Roger Quadros <[email protected]>
Quoted 194 lines
--- arch/arm/boot/dts/dra7.dtsi | 149 ++++++++++++++++++++++++++++++ arch/arm/mach-omap2/omap_hwmod_7xx_data.c | 10 -- 2 files changed, 149 insertions(+), 10 deletions(-)arch/arm/boot/dts/dra7.dtsi +149
-0@@ -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"; + }; + }; }; };arch/arm/mach-omap2/omap_hwmod_7xx_data.c +0
-10@@ -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 , };Signature · 1 line
1.8.3.2
Signature · 1 line
balbi
PATCH v2 7/7 dts: dra7-evm: add USB support
In reply to Roger QuadrosAdd USB pinmux information and USB modes
for the USB controllers.
--- arch/arm/boot/dts/dra7-evm.dts | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+)
arch/arm/boot/dts/dra7-evm.dts +24 -0
@@ -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>; +};
Signature · 1 line
1.8.3.2
A message that is not in the archive (sent off-list or not yet received): 1398693687-13967-8-git-send-email-rogerq-l0cyMroinI0@public.gmane.org
Felipe Balbi
Reviewed-byRe: [PATCH v2 7/7] dts: dra7-evm: add USB support
Quoted 4 lines · Roger Quadros
Add USB pinmux information and USB modes
for the USB controllers.Signed-off-by Roger Quadros <[email protected]>
Quoted 46 lines
--- arch/arm/boot/dts/dra7-evm.dts | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+)arch/arm/boot/dts/dra7-evm.dts +24
-0@@ -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>; +};Signature · 1 line
1.8.3.2
Signature · 1 line
balbi