linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/5] Nokia N950 modem support
@ 2016-01-17 15:49 Sebastian Reichel
  2016-01-17 15:49 ` [PATCH 1/5] ARM: OMAP2+: hwmod data: Add SSI data for omap36xx Sebastian Reichel
                   ` (5 more replies)
  0 siblings, 6 replies; 16+ messages in thread
From: Sebastian Reichel @ 2016-01-17 15:49 UTC (permalink / raw)
  To: Sebastian Reichel, Tony Lindgren, Benoît Cousson,
	Paul Walmsley, Aaro Koskinen
  Cc: Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala,
	linux-omap, devicetree, linux-kernel

Hi,

This patchset adds support for the N950 modem. Afterwards it can be
used with ofono in the same way, that the N900's modem can be used [0].

In addition to the kernel patchset, ofono must be modified slightly, though.
The cbs interface from the N950 modem seems to be broken resulting in modem
reset. The below ofono patch is enough to get it running for the N950.

[0] https://lkml.org/lkml/2014/5/10/167

-- Sebastian

diff --git a/plugins/n900.c b/plugins/n900.c
index 44e2e75df3d9..1454d010cb2c 100644
--- a/plugins/n900.c
+++ b/plugins/n900.c
@@ -507,7 +507,7 @@ static void n900_post_online(struct ofono_modem *modem)
 
 	ofono_netreg_create(modem, 0, "isimodem", isi->modem);
 	ofono_sms_create(modem, 0, "isimodem", isi->modem);
-	ofono_cbs_create(modem, 0, "isimodem", isi->modem);
+	//ofono_cbs_create(modem, 0, "isimodem", isi->modem);
 	ofono_ussd_create(modem, 0, "isimodem", isi->modem);
 	ofono_call_settings_create(modem, 0, "isimodem", isi->modem);
 	ofono_call_barring_create(modem, 0, "isimodem", isi->modem);
---

Sebastian Reichel (5):
  ARM: OMAP2+: hwmod data: Add SSI data for omap36xx
  ARM: dts: OMAP3-N950-N9: Enable SSI module
  HSI: nokia-modem: add n950 and n9 support
  HSI: ssi-protocol: Use handshake logic from n950
  ARM: dts: OMAP3-N950-N9: Enable modem

 .../devicetree/bindings/hsi/nokia-modem.txt        | 12 ++--
 arch/arm/boot/dts/omap3-n9.dts                     |  4 ++
 arch/arm/boot/dts/omap3-n950-n9.dtsi               | 64 ++++++++++++++++++++++
 arch/arm/boot/dts/omap3-n950.dts                   |  4 ++
 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c         | 13 +++--
 drivers/hsi/clients/nokia-modem.c                  |  2 +
 drivers/hsi/clients/ssi_protocol.c                 | 16 ++----
 7 files changed, 93 insertions(+), 22 deletions(-)

-- 
2.7.0.rc3

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

* [PATCH 1/5] ARM: OMAP2+: hwmod data: Add SSI data for omap36xx
  2016-01-17 15:49 [PATCH 0/5] Nokia N950 modem support Sebastian Reichel
@ 2016-01-17 15:49 ` Sebastian Reichel
  2016-01-26 22:07   ` Aaro Koskinen
  2016-01-17 15:49 ` [PATCH 2/5] ARM: dts: OMAP3-N950-N9: Enable SSI module Sebastian Reichel
                   ` (4 subsequent siblings)
  5 siblings, 1 reply; 16+ messages in thread
From: Sebastian Reichel @ 2016-01-17 15:49 UTC (permalink / raw)
  To: Sebastian Reichel, Tony Lindgren, Benoît Cousson,
	Paul Walmsley, Aaro Koskinen
  Cc: Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala,
	linux-omap, devicetree, linux-kernel

This patch enables Synchronous Serial Interface (SSI)
hwmod support for OMAP36xx SoCs (used by Nokia N950/N9).

Signed-off-by: Sebastian Reichel <sre@kernel.org>
---
 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c b/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c
index aff78d5198d2..ed972029dce1 100644
--- a/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c
+++ b/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c
@@ -3625,14 +3625,14 @@ static struct omap_hwmod_class_sysconfig omap34xx_ssi_sysc = {
 	.sysc_fields	= &omap_hwmod_sysc_type1,
 };
 
-static struct omap_hwmod_class omap34xx_ssi_hwmod_class = {
+static struct omap_hwmod_class omap3xxx_ssi_hwmod_class = {
 	.name	= "ssi",
 	.sysc	= &omap34xx_ssi_sysc,
 };
 
-static struct omap_hwmod omap34xx_ssi_hwmod = {
+static struct omap_hwmod omap3xxx_ssi_hwmod = {
 	.name		= "ssi",
-	.class		= &omap34xx_ssi_hwmod_class,
+	.class		= &omap3xxx_ssi_hwmod_class,
 	.clkdm_name	= "core_l4_clkdm",
 	.main_clk	= "ssi_ssr_fck",
 	.prcm		= {
@@ -3647,9 +3647,9 @@ static struct omap_hwmod omap34xx_ssi_hwmod = {
 };
 
 /* L4 CORE -> SSI */
-static struct omap_hwmod_ocp_if omap34xx_l4_core__ssi = {
+static struct omap_hwmod_ocp_if omap3xxx_l4_core__ssi = {
 	.master		= &omap3xxx_l4_core_hwmod,
-	.slave		= &omap34xx_ssi_hwmod,
+	.slave		= &omap3xxx_ssi_hwmod,
 	.clk		= "ssi_ick",
 	.user		= OCP_USER_MPU | OCP_USER_SDMA,
 };
@@ -3802,7 +3802,7 @@ static struct omap_hwmod_ocp_if *omap34xx_hwmod_ocp_ifs[] __initdata = {
 	&omap3xxx_sad2d__l3,
 	&omap3xxx_l4_core__mmu_isp,
 	&omap3xxx_l3_main__mmu_iva,
-	&omap34xx_l4_core__ssi,
+	&omap3xxx_l4_core__ssi,
 	NULL
 };
 
@@ -3826,6 +3826,7 @@ static struct omap_hwmod_ocp_if *omap36xx_hwmod_ocp_ifs[] __initdata = {
 	&omap3xxx_sad2d__l3,
 	&omap3xxx_l4_core__mmu_isp,
 	&omap3xxx_l3_main__mmu_iva,
+	&omap3xxx_l4_core__ssi,
 	NULL
 };
 
-- 
2.7.0.rc3

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

* [PATCH 2/5] ARM: dts: OMAP3-N950-N9: Enable SSI module
  2016-01-17 15:49 [PATCH 0/5] Nokia N950 modem support Sebastian Reichel
  2016-01-17 15:49 ` [PATCH 1/5] ARM: OMAP2+: hwmod data: Add SSI data for omap36xx Sebastian Reichel
@ 2016-01-17 15:49 ` Sebastian Reichel
  2016-02-12 22:00   ` Tony Lindgren
  2016-01-17 15:49 ` [PATCH 3/5] HSI: nokia-modem: add n950 and n9 support Sebastian Reichel
                   ` (3 subsequent siblings)
  5 siblings, 1 reply; 16+ messages in thread
From: Sebastian Reichel @ 2016-01-17 15:49 UTC (permalink / raw)
  To: Sebastian Reichel, Tony Lindgren, Benoît Cousson,
	Paul Walmsley, Aaro Koskinen
  Cc: Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala,
	linux-omap, devicetree, linux-kernel

The Nokia N950 and Nokia N9 have a modem attached to their
first ssi port. This change adds all necessary information
to initialize the SSI module, but does not yet add the
modem information.

Signed-off-by: Sebastian Reichel <sre@kernel.org>
---
 arch/arm/boot/dts/omap3-n950-n9.dtsi | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/arch/arm/boot/dts/omap3-n950-n9.dtsi b/arch/arm/boot/dts/omap3-n950-n9.dtsi
index e9ee1df0e467..95893003c67d 100644
--- a/arch/arm/boot/dts/omap3-n950-n9.dtsi
+++ b/arch/arm/boot/dts/omap3-n950-n9.dtsi
@@ -44,6 +44,19 @@
 			0x132 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat3 */
 		>;
 	};
+
+	ssi_pins: pinmux_ssi_pins {
+		pinctrl-single,pins = <
+			OMAP3_CORE1_IOPAD(0x217c, PIN_OUTPUT | MUX_MODE1)            /* ssi1_dat_tx */
+			OMAP3_CORE1_IOPAD(0x217e, PIN_OUTPUT | MUX_MODE1)            /* ssi1_flag_tx */
+			OMAP3_CORE1_IOPAD(0x2180, PIN_INPUT_PULLUP | MUX_MODE1)      /* ssi1_rdy_tx */
+			OMAP3_CORE1_IOPAD(0x2182, PIN_INPUT | WAKEUP_EN | MUX_MODE4) /* ssi1_wake_tx (cawake) */
+			OMAP3_CORE1_IOPAD(0x2184, PIN_INPUT | MUX_MODE1)             /* ssi1_dat_rx */
+			OMAP3_CORE1_IOPAD(0x2186, PIN_INPUT | MUX_MODE1)             /* ssi1_flag_rx */
+			OMAP3_CORE1_IOPAD(0x2188, PIN_OUTPUT | MUX_MODE1)            /* ssi1_rdy_rx */
+			OMAP3_CORE1_IOPAD(0x218a, PIN_OUTPUT | MUX_MODE1)            /* ssi1_wake */
+		>;
+	};
 };
 
 &i2c1 {
@@ -191,3 +204,14 @@
 		};
 	};
 };
+
+&ssi_port1 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&ssi_pins>;
+
+	ti,ssi-cawake-gpio = <&gpio5 23 GPIO_ACTIVE_HIGH>; /* 151 */
+};
+
+&ssi_port2 {
+	status = "disabled";
+};
-- 
2.7.0.rc3

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

* [PATCH 3/5] HSI: nokia-modem: add n950 and n9 support
  2016-01-17 15:49 [PATCH 0/5] Nokia N950 modem support Sebastian Reichel
  2016-01-17 15:49 ` [PATCH 1/5] ARM: OMAP2+: hwmod data: Add SSI data for omap36xx Sebastian Reichel
  2016-01-17 15:49 ` [PATCH 2/5] ARM: dts: OMAP3-N950-N9: Enable SSI module Sebastian Reichel
@ 2016-01-17 15:49 ` Sebastian Reichel
  2016-01-20 16:49   ` Rob Herring
  2016-01-28 16:53   ` Sebastian Reichel
  2016-01-17 15:49 ` [PATCH 4/5] HSI: ssi-protocol: Use handshake logic from n950 Sebastian Reichel
                   ` (2 subsequent siblings)
  5 siblings, 2 replies; 16+ messages in thread
From: Sebastian Reichel @ 2016-01-17 15:49 UTC (permalink / raw)
  To: Sebastian Reichel, Tony Lindgren, Benoît Cousson,
	Paul Walmsley, Aaro Koskinen
  Cc: Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala,
	linux-omap, devicetree, linux-kernel

The Nokia N950 and Nokia N9 also have a SSI connected
modem, which use the same protocols as the Nokia N900,
but with slightly other GPIO setup and increased link
speed (96000 kbps instead of 55000 kbps).

Since it's unclear, if the N950 and the N9 use exactly
the same modem, each of them gets their own compatible
string.

Signed-off-by: Sebastian Reichel <sre@kernel.org>
---
 Documentation/devicetree/bindings/hsi/nokia-modem.txt | 12 +++++++-----
 drivers/hsi/clients/nokia-modem.c                     |  2 ++
 2 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/Documentation/devicetree/bindings/hsi/nokia-modem.txt b/Documentation/devicetree/bindings/hsi/nokia-modem.txt
index 8a979780452b..53de1d9d0b95 100644
--- a/Documentation/devicetree/bindings/hsi/nokia-modem.txt
+++ b/Documentation/devicetree/bindings/hsi/nokia-modem.txt
@@ -7,6 +7,8 @@ properties are needed by the Nokia modem HSI client:
 Required properties:
 - compatible:		Should be one of
       "nokia,n900-modem"
+      "nokia,n950-modem"
+      "nokia,n9-modem"
 - hsi-channel-names:	Should contain the following strings
       "mcsaab-control"
       "speech-control"
@@ -15,11 +17,11 @@ Required properties:
 - gpios:		Should provide a GPIO handler for each GPIO listed in
                         gpio-names
 - gpio-names:		Should contain the following strings
-      "cmt_apeslpx"
-      "cmt_rst_rq"
-      "cmt_en"
-      "cmt_rst"
-      "cmt_bsi"
+      "cmt_apeslpx" (for n900, n950, n9)
+      "cmt_rst_rq"  (for n900, n950, n9)
+      "cmt_en"      (for n900, n950, n9)
+      "cmt_rst"     (for n900)
+      "cmt_bsi"     (for n900)
 - interrupts:		Should be IRQ handle for modem's reset indication
 
 Example:
diff --git a/drivers/hsi/clients/nokia-modem.c b/drivers/hsi/clients/nokia-modem.c
index 7f82c911ad74..c000780d931f 100644
--- a/drivers/hsi/clients/nokia-modem.c
+++ b/drivers/hsi/clients/nokia-modem.c
@@ -281,6 +281,8 @@ static int nokia_modem_remove(struct device *dev)
 #ifdef CONFIG_OF
 static const struct of_device_id nokia_modem_of_match[] = {
 	{ .compatible = "nokia,n900-modem", },
+	{ .compatible = "nokia,n950-modem", },
+	{ .compatible = "nokia,n9-modem", },
 	{},
 };
 MODULE_DEVICE_TABLE(of, nokia_modem_of_match);
-- 
2.7.0.rc3

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

* [PATCH 4/5] HSI: ssi-protocol: Use handshake logic from n950
  2016-01-17 15:49 [PATCH 0/5] Nokia N950 modem support Sebastian Reichel
                   ` (2 preceding siblings ...)
  2016-01-17 15:49 ` [PATCH 3/5] HSI: nokia-modem: add n950 and n9 support Sebastian Reichel
@ 2016-01-17 15:49 ` Sebastian Reichel
  2016-01-28 16:54   ` Sebastian Reichel
  2016-01-17 15:49 ` [PATCH 5/5] ARM: dts: OMAP3-N950-N9: Enable modem Sebastian Reichel
  2016-01-28 17:04 ` [PATCH 0/5] Nokia N950 modem support Sebastian Reichel
  5 siblings, 1 reply; 16+ messages in thread
From: Sebastian Reichel @ 2016-01-17 15:49 UTC (permalink / raw)
  To: Sebastian Reichel, Tony Lindgren, Benoît Cousson,
	Paul Walmsley, Aaro Koskinen
  Cc: Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala,
	linux-omap, devicetree, linux-kernel

When using the ssi-protocol driver with the Nokia N950, the
following error is thrown during modem powered up sequence.

[13852.274993]  port0: SSI error: 0x01
[13852.279205] ssi-protocol ssi-protocol: RX error detected
[13852.284820] ssi-protocol ssi-protocol: Main state: 1
[13852.290069] ssi-protocol ssi-protocol: Recv state: 0
[13852.295288] ssi-protocol ssi-protocol: Send state: 0
[13852.300537] ssi-protocol ssi-protocol: CMT Offline
[13852.305603] ssi-protocol ssi-protocol: Wake test 1
[13852.310638] ssi-protocol ssi-protocol: Data RX id: 0
[13852.315887] ssi-protocol ssi-protocol: Data TX id: 0
[13856.001464] ssi-protocol ssi-protocol: Watchdog trigerred
[13856.007293] ssi-protocol ssi-protocol: Main state: 1
[13856.012542] ssi-protocol ssi-protocol: Recv state: 0
[13856.017761] ssi-protocol ssi-protocol: Send state: 0
[13856.023010] ssi-protocol ssi-protocol: CMT Offline
[13856.028045] ssi-protocol ssi-protocol: Wake test 0
[13856.033111] ssi-protocol ssi-protocol: Data RX id: 0
[13856.038330] ssi-protocol ssi-protocol: Data TX id: 0

This patch fixes the issue by using the handshake setup from
the Nokia N950 kernel. The new handshake sequence also works
with the N900, so there is no need to differentiate between
both modems.

Signed-off-by: Sebastian Reichel <sre@kernel.org>
---
 drivers/hsi/clients/ssi_protocol.c | 16 +++++-----------
 1 file changed, 5 insertions(+), 11 deletions(-)

diff --git a/drivers/hsi/clients/ssi_protocol.c b/drivers/hsi/clients/ssi_protocol.c
index a38af68cf326..6595d2091268 100644
--- a/drivers/hsi/clients/ssi_protocol.c
+++ b/drivers/hsi/clients/ssi_protocol.c
@@ -521,13 +521,7 @@ static void ssip_start_rx(struct hsi_client *cl)
 	 * high transition. Therefore we need to ignore the sencond UP event.
 	 */
 	if ((ssi->main_state != ACTIVE) || (ssi->recv_state == RECV_READY)) {
-		if (ssi->main_state == INIT) {
-			ssi->main_state = HANDSHAKE;
-			spin_unlock(&ssi->lock);
-			ssip_send_bootinfo_req_cmd(cl);
-		} else {
-			spin_unlock(&ssi->lock);
-		}
+		spin_unlock(&ssi->lock);
 		return;
 	}
 	ssip_set_rxstate(ssi, RECV_READY);
@@ -671,6 +665,7 @@ static void ssip_rx_bootinforeq(struct hsi_client *cl, u32 cmd)
 		ssip_error(cl);
 		/* Fall through */
 	case INIT:
+	case HANDSHAKE:
 		spin_lock(&ssi->lock);
 		ssi->main_state = HANDSHAKE;
 		if (!ssi->waketest) {
@@ -688,9 +683,6 @@ static void ssip_rx_bootinforeq(struct hsi_client *cl, u32 cmd)
 		msg->complete = ssip_release_cmd;
 		hsi_async_write(cl, msg);
 		break;
-	case HANDSHAKE:
-		/* Ignore */
-		break;
 	default:
 		dev_dbg(&cl->device, "Wrong state M(%d)\n", ssi->main_state);
 		break;
@@ -939,9 +931,11 @@ static int ssip_pn_open(struct net_device *dev)
 		ssi->waketest = 1;
 		ssi_waketest(cl, 1); /* FIXME: To be removed */
 	}
-	ssi->main_state = INIT;
+	ssi->main_state = HANDSHAKE;
 	spin_unlock_bh(&ssi->lock);
 
+	ssip_send_bootinfo_req_cmd(cl);
+
 	return 0;
 }
 
-- 
2.7.0.rc3

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

* [PATCH 5/5] ARM: dts: OMAP3-N950-N9: Enable modem
  2016-01-17 15:49 [PATCH 0/5] Nokia N950 modem support Sebastian Reichel
                   ` (3 preceding siblings ...)
  2016-01-17 15:49 ` [PATCH 4/5] HSI: ssi-protocol: Use handshake logic from n950 Sebastian Reichel
@ 2016-01-17 15:49 ` Sebastian Reichel
  2016-02-12 22:01   ` Tony Lindgren
  2016-01-28 17:04 ` [PATCH 0/5] Nokia N950 modem support Sebastian Reichel
  5 siblings, 1 reply; 16+ messages in thread
From: Sebastian Reichel @ 2016-01-17 15:49 UTC (permalink / raw)
  To: Sebastian Reichel, Tony Lindgren, Benoît Cousson,
	Paul Walmsley, Aaro Koskinen
  Cc: Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala,
	linux-omap, devicetree, linux-kernel

The Nokia N950 and Nokia N9 have a modem attached to their
first ssi port. This change adds the modem to the SSI port.

Signed-off-by: Sebastian Reichel <sre@kernel.org>
---
 arch/arm/boot/dts/omap3-n9.dts       |  4 ++++
 arch/arm/boot/dts/omap3-n950-n9.dtsi | 40 ++++++++++++++++++++++++++++++++++++
 arch/arm/boot/dts/omap3-n950.dts     |  4 ++++
 3 files changed, 48 insertions(+)

diff --git a/arch/arm/boot/dts/omap3-n9.dts b/arch/arm/boot/dts/omap3-n9.dts
index f2e213931e09..5c67429a4da7 100644
--- a/arch/arm/boot/dts/omap3-n9.dts
+++ b/arch/arm/boot/dts/omap3-n9.dts
@@ -53,3 +53,7 @@
 		};
 	};
 };
+
+&modem {
+	compatible = "nokia,n9-modem";
+};
diff --git a/arch/arm/boot/dts/omap3-n950-n9.dtsi b/arch/arm/boot/dts/omap3-n950-n9.dtsi
index 95893003c67d..a1930e511f71 100644
--- a/arch/arm/boot/dts/omap3-n950-n9.dtsi
+++ b/arch/arm/boot/dts/omap3-n950-n9.dtsi
@@ -57,6 +57,22 @@
 			OMAP3_CORE1_IOPAD(0x218a, PIN_OUTPUT | MUX_MODE1)            /* ssi1_wake */
 		>;
 	};
+
+	modem_pins1: pinmux_modem_core1_pins {
+		pinctrl-single,pins = <
+			OMAP3_CORE1_IOPAD(0x207a, PIN_INPUT | WAKEUP_EN | MUX_MODE4) /* gpio_34 (ape_rst_rq) */
+			OMAP3_CORE1_IOPAD(0x2100, PIN_OUTPUT | MUX_MODE4)            /* gpio_88 (cmt_rst_rq) */
+			OMAP3_CORE1_IOPAD(0x210a, PIN_OUTPUT | MUX_MODE4)            /* gpio_93 (cmt_apeslpx) */
+		>;
+	};
+};
+
+&omap3_pmx_core2 {
+	modem_pins2: pinmux_modem_core2_pins {
+		pinctrl-single,pins = <
+			OMAP3630_CORE2_IOPAD(0x25ec, PIN_OUTPUT | MUX_MODE4)         /* gpio_23 (cmt_en) */
+		>;
+	};
 };
 
 &i2c1 {
@@ -210,6 +226,30 @@
 	pinctrl-0 = <&ssi_pins>;
 
 	ti,ssi-cawake-gpio = <&gpio5 23 GPIO_ACTIVE_HIGH>; /* 151 */
+
+	modem: hsi-client {
+		pinctrl-names = "default";
+		pinctrl-0 = <&modem_pins1 &modem_pins2>;
+
+		hsi-channel-ids = <0>, <1>, <2>, <3>;
+		hsi-channel-names = "mcsaab-control",
+				    "speech-control",
+				    "speech-data",
+				    "mcsaab-data";
+		hsi-speed-kbps = <96000>;
+		hsi-mode = "frame";
+		hsi-flow = "synchronized";
+		hsi-arb-mode = "round-robin";
+
+		interrupts-extended = <&gpio2 2 IRQ_TYPE_EDGE_RISING>; /* gpio 34 */
+
+		gpios = <&gpio3 29 GPIO_ACTIVE_HIGH>, /* gpio 93 */
+			<&gpio3 24 GPIO_ACTIVE_HIGH>, /* gpio 88 */
+			<&gpio1 23 GPIO_ACTIVE_HIGH>; /* gpio 23 */
+		gpio-names = "cmt_apeslpx",
+			     "cmt_rst_rq",
+			     "cmt_en";
+	};
 };
 
 &ssi_port2 {
diff --git a/arch/arm/boot/dts/omap3-n950.dts b/arch/arm/boot/dts/omap3-n950.dts
index 0885b34d5d7d..21060d96c67d 100644
--- a/arch/arm/boot/dts/omap3-n950.dts
+++ b/arch/arm/boot/dts/omap3-n950.dts
@@ -53,3 +53,7 @@
 		};
 	};
 };
+
+&modem {
+	compatible = "nokia,n950-modem";
+};
-- 
2.7.0.rc3

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

* Re: [PATCH 3/5] HSI: nokia-modem: add n950 and n9 support
  2016-01-17 15:49 ` [PATCH 3/5] HSI: nokia-modem: add n950 and n9 support Sebastian Reichel
@ 2016-01-20 16:49   ` Rob Herring
  2016-01-21 12:30     ` Sebastian Reichel
  2016-01-28 16:53   ` Sebastian Reichel
  1 sibling, 1 reply; 16+ messages in thread
From: Rob Herring @ 2016-01-20 16:49 UTC (permalink / raw)
  To: Sebastian Reichel
  Cc: Tony Lindgren, Benoît Cousson, Paul Walmsley, Aaro Koskinen,
	Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala, linux-omap,
	devicetree, linux-kernel

On Sun, Jan 17, 2016 at 04:49:07PM +0100, Sebastian Reichel wrote:
> The Nokia N950 and Nokia N9 also have a SSI connected
> modem, which use the same protocols as the Nokia N900,
> but with slightly other GPIO setup and increased link

"slightly other" does not make sense.

> speed (96000 kbps instead of 55000 kbps).
> 
> Since it's unclear, if the N950 and the N9 use exactly
> the same modem, each of them gets their own compatible
> string.
> 
> Signed-off-by: Sebastian Reichel <sre@kernel.org>
> ---
>  Documentation/devicetree/bindings/hsi/nokia-modem.txt | 12 +++++++-----
>  drivers/hsi/clients/nokia-modem.c                     |  2 ++
>  2 files changed, 9 insertions(+), 5 deletions(-)

Otherwise,

Acked-by: Rob Herring <robh@kernel.org>

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

* Re: [PATCH 3/5] HSI: nokia-modem: add n950 and n9 support
  2016-01-20 16:49   ` Rob Herring
@ 2016-01-21 12:30     ` Sebastian Reichel
  0 siblings, 0 replies; 16+ messages in thread
From: Sebastian Reichel @ 2016-01-21 12:30 UTC (permalink / raw)
  To: Rob Herring
  Cc: Tony Lindgren, Benoît Cousson, Paul Walmsley, Aaro Koskinen,
	Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala, linux-omap,
	devicetree, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1184 bytes --]

Hi Rob,

On Wed, Jan 20, 2016 at 10:49:19AM -0600, Rob Herring wrote:
> On Sun, Jan 17, 2016 at 04:49:07PM +0100, Sebastian Reichel wrote:
> > The Nokia N950 and Nokia N9 also have a SSI connected
> > modem, which use the same protocols as the Nokia N900,
> > but with slightly other GPIO setup and increased link
> > speed (96000 kbps instead of 55000 kbps).
> 
> "slightly other" does not make sense.

I meant to write "slightly different", but how about:

The Nokia N950 and Nokia N9 also have a SSI connected
modem, which use the same protocols as the Nokia N900,
but with increased link speed (96000 kbps instead of
55000 kbps) and with less GPIOs.

> > Since it's unclear, if the N950 and the N9 use exactly
> > the same modem, each of them gets their own compatible
> > string.
> > 
> > Signed-off-by: Sebastian Reichel <sre@kernel.org>
> > ---
> >  Documentation/devicetree/bindings/hsi/nokia-modem.txt | 12 +++++++-----
> >  drivers/hsi/clients/nokia-modem.c                     |  2 ++
> >  2 files changed, 9 insertions(+), 5 deletions(-)
> 
> Otherwise,
> 
> Acked-by: Rob Herring <robh@kernel.org>

Thanks for the review.

-- Sebastian

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

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

* Re: [PATCH 1/5] ARM: OMAP2+: hwmod data: Add SSI data for omap36xx
  2016-01-17 15:49 ` [PATCH 1/5] ARM: OMAP2+: hwmod data: Add SSI data for omap36xx Sebastian Reichel
@ 2016-01-26 22:07   ` Aaro Koskinen
  2016-01-26 22:12     ` Aaro Koskinen
  2016-02-02 17:05     ` Paul Walmsley
  0 siblings, 2 replies; 16+ messages in thread
From: Aaro Koskinen @ 2016-01-26 22:07 UTC (permalink / raw)
  To: Sebastian Reichel
  Cc: Tony Lindgren, Benoît Cousson, Paul Walmsley, Rob Herring,
	Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala, linux-omap,
	devicetree, linux-kernel

On Sun, Jan 17, 2016 at 04:49:05PM +0100, Sebastian Reichel wrote:
> This patch enables Synchronous Serial Interface (SSI)
> hwmod support for OMAP36xx SoCs (used by Nokia N950/N9).
> 
> Signed-off-by: Sebastian Reichel <sre@kernel.org>

Tested-by: Aaro Koskinen <aaro.koskinen@iki.fi>

> ---
>  arch/arm/mach-omap2/omap_hwmod_3xxx_data.c | 13 +++++++------
>  1 file changed, 7 insertions(+), 6 deletions(-)
> 
> diff --git a/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c b/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c
> index aff78d5198d2..ed972029dce1 100644
> --- a/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c
> +++ b/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c
> @@ -3625,14 +3625,14 @@ static struct omap_hwmod_class_sysconfig omap34xx_ssi_sysc = {
>  	.sysc_fields	= &omap_hwmod_sysc_type1,
>  };
>  
> -static struct omap_hwmod_class omap34xx_ssi_hwmod_class = {
> +static struct omap_hwmod_class omap3xxx_ssi_hwmod_class = {
>  	.name	= "ssi",
>  	.sysc	= &omap34xx_ssi_sysc,
>  };
>  
> -static struct omap_hwmod omap34xx_ssi_hwmod = {
> +static struct omap_hwmod omap3xxx_ssi_hwmod = {
>  	.name		= "ssi",
> -	.class		= &omap34xx_ssi_hwmod_class,
> +	.class		= &omap3xxx_ssi_hwmod_class,
>  	.clkdm_name	= "core_l4_clkdm",
>  	.main_clk	= "ssi_ssr_fck",
>  	.prcm		= {
> @@ -3647,9 +3647,9 @@ static struct omap_hwmod omap34xx_ssi_hwmod = {
>  };
>  
>  /* L4 CORE -> SSI */
> -static struct omap_hwmod_ocp_if omap34xx_l4_core__ssi = {
> +static struct omap_hwmod_ocp_if omap3xxx_l4_core__ssi = {
>  	.master		= &omap3xxx_l4_core_hwmod,
> -	.slave		= &omap34xx_ssi_hwmod,
> +	.slave		= &omap3xxx_ssi_hwmod,
>  	.clk		= "ssi_ick",
>  	.user		= OCP_USER_MPU | OCP_USER_SDMA,
>  };
> @@ -3802,7 +3802,7 @@ static struct omap_hwmod_ocp_if *omap34xx_hwmod_ocp_ifs[] __initdata = {
>  	&omap3xxx_sad2d__l3,
>  	&omap3xxx_l4_core__mmu_isp,
>  	&omap3xxx_l3_main__mmu_iva,
> -	&omap34xx_l4_core__ssi,
> +	&omap3xxx_l4_core__ssi,
>  	NULL
>  };
>  
> @@ -3826,6 +3826,7 @@ static struct omap_hwmod_ocp_if *omap36xx_hwmod_ocp_ifs[] __initdata = {
>  	&omap3xxx_sad2d__l3,
>  	&omap3xxx_l4_core__mmu_isp,
>  	&omap3xxx_l3_main__mmu_iva,
> +	&omap3xxx_l4_core__ssi,
>  	NULL
>  };
>  
> -- 
> 2.7.0.rc3
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH 1/5] ARM: OMAP2+: hwmod data: Add SSI data for omap36xx
  2016-01-26 22:07   ` Aaro Koskinen
@ 2016-01-26 22:12     ` Aaro Koskinen
  2016-02-02 17:05     ` Paul Walmsley
  1 sibling, 0 replies; 16+ messages in thread
From: Aaro Koskinen @ 2016-01-26 22:12 UTC (permalink / raw)
  To: Sebastian Reichel
  Cc: Tony Lindgren, Benoît Cousson, Paul Walmsley, Rob Herring,
	Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala, linux-omap,
	devicetree, linux-kernel

Hi,

On Wed, Jan 27, 2016 at 12:07:38AM +0200, Aaro Koskinen wrote:
> On Sun, Jan 17, 2016 at 04:49:05PM +0100, Sebastian Reichel wrote:
> > This patch enables Synchronous Serial Interface (SSI)
> > hwmod support for OMAP36xx SoCs (used by Nokia N950/N9).
> > 
> > Signed-off-by: Sebastian Reichel <sre@kernel.org>
> 
> Tested-by: Aaro Koskinen <aaro.koskinen@iki.fi>

This applies to whole series (1/5). I was able to use gprs data connection
to connect to internet with N950 + v4.5-rc1 + these patches.

Thanks,

A.

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

* Re: [PATCH 3/5] HSI: nokia-modem: add n950 and n9 support
  2016-01-17 15:49 ` [PATCH 3/5] HSI: nokia-modem: add n950 and n9 support Sebastian Reichel
  2016-01-20 16:49   ` Rob Herring
@ 2016-01-28 16:53   ` Sebastian Reichel
  1 sibling, 0 replies; 16+ messages in thread
From: Sebastian Reichel @ 2016-01-28 16:53 UTC (permalink / raw)
  To: Tony Lindgren, Benoît Cousson, Paul Walmsley, Aaro Koskinen
  Cc: Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala,
	linux-omap, devicetree, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 625 bytes --]

Hi,

On Sun, Jan 17, 2016 at 04:49:07PM +0100, Sebastian Reichel wrote:
> The Nokia N950 and Nokia N9 also have a SSI connected
> modem, which use the same protocols as the Nokia N900,
> but with slightly other GPIO setup and increased link
> speed (96000 kbps instead of 55000 kbps).
> 
> Since it's unclear, if the N950 and the N9 use exactly
> the same modem, each of them gets their own compatible
> string.

I queued this patch with the modified commit message:

https://git.kernel.org/cgit/linux/kernel/git/sre/linux-hsi.git/commit/?h=for-next&id=633f67a51d078bea627f22d6208442e1e1f391cb

-- Sebastian

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

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

* Re: [PATCH 4/5] HSI: ssi-protocol: Use handshake logic from n950
  2016-01-17 15:49 ` [PATCH 4/5] HSI: ssi-protocol: Use handshake logic from n950 Sebastian Reichel
@ 2016-01-28 16:54   ` Sebastian Reichel
  0 siblings, 0 replies; 16+ messages in thread
From: Sebastian Reichel @ 2016-01-28 16:54 UTC (permalink / raw)
  To: Tony Lindgren, Benoît Cousson, Paul Walmsley, Aaro Koskinen
  Cc: Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala,
	linux-omap, devicetree, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1594 bytes --]

Hi,

On Sun, Jan 17, 2016 at 04:49:08PM +0100, Sebastian Reichel wrote:
> When using the ssi-protocol driver with the Nokia N950, the
> following error is thrown during modem powered up sequence.
> 
> [13852.274993]  port0: SSI error: 0x01
> [13852.279205] ssi-protocol ssi-protocol: RX error detected
> [13852.284820] ssi-protocol ssi-protocol: Main state: 1
> [13852.290069] ssi-protocol ssi-protocol: Recv state: 0
> [13852.295288] ssi-protocol ssi-protocol: Send state: 0
> [13852.300537] ssi-protocol ssi-protocol: CMT Offline
> [13852.305603] ssi-protocol ssi-protocol: Wake test 1
> [13852.310638] ssi-protocol ssi-protocol: Data RX id: 0
> [13852.315887] ssi-protocol ssi-protocol: Data TX id: 0
> [13856.001464] ssi-protocol ssi-protocol: Watchdog trigerred
> [13856.007293] ssi-protocol ssi-protocol: Main state: 1
> [13856.012542] ssi-protocol ssi-protocol: Recv state: 0
> [13856.017761] ssi-protocol ssi-protocol: Send state: 0
> [13856.023010] ssi-protocol ssi-protocol: CMT Offline
> [13856.028045] ssi-protocol ssi-protocol: Wake test 0
> [13856.033111] ssi-protocol ssi-protocol: Data RX id: 0
> [13856.038330] ssi-protocol ssi-protocol: Data TX id: 0
> 
> This patch fixes the issue by using the handshake setup from
> the Nokia N950 kernel. The new handshake sequence also works
> with the N900, so there is no need to differentiate between
> both modems.

I queued this patch with Aaro's Tested-By:

https://git.kernel.org/cgit/linux/kernel/git/sre/linux-hsi.git/commit/?h=for-next&id=87d99063be016ceee90723a13365a40b21eec0d9

-- Sebastian

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

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

* Re: [PATCH 0/5] Nokia N950 modem support
  2016-01-17 15:49 [PATCH 0/5] Nokia N950 modem support Sebastian Reichel
                   ` (4 preceding siblings ...)
  2016-01-17 15:49 ` [PATCH 5/5] ARM: dts: OMAP3-N950-N9: Enable modem Sebastian Reichel
@ 2016-01-28 17:04 ` Sebastian Reichel
  5 siblings, 0 replies; 16+ messages in thread
From: Sebastian Reichel @ 2016-01-28 17:04 UTC (permalink / raw)
  To: Tony Lindgren, Benoît Cousson, Paul Walmsley, Aaro Koskinen
  Cc: Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala,
	linux-omap, devicetree, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 658 bytes --]

Hi,

On Sun, Jan 17, 2016 at 04:49:04PM +0100, Sebastian Reichel wrote:
> This patchset adds support for the N950 modem.
>
> [...]

All of the patches are more or less mergable independent
of each other, so I suggest the following merging scheme:

> Sebastian Reichel (5):
>   ARM: OMAP2+: hwmod data: Add SSI data for omap36xx

This one should go in via Paul Walmsley.

>   HSI: nokia-modem: add n950 and n9 support
>   HSI: ssi-protocol: Use handshake logic from n950

I already took those via the HSI tree.

>   ARM: dts: OMAP3-N950-N9: Enable SSI module
>   ARM: dts: OMAP3-N950-N9: Enable modem

The DTS changes can go in via Tony's tree.

-- Sebastian

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

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

* Re: [PATCH 1/5] ARM: OMAP2+: hwmod data: Add SSI data for omap36xx
  2016-01-26 22:07   ` Aaro Koskinen
  2016-01-26 22:12     ` Aaro Koskinen
@ 2016-02-02 17:05     ` Paul Walmsley
  1 sibling, 0 replies; 16+ messages in thread
From: Paul Walmsley @ 2016-02-02 17:05 UTC (permalink / raw)
  To: Aaro Koskinen
  Cc: Sebastian Reichel, Tony Lindgren, Benoît Cousson,
	Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala,
	linux-omap, devicetree, linux-kernel

On Wed, 27 Jan 2016, Aaro Koskinen wrote:

> On Sun, Jan 17, 2016 at 04:49:05PM +0100, Sebastian Reichel wrote:
> > This patch enables Synchronous Serial Interface (SSI)
> > hwmod support for OMAP36xx SoCs (used by Nokia N950/N9).
> > 
> > Signed-off-by: Sebastian Reichel <sre@kernel.org>
> 
> Tested-by: Aaro Koskinen <aaro.koskinen@iki.fi>

Thanks, queued for v4.6.


- Paul

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

* Re: [PATCH 2/5] ARM: dts: OMAP3-N950-N9: Enable SSI module
  2016-01-17 15:49 ` [PATCH 2/5] ARM: dts: OMAP3-N950-N9: Enable SSI module Sebastian Reichel
@ 2016-02-12 22:00   ` Tony Lindgren
  0 siblings, 0 replies; 16+ messages in thread
From: Tony Lindgren @ 2016-02-12 22:00 UTC (permalink / raw)
  To: Sebastian Reichel
  Cc: Benoît Cousson, Paul Walmsley, Aaro Koskinen, Rob Herring,
	Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala, linux-omap,
	devicetree, linux-kernel

* Sebastian Reichel <sre@kernel.org> [160117 07:50]:
> The Nokia N950 and Nokia N9 have a modem attached to their
> first ssi port. This change adds all necessary information
> to initialize the SSI module, but does not yet add the
> modem information.
> 
> Signed-off-by: Sebastian Reichel <sre@kernel.org>

Picking this patch into omap-for-v4.6/dt thanks.

Tony

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

* Re: [PATCH 5/5] ARM: dts: OMAP3-N950-N9: Enable modem
  2016-01-17 15:49 ` [PATCH 5/5] ARM: dts: OMAP3-N950-N9: Enable modem Sebastian Reichel
@ 2016-02-12 22:01   ` Tony Lindgren
  0 siblings, 0 replies; 16+ messages in thread
From: Tony Lindgren @ 2016-02-12 22:01 UTC (permalink / raw)
  To: Sebastian Reichel
  Cc: Benoît Cousson, Paul Walmsley, Aaro Koskinen, Rob Herring,
	Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala, linux-omap,
	devicetree, linux-kernel

* Sebastian Reichel <sre@kernel.org> [160117 07:50]:
> The Nokia N950 and Nokia N9 have a modem attached to their
> first ssi port. This change adds the modem to the SSI port.
> 
> Signed-off-by: Sebastian Reichel <sre@kernel.org>

Applying this also into omap-for-v4.6/dt thanks.

Tony

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

end of thread, other threads:[~2016-02-12 22:02 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-17 15:49 [PATCH 0/5] Nokia N950 modem support Sebastian Reichel
2016-01-17 15:49 ` [PATCH 1/5] ARM: OMAP2+: hwmod data: Add SSI data for omap36xx Sebastian Reichel
2016-01-26 22:07   ` Aaro Koskinen
2016-01-26 22:12     ` Aaro Koskinen
2016-02-02 17:05     ` Paul Walmsley
2016-01-17 15:49 ` [PATCH 2/5] ARM: dts: OMAP3-N950-N9: Enable SSI module Sebastian Reichel
2016-02-12 22:00   ` Tony Lindgren
2016-01-17 15:49 ` [PATCH 3/5] HSI: nokia-modem: add n950 and n9 support Sebastian Reichel
2016-01-20 16:49   ` Rob Herring
2016-01-21 12:30     ` Sebastian Reichel
2016-01-28 16:53   ` Sebastian Reichel
2016-01-17 15:49 ` [PATCH 4/5] HSI: ssi-protocol: Use handshake logic from n950 Sebastian Reichel
2016-01-28 16:54   ` Sebastian Reichel
2016-01-17 15:49 ` [PATCH 5/5] ARM: dts: OMAP3-N950-N9: Enable modem Sebastian Reichel
2016-02-12 22:01   ` Tony Lindgren
2016-01-28 17:04 ` [PATCH 0/5] Nokia N950 modem support 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).