linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/5] ARM: dts: i.MX27: Add DMA devicetree node
@ 2013-06-08 14:39 Alexander Shiyan
  2013-06-08 14:39 ` [PATCH 2/5] ARM: dts: i.MX27: Add SDHC devicetree nodes Alexander Shiyan
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Alexander Shiyan @ 2013-06-08 14:39 UTC (permalink / raw)
  To: linux-arm-kernel

This patch adds the missing DMA devicetree node for i.MX27 SoCs.

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

diff --git a/arch/arm/boot/dts/imx27.dtsi b/arch/arm/boot/dts/imx27.dtsi
index 7017bfe..9d65734 100644
--- a/arch/arm/boot/dts/imx27.dtsi
+++ b/arch/arm/boot/dts/imx27.dtsi
@@ -61,6 +61,16 @@
 			reg = <0x10000000 0x20000>;
 			ranges;
 
+			dma: dma at 10001000 {
+				compatible = "fsl,imx27-dma";
+				reg = <0x10001000 0x1000>;
+				interrupts = <32>;
+				clocks = <&clks 50>, <&clks 70>;
+				clock-names = "ipg", "ahb";
+				#dma-cells = <1>;
+				#dma-channels = <16>;
+			};
+
 			wdog: wdog at 10002000 {
 				compatible = "fsl,imx27-wdt", "fsl,imx21-wdt";
 				reg = <0x10002000 0x1000>;
-- 
1.8.1.5

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 2/5] ARM: dts: i.MX27: Add SDHC devicetree nodes
  2013-06-08 14:39 [PATCH 1/5] ARM: dts: i.MX27: Add DMA devicetree node Alexander Shiyan
@ 2013-06-08 14:39 ` Alexander Shiyan
  2013-06-08 14:39 ` [PATCH 3/5] ARM: dts: imx27-phytec-phycore-rdk: Add SDHC support Alexander Shiyan
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 10+ messages in thread
From: Alexander Shiyan @ 2013-06-08 14:39 UTC (permalink / raw)
  To: linux-arm-kernel

This patch adds the missing SDHC devicetree nodes for i.MX27 SoCs.

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

diff --git a/arch/arm/boot/dts/imx27.dtsi b/arch/arm/boot/dts/imx27.dtsi
index 9d65734..587f10c 100644
--- a/arch/arm/boot/dts/imx27.dtsi
+++ b/arch/arm/boot/dts/imx27.dtsi
@@ -178,6 +178,28 @@
 				status = "disabled";
 			};
 
+			sdhci1: sdhci at 10013000 {
+				compatible = "fsl,imx27-mmc", "fsl,imx21-mmc";
+				reg = <0x10013000 0x1000>;
+				interrupts = <11>;
+				clocks = <&clks 30>, <&clks 60>;
+				clock-names = "ipg", "per";
+				dmas = <&dma 7>;
+				dma-names = "rx-tx";
+				status = "disabled";
+			};
+
+			sdhci2: sdhci at 10014000 {
+				compatible = "fsl,imx27-mmc", "fsl,imx21-mmc";
+				reg = <0x10014000 0x1000>;
+				interrupts = <10>;
+				clocks = <&clks 29>, <&clks 60>;
+				clock-names = "ipg", "per";
+				dmas = <&dma 6>;
+				dma-names = "rx-tx";
+				status = "disabled";
+			};
+
 			gpio1: gpio at 10015000 {
 				compatible = "fsl,imx27-gpio", "fsl,imx21-gpio";
 				reg = <0x10015000 0x100>;
@@ -293,6 +315,17 @@
 				status = "disabled";
 			};
 
+			sdhci3: sdhci at 1001e000 {
+				compatible = "fsl,imx27-mmc", "fsl,imx21-mmc";
+				reg = <0x1001e000 0x1000>;
+				interrupts = <9>;
+				clocks = <&clks 28>, <&clks 60>;
+				clock-names = "ipg", "per";
+				dmas = <&dma 36>;
+				dma-names = "rx-tx";
+				status = "disabled";
+			};
+
 			gpt6: timer at 1001f000 {
 				compatible = "fsl,imx27-gpt", "fsl,imx1-gpt";
 				reg = <0x1001f000 0x1000>;
-- 
1.8.1.5

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 3/5] ARM: dts: imx27-phytec-phycore-rdk: Add SDHC support
  2013-06-08 14:39 [PATCH 1/5] ARM: dts: i.MX27: Add DMA devicetree node Alexander Shiyan
  2013-06-08 14:39 ` [PATCH 2/5] ARM: dts: i.MX27: Add SDHC devicetree nodes Alexander Shiyan
@ 2013-06-08 14:39 ` Alexander Shiyan
  2013-06-08 14:39 ` [PATCH 4/5] ARM: dts: imx27-phytec-phycore-rdk: Add spidev node Alexander Shiyan
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 10+ messages in thread
From: Alexander Shiyan @ 2013-06-08 14:39 UTC (permalink / raw)
  To: linux-arm-kernel

This patch adds the SHDC devicetree node for PCM970 board.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
---
 arch/arm/boot/dts/imx27-phytec-phycore-rdk.dts | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/arm/boot/dts/imx27-phytec-phycore-rdk.dts b/arch/arm/boot/dts/imx27-phytec-phycore-rdk.dts
index f8a7a49..e7ed978 100644
--- a/arch/arm/boot/dts/imx27-phytec-phycore-rdk.dts
+++ b/arch/arm/boot/dts/imx27-phytec-phycore-rdk.dts
@@ -19,6 +19,14 @@
 	cs-gpios = <&gpio4 28 0>, <&gpio4 27 0>;
 };
 
+&sdhci2 {
+	bus-width = <4>;
+	cd-gpios = <&gpio3 29 0>;
+	wp-gpios = <&gpio3 28 0>;
+	vmmc-supply = <&vmmc1_reg>;
+	status = "okay";
+};
+
 &uart1 {
 	fsl,uart-has-rtscts;
 };
-- 
1.8.1.5

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 4/5] ARM: dts: imx27-phytec-phycore-rdk: Add spidev node
  2013-06-08 14:39 [PATCH 1/5] ARM: dts: i.MX27: Add DMA devicetree node Alexander Shiyan
  2013-06-08 14:39 ` [PATCH 2/5] ARM: dts: i.MX27: Add SDHC devicetree nodes Alexander Shiyan
  2013-06-08 14:39 ` [PATCH 3/5] ARM: dts: imx27-phytec-phycore-rdk: Add SDHC support Alexander Shiyan
@ 2013-06-08 14:39 ` Alexander Shiyan
  2013-06-08 17:08   ` Sascha Hauer
  2013-06-08 14:39 ` [PATCH 5/5] ARM: dts: imx27-phytec-phycore-rdk: Add MTD name for NOR flash Alexander Shiyan
  2013-06-08 17:09 ` [PATCH 1/5] ARM: dts: i.MX27: Add DMA devicetree node Sascha Hauer
  4 siblings, 1 reply; 10+ messages in thread
From: Alexander Shiyan @ 2013-06-08 14:39 UTC (permalink / raw)
  To: linux-arm-kernel

This patch adds spidev device for spi0.1 which is used on ZigBee
PCM970 connector.  This change will help to use this connector in
userspace.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
---
 arch/arm/boot/dts/imx27-phytec-phycore-rdk.dts | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/arm/boot/dts/imx27-phytec-phycore-rdk.dts b/arch/arm/boot/dts/imx27-phytec-phycore-rdk.dts
index e7ed978..b2dbcdd 100644
--- a/arch/arm/boot/dts/imx27-phytec-phycore-rdk.dts
+++ b/arch/arm/boot/dts/imx27-phytec-phycore-rdk.dts
@@ -17,6 +17,12 @@
 &cspi1 {
 	fsl,spi-num-chipselects = <2>;
 	cs-gpios = <&gpio4 28 0>, <&gpio4 27 0>;
+
+	zigbee: spidev at 1 {
+		compatible = "rohm,dh2228fv";
+		reg = <1>;
+		spi-max-frequency = <0>;
+	};
 };
 
 &sdhci2 {
-- 
1.8.1.5

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 5/5] ARM: dts: imx27-phytec-phycore-rdk: Add MTD name for NOR flash
  2013-06-08 14:39 [PATCH 1/5] ARM: dts: i.MX27: Add DMA devicetree node Alexander Shiyan
                   ` (2 preceding siblings ...)
  2013-06-08 14:39 ` [PATCH 4/5] ARM: dts: imx27-phytec-phycore-rdk: Add spidev node Alexander Shiyan
@ 2013-06-08 14:39 ` Alexander Shiyan
  2013-06-08 17:09 ` [PATCH 1/5] ARM: dts: i.MX27: Add DMA devicetree node Sascha Hauer
  4 siblings, 0 replies; 10+ messages in thread
From: Alexander Shiyan @ 2013-06-08 14:39 UTC (permalink / raw)
  To: linux-arm-kernel

This patch adds name for NOR flash. This keeps compatibility for
commandline partitions parsing from old bootloaders and make name
of device same for DT and non-DT boot.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
---
 arch/arm/boot/dts/imx27-phytec-phycore-som.dts | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/boot/dts/imx27-phytec-phycore-som.dts b/arch/arm/boot/dts/imx27-phytec-phycore-som.dts
index 73f4b28..f010565 100644
--- a/arch/arm/boot/dts/imx27-phytec-phycore-som.dts
+++ b/arch/arm/boot/dts/imx27-phytec-phycore-som.dts
@@ -57,6 +57,7 @@
 		compatible = "cfi-flash";
 		bank-width = <2>;
 		reg = <0xc0000000 0x02000000>;
+		linux,mtd-name = "physmap-flash.0";
 		#address-cells = <1>;
 		#size-cells = <1>;
 	};
-- 
1.8.1.5

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 4/5] ARM: dts: imx27-phytec-phycore-rdk: Add spidev node
  2013-06-08 14:39 ` [PATCH 4/5] ARM: dts: imx27-phytec-phycore-rdk: Add spidev node Alexander Shiyan
@ 2013-06-08 17:08   ` Sascha Hauer
  2013-06-08 17:20     ` Re[2]: " Alexander Shiyan
  0 siblings, 1 reply; 10+ messages in thread
From: Sascha Hauer @ 2013-06-08 17:08 UTC (permalink / raw)
  To: linux-arm-kernel

On Sat, Jun 08, 2013 at 06:39:39PM +0400, Alexander Shiyan wrote:
> This patch adds spidev device for spi0.1 which is used on ZigBee
> PCM970 connector.  This change will help to use this connector in
> userspace.
> 
> Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
> ---
>  arch/arm/boot/dts/imx27-phytec-phycore-rdk.dts | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/imx27-phytec-phycore-rdk.dts b/arch/arm/boot/dts/imx27-phytec-phycore-rdk.dts
> index e7ed978..b2dbcdd 100644
> --- a/arch/arm/boot/dts/imx27-phytec-phycore-rdk.dts
> +++ b/arch/arm/boot/dts/imx27-phytec-phycore-rdk.dts
> @@ -17,6 +17,12 @@
>  &cspi1 {
>  	fsl,spi-num-chipselects = <2>;
>  	cs-gpios = <&gpio4 28 0>, <&gpio4 27 0>;
> +
> +	zigbee: spidev at 1 {
> +		compatible = "rohm,dh2228fv";
> +		reg = <1>;
> +		spi-max-frequency = <0>;

Why specify a speed of 0 here? Also, is there really a dh2228fv
connected or is this just a hack to let the Linux spidev driver match?


Sascha

-- 
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 |

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH 1/5] ARM: dts: i.MX27: Add DMA devicetree node
  2013-06-08 14:39 [PATCH 1/5] ARM: dts: i.MX27: Add DMA devicetree node Alexander Shiyan
                   ` (3 preceding siblings ...)
  2013-06-08 14:39 ` [PATCH 5/5] ARM: dts: imx27-phytec-phycore-rdk: Add MTD name for NOR flash Alexander Shiyan
@ 2013-06-08 17:09 ` Sascha Hauer
  2013-06-09  3:07   ` Shawn Guo
  4 siblings, 1 reply; 10+ messages in thread
From: Sascha Hauer @ 2013-06-08 17:09 UTC (permalink / raw)
  To: linux-arm-kernel

On Sat, Jun 08, 2013 at 06:39:36PM +0400, Alexander Shiyan wrote:
> This patch adds the missing DMA devicetree node for i.MX27 SoCs.
> 
> Signed-off-by: Alexander Shiyan <shc_work@mail.ru>

For patches 1-3 and 5:

Acked-by: Sascha Hauer <s.hauer@pengutonix.de>

Sascha

-- 
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 |

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re[2]: [PATCH 4/5] ARM: dts: imx27-phytec-phycore-rdk: Add spidev node
  2013-06-08 17:08   ` Sascha Hauer
@ 2013-06-08 17:20     ` Alexander Shiyan
  2013-06-08 17:57       ` Sascha Hauer
  0 siblings, 1 reply; 10+ messages in thread
From: Alexander Shiyan @ 2013-06-08 17:20 UTC (permalink / raw)
  To: linux-arm-kernel

> On Sat, Jun 08, 2013 at 06:39:39PM +0400, Alexander Shiyan wrote:
> > This patch adds spidev device for spi0.1 which is used on ZigBee
> > PCM970 connector.  This change will help to use this connector in
> > userspace.
> > 
> > Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
> > ---
> >  arch/arm/boot/dts/imx27-phytec-phycore-rdk.dts | 6 ++++++
> >  1 file changed, 6 insertions(+)
> > 
> > diff --git a/arch/arm/boot/dts/imx27-phytec-phycore-rdk.dts b/arch/arm/boot/dts/imx27-phytec-phycore-rdk.dts
> > index e7ed978..b2dbcdd 100644
> > --- a/arch/arm/boot/dts/imx27-phytec-phycore-rdk.dts
> > +++ b/arch/arm/boot/dts/imx27-phytec-phycore-rdk.dts
> > @@ -17,6 +17,12 @@
> >  &cspi1 {
> >  	fsl,spi-num-chipselects = <2>;
> >  	cs-gpios = <&gpio4 28 0>, <&gpio4 27 0>;
> > +
> > +	zigbee: spidev at 1 {
> > +		compatible = "rohm,dh2228fv";
> > +		reg = <1>;
> > +		spi-max-frequency = <0>;
> 
> Why specify a speed of 0 here? Also, is there really a dh2228fv
> connected or is this just a hack to let the Linux spidev driver match?

Zero in this case is indicates using SPI-controller maximum speed.
This can be overriden by using SPI_IOC_RD_MAX_SPEED_HZ IOCTL
for spidev device.
About using dh2228fv, of course no. Currently this is only one dt entry
for spidev exist, so yes, this a trick.

---

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH 4/5] ARM: dts: imx27-phytec-phycore-rdk: Add spidev node
  2013-06-08 17:20     ` Re[2]: " Alexander Shiyan
@ 2013-06-08 17:57       ` Sascha Hauer
  0 siblings, 0 replies; 10+ messages in thread
From: Sascha Hauer @ 2013-06-08 17:57 UTC (permalink / raw)
  To: linux-arm-kernel

On Sat, Jun 08, 2013 at 09:20:19PM +0400, Alexander Shiyan wrote:
> > On Sat, Jun 08, 2013 at 06:39:39PM +0400, Alexander Shiyan wrote:
> > > This patch adds spidev device for spi0.1 which is used on ZigBee
> > > PCM970 connector.  This change will help to use this connector in
> > > userspace.
> > > 
> > > Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
> > > ---
> > >  arch/arm/boot/dts/imx27-phytec-phycore-rdk.dts | 6 ++++++
> > >  1 file changed, 6 insertions(+)
> > > 
> > > diff --git a/arch/arm/boot/dts/imx27-phytec-phycore-rdk.dts b/arch/arm/boot/dts/imx27-phytec-phycore-rdk.dts
> > > index e7ed978..b2dbcdd 100644
> > > --- a/arch/arm/boot/dts/imx27-phytec-phycore-rdk.dts
> > > +++ b/arch/arm/boot/dts/imx27-phytec-phycore-rdk.dts
> > > @@ -17,6 +17,12 @@
> > >  &cspi1 {
> > >  	fsl,spi-num-chipselects = <2>;
> > >  	cs-gpios = <&gpio4 28 0>, <&gpio4 27 0>;
> > > +
> > > +	zigbee: spidev at 1 {
> > > +		compatible = "rohm,dh2228fv";
> > > +		reg = <1>;
> > > +		spi-max-frequency = <0>;
> > 
> > Why specify a speed of 0 here? Also, is there really a dh2228fv
> > connected or is this just a hack to let the Linux spidev driver match?
> 
> Zero in this case is indicates using SPI-controller maximum speed.
> This can be overriden by using SPI_IOC_RD_MAX_SPEED_HZ IOCTL
> for spidev device.
> About using dh2228fv, of course no. Currently this is only one dt entry
> for spidev exist, so yes, this a trick.

Then you should convince the spidev maintainers that whatever really is
connected there should be added to the spidev compatible list. Just
using an arbitrary binding only because the kernel happens to do the
right thing at the moment is not an option.

Sascha

-- 
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 |

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH 1/5] ARM: dts: i.MX27: Add DMA devicetree node
  2013-06-08 17:09 ` [PATCH 1/5] ARM: dts: i.MX27: Add DMA devicetree node Sascha Hauer
@ 2013-06-09  3:07   ` Shawn Guo
  0 siblings, 0 replies; 10+ messages in thread
From: Shawn Guo @ 2013-06-09  3:07 UTC (permalink / raw)
  To: linux-arm-kernel

On Sat, Jun 08, 2013 at 07:09:55PM +0200, Sascha Hauer wrote:
> On Sat, Jun 08, 2013 at 06:39:36PM +0400, Alexander Shiyan wrote:
> > This patch adds the missing DMA devicetree node for i.MX27 SoCs.
> > 
> > Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
> 
> For patches 1-3 and 5:
> 
Applied these, thanks.

Shawn

> Acked-by: Sascha Hauer <s.hauer@pengutonix.de>

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-06-09  3:07 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-08 14:39 [PATCH 1/5] ARM: dts: i.MX27: Add DMA devicetree node Alexander Shiyan
2013-06-08 14:39 ` [PATCH 2/5] ARM: dts: i.MX27: Add SDHC devicetree nodes Alexander Shiyan
2013-06-08 14:39 ` [PATCH 3/5] ARM: dts: imx27-phytec-phycore-rdk: Add SDHC support Alexander Shiyan
2013-06-08 14:39 ` [PATCH 4/5] ARM: dts: imx27-phytec-phycore-rdk: Add spidev node Alexander Shiyan
2013-06-08 17:08   ` Sascha Hauer
2013-06-08 17:20     ` Re[2]: " Alexander Shiyan
2013-06-08 17:57       ` Sascha Hauer
2013-06-08 14:39 ` [PATCH 5/5] ARM: dts: imx27-phytec-phycore-rdk: Add MTD name for NOR flash Alexander Shiyan
2013-06-08 17:09 ` [PATCH 1/5] ARM: dts: i.MX27: Add DMA devicetree node Sascha Hauer
2013-06-09  3:07   ` Shawn Guo

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).