diff mbox

ARM: dts: i.MX51: Add WEIM node

Message ID 1373094142-24173-1-git-send-email-shc_work@mail.ru (mailing list archive)
State New, archived
Headers show

Commit Message

Alexander Shiyan July 6, 2013, 7:02 a.m. UTC
This patch adds the missing (Wireless External Interface Module) WEIM
devicetree node for i.MX51 CPUs.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
---
 arch/arm/boot/dts/imx51.dtsi | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

Comments

Shawn Guo July 8, 2013, 2:33 a.m. UTC | #1
On Sat, Jul 06, 2013 at 11:02:22AM +0400, Alexander Shiyan wrote:
> This patch adds the missing (Wireless External Interface Module) WEIM
> devicetree node for i.MX51 CPUs.
> 
> Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
> ---
>  arch/arm/boot/dts/imx51.dtsi | 17 +++++++++++++++++
>  1 file changed, 17 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/imx51.dtsi b/arch/arm/boot/dts/imx51.dtsi
> index 0ca62be..e71976e4 100644
> --- a/arch/arm/boot/dts/imx51.dtsi
> +++ b/arch/arm/boot/dts/imx51.dtsi
> @@ -745,6 +745,23 @@
>  				status = "disabled";
>  			};
>  
> +			weim: weim@83fda000 {
> +				#address-cells = <2>;
> +				#size-cells = <1>;
> +				compatible = "fsl,imx51-weim";
> +				reg = <0x83fda000 0x1000>;
> +				clocks = <&clks 0>;

Is it correct?  I think there should be a physical clock for weim.

Shawn

> +				ranges = <
> +					0 0 0xb0000000 0x08000000
> +					1 0 0xb8000000 0x08000000
> +					2 0 0xc0000000 0x08000000
> +					3 0 0xc8000000 0x04000000
> +					4 0 0xcc000000 0x02000000
> +					5 0 0xce000000 0x02000000
> +				>;
> +				status = "disabled";
> +			};
> +
>  			nfc: nand@83fdb000 {
>  				compatible = "fsl,imx51-nand";
>  				reg = <0x83fdb000 0x1000 0xcfff0000 0x10000>;
> -- 
> 1.8.1.5
>
Alexander Shiyan July 8, 2013, 4:29 a.m. UTC | #2
> On Sat, Jul 06, 2013 at 11:02:22AM +0400, Alexander Shiyan wrote:
> > This patch adds the missing (Wireless External Interface Module) WEIM
> > devicetree node for i.MX51 CPUs.
> > 
> > Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
> > ---
> >  arch/arm/boot/dts/imx51.dtsi | 17 +++++++++++++++++
> >  1 file changed, 17 insertions(+)
> > 
> > diff --git a/arch/arm/boot/dts/imx51.dtsi b/arch/arm/boot/dts/imx51.dtsi
> > index 0ca62be..e71976e4 100644
> > --- a/arch/arm/boot/dts/imx51.dtsi
> > +++ b/arch/arm/boot/dts/imx51.dtsi
> > @@ -745,6 +745,23 @@
> >  				status = "disabled";
> >  			};
> >  
> > +			weim: weim@83fda000 {
> > +				#address-cells = <2>;
> > +				#size-cells = <1>;
> > +				compatible = "fsl,imx51-weim";
> > +				reg = <0x83fda000 0x1000>;
> > +				clocks = <&clks 0>;
> 
> Is it correct?  I think there should be a physical clock for weim.

Yes, but properly clock for weim is missing in the clk subsystem,
so I think at this point it is OK. Adding a properly clock should be a separate patch.
Thanks.

---
Shawn Guo July 9, 2013, 3:27 a.m. UTC | #3
On Mon, Jul 08, 2013 at 08:29:43AM +0400, Alexander Shiyan wrote:
> > > @@ -745,6 +745,23 @@
> > >  				status = "disabled";
> > >  			};
> > >  
> > > +			weim: weim@83fda000 {
> > > +				#address-cells = <2>;
> > > +				#size-cells = <1>;
> > > +				compatible = "fsl,imx51-weim";
> > > +				reg = <0x83fda000 0x1000>;
> > > +				clocks = <&clks 0>;
> > 
> > Is it correct?  I think there should be a physical clock for weim.
> 
> Yes, but properly clock for weim is missing in the clk subsystem,
> so I think at this point it is OK. Adding a properly clock should be a separate patch.

I've seen emi_slow and emi_fast clocks implemented in clk-imx51-imx53.c.
Neither is the clock for weim?

Shawn
Alexander Shiyan July 9, 2013, 11:18 a.m. UTC | #4
> On Mon, Jul 08, 2013 at 08:29:43AM +0400, Alexander Shiyan wrote:
> > > > @@ -745,6 +745,23 @@
> > > >  				status = "disabled";
> > > >  			};
> > > >  
> > > > +			weim: weim@83fda000 {
> > > > +				#address-cells = <2>;
> > > > +				#size-cells = <1>;
> > > > +				compatible = "fsl,imx51-weim";
> > > > +				reg = <0x83fda000 0x1000>;
> > > > +				clocks = <&clks 0>;
> > > 
> > > Is it correct?  I think there should be a physical clock for weim.
> > 
> > Yes, but properly clock for weim is missing in the clk subsystem,
> > so I think at this point it is OK. Adding a properly clock should be a separate patch.
> 
> I've seen emi_slow and emi_fast clocks implemented in clk-imx51-imx53.c.
> Neither is the clock for weim?

I reviewed the documentation, emi_fast clock is used for DDR, emi_slow for WEIM,
so will post the revised patch.
Thanks.

---
diff mbox

Patch

diff --git a/arch/arm/boot/dts/imx51.dtsi b/arch/arm/boot/dts/imx51.dtsi
index 0ca62be..e71976e4 100644
--- a/arch/arm/boot/dts/imx51.dtsi
+++ b/arch/arm/boot/dts/imx51.dtsi
@@ -745,6 +745,23 @@ 
 				status = "disabled";
 			};
 
+			weim: weim@83fda000 {
+				#address-cells = <2>;
+				#size-cells = <1>;
+				compatible = "fsl,imx51-weim";
+				reg = <0x83fda000 0x1000>;
+				clocks = <&clks 0>;
+				ranges = <
+					0 0 0xb0000000 0x08000000
+					1 0 0xb8000000 0x08000000
+					2 0 0xc0000000 0x08000000
+					3 0 0xc8000000 0x04000000
+					4 0 0xcc000000 0x02000000
+					5 0 0xce000000 0x02000000
+				>;
+				status = "disabled";
+			};
+
 			nfc: nand@83fdb000 {
 				compatible = "fsl,imx51-nand";
 				reg = <0x83fdb000 0x1000 0xcfff0000 0x10000>;