devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/6] ARM: imx6q{dl}: add the WEIM driver
@ 2013-05-20  8:48 Huang Shijie
  2013-05-20  8:48 ` [PATCH 1/6] drivers: bus: add a new driver for WEIM Huang Shijie
                   ` (5 more replies)
  0 siblings, 6 replies; 18+ messages in thread
From: Huang Shijie @ 2013-05-20  8:48 UTC (permalink / raw)
  To: grant.likely
  Cc: rob.herring, arnd, devicetree-discuss, linux-kernel,
	linux-arm-kernel, shawn.guo, Huang Shijie

This patch set adds a new driver for WEIM in the imx6q{dl}-sabreauto boards.

The WEIM(Wireless External Interface Module) works like a bus.
You can attach many different devices on it, such as NOR, onenand.

In the case of i.MX6q-sabreauto, only the NOR is connected to WEIM.

Huang Shijie (6):
  drivers: bus: add a new driver for WEIM
  ARM: dts: imx6q{dl}: fix the pin conflict between SPI and WEIM
  ARM: dts: imx6qdl: add more information for WEIM
  ARM: dts: imx6q: add pinctrl for WEIM NOR
  ARM: dts: imx6ql: add a pinctrl for WEIM NOR
  ARM: dts: imx6qdl: enable the WEIM NOR

 Documentation/devicetree/bindings/bus/imx-weim.txt |   69 +++++++++
 arch/arm/boot/dts/imx6dl-sabreauto.dts             |    9 +-
 arch/arm/boot/dts/imx6dl.dtsi                      |   57 ++++++++
 arch/arm/boot/dts/imx6q-sabreauto.dts              |    9 +-
 arch/arm/boot/dts/imx6q.dtsi                       |   58 ++++++++
 arch/arm/boot/dts/imx6qdl-sabreauto.dtsi           |   23 +++-
 arch/arm/boot/dts/imx6qdl.dtsi                     |    4 +-
 drivers/bus/Kconfig                                |    9 ++
 drivers/bus/Makefile                               |    1 +
 drivers/bus/imx-weim.c                             |  145 ++++++++++++++++++++
 10 files changed, 380 insertions(+), 4 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/bus/imx-weim.txt
 create mode 100644 drivers/bus/imx-weim.c

^ permalink raw reply	[flat|nested] 18+ messages in thread
* RE: [PATCH 4/6] ARM: dts: imx6q: add pinctrl for WEIM NOR
@ 2013-05-21 16:16 Chaiken, Alison
       [not found] ` <60BA5429A0E1584BA3633194F6F993B50252C8D8-0dz9ie/QGrnnlEkxMdpx1dQH9K4/4qFeAL8bYrjMMd8@public.gmane.org>
  0 siblings, 1 reply; 18+ messages in thread
From: Chaiken, Alison @ 2013-05-21 16:16 UTC (permalink / raw)
  To: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org
  Cc: b32955-KZfg59tc24xl57MIdRCFDg@public.gmane.org

> diff --git a/arch/arm/boot/dts/imx6q.dtsi b/arch/arm/boot/dts/imx6q.dtsi
> index ed11bcf..e6174c7 100644
> --- a/arch/arm/boot/dts/imx6q.dtsi
> +++ b/arch/arm/boot/dts/imx6q.dtsi
> @@ -323,6 +323,64 @@
>  						>;
>  					};
>  				};
> +
> +				weim {
> +					pinctrl_weim_nor_1: weim_norgrp-1 {
> +						fsl,pins = <
> +							MX6Q_PAD_EIM_OE__EIM_OE_B     0x10
> +							MX6Q_PAD_EIM_RW__EIM_RW       0x10
> +							MX6Q_PAD_EIM_CS0__EIM_CS0_B   0x10
> +							MX6Q_PAD_EIM_LBA__EIM_LBA_B   0x10
> +							MX6Q_PAD_EIM_WAIT__EIM_WAIT_B 0x8000
> +							MX6Q_PAD_EIM_BCLK__EIM_BCLK   0x8000

The following values are derived using Table 4-1 of "i.MX 6Dual/6Quad Applications Processor Reference Manual Document Number: IMX6DQRM Rev. 1, 04/2013":

MX6Q_PAD_EIM_OE__WEIM_WEIM_OE        0xb0b1
MX6Q_PAD_EIM_RW__WEIM_WEIM_RW       0xb0b1
MX6Q_PAD_EIM_CS0__WEIM_WEIM_CS_0   0xb0b1
MX6Q_PAD_EIM_WAIT__WEIM_WEIM_WAIT 0xb060

(I wrote a short C program that parses a human-readable property table for the pins and spits out hex to generate them.)   How are 0x10 values calculated?   Are settings for MX6Q_PAD_EIM_LBA__EIM_LBA_B and MX6Q_PAD_EIM_BCLK__EIM_BCLK useful?   We run NOR without them.

> +							MX6Q_PAD_EIM_A17__EIM_ADDR17 0xb0b1
> +							MX6Q_PAD_EIM_A16__EIM_ADDR16 0xb0b1
> +							MX6Q_PAD_EIM_DA15__EIM_AD15  0xb0b1
> +							MX6Q_PAD_EIM_DA14__EIM_AD14  0xb0b1
> +							MX6Q_PAD_EIM_DA13__EIM_AD13  0xb0b1

Are these names correct?    "MX6Q_PAD_EIM_A16__EIM_ADDR16" but "MX6Q_PAD_EIM_DA15__EIM_AD15" et cetera?

-- 
Alison Chaiken
alison_chaiken-nmGgyN9QBj3QT0dZR+AlfA@public.gmane.org

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

end of thread, other threads:[~2013-05-23  5:43 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-20  8:48 [PATCH 0/6] ARM: imx6q{dl}: add the WEIM driver Huang Shijie
2013-05-20  8:48 ` [PATCH 1/6] drivers: bus: add a new driver for WEIM Huang Shijie
     [not found]   ` <1369039742-10893-2-git-send-email-b32955-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
2013-05-20 13:18     ` Sascha Hauer
     [not found]       ` <20130520131827.GB32299-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2013-05-22  8:30         ` Huang Shijie
2013-05-21  5:43     ` Shawn Guo
2013-05-22  8:16       ` Huang Shijie
     [not found]         ` <519C7ED3.3030004-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
2013-05-22 12:59           ` Arnd Bergmann
     [not found]             ` <201305221459.34859.arnd-r2nGTMty4D4@public.gmane.org>
2013-05-23  2:17               ` Huang Shijie
     [not found] ` <1369039742-10893-1-git-send-email-b32955-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
2013-05-20  8:48   ` [PATCH 2/6] ARM: dts: imx6q{dl}: fix the pin conflict between SPI and WEIM Huang Shijie
     [not found]     ` <1369039742-10893-3-git-send-email-b32955-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
2013-05-21  5:49       ` Shawn Guo
2013-05-21  5:53         ` Huang Shijie
2013-05-20  8:48 ` [PATCH 3/6] ARM: dts: imx6qdl: add more information for WEIM Huang Shijie
2013-05-20  8:49 ` [PATCH 4/6] ARM: dts: imx6q: add pinctrl for WEIM NOR Huang Shijie
2013-05-20  8:49 ` [PATCH 5/6] ARM: dts: imx6ql: add a " Huang Shijie
2013-05-20  8:49 ` [PATCH 6/6] ARM: dts: imx6qdl: enable the " Huang Shijie
  -- strict thread matches above, loose matches on Subject: below --
2013-05-21 16:16 [PATCH 4/6] ARM: dts: imx6q: add pinctrl for " Chaiken, Alison
     [not found] ` <60BA5429A0E1584BA3633194F6F993B50252C8D8-0dz9ie/QGrnnlEkxMdpx1dQH9K4/4qFeAL8bYrjMMd8@public.gmane.org>
2013-05-22  8:12   ` Huang Shijie
2013-05-23  5:43   ` Huang Shijie

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