Skip to contentSkip to conversation

Nokia N950 modem support

PATCH In review Sebastian Reichel 5 participants 16 messages Jan 17, 2016 – Feb 12, 2016

Subsystems (6)
lore
Share & tools
lore

Sebastian Reichel

author maintainer
#0 lore raw

cover Nokia N950 modem support

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

plugins/n900.c +1 -1
index 44e2e75df3d9..1454d010cb2c 100644
@@ -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(-)
Signature · 6 lines
2.7.0.rc3

--
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
author maintainer
#1 lore raw

PATCH 1/5 ARM: OMAP2+: hwmod data: Add SSI data for omap36xx

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

---
 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)
arch/arm/mach-omap2/omap_hwmod_3xxx_data.c +7 -6
index aff78d5198d2..ed972029dce1 100644
@@ -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
 };
 
Signature · 6 lines
2.7.0.rc3

--
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
author maintainer
#5 lore raw

PATCH 2/5 ARM: dts: OMAP3-N950-N9: Enable SSI module

In reply to Sebastian Reichel

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.

---
 arch/arm/boot/dts/omap3-n950-n9.dtsi | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
arch/arm/boot/dts/omap3-n950-n9.dtsi +24 -0
index e9ee1df0e467..95893003c67d 100644
@@ -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";
+};
Signature · 6 lines
2.7.0.rc3

--
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
author maintainer
#7 lore raw

PATCH 3/5 HSI: nokia-modem: add n950 and n9 support

In reply to Sebastian Reichel

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.

---
 Documentation/devicetree/bindings/hsi/nokia-modem.txt | 12 +++++++-----
 drivers/hsi/clients/nokia-modem.c                     |  2 ++
 2 files changed, 9 insertions(+), 5 deletions(-)
Documentation/devicetree/bindings/hsi/nokia-modem.txt +7 -5
index 8a979780452b..53de1d9d0b95 100644
@@ -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:
drivers/hsi/clients/nokia-modem.c +2 -0
index 7f82c911ad74..c000780d931f 100644
@@ -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);
Signature · 1 line
2.7.0.rc3
author maintainer
#11 lore raw

PATCH 4/5 HSI: ssi-protocol: Use handshake logic from n950

In reply to Sebastian Reichel

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.

---
 drivers/hsi/clients/ssi_protocol.c | 16 +++++-----------
 1 file changed, 5 insertions(+), 11 deletions(-)
drivers/hsi/clients/ssi_protocol.c +5 -11
index a38af68cf326..6595d2091268 100644
@@ -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;
 }
 
Signature · 1 line
2.7.0.rc3
author maintainer
#13 lore raw

PATCH 5/5 ARM: dts: OMAP3-N950-N9: Enable modem

In reply to Sebastian Reichel

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

---
 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(+)
arch/arm/boot/dts/omap3-n9.dts +4 -0
index f2e213931e09..5c67429a4da7 100644
@@ -53,3 +53,7 @@
 		};
 	};
 };
+
+&modem {
+	compatible = "nokia,n9-modem";
+};
arch/arm/boot/dts/omap3-n950-n9.dtsi +40 -0
index 95893003c67d..a1930e511f71 100644
@@ -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 {
arch/arm/boot/dts/omap3-n950.dts +4 -0
index 0885b34d5d7d..21060d96c67d 100644
@@ -53,3 +53,7 @@
 		};
 	};
 };
+
+&modem {
+	compatible = "nokia,n950-modem";
+};
Signature · 1 line
2.7.0.rc3
maintainer Acked-by on v1 3/5
#8 lore raw

Re: [PATCH 3/5] HSI: nokia-modem: add n950 and n9 support

In reply to Sebastian Reichel
Quoted 3 lines · Sebastian Reichel

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.

Quoted 11 lines

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.

---
 Documentation/devicetree/bindings/hsi/nokia-modem.txt | 12 +++++++-----
 drivers/hsi/clients/nokia-modem.c                     |  2 ++
 2 files changed, 9 insertions(+), 5 deletions(-)

Otherwise,

author maintainer
#9 lore raw

Re: [PATCH 3/5] HSI: nokia-modem: add n950 and n9 support

Hi Rob,

Quoted 7 lines · Rob Herring
Quoted 4 lines · Sebastian Reichel

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.

Quoted 10 lines
Quoted 9 lines

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

---
 Documentation/devicetree/bindings/hsi/nokia-modem.txt | 12 +++++++-----
 drivers/hsi/clients/nokia-modem.c                     |  2 ++
 2 files changed, 9 insertions(+), 5 deletions(-)
Quoted 3 lines

Otherwise,

Thanks for the review.

-- Sebastian

maintainer Tested-by on v1 1/5
#2 lore raw

Re: [PATCH 1/5] ARM: OMAP2+: hwmod data: Add SSI data for omap36xx

In reply to Sebastian Reichel
Quoted 4 lines · Sebastian Reichel

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

Quoted 62 lines
---
 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)
arch/arm/mach-omap2/omap_hwmod_3xxx_data.c +7 -6
index aff78d5198d2..ed972029dce1 100644
@@ -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
 };
 
Signature · 6 lines
2.7.0.rc3

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
maintainer
#3 lore raw

Re: [PATCH 1/5] ARM: OMAP2+: hwmod data: Add SSI data for omap36xx

Hi,

Quoted 7 lines · Aaro Koskinen
Quoted 4 lines · Sebastian Reichel

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

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.

author maintainer
#10 lore raw

Re: [PATCH 3/5] HSI: nokia-modem: add n950 and n9 support

In reply to Sebastian Reichel

Hi,

Quoted 8 lines · Sebastian Reichel

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

author maintainer
#12 lore raw

Re: [PATCH 4/5] HSI: ssi-protocol: Use handshake logic from n950

In reply to Sebastian Reichel

Hi,

Quoted 21 lines · Sebastian Reichel

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
Quoted 4 lines

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

author maintainer
#15 lore raw
In reply to Sebastian Reichel

Hi,

Quoted 3 lines · Sebastian Reichel

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:

Quoted 2 lines

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

This one should go in via Paul Walmsley.

Quoted 2 lines

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

I already took those via the HSI tree.

Quoted 2 lines

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

maintainer
#4 lore raw

Re: [PATCH 1/5] ARM: OMAP2+: hwmod data: Add SSI data for omap36xx

In reply to Aaro Koskinen
Quoted 7 lines · Aaro Koskinen
Quoted 4 lines · Sebastian Reichel

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

Thanks, queued for v4.6.

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

maintainer
#6 lore raw

Re: [PATCH 2/5] ARM: dts: OMAP3-N950-N9: Enable SSI module

In reply to Sebastian Reichel
Quoted 6 lines · Sebastian Reichel

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.

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

Tony

maintainer
#14 lore raw

Re: [PATCH 5/5] ARM: dts: OMAP3-N950-N9: Enable modem

In reply to Sebastian Reichel
Quoted 4 lines · Sebastian Reichel

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

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

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