devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCHv3 00/14] OMAP SSI driver / N900 modem support
@ 2014-03-29  0:31 Sebastian Reichel
  2014-03-29  0:31 ` [PATCHv3 01/14] Documentation: HSI: Add some general description for the HSI subsystem Sebastian Reichel
                   ` (14 more replies)
  0 siblings, 15 replies; 42+ messages in thread
From: Sebastian Reichel @ 2014-03-29  0:31 UTC (permalink / raw)
  To: Sebastian Reichel, Linus Walleij, Shubhrajyoti Datta,
	Carlos Chinea
  Cc: Tony Lindgren, Rob Herring, Pawel Moll, Mark Rutland, Kumar Gala,
	devicetree, linux-kernel, linux-omap, Pali Rohár,
	Ивайло Димитров,
	Joni Lapilainen, Aaro Koskinen, Sebastian Reichel

Hi,

This is the seventh round of the OMAP SSI driver patches. The plan is
to get it merged into 3.16.

Changes since PATCHv2 [0]:
 * Readded generic HSI client binding and Nokia N900 modem support.
   They are also intended to be added in 3.16 and useful for testing
   the SSI driver, so I think it makes sense to keep them in one
   patchset.
 * Updated the DT binding for the modem. A HSI port has only a single
   child now, which describes the connected remote device. This better
   fits the DT model of strictly describing hardware, since a HSI port
   is a point2point interface.  The driver can instantiate other
   drivers as needed.
 * Moved channel description from the drivers into DT.
 * I added Signed-off-by: Carlos Chinea <carlos.chinea@nokia.com> to the
   omap-ssi and ssi-protocol driver addtions, since the initial driver
   was from him.
 * I updated my email address.
 * Added DTS changes to ease reviewing/testing the patchset.

I did *not* implement proper PM for the Nokia N900 modem in kernel
space, since that would break all existing userlands (ofono, fso-gsmd
and Nokia's closed source binaries). I think this should be implemented
later.

Please send feedback (e.g. Tested-By or Reviewed-By :)), so that I can
send a pull request for 3.16. You can either apply this patchset or
use the n900-modem-support branch available on [1].

For testing the patchset you should build the kernel with all config
entries in the HSI subsystem activated and boot using the updated
device tree information, since platform data based booting is not
supported. Testing the patchset with ofono works like this:

 # provide cmt device for ofono
 ln -sf /sys/bus/hsi/n900-modem /dev/cmt
 # start ofono
 ofono --nodetach --debug
 # enable the modem
 mdbus2 -s org.ofono /n900_0 org.ofono.Modem.SetProperty Powered true
 # enable modem's RF parts
 mdbus2 -s org.ofono /n900_0 org.ofono.Modem.SetProperty Online true
 # scan for available networks (takes some time)
 mdbus2 -s org.ofono /n900_0 org.ofono.NetworkRegistration.Scan

TODO (post-merge):
* Central Message Queue
  I did not yet implement a central message queue in the HSI framework.
  I will do this after Nokia N900 modem is working in the mainline kernel.
* Remove the hwmod DT hack
  This depends on some future work merging hwmod data into DT.
* Implement proper context loss detection
* Implement N900 modem PM

[0] https://lkml.org/lkml/2014/3/9/139
[1] git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-hsi.git

-- Sebastian

Sebastian Reichel (14):
  Documentation: HSI: Add some general description for the HSI subsystem
  MAINTAINERS: update HSI entry
  HSI: hsi-char: fix driver for multiport scenarios
  HSI: method to unregister clients from an hsi port
  HSI: Add channel resource support to HSI clients
  HSI: export method to (un)register clients
  HSI: Add common DT binding for HSI client devices
  HSI: Introduce OMAP SSI driver
  Documentation: DT: omap-ssi binding documentation
  HSI: Introduce driver for SSI Protocol
  HSI: Introduce Nokia N900 modem driver
  ARM: dts: omap3 clocks: simplify ssi aliases
  DTS: ARM: OMAP3-N900: Add SSI support
  DTS: ARM: OMAP3-N900: Add modem support

 .../devicetree/bindings/hsi/client-devices.txt     |   44 +
 .../devicetree/bindings/hsi/nokia-modem.txt        |   58 +
 Documentation/devicetree/bindings/hsi/omap-ssi.txt |   85 ++
 Documentation/hsi.txt                              |   75 ++
 MAINTAINERS                                        |    4 +-
 arch/arm/boot/dts/omap3-n900.dts                   |   65 +
 arch/arm/boot/dts/omap3.dtsi                       |   55 +
 arch/arm/boot/dts/omap3430es1-clocks.dtsi          |   10 +-
 arch/arm/boot/dts/omap34xx.dtsi                    |   11 +
 .../boot/dts/omap36xx-omap3430es2plus-clocks.dtsi  |   10 +-
 arch/arm/boot/dts/omap36xx.dtsi                    |   11 +
 drivers/hsi/Kconfig                                |    1 +
 drivers/hsi/Makefile                               |    1 +
 drivers/hsi/clients/Kconfig                        |   17 +
 drivers/hsi/clients/Makefile                       |    4 +-
 drivers/hsi/clients/hsi_char.c                     |   14 +-
 drivers/hsi/clients/nokia-modem.c                  |  272 ++++
 drivers/hsi/clients/ssi_protocol.c                 | 1188 +++++++++++++++++
 drivers/hsi/controllers/Kconfig                    |   19 +
 drivers/hsi/controllers/Makefile                   |    6 +
 drivers/hsi/controllers/omap_ssi.c                 |  621 +++++++++
 drivers/hsi/controllers/omap_ssi.h                 |  166 +++
 drivers/hsi/controllers/omap_ssi_port.c            | 1401 ++++++++++++++++++++
 drivers/hsi/controllers/omap_ssi_regs.h            |  171 +++
 drivers/hsi/hsi.c                                  |  267 +++-
 include/linux/hsi/hsi.h                            |   30 +-
 include/linux/hsi/ssi_protocol.h                   |   42 +
 27 files changed, 4619 insertions(+), 29 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/hsi/client-devices.txt
 create mode 100644 Documentation/devicetree/bindings/hsi/nokia-modem.txt
 create mode 100644 Documentation/devicetree/bindings/hsi/omap-ssi.txt
 create mode 100644 Documentation/hsi.txt
 create mode 100644 drivers/hsi/clients/nokia-modem.c
 create mode 100644 drivers/hsi/clients/ssi_protocol.c
 create mode 100644 drivers/hsi/controllers/Kconfig
 create mode 100644 drivers/hsi/controllers/Makefile
 create mode 100644 drivers/hsi/controllers/omap_ssi.c
 create mode 100644 drivers/hsi/controllers/omap_ssi.h
 create mode 100644 drivers/hsi/controllers/omap_ssi_port.c
 create mode 100644 drivers/hsi/controllers/omap_ssi_regs.h
 create mode 100644 include/linux/hsi/ssi_protocol.h

-- 
1.9.0

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

end of thread, other threads:[~2014-05-05 22:41 UTC | newest]

Thread overview: 42+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-29  0:31 [PATCHv3 00/14] OMAP SSI driver / N900 modem support Sebastian Reichel
2014-03-29  0:31 ` [PATCHv3 01/14] Documentation: HSI: Add some general description for the HSI subsystem Sebastian Reichel
     [not found]   ` <1396053110-21639-2-git-send-email-sre-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2014-04-19 19:05     ` Pavel Machek
2014-03-29  0:31 ` [PATCHv3 02/14] MAINTAINERS: update HSI entry Sebastian Reichel
2014-04-19 19:06   ` Pavel Machek
2014-03-29  0:31 ` [PATCHv3 03/14] HSI: hsi-char: fix driver for multiport scenarios Sebastian Reichel
2014-04-19 19:06   ` Pavel Machek
2014-03-29  0:31 ` [PATCHv3 04/14] HSI: method to unregister clients from an hsi port Sebastian Reichel
     [not found]   ` <1396053110-21639-5-git-send-email-sre-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2014-04-19 19:07     ` Pavel Machek
2014-03-29  0:31 ` [PATCHv3 05/14] HSI: Add channel resource support to HSI clients Sebastian Reichel
     [not found]   ` <1396053110-21639-6-git-send-email-sre-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2014-04-19 19:11     ` Pavel Machek
2014-04-25 17:32       ` Sebastian Reichel
2014-03-29  0:31 ` [PATCHv3 06/14] HSI: export method to (un)register clients Sebastian Reichel
     [not found]   ` <1396053110-21639-7-git-send-email-sre-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2014-04-19 19:13     ` Pavel Machek
2014-03-29  0:31 ` [PATCHv3 07/14] HSI: Add common DT binding for HSI client devices Sebastian Reichel
     [not found]   ` <1396053110-21639-8-git-send-email-sre-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2014-04-19 19:16     ` Pavel Machek
2014-04-25 18:25       ` Sebastian Reichel
     [not found]         ` <20140425182535.GB22721-SfvFxonMDyemK9LvCR3Hrw@public.gmane.org>
2014-04-25 20:59           ` Sebastian Reichel
     [not found]             ` <20140425205926.GA30032-SfvFxonMDyemK9LvCR3Hrw@public.gmane.org>
2014-04-27 10:57               ` Pavel Machek
     [not found]                 ` <20140427105755.GA12265-tWAi6jLit6GreWDznjuHag@public.gmane.org>
2014-04-27 11:33                   ` Sebastian Reichel
2014-04-21 16:52   ` Rob Herring
2014-04-25 18:32     ` Sebastian Reichel
2014-03-29  0:31 ` [PATCHv3 08/14] HSI: Introduce OMAP SSI driver Sebastian Reichel
     [not found]   ` <1396053110-21639-9-git-send-email-sre-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2014-04-19 19:30     ` Pavel Machek
2014-04-25 18:36       ` Sebastian Reichel
2014-03-29  0:31 ` [PATCHv3 09/14] Documentation: DT: omap-ssi binding documentation Sebastian Reichel
2014-04-19 19:32   ` Pavel Machek
2014-04-21 16:43   ` Rob Herring
2014-04-25 18:38     ` Sebastian Reichel
2014-03-29  0:31 ` [PATCHv3 10/14] HSI: Introduce driver for SSI Protocol Sebastian Reichel
     [not found]   ` <1396053110-21639-11-git-send-email-sre-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2014-04-19 19:49     ` Pavel Machek
     [not found]       ` <20140419194936.GJ5148-tWAi6jLit6GreWDznjuHag@public.gmane.org>
2014-04-25 18:49         ` Sebastian Reichel
     [not found] ` <1396053110-21639-1-git-send-email-sre-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2014-03-29  0:31   ` [PATCHv3 11/14] HSI: Introduce Nokia N900 modem driver Sebastian Reichel
2014-04-19 20:25     ` Pavel Machek
2014-03-29  0:31 ` [PATCHv3 12/14] ARM: dts: omap3 clocks: simplify ssi aliases Sebastian Reichel
2014-04-19 20:26   ` Pavel Machek
2014-03-29  0:31 ` [PATCHv3 13/14] DTS: ARM: OMAP3-N900: Add SSI support Sebastian Reichel
2014-04-19 20:28   ` Pavel Machek
2014-03-29  0:31 ` [PATCHv3 14/14] DTS: ARM: OMAP3-N900: Add modem support Sebastian Reichel
2014-04-19 20:28   ` Pavel Machek
2014-05-05 19:31 ` [PATCHv3 00/14] OMAP SSI driver / N900 " Tony Lindgren
2014-05-05 22:41   ` Sebastian Reichel

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