The stock Linux 4.2 kernel supports some of the basic Torpedo and Torpedo + Wireless features.
The following patches have been pushed and pending review within the Linux community:
- Add TWL4030 Audio
- Increase I2C2 and I2C3 bus speeds to 400KHz to match the released BSP
- Correct VAUX1 and VAUX4 voltages generated by the PMIC
- Enable the Shared Transport and BTWILINK drivers necessary for Bluetooth operation.
None of these patches have gone through Logic PD Quality testing, so they are considered 'as-is' so use as your own risk.
There appear to be some issues with the 4.3 Kernel and shared transport, so using the 4.2.4 is suggested for Bluetooth users.
There is no BSP available with the Kernel 4.2, but our services group is able to work with customers as desired with a services contract.
From 9d9ca12acbe47be5759ac7feefbdb6b9c27ed1c9 Mon Sep 17 00:00:00 2001
From: Adam Ford
Date: Fri, 23 Oct 2015 07:18:26 -0500
Subject: [PATCH] ARM: dts: Add audio support for LogicPD Torpedo DM3730 devkit
Use the TWL4030 Codec with mcbsp2 on Torpedo.
Signed-off-by: Adam Ford
---
arch/arm/boot/dts/logicpd-torpedo-37xx-devkit.dts | 10 ++++++++++
arch/arm/boot/dts/logicpd-torpedo-som.dtsi | 13 +++++++++++++
2 files changed, 23 insertions(+)
diff --git a/arch/arm/boot/dts/logicpd-torpedo-37xx-devkit.dts b/arch/arm/boot/dts/logicpd-torpedo-37xx-devkit.dts
index 5b04300..afc13e5 100644
--- a/arch/arm/boot/dts/logicpd-torpedo-37xx-devkit.dts
+++ b/arch/arm/boot/dts/logicpd-torpedo-37xx-devkit.dts
@@ -48,6 +48,12 @@
};
};
+ sound {
+ compatible = "ti,omap-twl4030";
+ ti,model = "omap3logic";
+ ti,mcbsp = <&mcbsp2>;
+ };
+
leds {
compatible = "gpio-leds";
pinctrl-names = "default";
@@ -67,6 +73,10 @@
};
};
+&mcbsp2 {
+ status = "okay";
+};
+
&charger {
ti,bb-uvolt = <3200000>;
ti,bb-uamp = <150>;
diff --git a/arch/arm/boot/dts/logicpd-torpedo-som.dtsi b/arch/arm/boot/dts/logicpd-torpedo-som.dtsi
index 36387b1..9777ff4 100644
--- a/arch/arm/boot/dts/logicpd-torpedo-som.dtsi
+++ b/arch/arm/boot/dts/logicpd-torpedo-som.dtsi
@@ -96,6 +96,11 @@
reg = <0x48>;
interrupts = <7>; /* SYS_NIRQ cascaded to intc */
interrupt-parent = <&intc>;
+ twl_audio: audio {
+ compatible = "ti,twl4030-audio";
+ codec {
+ };
+ };
};
};
@@ -136,6 +141,14 @@
OMAP3_CORE1_IOPAD(0x218e, PIN_OUTPUT | MUX_MODE4) /* mcbsp1_fsr.gpio_157 */
>;
};
+ mcbsp2_pins: pinmux_mcbsp2_pins {
+ pinctrl-single,pins = <
+ OMAP3_CORE1_IOPAD(0x213c, PIN_INPUT | MUX_MODE0) /* mcbsp2_fsx */
+ OMAP3_CORE1_IOPAD(0x213e, PIN_INPUT | MUX_MODE0) /* mcbsp2_clkx */
+ OMAP3_CORE1_IOPAD(0x2140, PIN_INPUT | MUX_MODE0) /* mcbsp2_dr */
+ OMAP3_CORE1_IOPAD(0x2142, PIN_OUTPUT | MUX_MODE0) /* mcbsp2_dx */
+ >;
+ };
};
&omap3_pmx_core2 {
--
1.9.1
From 4676a57358b743a959b21b563dd94fed18907dcc Mon Sep 17 00:00:00 2001
From: Adam Ford
Date: Mon, 26 Oct 2015 07:40:30 -0500
Subject: [PATCH] ARM: dts: Change I2C2 and I2C3 to 400KHz for LogicPD Torpedo
DM3730 devkit
When used with the Logic PD development kit, this makes the I2C buses match
the BSP released by Logic PD.
Signed-off-by: Adam Ford
---
arch/arm/boot/dts/logicpd-torpedo-som.dtsi | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/arch/arm/boot/dts/logicpd-torpedo-som.dtsi b/arch/arm/boot/dts/logicpd-torpedo-som.dtsi
index 36387b1..8b803ed 100644
--- a/arch/arm/boot/dts/logicpd-torpedo-som.dtsi
+++ b/arch/arm/boot/dts/logicpd-torpedo-som.dtsi
@@ -99,6 +99,14 @@
};
};
+&i2c2 {
+ clock-frequency = <400000>;
+};
+
+&i2c3 {
+ clock-frequency = <400000>;
+};
+
/*
* Only found on the wireless SOM. For the SOM without wireless, the pins for
* MMC3 can be routed with jumpers to the second MMC slot on the devkit and
--
1.9.1
From e02e6d12b7418b4e56709356ea3dc03bdca77977 Mon Sep 17 00:00:00 2001
From: Adam Ford
Date: Mon, 26 Oct 2015 07:04:50 -0500
Subject: [PATCH] ARM: dts: Enable Shared Transport and Bluetooth on LogicPD
Torpedo + Wireless module
Configure the shared transport which enables communication with GPS/Bluetooth module.
Setup UART2 for communication at 3MBps with flow control.
Setup GPIO_162 as Bluetooth Enable.
Signed-off-by: Adam Ford
---
arch/arm/boot/dts/logicpd-torpedo-som.dtsi | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/arch/arm/boot/dts/logicpd-torpedo-som.dtsi b/arch/arm/boot/dts/logicpd-torpedo-som.dtsi
index c8091ff..0ce3bc0 100644
--- a/arch/arm/boot/dts/logicpd-torpedo-som.dtsi
+++ b/arch/arm/boot/dts/logicpd-torpedo-som.dtsi
@@ -32,6 +32,18 @@
enable-active-high;
vin-supply = <&vmmc2>;
};
+
+ kim {
+ compatible = "kim";
+ nshutdown_gpio = <162>; /* Bank3, pin21 */
+ dev_name = "/dev/ttyO1";
+ flow_cntrl = <1>;
+ baud_rate = <300000>;
+ };
+
+ btwilink {
+ compatible = "btwilink";
+ };
};
&gpmc {
@@ -157,6 +169,21 @@
OMAP3_CORE1_IOPAD(0x2142, PIN_OUTPUT | MUX_MODE0) /* mcbsp2_dx */
>;
};
+ uart2_pins: pinmux_uart2_pins {
+ pinctrl-single,pins = <
+ OMAP3_CORE1_IOPAD(0x2174, PIN_INPUT | MUX_MODE0) /* uart2_cts.uart2_cts */
+ OMAP3_CORE1_IOPAD(0x2176, PIN_OUTPUT | MUX_MODE0) /* uart2_rts .uart2_rts*/
+ OMAP3_CORE1_IOPAD(0x2178, PIN_OUTPUT | MUX_MODE0) /* uart2_tx.uart2_tx */
+ OMAP3_CORE1_IOPAD(0x217a, PIN_INPUT | MUX_MODE0) /* uart2_rx.uart2_rx */
+ OMAP3_CORE1_IOPAD(0x2198, PIN_OUTPUT | MUX_MODE4) /* GPIO_162,BT_EN */
+ >;
+ };
+};
+
+&uart2 {
+ interrupts-extended = <&intc 73 &omap3_pmx_core OMAP3_UART2_RX>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&uart2_pins>;
};
&omap3_pmx_core2 {
--
1.9.1
From 7f07d35d4bb5854f4e85ef9799a8b57e1e91e33a Mon Sep 17 00:00:00 2001
From: Adam Ford
Date: Mon, 26 Oct 2015 07:49:26 -0500
Subject: [PATCH] ARM: dts: Set VAUX1 and VAUX4 on Logic PD Torpedo
The schematic expects VAUX1 to be 3.0V attached to the debug port.
The schematic expects VAUX4 to be 1.8V.
VAUX4 powers VDDS_CSI2 on processor.
Signed-off-by: Adam Ford
---
arch/arm/boot/dts/logicpd-torpedo-37xx-devkit.dts | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/arch/arm/boot/dts/logicpd-torpedo-37xx-devkit.dts b/arch/arm/boot/dts/logicpd-torpedo-37xx-devkit.dts
index afc13e5..b07d1d9 100644
--- a/arch/arm/boot/dts/logicpd-torpedo-37xx-devkit.dts
+++ b/arch/arm/boot/dts/logicpd-torpedo-37xx-devkit.dts
@@ -73,6 +73,16 @@
};
};
+&vaux1 {
+ regulator-min-microvolt = <3000000>;
+ regulator-max-microvolt = <3000000>;
+};
+
+&vaux4 {
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1800000>;
+};
+
&mcbsp2 {
status = "okay";
};
--
1.9.1