mx5x usb{misc} devictree bindings and clocks
cover mx5x usb{misc} devictree bindings and clocks
Michael Grzeschik (4):
ARM: imx: add imx5x usb controller clock lookups
ARM: imx: add imx5x usbmisc clock lookups
ARM: dts: imx: rename imx5x usb entries as in imx6q.dtsi
ARM: dts: imx: add imx5x phy-mode entries
arch/arm/boot/dts/imx51.dtsi | 14 ++++++++++---- arch/arm/boot/dts/imx53.dtsi | 14 ++++++++++---- arch/arm/mach-imx/clk-imx51-imx53.c | 30 ++++++++++++++++++++++++++++++ 3 files changed, 50 insertions(+), 8 deletions(-)
Signature · 1 line
1.7.10.4
PATCH 1/4 ARM: imx: add imx5x usb controller clock lookups
--- arch/arm/mach-imx/clk-imx51-imx53.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+)
arch/arm/mach-imx/clk-imx51-imx53.c +24 -0
@@ -353,6 +353,18 @@ int __init mx51_clocks_init(unsigned long rate_ckil, unsigned long rate_osc,clk_register_clkdev (clk[ipu_di0_gate],"di0" ,"imx51-ipu" );clk_register_clkdev (clk[ipu_di1_gate],"di1" ,"imx51-ipu" );clk_register_clkdev (clk[ipu_gate],"hsp" ,"imx51-ipu" ); +clk_register_clkdev (clk[usboh3_per_gate],"per" ,"73f80600.usb" ); +clk_register_clkdev (clk[usboh3_gate],"ipg" ,"73f80600.usb" ); +clk_register_clkdev (clk[usboh3_gate],"ahb" ,"73f80600.usb" ); +clk_register_clkdev (clk[usboh3_per_gate],"per" ,"73f80400.usb" ); +clk_register_clkdev (clk[usboh3_gate],"ipg" ,"73f80400.usb" ); +clk_register_clkdev (clk[usboh3_gate],"ahb" ,"73f80400.usb" ); +clk_register_clkdev (clk[usboh3_per_gate],"per" ,"73f80200.usb" ); +clk_register_clkdev (clk[usboh3_gate],"ipg" ,"73f80200.usb" ); +clk_register_clkdev (clk[usboh3_gate],"ahb" ,"73f80200.usb" ); +clk_register_clkdev (clk[usboh3_per_gate],"per" ,"73f80000.usb" ); +clk_register_clkdev (clk[usboh3_gate],"ipg" ,"73f80000.usb" ); +clk_register_clkdev (clk[usboh3_gate],"ahb" ,"73f80000.usb" );clk_register_clkdev (clk[usb_phy_gate],"phy" ,"mxc-ehci.0" );clk_register_clkdev (clk[esdhc1_ipg_gate],"ipg" ,"sdhci-esdhc-imx51.0" );clk_register_clkdev (clk[dummy],"ahb" ,"sdhci-esdhc-imx51.0" );
@@ -446,6 +458,18 @@ int __init mx53_clocks_init(unsigned long rate_ckil, unsigned long rate_osc,clk_register_clkdev (clk[ipu_di0_gate],"di0" ,"imx53-ipu" );clk_register_clkdev (clk[ipu_di1_gate],"di1" ,"imx53-ipu" );clk_register_clkdev (clk[ipu_gate],"hsp" ,"imx53-ipu" ); +clk_register_clkdev (clk[usboh3_per_gate],"per" ,"53f80600.usb" ); +clk_register_clkdev (clk[usboh3_gate],"ipg" ,"53f80600.usb" ); +clk_register_clkdev (clk[usboh3_gate],"ahb" ,"53f80600.usb" ); +clk_register_clkdev (clk[usboh3_per_gate],"per" ,"53f80400.usb" ); +clk_register_clkdev (clk[usboh3_gate],"ipg" ,"53f80400.usb" ); +clk_register_clkdev (clk[usboh3_gate],"ahb" ,"53f80400.usb" ); +clk_register_clkdev (clk[usboh3_per_gate],"per" ,"53f80200.usb" ); +clk_register_clkdev (clk[usboh3_gate],"ipg" ,"53f80200.usb" ); +clk_register_clkdev (clk[usboh3_gate],"ahb" ,"53f80200.usb" ); +clk_register_clkdev (clk[usboh3_per_gate],"per" ,"53f80000.usb" ); +clk_register_clkdev (clk[usboh3_gate],"ipg" ,"53f80000.usb" ); +clk_register_clkdev (clk[usboh3_gate],"ahb" ,"53f80000.usb" );clk_register_clkdev (clk[usb_phy1_gate],"usb_phy1" ,"mxc-ehci.0" );clk_register_clkdev (clk[esdhc1_ipg_gate],"ipg" ,"sdhci-esdhc-imx53.0" );clk_register_clkdev (clk[dummy],"ahb" ,"sdhci-esdhc-imx53.0" );
Signature · 1 line
1.7.10.4
PATCH 2/4 ARM: imx: add imx5x usbmisc clock lookups
In reply to Michael Grzeschik--- arch/arm/mach-imx/clk-imx51-imx53.c | 6 ++++++ 1 file changed, 6 insertions(+)
arch/arm/mach-imx/clk-imx51-imx53.c +6 -0
@@ -365,6 +365,9 @@ int __init mx51_clocks_init(unsigned long rate_ckil, unsigned long rate_osc,clk_register_clkdev (clk[usboh3_per_gate],"per" ,"73f80000.usb" );clk_register_clkdev (clk[usboh3_gate],"ipg" ,"73f80000.usb" );clk_register_clkdev (clk[usboh3_gate],"ahb" ,"73f80000.usb" ); +clk_register_clkdev (clk[usboh3_per_gate],"per" ,"73f80800.usbmisc" ); +clk_register_clkdev (clk[usboh3_gate],"ipg" ,"73f80800.usbmisc" ); +clk_register_clkdev (clk[usboh3_gate],"ahb" ,"73f80800.usbmisc" );clk_register_clkdev (clk[usb_phy_gate],"phy" ,"mxc-ehci.0" );clk_register_clkdev (clk[esdhc1_ipg_gate],"ipg" ,"sdhci-esdhc-imx51.0" );clk_register_clkdev (clk[dummy],"ahb" ,"sdhci-esdhc-imx51.0" );
@@ -470,6 +473,9 @@ int __init mx53_clocks_init(unsigned long rate_ckil, unsigned long rate_osc,clk_register_clkdev (clk[usboh3_per_gate],"per" ,"53f80000.usb" );clk_register_clkdev (clk[usboh3_gate],"ipg" ,"53f80000.usb" );clk_register_clkdev (clk[usboh3_gate],"ahb" ,"53f80000.usb" ); +clk_register_clkdev (clk[usboh3_per_gate],"per" ,"53f80800.usbmisc" ); +clk_register_clkdev (clk[usboh3_gate],"ipg" ,"53f80800.usbmisc" ); +clk_register_clkdev (clk[usboh3_gate],"ahb" ,"53f80800.usbmisc" );clk_register_clkdev (clk[usb_phy1_gate],"usb_phy1" ,"mxc-ehci.0" );clk_register_clkdev (clk[esdhc1_ipg_gate],"ipg" ,"sdhci-esdhc-imx53.0" );clk_register_clkdev (clk[dummy],"ahb" ,"sdhci-esdhc-imx53.0" );
Signature · 1 line
1.7.10.4
Sascha Hauer
maintainerPATCH 2/4 ARM: imx: add imx5x usbmisc clock lookups
Quoted 10 lines · Michael Grzeschik
Signed-off-by Michael Grzeschik <[email protected]>--- arch/arm/mach-imx/clk-imx51-imx53.c | 6 ++++++ 1 file changed, 6 insertions(+)arch/arm/mach-imx/clk-imx51-imx53.c +0
-0
arch/arm/mach-imx/clk-imx51-imx53.c int __init mx51_clocks_init(unsigned long rate_ckil, unsigned long rate_osc, · line 370
Quoted 6 lines
arch/arm/mach-imx/clk-imx51-imx53.c +3
-0@@ -365,6 +365,9 @@ int __init mx51_clocks_init(unsigned long rate_ckil, unsigned long rate_osc,clk_register_clkdev (clk[usboh3_per_gate],"per" ,"73f80000.usb" );clk_register_clkdev (clk[usboh3_gate],"ipg" ,"73f80000.usb" );clk_register_clkdev (clk[usboh3_gate],"ahb" ,"73f80000.usb" ); +clk_register_clkdev (clk[usboh3_per_gate],"per" ,"73f80800.usbmisc" ); +clk_register_clkdev (clk[usboh3_gate],"ipg" ,"73f80800.usbmisc" ); +clk_register_clkdev (clk[usboh3_gate],"ahb" ,"73f80800.usbmisc" );
Shawn, do you have plans to move the clock lookups to devicetree like you did on i.MX6? It would be nice to get rid of patches like this.
Sascha
Signature · 4 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
PATCH 2/4 ARM: imx: add imx5x usbmisc clock lookups
Quoted 6 lines · Sascha Hauer
Quoted 5 lines · Michael Grzeschik
Signed-off-by Michael Grzeschik <[email protected]>--- arch/arm/mach-imx/clk-imx51-imx53.c | 6 ++++++ 1 file changed, 6 insertions(+)
Quoted 15 lines
arch/arm/mach-imx/clk-imx51-imx53.c int __init mx51_clocks_init(unsigned long rate_ckil, unsigned long rate_osc, · line 370
Quoted 11 lines
arch/arm/mach-imx/clk-imx51-imx53.c +3
-0@@ -365,6 +365,9 @@ int __init mx51_clocks_init(unsigned long rate_ckil, unsigned long rate_osc,clk_register_clkdev (clk[usboh3_per_gate],"per" ,"73f80000.usb" );clk_register_clkdev (clk[usboh3_gate],"ipg" ,"73f80000.usb" );clk_register_clkdev (clk[usboh3_gate],"ahb" ,"73f80000.usb" ); +clk_register_clkdev (clk[usboh3_per_gate],"per" ,"73f80800.usbmisc" ); +clk_register_clkdev (clk[usboh3_gate],"ipg" ,"73f80800.usbmisc" ); +clk_register_clkdev (clk[usboh3_gate],"ahb" ,"73f80800.usbmisc" );Shawn, do you have plans to move the clock lookups to devicetree like you did on i.MX6? It would be nice to get rid of patches like this.
Right. But I will not be able to resume the IMX cleanup work like this any soon, as I have some FSL internal stuff to sort out. So please go ahead to do it.
Shawn
Sascha Hauer
maintainerPATCH 2/4 ARM: imx: add imx5x usbmisc clock lookups
Quoted 22 lines · Shawn Guo
Quoted 6 lines · Sascha Hauer
Quoted 5 lines · Michael Grzeschik
Signed-off-by Michael Grzeschik <[email protected]>--- arch/arm/mach-imx/clk-imx51-imx53.c | 6 ++++++ 1 file changed, 6 insertions(+)Quoted 15 lines
arch/arm/mach-imx/clk-imx51-imx53.c int __init mx51_clocks_init(unsigned long rate_ckil, unsigned long rate_osc, · line 370
Quoted 11 lines
arch/arm/mach-imx/clk-imx51-imx53.c +3
-0@@ -365,6 +365,9 @@ int __init mx51_clocks_init(unsigned long rate_ckil, unsigned long rate_osc,clk_register_clkdev (clk[usboh3_per_gate],"per" ,"73f80000.usb" );clk_register_clkdev (clk[usboh3_gate],"ipg" ,"73f80000.usb" );clk_register_clkdev (clk[usboh3_gate],"ahb" ,"73f80000.usb" ); +clk_register_clkdev (clk[usboh3_per_gate],"per" ,"73f80800.usbmisc" ); +clk_register_clkdev (clk[usboh3_gate],"ipg" ,"73f80800.usbmisc" ); +clk_register_clkdev (clk[usboh3_gate],"ahb" ,"73f80800.usbmisc" );Shawn, do you have plans to move the clock lookups to devicetree like you did on i.MX6? It would be nice to get rid of patches like this.
Quoted 3 lines
Right. But I will not be able to resume the IMX cleanup work like this any soon, as I have some FSL internal stuff to sort out. So please go ahead to do it.
I didn't have the intention to volunteer for this job ;) Anyway, I'll see if I find time for this.
Sascha
Signature · 4 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
Fabio Estevam
reviewerPATCH 2/4 ARM: imx: add imx5x usbmisc clock lookups
Sascha,
Quoted 2 lines · Sascha Hauer
I didn't have the intention to volunteer for this job ;) Anyway, I'll see if I find time for this.
I sent a RFC patch for this conversion. Only built-tested, as I don't have access to any mx5 board now.
Regards,
Fabio Estevam
PATCH 3/4 ARM: dts: imx: rename imx5x usb entries as in imx6q.dtsi
In reply to Michael Grzeschik--- arch/arm/boot/dts/imx51.dtsi | 12 ++++++++---- arch/arm/boot/dts/imx53.dtsi | 12 ++++++++---- 2 files changed, 16 insertions(+), 8 deletions(-)
arch/arm/boot/dts/imx51.dtsi +8 -4
@@ -21,6 +21,10 @@ gpio1 = &gpio2; gpio2 = &gpio3; gpio3 = &gpio4; + usb0 = &usbotg; + usb1 = &usbhost1; + usb2 = &usbhost2; + usb3 = &usbhost3; }; tzic: tz-interrupt-controller at e0000000 {
@@ -130,28 +134,28 @@ }; }; - usb at 73f80000 { + usbotg: usb at 73f80000 { compatible = "fsl,imx51-usb", "fsl,imx27-usb"; reg = <0x73f80000 0x0200>; interrupts = <18>; status = "disabled"; }; - usb at 73f80200 { + usbhost1: usb at 73f80200 { compatible = "fsl,imx51-usb", "fsl,imx27-usb"; reg = <0x73f80200 0x0200>; interrupts = <14>; status = "disabled"; }; - usb at 73f80400 { + usbhost2: usb at 73f80400 { compatible = "fsl,imx51-usb", "fsl,imx27-usb"; reg = <0x73f80400 0x0200>; interrupts = <16>; status = "disabled"; }; - usb at 73f80600 { + usbhost3: usb at 73f80600 { compatible = "fsl,imx51-usb", "fsl,imx27-usb"; reg = <0x73f80600 0x0200>; interrupts = <17>;
arch/arm/boot/dts/imx53.dtsi +8 -4
@@ -26,6 +26,10 @@ gpio4 = &gpio5; gpio5 = &gpio6; gpio6 = &gpio7; + usb0 = &usbotg; + usb1 = &usbhost1; + usb2 = &usbhost2; + usb3 = &usbhost3; }; tzic: tz-interrupt-controller at 0fffc000 {
@@ -135,28 +139,28 @@ }; }; - usb at 53f80000 { + usbotg: usb at 53f80000 { compatible = "fsl,imx53-usb", "fsl,imx27-usb"; reg = <0x53f80000 0x0200>; interrupts = <18>; status = "disabled"; }; - usb at 53f80200 { + usbhost1: usb at 53f80200 { compatible = "fsl,imx53-usb", "fsl,imx27-usb"; reg = <0x53f80200 0x0200>; interrupts = <14>; status = "disabled"; }; - usb at 53f80400 { + usbhost2: usb at 53f80400 { compatible = "fsl,imx53-usb", "fsl,imx27-usb"; reg = <0x53f80400 0x0200>; interrupts = <16>; status = "disabled"; }; - usb at 53f80600 { + usbhost3: usb at 53f80600 { compatible = "fsl,imx53-usb", "fsl,imx27-usb"; reg = <0x53f80600 0x0200>; interrupts = <17>;
Signature · 1 line
1.7.10.4
PATCH 4/4 ARM: dts: imx: add imx5x phy-mode entries
In reply to Michael Grzeschik--- arch/arm/boot/dts/imx51.dtsi | 2 ++ arch/arm/boot/dts/imx53.dtsi | 2 ++ 2 files changed, 4 insertions(+)
arch/arm/boot/dts/imx51.dtsi +2 -0
@@ -145,6 +145,7 @@ compatible = "fsl,imx51-usb", "fsl,imx27-usb"; reg = <0x73f80200 0x0200>; interrupts = <14>; + phy-mode = "utmiw"; status = "disabled"; };
@@ -152,6 +153,7 @@ compatible = "fsl,imx51-usb", "fsl,imx27-usb"; reg = <0x73f80400 0x0200>; interrupts = <16>; + phy-mode = "utmi"; status = "disabled"; };
arch/arm/boot/dts/imx53.dtsi +2 -0
@@ -143,6 +143,7 @@ compatible = "fsl,imx53-usb", "fsl,imx27-usb"; reg = <0x53f80000 0x0200>; interrupts = <18>; + phy-mode = "utmiw"; status = "disabled"; };
@@ -150,6 +151,7 @@ compatible = "fsl,imx53-usb", "fsl,imx27-usb"; reg = <0x53f80200 0x0200>; interrupts = <14>; + phy-mode = "utmi"; status = "disabled"; };
Signature · 1 line
1.7.10.4
PATCH 4/4 ARM: dts: imx: add imx5x phy-mode entries
Quoted 11 lines · Michael Grzeschik
Signed-off-by Michael Grzeschik <[email protected]>--- arch/arm/boot/dts/imx51.dtsi | 2 ++ arch/arm/boot/dts/imx53.dtsi | 2 ++ 2 files changed, 4 insertions(+)arch/arm/boot/dts/imx51.dtsi +0
-0
arch/arm/boot/dts/imx51.dtsi line 148
Quoted 4 lines
arch/arm/boot/dts/imx51.dtsi +1
-0@@ -145,6 +145,7 @@ compatible = "fsl,imx51-usb", "fsl,imx27-usb"; reg = <0x73f80200 0x0200>; interrupts = <14>; + phy-mode = "utmiw";
I tried to grep "phy-mode" and "utmiw" on linux-next and found nothing. So it's not something we can take for 3.8, right?
PS. Instead, I found something like phy_type = "utmi_wide" in fsl-usb.txt and fsl-mph-dr-of.c. Should these be consolidated into a common binding?
Shawn
Quoted 39 lines
arch/arm/boot/dts/imx51.dtsi +1
-0status = "disabled"; };@@ -152,6 +153,7 @@ compatible = "fsl,imx51-usb", "fsl,imx27-usb"; reg = <0x73f80400 0x0200>; interrupts = <16>; + phy-mode = "utmi"; status = "disabled"; };arch/arm/boot/dts/imx53.dtsi +2
-0@@ -143,6 +143,7 @@ compatible = "fsl,imx53-usb", "fsl,imx27-usb"; reg = <0x53f80000 0x0200>; interrupts = <18>; + phy-mode = "utmiw"; status = "disabled"; };@@ -150,6 +151,7 @@ compatible = "fsl,imx53-usb", "fsl,imx27-usb"; reg = <0x53f80200 0x0200>; interrupts = <14>; + phy-mode = "utmi"; status = "disabled"; };Signature · 7 lines
1.7.10.4 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel at lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
PATCH 4/4 ARM: dts: imx: add imx5x phy-mode entries
Quoted 7 lines · Shawn Guo
Quoted 6 lines · Michael Grzeschik
Signed-off-by Michael Grzeschik <[email protected]>--- arch/arm/boot/dts/imx51.dtsi | 2 ++ arch/arm/boot/dts/imx53.dtsi | 2 ++ 2 files changed, 4 insertions(+)
Quoted 12 lines
arch/arm/boot/dts/imx51.dtsi line 148
Quoted 9 lines
arch/arm/boot/dts/imx51.dtsi +1
-0@@ -145,6 +145,7 @@ compatible = "fsl,imx51-usb", "fsl,imx27-usb"; reg = <0x73f80200 0x0200>; interrupts = <14>; + phy-mode = "utmiw";I tried to grep "phy-mode" and "utmiw" on linux-next and found nothing. So it's not something we can take for 3.8, right?
But it wouldn't hurt, if we agree on a common usb phy-mode binding helper.
Quoted 3 lines
PS. Instead, I found something like
phy_type= "utmi_wide" in fsl-usb.txt andfsl-mph-dr-of.c. Should these be consolidated into a common binding?
This is exactly what Michael is trying to do:
http://permalink.gmane.org/gmane.linux.usb.general/74747
If there already is "umti_wide" we should use that, instead of "umtiw".
Marc
Signature · 12 lines
Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de | -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 259 bytes Desc: OpenPGP digital signature URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20121116/756d635d/attachment.sig>
PATCH 4/4 ARM: dts: imx: add imx5x phy-mode entries
Quoted 21 lines · Marc Kleine-Budde
Quoted 7 lines · Shawn Guo
Quoted 6 lines · Michael Grzeschik
Signed-off-by Michael Grzeschik <[email protected]>--- arch/arm/boot/dts/imx51.dtsi | 2 ++ arch/arm/boot/dts/imx53.dtsi | 2 ++ 2 files changed, 4 insertions(+)Quoted 12 lines
arch/arm/boot/dts/imx51.dtsi line 148
Quoted 9 lines
arch/arm/boot/dts/imx51.dtsi +1
-0@@ -145,6 +145,7 @@ compatible = "fsl,imx51-usb", "fsl,imx27-usb"; reg = <0x73f80200 0x0200>; interrupts = <14>; + phy-mode = "utmiw";I tried to grep "phy-mode" and "utmiw" on linux-next and found nothing. So it's not something we can take for 3.8, right?
Quoted 2 lines
But it wouldn't hurt, if we agree on a common usb phy-mode binding helper.
Generally, I intend to only take the dts changes which have the corresponding binding merged by subsystems, so that we can avoid the possible noisy patches to adopt binding changes back and forth.
Shawn