Skip to contentSkip to conversation

OMAP SSI driver

RFC In review Sebastian Reichel 9 participants 28 messages Oct 6, 2013 – Oct 24, 2013 1 message not in the archive

Subsystems (6)
lore
Share & tools
lore
#0 lore raw

v3 cover OMAP SSI driver

Hi,

Here is the third round of the OMAP SSI driver patches.

Changes since RFCv2:
* Move DT data from omap34xx.dtsi to omap3.dtsi
Nokia N9 uses an omap3630 and ssi for modem connection, thus SSI seems to be part of all OMAP3 SoCs.
* Move DT documentation to the driver patch
* Update wording in DT documentation
I just applied Stephen Warrens suggestions
* Removal of omap_pm_get_dev_context_loss_count as demanded by Tony Lindgren For now there is no context loss support in the driver, since I do not have enough information about the chip to support this via registers.
* Dropped useless "default n" from KConfig
* Add support for HSI client registration via DT
* Register hsi-char as ssi client for Nokia N900
Currently only hsi-char client is available in the mainline kernel, but for the Nokia N900 two more clients will be needed: ssi-protocol and cmt-speech. Those will be added with their own patchset.
* Use ida_simple_get for device id, since DT does not setup pd->id
* Fixed SSI interrupt numbers in omap3.dtsi
I subtracted OMAP_INTC_START before, but the original patch did not yet have OMAP_INTC_START added.
* Fixed compilation as kernel modules
* Fixed reload of kernel modules
* Added module dependency: omap_ssi_port needs omap_port

TODO:
* 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, since that makes testing easier.
* Get clock data from DT
This depends on a patchset, which is not yet part of any kernel tree. Apart from that I don't know which clocks will be needed. That depends on the implementation of the hwmod DTification (see next point)
* Remove the hwmod DT hack
This depends on some future work merging hwmod data into DT.

Version 2 of the patchset: https://lkml.org/lkml/2013/9/15/98

-- Sebastian

Sebastian Reichel (7):
ARM: OMAP2+: hwmod-data: Add SSI information
HSI: add Device Tree support for HSI clients
HSI: method to unregister clients from an hsi port
HSI: hsi-char: add Device Tree support
HSI: hsi-char: fix driver for multiport scenarios
ARM: OMAP2+: HSI: Introduce OMAP SSI driver
ARM: dts: N900: Add SSI information

 Documentation/devicetree/bindings/hsi/omap_ssi.txt |   69 +
 .../devicetree/bindings/hsi/trivial-devices.txt    |   36 +
 arch/arm/boot/dts/omap3-n900.dts                   |   12 +
 arch/arm/boot/dts/omap3.dtsi                       |   47 +
 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c         |   48 +
 drivers/hsi/Kconfig                                |    1 +
 drivers/hsi/Makefile                               |    1 +
 drivers/hsi/clients/hsi_char.c                     |   15 +-
 drivers/hsi/controllers/Kconfig                    |   19 +
 drivers/hsi/controllers/Makefile                   |    6 +
 drivers/hsi/controllers/omap_ssi.c                 |  618 +++++++++
 drivers/hsi/controllers/omap_ssi.h                 |  166 +++
 drivers/hsi/controllers/omap_ssi_port.c            | 1400 ++++++++++++++++++++
 drivers/hsi/controllers/omap_ssi_regs.h            |  171 +++
 drivers/hsi/hsi.c                                  |   80 +-
 include/dt-bindings/hsi/hsi.h                      |   17 +
 include/linux/hsi/hsi.h                            |    3 +
 17 files changed, 2707 insertions(+), 2 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/hsi/omap_ssi.txt
 create mode 100644 Documentation/devicetree/bindings/hsi/trivial-devices.txt
 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/dt-bindings/hsi/hsi.h
Signature · 1 line
1.8.4.rc3
#1 lore raw

RFC v3 1/7 ARM: OMAP2+: hwmod-data: Add SSI information

This patch adds Synchronous Serial Interface (SSI) hwmod support for OMAP34xx SoCs.

---
 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c | 48 ++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)
arch/arm/mach-omap2/omap_hwmod_3xxx_data.c +48 -0
index 0c3a427..9e56fab 100644
@@ -3693,6 +3693,53 @@ static struct omap_hwmod_ocp_if omap3xxx_l4_core__aes = {
 	.user		= OCP_USER_MPU | OCP_USER_SDMA,
 };
 
+/*
+ * 'ssi' class
+ * synchronous serial interface (multichannel and full-duplex serial if)
+ */
+
+static struct omap_hwmod_class_sysconfig omap34xx_ssi_sysc = {
+	.rev_offs	= 0x0000,
+	.sysc_offs	= 0x0010,
+	.syss_offs	= 0x0014,
+	.sysc_flags	= (SYSC_HAS_AUTOIDLE | SYSC_HAS_EMUFREE |
+			   SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
+			   SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
+	.idlemodes	= (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
+			   SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
+			   MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
+	.sysc_fields	= &omap_hwmod_sysc_type1,
+};
+
+static struct omap_hwmod_class omap34xx_ssi_hwmod_class = {
+	.name	= "ssi",
+	.sysc	= &omap34xx_ssi_sysc,
+};
+
+static struct omap_hwmod omap34xx_ssi_hwmod = {
+	.name		= "ssi",
+	.class		= &omap34xx_ssi_hwmod_class,
+	.clkdm_name	= "core_l4_clkdm",
+	.main_clk	= "ssi_ssr_fck",
+	.prcm		= {
+		.omap2 = {
+			.prcm_reg_id		= 1,
+			.module_bit		= OMAP3430_EN_SSI_SHIFT,
+			.module_offs		= CORE_MOD,
+			.idlest_reg_id		= 1,
+			.idlest_idle_bit	= OMAP3430ES2_ST_SSI_IDLE_SHIFT,
+		},
+	},
+};
+
+/* L4 CORE -> SSI */
+static struct omap_hwmod_ocp_if omap34xx_l4_core__ssi = {
+	.master		= &omap3xxx_l4_core_hwmod,
+	.slave		= &omap34xx_ssi_hwmod,
+	.clk		= "ssi_ick",
+	.user		= OCP_USER_MPU | OCP_USER_SDMA,
+};
+
 static struct omap_hwmod_ocp_if *omap3xxx_hwmod_ocp_ifs[] __initdata = {
 	&omap3xxx_l3_main__l4_core,
 	&omap3xxx_l3_main__l4_per,
@@ -3818,6 +3865,7 @@ static struct omap_hwmod_ocp_if *omap34xx_hwmod_ocp_ifs[] __initdata = {
 #ifdef CONFIG_OMAP_IOMMU_IVA2
 	&omap3xxx_l3_main__mmu_iva,
 #endif
+	&omap34xx_l4_core__ssi,
 	NULL
 };
 
Signature · 1 line
1.8.4.rc3
#4 lore raw

RFC v3 2/7 HSI: add Device Tree support for HSI clients

In reply to Sebastian Reichel

Add new method hsi_add_clients_from_dt, which can be used to initialize HSI clients from a device tree node.

The patch also documents the DT binding for trivial HSI clients.

---
 .../devicetree/bindings/hsi/trivial-devices.txt    | 36 +++++++++++
 drivers/hsi/hsi.c                                  | 70 +++++++++++++++++++++-
 include/dt-bindings/hsi/hsi.h                      | 17 ++++++
 include/linux/hsi/hsi.h                            |  2 +
 4 files changed, 124 insertions(+), 1 deletion(-)
 create mode 100644 Documentation/devicetree/bindings/hsi/trivial-devices.txt
 create mode 100644 include/dt-bindings/hsi/hsi.h
Documentation/devicetree/bindings/hsi/trivial-devices.txt new file +36 -0
new file mode 100644
index 0000000..1ace14a
@@ -0,0 +1,36 @@
+This is a list of trivial hsi client devices that have simple
+device tree bindings, consisting only of a compatible field
+and the optional hsi configuration.
+
+If a device needs more specific bindings, such as properties to
+describe some aspect of it, there needs to be a specific binding
+document for it just like any other devices.
+
+Optional HSI configuration properties:
+
+- hsi,mode		Bit transmission mode (STREAM or FRAME)
+			The first value is used for RX and the second one for
+			TX configuration. If only one value is provided it will
+			be used for RX and TX.
+			The assignments may be found in header file
+			<dt-bindings/hsi/hsi.h>.
+- hsi,channels		Number of channels to use [1..16]
+			The first value is used for RX and the second one for
+			TX configuration. If only one value is provided it will
+			be used for RX and TX.
+- hsi,speed		Max bit transmission speed (Kbit/s)
+			The first value is used for RX and the second one for
+			TX configuration. If only one value is provided it will
+			be used for RX and TX.
+- hsi,flow		RX flow type (SYNCHRONIZED or PIPELINE)
+			The assignments may be found in header file
+			<dt-bindings/hsi/hsi.h>.
+- hsi,arb_mode		Arbitration mode for TX frame (Round robin, priority)
+			The assignments may be found in header file
+			<dt-bindings/hsi/hsi.h>.
+
+This is the list of trivial client devices:
+
+Compatible		Description
+==========		=============
+hsi-char		HSI character device
drivers/hsi/hsi.c +69 -1

94 lines not on this page · raw message

include/dt-bindings/hsi/hsi.h new file +17 -0
new file mode 100644
index 0000000..2d6b181
@@ -0,0 +1,17 @@
+/*
+ * This header provides constants for hsi client bindings.
+ */
+
+#ifndef _DT_BINDINGS_HSI_H
+#define _DT_BINDINGS_HSI_H
+
+#define HSI_MODE_STREAM 1
+#define HSI_MODE_FRAME 2
+
+#define HSI_FLOW_SYNC 0
+#define HSI_FLOW_PIPE 1
+
+#define HSI_ARB_RR 0
+#define HSI_ARB_PRIO 1
+
+#endif /* _DT_BINDINGS_HSI_H */
include/linux/hsi/hsi.h +2 -0
index 0dca785..fb07339 100644
@@ -282,6 +282,8 @@ struct hsi_controller *hsi_alloc_controller(unsigned int n_ports, gfp_t flags);
 void hsi_put_controller(struct hsi_controller *hsi);
 int hsi_register_controller(struct hsi_controller *hsi);
 void hsi_unregister_controller(struct hsi_controller *hsi);
+void hsi_add_clients_from_dt(struct hsi_port *port,
+						struct device_node *clients);
 
 static inline void hsi_controller_set_drvdata(struct hsi_controller *hsi,
 								void *data)
Signature · 1 line
1.8.4.rc3
#5 lore raw

RFC v3 3/7 HSI: method to unregister clients from an hsi port

In reply to Sebastian Reichel

This exports a method to unregister all clients from an hsi port.

---
 drivers/hsi/hsi.c       | 10 ++++++++++
 include/linux/hsi/hsi.h |  1 +
 2 files changed, 11 insertions(+)
drivers/hsi/hsi.c +10 -0
index 4384d7e..9dd7120 100644
@@ -196,6 +196,16 @@ static void hsi_port_release(struct device *dev)
 }
 
 /**
+ * hsi_unregister_port - Unregister an HSI port
+ * @port: The HSI port to unregister
+ */
+void hsi_port_unregister_clients(struct hsi_port *port)
+{
+	device_for_each_child(&port->device, NULL, hsi_remove_client);
+}
+EXPORT_SYMBOL_GPL(hsi_port_unregister_clients);
+
+/**
  * hsi_unregister_controller - Unregister an HSI controller
  * @hsi: The HSI controller to register
  */
include/linux/hsi/hsi.h +1 -0
index fb07339..89cc6f2 100644
@@ -284,6 +284,7 @@ int hsi_register_controller(struct hsi_controller *hsi);
 void hsi_unregister_controller(struct hsi_controller *hsi);
 void hsi_add_clients_from_dt(struct hsi_port *port,
 						struct device_node *clients);
+void hsi_port_unregister_clients(struct hsi_port *port);
 
 static inline void hsi_controller_set_drvdata(struct hsi_controller *hsi,
 								void *data)
Signature · 1 line
1.8.4.rc3
#6 lore raw

RFC v3 4/7 HSI: hsi-char: add Device Tree support

In reply to Sebastian Reichel

Add of_match_table to hsi_char driver, so that it can be referenced from Device Tree.

---
 drivers/hsi/clients/hsi_char.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)
drivers/hsi/clients/hsi_char.c +13 -0
index e61e5f9..e3302ed 100644
@@ -42,6 +42,7 @@
 #include <linux/stat.h>
 #include <linux/hsi/hsi.h>
 #include <linux/hsi/hsi_char.h>
+#include <linux/of_device.h>
 
 #define HSC_DEVS		16 /* Num of channels */
 #define HSC_MSGS		4
@@ -758,12 +759,24 @@ static int hsc_remove(struct device *dev)
 	return 0;
 }
 
+#ifdef CONFIG_OF
+static const struct of_device_id hsi_char_of_match[] = {
+	{ .compatible = "ssi-char", },
+	{ .compatible = "hsi-char", },
+	{},
+};
+MODULE_DEVICE_TABLE(of, hsi_char_of_match);
+#else
+#define hsi_char_of_match NULL
+#endif
+
 static struct hsi_client_driver hsc_driver = {
 	.driver = {
 		.name	= "hsi_char",
 		.owner	= THIS_MODULE,
 		.probe	= hsc_probe,
 		.remove	= hsc_remove,
+		.of_match_table = hsi_char_of_match,
 	},
 };
 
Signature · 1 line
1.8.4.rc3
#7 lore raw

RFC v3 5/7 HSI: hsi-char: fix driver for multiport scenarios

In reply to Sebastian Reichel

Fix return code check of alloc_chrdev_region, which returns 0 on success.

---
 drivers/hsi/clients/hsi_char.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hsi/clients/hsi_char.c +1 -1
index e3302ed..5457690 100644
@@ -706,7 +706,7 @@ static int hsc_probe(struct device *dev)
 	if (!hsc_major) {
 		ret = alloc_chrdev_region(&hsc_dev, hsc_baseminor,
 						HSC_DEVS, devname);
-		if (ret > 0)
+		if (ret == 0)
 			hsc_major = MAJOR(hsc_dev);
 	} else {
 		hsc_dev = MKDEV(hsc_major, hsc_baseminor);
Signature · 1 line
1.8.4.rc3
#8 lore raw

RFC v3 6/7 ARM: OMAP2+: HSI: Introduce OMAP SSI driver

In reply to Sebastian Reichel

This patch adds an OMAP SSI driver to the HSI framework.

The Synchronous Serial Interface (SSI) is a legacy version of HSI. As in the case of HSI, it is mainly used to connect Application engines (APE) with cellular modem engines (CMT) in cellular handsets.

It provides a multichannel, full-duplex, multi-core communication with no reference clock. The OMAP SSI block is capable of reaching speeds of 110 Mbit/s.

---
 Documentation/devicetree/bindings/hsi/omap_ssi.txt |   69 +
 drivers/hsi/Kconfig                                |    1 +
 drivers/hsi/Makefile                               |    1 +
 drivers/hsi/controllers/Kconfig                    |   19 +
 drivers/hsi/controllers/Makefile                   |    6 +
 drivers/hsi/controllers/omap_ssi.c                 |  618 +++++++++
 drivers/hsi/controllers/omap_ssi.h                 |  166 +++
 drivers/hsi/controllers/omap_ssi_port.c            | 1400 ++++++++++++++++++++
 drivers/hsi/controllers/omap_ssi_regs.h            |  171 +++
 9 files changed, 2451 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/hsi/omap_ssi.txt
 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
Documentation/devicetree/bindings/hsi/omap_ssi.txt new file +69 -0
new file mode 100644
index 0000000..c62d4b8
@@ -0,0 +1,69 @@
+OMAP SSI controller bindings
+
+Required properties:
+- compatible:		Should include "ti,omap3-ssi".
+- ti,hwmods:		Name of the hwmod associated to the controller, which
+			is "ssi".
+- reg-names:		Contains the values "sys" and "gdd".
+- reg:			Contains a register specifier for each entry in
+			reg-names.
+- interrupt-names:      Contains the value "gdd_mpu".
+- interrupts: 		Contains interrupt information for each entry in
+			interrupt-names.
+- ranges		Represents the bus address mapping between the main
+			controller node and the child nodes below.
+- #address-cells	Should be set to <1>
+- #size-cells		Should be set to <1>
+
+Each port is represented as a sub-node of the ti,omap3-ssi device.
+
+Required Port sub-node properties:
+- compatible:		Should be set to the following value
+                        ti,omap3-ssi-port (applicable to OMAP34xx devices)
+- reg-names:		Contains the values "rx" and "tx".
+- reg:			Contains a register specifier for each entry in
+			reg-names.
+- interrupt-parent	Should be a phandle for the interrupt controller
+- interrupt-names:	Contains the values "mpu_irq0" and "mpu_irq1".
+- interrupts:		Contains interrupt information for each entry in
+			interrupt-names.
+- ti,ssi-cawake-gpio:	Defines which GPIO pin is used to signify CAWAKE
+			events for the port. This is an optional board-specific
+			property. If it's missing the port will not be
+			enabled.
+
+Example for Nokia N900:
+
+ssi-controller@48058000 {
+	compatible = "ti,omap3-ssi";
+	ti,hwmods = "ssi";
+
+	reg = <0x48058000 0x1000>,
+	      <0x48059000 0x1000>;
+	reg-names = "sys",
+		    "gdd";
+
+	interrupts = <55>;
+	interrupt-names = "gdd_mpu";
+
+	#address-cells = <1>;
+	#size-cells = <1>;
+	ranges;
+
+	ssi-port@0 {
+		compatible = "ti,omap3-ssi-port";
+
+		reg = <0x4805a000 0x800>,
+		      <0x4805a800 0x800>;
+		reg-names = "tx",
+			    "rx";
+
+		interrupt-parent = <&intc>;
+		interrupts = <51>,
+			     <52>;
+		interrupt-names = "mpu_irq0",
+				  "mpu_irq1";
+
+		ti,ssi-cawake-gpio = <&gpio5 23 GPIO_ACTIVE_HIGH>; /* 151 */
+	}
+}
drivers/hsi/Kconfig +1 -0
index d94e38d..2c76de4 100644
@@ -14,6 +14,7 @@ config HSI_BOARDINFO
 	bool
 	default y
 
+source "drivers/hsi/controllers/Kconfig"
 source "drivers/hsi/clients/Kconfig"
 
 endif # HSI
drivers/hsi/Makefile +1 -0
index 9d5d33f..360371e 100644
@@ -3,4 +3,5 @@
 #
 obj-$(CONFIG_HSI_BOARDINFO)	+= hsi_boardinfo.o
 obj-$(CONFIG_HSI)		+= hsi.o
+obj-y				+= controllers/
 obj-y				+= clients/
drivers/hsi/controllers/Kconfig new file +19 -0
new file mode 100644
index 0000000..037a344
@@ -0,0 +1,19 @@
+#
+# HSI controllers configuration
+#
+comment "HSI controllers"
+
+config OMAP_SSI
+	tristate "OMAP SSI hardware driver"
+	depends on ARCH_OMAP && HSI
+	---help---
+	  SSI is a legacy version of HSI. It is usually used to connect
+	  an application engine with a cellular modem.
+	  If you say Y here, you will enable the OMAP SSI hardware driver.
+
+	  If unsure, say N.
+
+config OMAP_SSI_PORT
+	tristate
+	default m if OMAP_SSI=m
+	default y if OMAP_SSI=y
drivers/hsi/controllers/Makefile new file +6 -0
new file mode 100644
index 0000000..d2665cf
@@ -0,0 +1,6 @@
+#
+# Makefile for HSI controllers drivers
+#
+
+obj-$(CONFIG_OMAP_SSI)		+= omap_ssi.o
+obj-$(CONFIG_OMAP_SSI_PORT)	+= omap_ssi_port.o
drivers/hsi/controllers/omap_ssi.c new file +618 -0

618 lines not on this page · raw message

drivers/hsi/controllers/omap_ssi.h new file +166 -0

166 lines not on this page · raw message

drivers/hsi/controllers/omap_ssi_port.c new file +1400 -0

1,400 lines not on this page · raw message

drivers/hsi/controllers/omap_ssi_regs.h new file +171 -0

171 lines not on this page · raw message

Signature · 1 line
1.8.4.rc3
#9 lore raw

RFC v3 7/7 ARM: dts: N900: Add SSI information

In reply to Sebastian Reichel

Add SSI device tree data for OMAP3 and Nokia N900.

---
 arch/arm/boot/dts/omap3-n900.dts | 12 ++++++++++
 arch/arm/boot/dts/omap3.dtsi     | 47 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 59 insertions(+)
arch/arm/boot/dts/omap3-n900.dts +12 -0
index 0582356..0fbb77e 100644
@@ -186,6 +186,18 @@
 	power = <50>;
 };
 
+&ssi_port1 {
+	ti,ssi-cawake-gpio = <&gpio5 23 GPIO_ACTIVE_HIGH>; /* 151 */
+
+	ssi-char {
+		compatible = "ssi-char";
+	};
+};
+
+&ssi_port2 {
+	status = "disabled";
+};
+
 &uart1 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&uart1_pins>;
arch/arm/boot/dts/omap3.dtsi +47 -0

52 lines not on this page · raw message

Signature · 1 line
1.8.4.rc3
#3 lore raw

Re: [RFCv3 1/7] ARM: OMAP2+: hwmod-data: Add SSI information

Quoted 9 lines · Paul Walmsley
Quoted 4 lines · Sebastian Reichel

This patch adds Synchronous Serial Interface (SSI) hwmod support for OMAP34xx SoCs.

Thanks, queued this one for v3.13. You can drop it from any future reposts of this series.

Thanks.

-- Sebastian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20131010/647ee67a/attachment-0001.sig>

#14 lore raw
In reply to Tony Lindgren

Hi,

Quoted 6 lines · Tony Lindgren
Quoted 1 line · Sebastian Reichel

Here is the third round of the OMAP SSI driver patches.

Thanks for updating these, they look good to me now:

Ok. I guess it's time to check how this gets included in the kernel.

The first patch has already been queued and the last patch could probably go through Beno?t once the DT people have reviewed the updated patches. The other ones would normally go through the hsi tree, but that one was maintained by Carlos Chinea and is now more or less orphaned.

My suggestion is:

1. I create another patch, which adds entries for hsi subsystem and ssi driver to MAINTAINERS.

It would be nice to have some co-maintainers for the subsystem. Linus Walleij maybe? I think you created the launchpad blueprint [1]? Especially because I have no documentation/specification for HSI, which brings me to my next slightly off topic request.

I would like to have access to SSI documentation and HSI specification. Can the guys from Texas Instruments please give me some pointers how I can get access to the NDA'd documentation? I couldn't find any hints on ti.com.

2. I create a patch adding Carlos Chinea to CREDITS

3. I create a git repository and put all of the patches in there, so that they can be pulled into linux-next.

4. I add a gpg/pgp signed tag with the key used to signed this mail.

Any issues with this or any other suggestions how to proceed? And if following this
- should I request an account on kernel.org to host the repository there, or should I just upload it at a random place?

[0] https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/tree/Next/Trees
[1] https://blueprints.launchpad.net/linux-linaro/+spec/hsi-subsystem-maint

-- Sebastian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20131010/6f548040/attachment.sig>

maintainer
#15 lore raw
Quoted 10 lines · Sebastian Reichel

Hi,

Quoted 6 lines · Tony Lindgren
Quoted 1 line · Sebastian Reichel

Here is the third round of the OMAP SSI driver patches.

Thanks for updating these, they look good to me now:

Quoted 7 lines

Ok. I guess it's time to check how this gets included in the kernel.

The first patch has already been queued and the last patch could probably go through Beno?t once the DT people have reviewed the updated patches. The other ones would normally go through the hsi tree, but that one was maintained by Carlos Chinea and is now more or less orphaned.

Yes, I suggest you post the .dts changes completely seprately so driver maintainers don't accidentally pick those up.

Quoted 17 lines

My suggestion is:

1. I create another patch, which adds entries for hsi subsystem and ssi driver to MAINTAINERS.

It would be nice to have some co-maintainers for the subsystem. Linus Walleij maybe? I think you created the launchpad blueprint [1]? Especially because I have no documentation/specification for HSI, which brings me to my next slightly off topic request.

I would like to have access to SSI documentation and HSI specification. Can the guys from Texas Instruments please give me some pointers how I can get access to the NDA'd documentation? I couldn't find any hints on ti.com.

2. I create a patch adding Carlos Chinea to CREDITS

Quoted 8 lines

3. I create a git repository and put all of the patches in there, so that they can be pulled into linux-next.

4. I add a gpg/pgp signed tag with the key used to signed this mail.

Any issues with this or any other suggestions how to proceed? And if following this
- should I request an account on kernel.org to host the repository there, or should I just upload it at a random place?

That all sounds good to me. It is a *good thing* to have a maintainer for a driver subsystem, and if you're willing to pick it up, that's the way to go.

Regards,

Tony

Quoted 4 lines

[0] https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/tree/Next/Trees
[1] https://blueprints.launchpad.net/linux-linaro/+spec/hsi-subsystem-maint

-- Sebastian

maintainer
#16 lore raw
In reply to Sebastian Reichel

Hi,

Quoted 1 line · Sebastian Reichel

Any issues with this or any other suggestions how to proceed?

Maybe you could provide some brief instructions/description of how this was tested?

Thanks,

A.

#17 lore raw
Quoted 5 lines · Aaro Koskinen
Quoted 1 line · Sebastian Reichel

Any issues with this or any other suggestions how to proceed?

Maybe you could provide some brief instructions/description of how this was tested?

Sure. I used Carlos' original patch, which has been tested to be working. Then I checked with some debug prints and the debugfs support what the registers and resources should look like. Next I updated the patch to use the new kernel frameworks and made sure everything is behaves as before.

For actually using the modem of the Nokia N900 three more drivers are needed in the mainline kernel in addtion to this one:

1. cmt

This is a small driver handling the modem's reset line, which is connected via a gpio pin to the system.

2. ssi_protocol

This is an hsi client driver, which actually talks with the modem and exports an phonet interface for userspace access. It makes use of the cmt driver.

I plan on porting these to the new kernel frameworks next. If I'm not mistaken this should be enough to communicate with the modem.

3. cmt_speech

This is an hsi client driver, which takes care of interchanging speech data with the modem. This one is needed for calling. I will have a look at it once the basic stuff is working.

P.S.: You can get a mainline kernel status matrix for the Nokia

      N900 on this page: http://elinux.org/N900

-- Sebastian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20131010/c6047523/attachment-0001.sig>

maintainer
#18 lore raw
Quoted 2 lines · Sebastian Reichel

P.S.: You can get a mainline kernel status matrix for the Nokia

      N900 on this page: http://elinux.org/N900

Thanks for summary, and the above page looks very useful. I wonder would it make sense to add also N9/N950 there (some functionality is shared)? Also TWL4030 DT status could be updated, e.g. watchdog support was done already last year with 8899b8d93ec64b7a8e54807a68a958e1206535e2.

A.

#19 lore raw
Quoted 5 lines · Aaro Koskinen
Quoted 2 lines · Sebastian Reichel

P.S.: You can get a mainline kernel status matrix for the Nokia

      N900 on this page: http://elinux.org/N900

Thanks for summary,

You're welcome.

Quoted 2 lines

and the above page looks very useful. I wonder would it make sense to add also N9/N950 there (some functionality is shared)?

mh maybe. I haven't looked @ N9/N950 so far, since I don't own them. I would be interested in a N950, but I don't own one and it's almost impossible to get one :(

Apart from that I'm not sure if it's a good idea to make the table even more complex. Maybe just add a new page?

Quoted 2 lines

Also TWL4030 DT status could be updated, e.g. watchdog support was done already last year with 8899b8d93ec64b7a8e54807a68a958e1206535e2.

Yes. I only recently added the DT column and have not yet checked all the drivers. Probably it's also a good idea to split this column into "driver supports DT" and "DT file supports it".

-- Sebastian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20131011/6e3fd846/attachment.sig>

#27 lore raw

v3 cover OMAP SSI driver

In reply to Sebastian Reichel
Quoted 5 lines · Sebastian Reichel

1. I create another patch, which adds entries for hsi subsystem and ssi driver to MAINTAINERS.

It would be nice to have some co-maintainers for the subsystem. Linus Walleij maybe? I think you created the launchpad blueprint [1]?

Well yeah I did... but I do not think this is big enough a subsystem to require two maintainers right now, also I have no easily available HSI hardware that I can use to test things. (I think.)

Yours,
Linus Walleij

#28 lore raw
In reply to Sebastian Reichel

Hi,

Quoted 1 line · Sebastian Reichel

Here is the third round of the OMAP SSI driver patches.

ping!

I'm still waiting for feedback from DT maintainers.
Can you review the changes and Ack them or tell me how to proceed?

-- Sebastian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20131021/59571ce5/attachment.sig>

#10 lore raw

Re: [RFCv3 7/7] ARM: dts: N900: Add SSI information

In reply to Sebastian Reichel

Hi Sebastian,

Thanks to Tony, I've just realized that I missed all your patches, that for some reason ended-up in my junk folder :-(

That being said, I cannot apply any of your DTS patches! What base branch are you using?

Could you repost all your pending DTS patches in one series rebased on top of my for_3.13/dts?

Thanks,
Benoit

Quoted 89 lines · Sebastian Reichel

Add SSI device tree data for OMAP3 and Nokia N900.

---
  arch/arm/boot/dts/omap3-n900.dts | 12 ++++++++++
  arch/arm/boot/dts/omap3.dtsi     | 47 ++++++++++++++++++++++++++++++++++++++++
  2 files changed, 59 insertions(+)
arch/arm/boot/dts/omap3-n900.dts +12 -0
index 0582356..0fbb77e 100644
@@ -186,6 +186,18 @@
  	power = <50>;
  };
 
+&ssi_port1 {
+	ti,ssi-cawake-gpio = <&gpio5 23 GPIO_ACTIVE_HIGH>; /* 151 */
+
+	ssi-char {
+		compatible = "ssi-char";
+	};
+};
+
+&ssi_port2 {
+	status = "disabled";
+};
+
  &uart1 {
  	pinctrl-names = "default";
  	pinctrl-0 = <&uart1_pins>;
arch/arm/boot/dts/omap3.dtsi +47 -0
index 7d95cda..9f60b82 100644
@@ -532,5 +532,52 @@
  			num-eps = <16>;
  			ram-bits = <12>;
  		};
+
+		ssi: ssi-controller at 48058000 {
+			compatible = "ti,omap3-ssi";
+			ti,hwmods = "ssi";
+
+			reg = <0x48058000 0x1000>,
+			      <0x48059000 0x1000>;
+			reg-names = "sys",
+				    "gdd";
+
+			interrupts = <71>;
+			interrupt-names = "gdd_mpu";
+
+			#address-cells = <1>;
+			#size-cells = <1>;
+			ranges;
+
+			ssi_port1: ssi-port at 0 {
+				compatible = "ti,omap3-ssi-port";
+
+				reg = <0x4805a000 0x800>,
+				      <0x4805a800 0x800>;
+				reg-names = "tx",
+					    "rx";
+
+				interrupt-parent = <&intc>;
+				interrupts = <67>,
+					     <68>;
+				interrupt-names = "mpu_irq0",
+						  "mpu_irq1";
+			};
+
+			ssi_port2: ssi-port at 1 {
+				compatible = "ti,omap3-ssi-port";
+
+				reg = <0x4805b000 0x800>,
+				      <0x4805b800 0x800>;
+				reg-names = "tx",
+					    "rx";
+
+				interrupt-parent = <&intc>;
+				interrupts = <69>,
+					     <70>;
+				interrupt-names = "mpu_irq0",
+						  "mpu_irq1";
+			};
+		};
  	};
  };
Signature · 4 lines
Beno?t Cousson
BayLibre
Embedded Linux Technology Lab
www.baylibre.com
#11 lore raw

Re: [RFCv3 7/7] ARM: dts: N900: Add SSI information

Hi Benoit,

Quoted 2 lines · Benoit Cousson

Thanks to Tony, I've just realized that I missed all your patches, that for some reason ended-up in my junk folder :-(

oh :( Can you check why they ended up in junk? I would like to prevent more mails going there.

Quoted 2 lines

That being said, I cannot apply any of your DTS patches! What base branch are you using?

Currently torvalds/master with pavel's n900 patch and some more patches from me.

Quoted 2 lines

Could you repost all your pending DTS patches in one series rebased on top of my for_3.13/dts?

Sure. DT maintainers haven't given feedback since the last patchset [0]. Do you want to wait for feedback from them?

[0] https://lkml.org/lkml/2013/9/23/529

-- Sebastian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20131022/d075c54f/attachment.sig>

#12 lore raw

Re: [RFCv3 7/7] ARM: dts: N900: Add SSI information

Hi Sebastian,

Quoted 6 lines · Sebastian Reichel

Hi Benoit,

Quoted 2 lines · Benoit Cousson

Thanks to Tony, I've just realized that I missed all your patches, that for some reason ended-up in my junk folder :-(

Quoted 8 lines

oh :( Can you check why they ended up in junk? I would like to prevent more mails going there.

Quoted 2 lines

That being said, I cannot apply any of your DTS patches! What base branch are you using?

Currently torvalds/master with pavel's n900 patch and some more patches from me.

Mmm, looks like I missed these patches :-)

Quoted 6 lines
Quoted 3 lines

Could you repost all your pending DTS patches in one series rebased on top of my for_3.13/dts?

Sure. DT maintainers haven't given feedback since the last patchset [0]. Do you want to wait for feedback from them?

OK, maybe not the SSI series that is still RFC, but I guess all the others ones are fine to be merged.

Could you repost the whole N900 DTS patches (beside SSI) in one series rebased on top of mine?

Thanks,
Benoit

Quoted 5 lines

[0] https://lkml.org/lkml/2013/9/23/529

-- Sebastian

Signature · 4 lines
Beno?t Cousson
BayLibre
Embedded Linux Technology Lab
www.baylibre.com
#20 lore raw
In reply to Sebastian Reichel

Hi!

Quoted 8 lines

3. cmt_speech

This is an hsi client driver, which takes care of interchanging speech data with the modem. This one is needed for calling. I will have a look at it once the basic stuff is working.

P.S.: You can get a mainline kernel status matrix for the Nokia

      N900 on this page: http://elinux.org/N900

Thanks a lot for the page. I did not realize how well is N900 supported in latest mainline...

What do you use as userland? Is there specific userland 3.13 is expected to work with?
Pavel

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
#21 lore raw
In reply to Sebastian Reichel

Hi!

Quoted 8 lines

3. cmt_speech

This is an hsi client driver, which takes care of interchanging speech data with the modem. This one is needed for calling. I will have a look at it once the basic stuff is working.

P.S.: You can get a mainline kernel status matrix for the Nokia

      N900 on this page: http://elinux.org/N900

Thanks a lot for the page. I did not realize how well is N900 supported in latest mainline...

What do you use as userland? Is there specific userland 3.13 is expected to work with?
Pavel

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
#22 lore raw
In reply to Sebastian Reichel

Hi!

Quoted 8 lines

3. cmt_speech

This is an hsi client driver, which takes care of interchanging speech data with the modem. This one is needed for calling. I will have a look at it once the basic stuff is working.

P.S.: You can get a mainline kernel status matrix for the Nokia

      N900 on this page: http://elinux.org/N900

Thanks a lot for the page. I did not realize how well is N900 supported in latest mainline...

What do you use as userland? Is there specific userland 3.13 is expected to work with?
Pavel

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
#24 lore raw
In reply to a message not in the archive

Hi!

Quoted 8 lines

3. cmt_speech

This is an hsi client driver, which takes care of interchanging speech data with the modem. This one is needed for calling. I will have a look at it once the basic stuff is working.

P.S.: You can get a mainline kernel status matrix for the Nokia

      N900 on this page: http://elinux.org/N900

Thanks a lot for the page. I did not realize how well is N900 supported in latest mainline...

What do you use as userland? Is there specific userland 3.13 is expected to work with?
Pavel

Signature · 6 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#25 lore raw
In reply to Sebastian Reichel

Hi!

Quoted 8 lines

3. cmt_speech

This is an hsi client driver, which takes care of interchanging speech data with the modem. This one is needed for calling. I will have a look at it once the basic stuff is working.

P.S.: You can get a mainline kernel status matrix for the Nokia

      N900 on this page: http://elinux.org/N900

Thanks a lot for the page. I did not realize how well is N900 supported in latest mainline...

What do you use as userland? Is there specific userland 3.13 is expected to work with?
Pavel

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
#26 lore raw
In reply to Sebastian Reichel

Hi!

Quoted 8 lines

3. cmt_speech

This is an hsi client driver, which takes care of interchanging speech data with the modem. This one is needed for calling. I will have a look at it once the basic stuff is working.

P.S.: You can get a mainline kernel status matrix for the Nokia

      N900 on this page: http://elinux.org/N900

Thanks a lot for the page. I did not realize how well is N900 supported in latest mainline...

What do you use as userland? Is there specific userland 3.13 is expected to work with?
Pavel

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html