Skip to contentSkip to conversation

ARM: dts: sbc-t54: add support for sbc-t54 with cm-t54

PATCH Superseded Dmitry Lifshitz 2 participants 8 messages Apr 8, 2014 – May 5, 2014

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

cover ARM: dts: sbc-t54: add support for sbc-t54 with cm-t54

Add support for CompuLab CM-T54 CoM and SBC-T54 board:

    http://compulab.co.il/products/computer-on-modules/cm-t54/
    http://compulab.co.il/products/sbcs/sbc-t54/

SBC-T54 is a single board computer based on OMAP5432 CPU. It is implemented with a CM-T54 CoM providing most of the functions, and SB-T54 carrier board providing connectors and several additional functions.

Dmitry Lifshitz (2):
ARM: dts: sbc-t54: add support for sbc-t54 with cm-t54
ARM: dts: cm-t54: add WiFi/BT support

 arch/arm/boot/dts/Makefile          |    2 +
 arch/arm/boot/dts/omap5-cm-t54.dts  |  390 +++++++++++++++++++++++++++++++++++
 arch/arm/boot/dts/omap5-sbc-t54.dts |   33 +++
 arch/arm/mach-omap2/pdata-quirks.c  |   10 +
 4 files changed, 435 insertions(+), 0 deletions(-)
 create mode 100644 arch/arm/boot/dts/omap5-cm-t54.dts
 create mode 100644 arch/arm/boot/dts/omap5-sbc-t54.dts
Signature · 1 line
1.7.5.4
#1 lore raw

PATCH 1/2 ARM: dts: sbc-t54: add support for sbc-t54 with cm-t54

Add support for CM-T54 CoM and SBC-T54 board:

http://compulab.co.il/products/computer-on-modules/cm-t54/
http://compulab.co.il/products/sbcs/sbc-t54/

SBC-T54 is a single board computer based on OMAP5432 CPU. It is implemented with a CM-T54 CoM providing most of the functions, and SB-T54 carrier board providing connectors and several additional functions.

Added basic support for:

* PMIC
* LED
* MMC/SD
* eMMC
* USB
* I2C1/4
* SB-T54 and CM-T54 EEPROMs
* RTC

---
 arch/arm/boot/dts/Makefile          |    2 +
 arch/arm/boot/dts/omap5-cm-t54.dts  |  363 +++++++++++++++++++++++++++++++++++
 arch/arm/boot/dts/omap5-sbc-t54.dts |   33 ++++
 3 files changed, 398 insertions(+), 0 deletions(-)
 create mode 100644 arch/arm/boot/dts/omap5-cm-t54.dts
 create mode 100644 arch/arm/boot/dts/omap5-sbc-t54.dts
arch/arm/boot/dts/Makefile +2 -0
index 84d90fc..e362b1c 100644
@@ -221,6 +221,8 @@ dtb-$(CONFIG_ARCH_OMAP2PLUS) += omap2420-h4.dtb \
 	omap4-var-som.dtb \
 	omap4-sdp.dtb \
 	omap4-sdp-es23plus.dtb \
+	omap5-cm-t54.dtb \
+	omap5-sbc-t54.dtb \
 	omap5-uevm.dtb \
 	omap5-pyra.dtb \
 	am335x-evm.dtb \
arch/arm/boot/dts/omap5-cm-t54.dts new file +363 -0

363 lines not on this page · raw message

arch/arm/boot/dts/omap5-sbc-t54.dts new file +33 -0
new file mode 100644
index 0000000..e4ea254
@@ -0,0 +1,33 @@
+/*
+ * Suppport for CompuLab SBC-T54 with CM-T54
+ */
+
+#include "omap5-cm-t54.dts"
+
+/ {
+	model = "CompuLab SBC-T54 with CM-T54";
+	compatible = "compulab,omap5-sbc-t54", "compulab,omap5-cm-t54", "ti,omap5";
+};
+
+&omap5_pmx_core {
+	i2c4_pins: pinmux_i2c4_pins {
+		pinctrl-single,pins = <
+			0x0b8 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c4_scl */
+			0x0bc (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c4_sda */
+		>;
+	};
+};
+
+&i2c4 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&i2c4_pins>;
+
+	clock-frequency = <400000>;
+
+	at24 at 50 {
+		compatible = "at24,24c02";
+		pagesize = <16>;
+		reg = <0x50>;
+	};
+};
+
Signature · 1 line
1.7.5.4
maintainer
#2 lore raw

PATCH v2 1/2 ARM: dts: sbc-t54: add support for sbc-t54 with cm-t54

Quoted 12 lines · Dmitry Lifshitz

Add support for CM-T54 CoM and SBC-T54 board:

http://compulab.co.il/products/computer-on-modules/cm-t54/
http://compulab.co.il/products/sbcs/sbc-t54/

SBC-T54 is a single board computer based on OMAP5432 CPU. It is implemented with a CM-T54 CoM providing most of the functions, and SB-T54 carrier board providing connectors and several additional functions.

Added basic support for:

Quoted 8 lines

* PMIC
* LED
* MMC/SD
* eMMC
* USB
* I2C1/4
* SB-T54 and CM-T54 EEPROMs
* RTC

You probably want to use the OMAP5_CORE_IOPAD and OMAP5_WKUP_IOPAD macros for new boards as then you can easily check them against the TRM based on the physical offset of the register.

Regards,

Tony

#3 lore raw

PATCH 2/2 ARM: dts: cm-t54: add WiFi/BT support

In reply to Dmitry Lifshitz

Add support of AW-NH387 (mwifiex) WiFi/BT chip connected to MMC3.

---
 arch/arm/boot/dts/omap5-cm-t54.dts |   27 +++++++++++++++++++++++++++
 arch/arm/mach-omap2/pdata-quirks.c |   10 ++++++++++
 2 files changed, 37 insertions(+), 0 deletions(-)
arch/arm/boot/dts/omap5-cm-t54.dts +27 -0
index c87401f..27f5b7f 100644
@@ -51,6 +51,7 @@
 	pinctrl-0 = <
 			&led_gpio_pins
 			&usbhost_pins
+			&wlan_reset_pins
 	>;
 
 	led_gpio_pins: pinmux_led_gpio_pins {
@@ -92,6 +93,24 @@
 		>;
 	};
 
+	mmc3_pins: pinmux_mmc3_pins {
+		pinctrl-single,pins = <
+			0x164 (PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_clk */
+			0x166 (PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_cmd */
+			0x168 (PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_data0 */
+			0x16a (PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_data1 */
+			0x16c (PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_data2 */
+			0x16e (PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_data3 */
+		>;
+	};
+
+	wlan_reset_pins: pinmux_wlan_reset_pins {
+		pinctrl-single,pins = <
+			0x15c (PIN_OUTPUT | MUX_MODE6) /* abemcpdm_ul_data.gpio4_109 - WLAN_nPD */
+			0x15e (PIN_OUTPUT | MUX_MODE6) /* abemcpdm_dl_data.gpio4_110 - WLAN_nRESET */
+		>;
+	};
+
 	usbhost_pins: pinmux_usbhost_pins {
 		pinctrl-single,pins = <
 			0x084 (PIN_INPUT | MUX_MODE0)  /* usbb2_hsic_strobe */
@@ -121,6 +140,14 @@
 	ti,non-removable;
 };
 
+&mmc3 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&mmc3_pins>;
+	vmmc-supply = <&ldo2_reg>;
+	bus-width = <4>;
+	ti,non-removable;
+};
+
 &mmc4 {
 	status = "disabled";
 };
arch/arm/mach-omap2/pdata-quirks.c +10 -0
index a114806..554ab37 100644
@@ -205,6 +205,15 @@ static void __init omap5_uevm_legacy_init(void)
 {
 	legacy_init_ehci_clk("auxclk1_ck");
 }
+
+static void __init omap5_cm_t54_legacy_init(void)
+{
+	gpio_request_one(109, GPIOF_OUT_INIT_HIGH, "wlan_pdn");
+	gpio_export(109, 0);
+
+	gpio_request_one(110, GPIOF_OUT_INIT_HIGH, "wlan_rst");
+	gpio_export(110, 0);
+}
 #endif
 
 static struct pcs_pdata pcs_pdata;
@@ -286,6 +295,7 @@ static struct pdata_init pdata_quirks[] __initdata = {
 #endif
 #ifdef CONFIG_SOC_OMAP5
 	{ "ti,omap5-uevm", omap5_uevm_legacy_init, },
+	{ "compulab,omap5-cm-t54", omap5_cm_t54_legacy_init, },
 #endif
 	{ /* sentinel */ },
 };
Signature · 1 line
1.7.5.4
#4 lore raw

v2 cover ARM: dts: sbc-t54: add support for sbc-t54 with cm-t54

In reply to Dmitry Lifshitz

Add support for CompuLab CM-T54 CoM and SBC-T54 board:

    http://compulab.co.il/products/computer-on-modules/cm-t54/
    http://compulab.co.il/products/sbcs/sbc-t54/

SBC-T54 is a single board computer based on OMAP5432 CPU. It is implemented with a CM-T54 CoM providing most of the functions, and SB-T54 carrier board providing connectors and several additional functions.

Changes from V1:

* Used OMAP5_CORE_IOPAD macros for pimnux settings
* Added CD and WP support for SD/MMC card on SB-T54
* Platform quirk for deasserting PDN and RST GPIOs of WiFi chip replaced by appropriate regulators in DT.

Dmitry Lifshitz (2):
ARM: dts: sbc-t54: add support for sbc-t54 with cm-t54
ARM: dts: cm-t54: add WiFi/BT support

 arch/arm/boot/dts/Makefile          |    2 +
 arch/arm/boot/dts/omap5-cm-t54.dts  |  414 +++++++++++++++++++++++++++++++++++
 arch/arm/boot/dts/omap5-sbc-t54.dts |   52 +++++
 3 files changed, 468 insertions(+), 0 deletions(-)
 create mode 100644 arch/arm/boot/dts/omap5-cm-t54.dts
 create mode 100644 arch/arm/boot/dts/omap5-sbc-t54.dts
Signature · 1 line
1.7.5.4
#5 lore raw

PATCH v2 1/2 ARM: dts: sbc-t54: add support for sbc-t54 with cm-t54

Add support for CM-T54 CoM and SBC-T54 board:

http://compulab.co.il/products/computer-on-modules/cm-t54/
http://compulab.co.il/products/sbcs/sbc-t54/

SBC-T54 is a single board computer based on OMAP5432 CPU. It is implemented with a CM-T54 CoM providing most of the functions, and SB-T54 carrier board providing connectors and several additional functions.

Added basic support for:

* PMIC
* LED
* MMC/SD
* eMMC
* USB
* I2C1/4
* SB-T54 and CM-T54 EEPROMs
* RTC

---

Changes from V1:

* Used OMAP5_CORE_IOPAD macros for pimnux settings
* Added CD and WP support for SD/MMC card on SB-T54

 arch/arm/boot/dts/Makefile          |    2 +
 arch/arm/boot/dts/omap5-cm-t54.dts  |  363 +++++++++++++++++++++++++++++++++++
 arch/arm/boot/dts/omap5-sbc-t54.dts |   52 +++++
 3 files changed, 417 insertions(+), 0 deletions(-)
 create mode 100644 arch/arm/boot/dts/omap5-cm-t54.dts
 create mode 100644 arch/arm/boot/dts/omap5-sbc-t54.dts
arch/arm/boot/dts/Makefile +2 -0
index 0bdeba3..f7b2ec0 100644
@@ -277,6 +277,8 @@ dtb-$(CONFIG_ARCH_OMAP2PLUS) += omap2420-h4.dtb \
 	omap4-var-som.dtb \
 	omap4-sdp.dtb \
 	omap4-sdp-es23plus.dtb \
+	omap5-cm-t54.dtb \
+	omap5-sbc-t54.dtb \
 	omap5-uevm.dtb \
 	am335x-evm.dtb \
 	am335x-evmsk.dtb \
arch/arm/boot/dts/omap5-cm-t54.dts new file +363 -0

363 lines not on this page · raw message

arch/arm/boot/dts/omap5-sbc-t54.dts new file +52 -0

52 lines not on this page · raw message

Signature · 1 line
1.7.5.4
#6 lore raw

PATCH v2 2/2 ARM: dts: cm-t54: add WiFi/BT support

In reply to Dmitry Lifshitz

Add support of AW-NH387 (mwifiex) WiFi/BT chip connected to MMC3.

---

Changes from V1:

* Platform quirk for deasserting PDN and RST GPIOs of WiFi chip replaced by appropriate regulators in DT.

 arch/arm/boot/dts/omap5-cm-t54.dts |   53 +++++++++++++++++++++++++++++++++++-
 1 files changed, 52 insertions(+), 1 deletions(-)
arch/arm/boot/dts/omap5-cm-t54.dts +52 -1
index 787c4aa..570130f 100644
@@ -23,6 +23,28 @@
 		regulator-max-microvolt = <3300000>;
 	};
 
+	vwlan_pdn_fixed: fixed-regulator-vwlan-pdn {
+		compatible = "regulator-fixed";
+		regulator-name = "vwlan_pdn_fixed";
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+		vin-supply = <&ldo2_reg>;
+		gpio = <&gpio4 13 GPIO_ACTIVE_HIGH>;   /* gpio4_109 */
+		startup-delay-us = <1000>;
+		enable-active-high;
+	};
+
+	vwlan_fixed: fixed-regulator-vwlan {
+		compatible = "regulator-fixed";
+		regulator-name = "vwlan_fixed";
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+		vin-supply = <&vwlan_pdn_fixed>;
+		gpio = <&gpio4 14 GPIO_ACTIVE_HIGH>;   /* gpio4_110 */
+		startup-delay-us = <1000>;
+		enable-active-high;
+	};
+
 	/* HS USB Host PHY on PORT 2 */
 	hsusb2_phy: hsusb2_phy {
 		compatible = "usb-nop-xceiv";
@@ -92,6 +114,24 @@
 		>;
 	};
 
+	mmc3_pins: pinmux_mmc3_pins {
+		pinctrl-single,pins = <
+			OMAP5_CORE_IOPAD(0x29a4, PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_clk */
+			OMAP5_CORE_IOPAD(0x29a6, PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_cmd */
+			OMAP5_CORE_IOPAD(0x29a8, PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_data0 */
+			OMAP5_CORE_IOPAD(0x29aa, PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_data1 */
+			OMAP5_CORE_IOPAD(0x29ac, PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_data2 */
+			OMAP5_CORE_IOPAD(0x29ae, PIN_INPUT_PULLUP | MUX_MODE0) /* wlsdio_data3 */
+		>;
+	};
+
+	wlan_gpios_pins: pinmux_wlan_gpios_pins {
+		pinctrl-single,pins = <
+			OMAP5_CORE_IOPAD(0x299c, PIN_OUTPUT_PULLDOWN | MUX_MODE6) /* gpio4_109 */
+			OMAP5_CORE_IOPAD(0x299e, PIN_OUTPUT_PULLDOWN | MUX_MODE6) /* gpio4_110 */
+		>;
+	};
+
 	usbhost_pins: pinmux_usbhost_pins {
 		pinctrl-single,pins = <
 			OMAP5_CORE_IOPAD(0x28c4, PIN_INPUT | MUX_MODE0)  /* usbb2_hsic_strobe */
@@ -121,6 +161,17 @@
 	ti,non-removable;
 };
 
+&mmc3 {
+	pinctrl-names = "default";
+	pinctrl-0 = <
+		&mmc3_pins
+		&wlan_gpios_pins
+	>;
+	vmmc-supply = <&vwlan_fixed>;
+	bus-width = <4>;
+	ti,non-removable;
+};
+
 &mmc4 {
 	status = "disabled";
 };
@@ -255,7 +306,7 @@
 					regulator-name = "ldo2";
 					regulator-min-microvolt = <3300000>;
 					regulator-max-microvolt = <3300000>;
-					regulator-boot-on;
+					startup-delay-us = <1000>;
 				};
 
 				ldo3_reg: ldo3 {
Signature · 1 line
1.7.5.4
maintainer
#7 lore raw

v2 cover ARM: dts: sbc-t54: add support for sbc-t54 with cm-t54

In reply to Dmitry Lifshitz
Quoted 10 lines · Dmitry Lifshitz

Add support for CompuLab CM-T54 CoM and SBC-T54 board:

    http://compulab.co.il/products/computer-on-modules/cm-t54/
    http://compulab.co.il/products/sbcs/sbc-t54/

SBC-T54 is a single board computer based on OMAP5432 CPU. It is implemented with a CM-T54 CoM providing most of the functions, and SB-T54 carrier board providing connectors and several additional functions.

Quoted 6 lines

Changes from V1:

* Used OMAP5_CORE_IOPAD macros for pimnux settings
* Added CD and WP support for SD/MMC card on SB-T54
* Platform quirk for deasserting PDN and RST GPIOs of WiFi chip replaced by appropriate regulators in DT.

Thanks applying into omap-for-v3.16/dt.

Tony