Skip to contentSkip to conversation

omap4/omap5: convert to DM model

PATCH New Tero Kristo 2 participants 8 messages Jun 16, 2020 – Jun 18, 2020

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

v3 cover omap4/omap5: convert to DM model

Hi,

This is a combined series of both omap4/omap5 DM conversion in one. The main change across all the boards in this version is to drop SPI support completely. SPI is only available on expansion headers on the omap4 panda / omap5 uevm boards, and it is impossible for the authors of the patches in this series to both complete the SPI conversion to DM model, and test it, so it was deemed better to drop it completely.

Again, if someone from community needs the SPI support later, it should be relatively straightforward to add it back with proper expertise / tools.

-Tero

--
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki

#1 lore raw

PATCH v3 1/6 omap4: Copy device tree from Linux 5.7.y

Copy all device tree files required for omap4 panda support from mainline Linux.

---
 arch/arm/dts/elpida_ecb240abacn.dtsi |   68 +
 arch/arm/dts/omap4-l4-abe.dtsi       |  489 +++++
 arch/arm/dts/omap4-l4.dtsi           | 2474 ++++++++++++++++++++++++++
 arch/arm/dts/omap4-mcpdm.dtsi        |   44 +
 arch/arm/dts/omap4-panda-common.dtsi |  573 ++++++
 arch/arm/dts/omap4-panda-es.dts      |   82 +
 arch/arm/dts/omap4-panda.dts         |   13 +
 arch/arm/dts/omap4.dtsi              |  657 +++++++
 arch/arm/dts/omap443x-clocks.dtsi    |   15 +
 arch/arm/dts/omap443x.dtsi           |   76 +
 arch/arm/dts/omap4460.dtsi           |  131 ++
 arch/arm/dts/omap446x-clocks.dtsi    |   24 +
 arch/arm/dts/omap44xx-clocks.dtsi    | 1324 ++++++++++++++
 arch/arm/dts/twl6030.dtsi            |  105 ++
 arch/arm/dts/twl6030_omap4.dtsi      |   35 +
 include/dt-bindings/clock/omap4.h    |  149 ++
 16 files changed, 6259 insertions(+)
 create mode 100644 arch/arm/dts/elpida_ecb240abacn.dtsi
 create mode 100644 arch/arm/dts/omap4-l4-abe.dtsi
 create mode 100644 arch/arm/dts/omap4-l4.dtsi
 create mode 100644 arch/arm/dts/omap4-mcpdm.dtsi
 create mode 100644 arch/arm/dts/omap4-panda-common.dtsi
 create mode 100644 arch/arm/dts/omap4-panda-es.dts
 create mode 100644 arch/arm/dts/omap4-panda.dts
 create mode 100644 arch/arm/dts/omap4.dtsi
 create mode 100644 arch/arm/dts/omap443x-clocks.dtsi
 create mode 100644 arch/arm/dts/omap443x.dtsi
 create mode 100644 arch/arm/dts/omap4460.dtsi
 create mode 100644 arch/arm/dts/omap446x-clocks.dtsi
 create mode 100644 arch/arm/dts/omap44xx-clocks.dtsi
 create mode 100644 arch/arm/dts/twl6030.dtsi
 create mode 100644 arch/arm/dts/twl6030_omap4.dtsi
 create mode 100644 include/dt-bindings/clock/omap4.h
arch/arm/dts/elpida_ecb240abacn.dtsi new file +68 -0
new file mode 100644
index 0000000000..d87ee4794f
@@ -0,0 +1,68 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Common devices used in different OMAP boards
+ */
+
+/ {
+	elpida_ECB240ABACN: lpddr2 {
+		compatible	= "Elpida,ECB240ABACN","jedec,lpddr2-s4";
+		density		= <2048>;
+		io-width	= <32>;
+
+		tRPab-min-tck	= <3>;
+		tRCD-min-tck	= <3>;
+		tWR-min-tck	= <3>;
+		tRASmin-min-tck	= <3>;
+		tRRD-min-tck	= <2>;
+		tWTR-min-tck	= <2>;
+		tXP-min-tck	= <2>;
+		tRTP-min-tck	= <2>;
+		tCKE-min-tck	= <3>;
+		tCKESR-min-tck	= <3>;
+		tFAW-min-tck	= <8>;
+
+		timings_elpida_ECB240ABACN_400mhz: lpddr2-timings at 0 {
+			compatible	= "jedec,lpddr2-timings";
+			min-freq	= <10000000>;
+			max-freq	= <400000000>;
+			tRPab		= <21000>;
+			tRCD		= <18000>;
+			tWR		= <15000>;
+			tRAS-min	= <42000>;
+			tRRD		= <10000>;
+			tWTR		= <7500>;
+			tXP		= <7500>;
+			tRTP		= <7500>;
+			tCKESR		= <15000>;
+			tDQSCK-max	= <5500>;
+			tFAW		= <50000>;
+			tZQCS		= <90000>;
+			tZQCL		= <360000>;
+			tZQinit		= <1000000>;
+			tRAS-max-ns	= <70000>;
+			tDQSCK-max-derated = <6000>;
+		};
+
+		timings_elpida_ECB240ABACN_200mhz: lpddr2-timings at 1 {
+			compatible	= "jedec,lpddr2-timings";
+			min-freq	= <10000000>;
+			max-freq	= <200000000>;
+			tRPab		= <21000>;
+			tRCD		= <18000>;
+			tWR		= <15000>;
+			tRAS-min	= <42000>;
+			tRRD		= <10000>;
+			tWTR		= <10000>;
+			tXP		= <7500>;
+			tRTP		= <7500>;
+			tCKESR		= <15000>;
+			tDQSCK-max	= <5500>;
+			tFAW		= <50000>;
+			tZQCS		= <90000>;
+			tZQCL		= <360000>;
+			tZQinit		= <1000000>;
+			tRAS-max-ns	= <70000>;
+			tDQSCK-max-derated = <6000>;
+		};
+	};
+};
arch/arm/dts/omap4-l4-abe.dtsi new file +489 -0

489 lines not on this page · raw message

arch/arm/dts/omap4-l4.dtsi new file +2474 -0

2,443 lines not on this page · raw message

arch/arm/dts/omap4-mcpdm.dtsi new file +44 -0

44 lines not on this page · raw message

arch/arm/dts/omap4-panda-common.dtsi new file +573 -0

573 lines not on this page · raw message

arch/arm/dts/omap4-panda-es.dts new file +82 -0

82 lines not on this page · raw message

arch/arm/dts/omap4-panda.dts new file +13 -0
new file mode 100644
index 0000000000..fb2f47717b

Lines of this file are not shown. View the raw message.

arch/arm/dts/omap4.dtsi new file +657 -0

657 lines not on this page · raw message

arch/arm/dts/omap443x-clocks.dtsi new file +15 -0
new file mode 100644
index 0000000000..39297868ec

Lines of this file are not shown. View the raw message.

arch/arm/dts/omap443x.dtsi new file +76 -0

76 lines not on this page · raw message

arch/arm/dts/omap4460.dtsi new file +131 -0

131 lines not on this page · raw message

arch/arm/dts/omap446x-clocks.dtsi new file +24 -0
new file mode 100644
index 0000000000..0f41714cff

Lines of this file are not shown. View the raw message.

arch/arm/dts/omap44xx-clocks.dtsi new file +1324 -0

1,324 lines not on this page · raw message

arch/arm/dts/twl6030.dtsi new file +105 -0

105 lines not on this page · raw message

arch/arm/dts/twl6030_omap4.dtsi new file +35 -0
new file mode 100644
index 0000000000..fc498d0bde

Lines of this file are not shown. View the raw message.

include/dt-bindings/clock/omap4.h new file +149 -0

149 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

Signature · 4 lines
2.17.1

--
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki

Part of the diff is not shown here. View the raw message.

#2 lore raw

PATCH v3 2/6 omap4: panda: convert to device model

In reply to Tero Kristo

Convert omap4 panda to device model.

---
v3:
* dropped SPI support
v2:
* dropped some apparently dead USB EHCI init code, this was just causing a compile time warning.

 arch/arm/dts/Makefile          |  4 +++
 arch/arm/dts/omap4-u-boot.dtsi | 39 ++++++++++++++++++++++++++
 board/ti/panda/panda.c         | 50 ++++++++--------------------------
 configs/omap4_panda_defconfig  | 12 ++++++--
 4 files changed, 64 insertions(+), 41 deletions(-)
 create mode 100644 arch/arm/dts/omap4-u-boot.dtsi
arch/arm/dts/Makefile +4 -0
index 12ec6c71dc..dd574f57fa 100644
@@ -848,6 +848,10 @@ dtb-$(CONFIG_TARGET_OMAP3_BEAGLE) += \
 dtb-$(CONFIG_TARGET_OMAP3_IGEP00X0) += \
 	omap3-igep0020.dtb
 
+dtb-$(CONFIG_TARGET_OMAP4_PANDA) += \
+	omap4-panda.dtb \
+	omap4-panda-es.dtb
+
 dtb-$(CONFIG_TARGET_SAMA5D2_PTC_EK) += \
 	at91-sama5d2_ptc_ek.dtb
 
arch/arm/dts/omap4-u-boot.dtsi new file +39 -0
new file mode 100644
index 0000000000..4a6bafd6ed
@@ -0,0 +1,39 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * U-Boot additions
+ *
+ * (C) Copyright 2020 Tero Kristo <[email protected]>
+ */
+
+&l4_cfg {
+	segment at 0 {
+		/* SCM Core */
+		target-module at 2000 {
+			compatible = "simple-bus";
+		};
+
+		/* USB HS */
+		target-module at 64000 {
+			compatible = "simple-bus";
+		};
+	};
+};
+
+&l4_per {
+	segment at 0 {
+		/* UART3 */
+		target-module at 20000 {
+			compatible = "simple-bus";
+		};
+
+		/* I2C1 */
+		target-module at 70000 {
+			compatible = "simple-bus";
+		};
+
+		/* MMC1 */
+		target-module at 9c000 {
+			compatible = "simple-bus";
+		};
+	};
+};
board/ti/panda/panda.c +12 -38

74 lines not on this page · raw message

configs/omap4_panda_defconfig +9 -3
index 3ac6319d2d..f8d37f4728 100644
@@ -2,12 +2,14 @@ CONFIG_ARM=y
 CONFIG_ARCH_OMAP2PLUS=y
 CONFIG_OMAP44XX=y
 CONFIG_TARGET_OMAP4_PANDA=y
+CONFIG_DEFAULT_DEVICE_TREE="omap4-panda"
 CONFIG_SPL=y
 CONFIG_SPL_TEXT_BASE=0x40300000
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_BOOTCOMMAND="if test ${boot_fit} -eq 1; then run update_to_fit; fi; run findfdt; run init_console; run envboot; run distro_bootcmd"
 CONFIG_SYS_CONSOLE_IS_IN_ENV=y
 CONFIG_SYS_CONSOLE_INFO_QUIET=y
+CONFIG_DEFAULT_FDT_FILE="omap4-panda.dtb"
 CONFIG_VERSION_VARIABLE=y
 # CONFIG_SPL_FS_EXT4 is not set
 # CONFIG_SPL_I2C_SUPPORT is not set
@@ -18,21 +20,23 @@ CONFIG_CMD_ASKENV=y
 CONFIG_CMD_GPIO=y
 CONFIG_CMD_I2C=y
 CONFIG_CMD_MMC=y
-CONFIG_CMD_SPI=y
 CONFIG_CMD_USB=y
 # CONFIG_CMD_SETEXPR is not set
 # CONFIG_CMD_NFS is not set
 CONFIG_CMD_EXT4_WRITE=y
+CONFIG_OF_CONTROL=y
 CONFIG_ENV_IS_IN_FAT=y
 CONFIG_ENV_FAT_DEVICE_AND_PART="0:1"
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y
+CONFIG_DM=y
+CONFIG_DM_MMC=y
 CONFIG_MMC_OMAP_HS=y
 CONFIG_CONS_INDEX=3
 CONFIG_SYS_NS16550=y
-CONFIG_SPI=y
-CONFIG_OMAP3_SPI=y
+# CONFIG_SPI is not set
 CONFIG_USB=y
+CONFIG_DM_USB=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_MUSB_UDC=y
 CONFIG_USB_OMAP3=y
@@ -40,3 +44,5 @@ CONFIG_USB_GADGET=y
 CONFIG_USB_HOST_ETHER=y
 CONFIG_USB_ETHER_SMSC95XX=y
 CONFIG_OF_LIBFDT=y
+CONFIG_SYS_MALLOC_F_LEN=0x4000
+CONFIG_DM_ETH=y
Signature · 4 lines
2.17.1

--
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
#3 lore raw

PATCH v3 3/6 omap4: Copy device tree from Linux 5.7.y for SDP4430

In reply to Tero Kristo

From: Peter Ujfalusi <[email protected]>

Copy all device tree files required for omap4 sdp4430 support from mainline Linux.

---
 arch/arm/dts/omap4-sdp-es23plus.dts |  14 +
 arch/arm/dts/omap4-sdp.dts          | 713 ++++++++++++++++++++++++++++
 2 files changed, 727 insertions(+)
 create mode 100644 arch/arm/dts/omap4-sdp-es23plus.dts
 create mode 100644 arch/arm/dts/omap4-sdp.dts
arch/arm/dts/omap4-sdp-es23plus.dts new file +14 -0
new file mode 100644
index 0000000000..42154520d3
@@ -0,0 +1,14 @@
+// SPDX-License-Identifier: GPL-2.0-only
+/*
+ * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/
+ */
+#include "omap4-sdp.dts"
+
+/* SDP boards with 4430 ES2.3+ or 4460 have external pullups on SCL & SDA */
+&dss_hdmi_pins {
+	pinctrl-single,pins = <
+		OMAP4_IOPAD(0x09a, PIN_INPUT | MUX_MODE0)		/* hdmi_cec.hdmi_cec */
+		OMAP4_IOPAD(0x09c, PIN_INPUT | MUX_MODE0)		/* hdmi_scl.hdmi_scl */
+		OMAP4_IOPAD(0x09e, PIN_INPUT | MUX_MODE0)		/* hdmi_sda.hdmi_sda */
+		>;
+};
arch/arm/dts/omap4-sdp.dts new file +713 -0

713 lines not on this page · raw message

Signature · 4 lines
2.17.1

--
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
#4 lore raw

PATCH v3 4/6 omap4: sdp: convert to device model

In reply to Tero Kristo

From: Peter Ujfalusi <[email protected]>

Convert omap4 sdp to device model.

---
v3:
* dropped SPI support

 arch/arm/dts/Makefile           |  4 ++++
 board/ti/sdp4430/sdp.c          | 12 ++++++++++++
 configs/omap4_sdp4430_defconfig | 12 +++++++++---
 3 files changed, 25 insertions(+), 3 deletions(-)
arch/arm/dts/Makefile +4 -0
index dd574f57fa..70cf05f2b8 100644
@@ -852,6 +852,10 @@ dtb-$(CONFIG_TARGET_OMAP4_PANDA) += \
 	omap4-panda.dtb \
 	omap4-panda-es.dtb
 
+dtb-$(CONFIG_TARGET_OMAP4_SDP4430) += \
+	omap4-sdp.dtb \
+	omap4-sdp-es23plus.dtb
+
 dtb-$(CONFIG_TARGET_SAMA5D2_PTC_EK) += \
 	at91-sama5d2_ptc_ek.dtb
 
board/ti/sdp4430/sdp.c +12 -0
index a5b3504045..5b294ea79b 100644
@@ -9,6 +9,7 @@
 #include <init.h>
 #include <net.h>
 #include <twl6030.h>
+#include <serial.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/arch/mmc_host_def.h>
 
@@ -91,6 +92,17 @@ void board_mmc_power_init(void)
 #endif
 #endif
 
+#if defined(CONFIG_SPL_OS_BOOT)
+int spl_start_uboot(void)
+{
+	/* break into full u-boot on 'c' */
+	if (serial_tstc() && serial_getc() == 'c')
+		return 1;
+
+	return 0;
+}
+#endif /* CONFIG_SPL_OS_BOOT */
+
 /*
  * get_board_rev() - get board revision
  */
configs/omap4_sdp4430_defconfig +9 -3
index 219721388f..e9a8a90786 100644
@@ -5,6 +5,7 @@ CONFIG_ARCH_OMAP2PLUS=y
 CONFIG_ENV_OFFSET=0xE0000
 CONFIG_OMAP44XX=y
 CONFIG_TARGET_OMAP4_SDP4430=y
+CONFIG_DEFAULT_DEVICE_TREE="omap4-sdp"
 CONFIG_CMD_BAT=y
 CONFIG_SPL=y
 CONFIG_SPL_TEXT_BASE=0x40300000
@@ -12,6 +13,7 @@ CONFIG_DISTRO_DEFAULTS=y
 CONFIG_BOOTCOMMAND="if test ${boot_fit} -eq 1; then run update_to_fit; fi; run findfdt; run init_console; run envboot; run distro_bootcmd"
 CONFIG_SYS_CONSOLE_IS_IN_ENV=y
 CONFIG_SYS_CONSOLE_INFO_QUIET=y
+CONFIG_DEFAULT_FDT_FILE="omap4-sdp.dtb"
 CONFIG_VERSION_VARIABLE=y
 # CONFIG_SPL_I2C_SUPPORT is not set
 # CONFIG_SPL_NAND_SUPPORT is not set
@@ -19,20 +21,22 @@ CONFIG_CMD_ASKENV=y
 CONFIG_CMD_GPIO=y
 CONFIG_CMD_I2C=y
 CONFIG_CMD_MMC=y
-CONFIG_CMD_SPI=y
 # CONFIG_CMD_SETEXPR is not set
 # CONFIG_CMD_NFS is not set
 CONFIG_CMD_EXT4_WRITE=y
+CONFIG_OF_CONTROL=y
 # CONFIG_EFI_PARTITION is not set
 CONFIG_SPL_PARTITION_UUIDS=y
 CONFIG_ENV_IS_IN_MMC=y
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
+CONFIG_DM=y
+CONFIG_DM_MMC=y
 CONFIG_MMC_OMAP_HS=y
 CONFIG_CONS_INDEX=3
 CONFIG_SYS_NS16550=y
-CONFIG_SPI=y
-CONFIG_OMAP3_SPI=y
+# CONFIG_SPI is not set
 CONFIG_USB=y
+CONFIG_DM_USB=y
 CONFIG_USB_MUSB_UDC=y
 CONFIG_USB_OMAP3=y
 CONFIG_USB_GADGET=y
@@ -40,3 +44,5 @@ CONFIG_FAT_WRITE=y
 # CONFIG_REGEX is not set
 CONFIG_OF_LIBFDT=y
 # CONFIG_EFI_LOADER is not set
+CONFIG_SYS_MALLOC_F_LEN=0x4000
+CONFIG_DM_ETH=y
Signature · 4 lines
2.17.1

--
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
#5 lore raw

PATCH v3 5/6 omap5: Copy device tree from linux 5.7.y

In reply to Tero Kristo

Copy all the device tree files required for omap5 uevm support from mainline Linux.

---
 arch/arm/dts/Makefile                |    3 +
 arch/arm/dts/omap5-board-common.dtsi |  762 ++++++++
 arch/arm/dts/omap5-l4-abe.dtsi       |  450 +++++
 arch/arm/dts/omap5-l4.dtsi           | 2438 ++++++++++++++++++++++++++
 arch/arm/dts/omap5-uevm.dts          |  200 +++
 arch/arm/dts/omap5.dtsi              |  583 ++++++
 arch/arm/dts/omap54xx-clocks.dtsi    | 1208 +++++++++++++
 include/dt-bindings/clock/omap5.h    |  129 ++
 8 files changed, 5773 insertions(+)
 create mode 100644 arch/arm/dts/omap5-board-common.dtsi
 create mode 100644 arch/arm/dts/omap5-l4-abe.dtsi
 create mode 100644 arch/arm/dts/omap5-l4.dtsi
 create mode 100644 arch/arm/dts/omap5-uevm.dts
 create mode 100644 arch/arm/dts/omap5.dtsi
 create mode 100644 arch/arm/dts/omap54xx-clocks.dtsi
 create mode 100644 include/dt-bindings/clock/omap5.h
arch/arm/dts/Makefile +3 -0
index 70cf05f2b8..196b72a5ad 100644
@@ -856,6 +856,9 @@ dtb-$(CONFIG_TARGET_OMAP4_SDP4430) += \
 	omap4-sdp.dtb \
 	omap4-sdp-es23plus.dtb
 
+dtb-$(CONFIG_TARGET_OMAP5_UEVM) += \
+	omap5-uevm.dtb
+
 dtb-$(CONFIG_TARGET_SAMA5D2_PTC_EK) += \
 	at91-sama5d2_ptc_ek.dtb
 
arch/arm/dts/omap5-board-common.dtsi new file +762 -0

762 lines not on this page · raw message

arch/arm/dts/omap5-l4-abe.dtsi new file +450 -0

450 lines not on this page · raw message

arch/arm/dts/omap5-l4.dtsi new file +2438 -0

1,779 lines not on this page · raw message

arch/arm/dts/omap5-uevm.dts new file +200 -0

200 lines not on this page · raw message

arch/arm/dts/omap5.dtsi new file +583 -0

583 lines not on this page · raw message

arch/arm/dts/omap54xx-clocks.dtsi new file +1208 -0

1,208 lines not on this page · raw message

include/dt-bindings/clock/omap5.h new file +129 -0

129 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

Signature · 4 lines
2.17.1

--
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki

Part of the diff is not shown here. View the raw message.

#6 lore raw

PATCH v3 6/6 omap5: uevm: convert to device model

In reply to Tero Kristo

Convert omap5 uevm board to device model.

---
v3:
* dropped SPI support

 arch/arm/dts/omap5-u-boot.dtsi | 42 ++++++++++++++++++
 board/ti/omap5_uevm/evm.c      | 78 +++++-----------------------------
 configs/omap5_uevm_defconfig   | 13 ++++--
 3 files changed, 62 insertions(+), 71 deletions(-)
arch/arm/dts/omap5-u-boot.dtsi +42 -0
index 39071e223d..5a1c7bc9fe 100644
@@ -7,6 +7,7 @@
  * Based on "dra7.dtsi"
  */
 
+#ifdef CONFIG_DRA7XX
 /{
 	chosen {
 		tick-timer = &timer2;
@@ -105,3 +106,44 @@
 &i2c1 {
 	u-boot,dm-spl;
 };
+
+#else /* OMAP54XX */
+&l4_cfg {
+	segment at 0 {
+		/* SCM Core */
+		target-module at 2000 {
+			compatible = "simple-bus";
+		};
+
+		/* USB HS */
+		target-module at 64000 {
+			compatible = "simple-bus";
+		};
+	};
+};
+
+&l4_per {
+	segment at 0 {
+		/* UART3 */
+		target-module at 20000 {
+			compatible = "simple-bus";
+		};
+
+		/* I2C1 */
+		target-module at 70000 {
+			compatible = "simple-bus";
+		};
+
+		/* MMC1 */
+		target-module at 9c000 {
+			compatible = "simple-bus";
+		};
+
+		/* MMC2 */
+		target-module at b4000 {
+			compatible = "simple-bus";
+		};
+	};
+};
+
+#endif
board/ti/omap5_uevm/evm.c +10 -68

108 lines not on this page · raw message

configs/omap5_uevm_defconfig +10 -3
index 487f7f305c..0029e70439 100644
@@ -2,6 +2,7 @@ CONFIG_ARM=y
 CONFIG_ARCH_OMAP2PLUS=y
 CONFIG_OMAP54XX=y
 CONFIG_TARGET_OMAP5_UEVM=y
+CONFIG_DEFAULT_DEVICE_TREE="omap5-uevm"
 CONFIG_OMAP_PLATFORM_RESET_TIME_MAX_USEC=16296
 CONFIG_SPL=y
 CONFIG_ENV_OFFSET_REDUND=0x280000
@@ -10,6 +11,7 @@ CONFIG_SPL_TEXT_BASE=0x40300000
 CONFIG_DISTRO_DEFAULTS=y
 # CONFIG_USE_BOOTCOMMAND is not set
 CONFIG_SYS_CONSOLE_INFO_QUIET=y
+CONFIG_DEFAULT_FDT_FILE="omap5-uevm.dtb"
 CONFIG_VERSION_VARIABLE=y
 # CONFIG_SPL_NAND_SUPPORT is not set
 CONFIG_SPL_OS_BOOT=y
@@ -20,14 +22,17 @@ CONFIG_CMD_GPIO=y
 CONFIG_CMD_GPT=y
 CONFIG_CMD_I2C=y
 CONFIG_CMD_MMC=y
-CONFIG_CMD_SPI=y
 CONFIG_CMD_USB=y
 # CONFIG_CMD_SETEXPR is not set
 CONFIG_CMD_EXT4_WRITE=y
+CONFIG_OF_CONTROL=y
 CONFIG_ENV_IS_IN_MMC=y
 CONFIG_SYS_REDUNDAND_ENVIRONMENT=y
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y
+CONFIG_DM=y
+CONFIG_DM_MMC=y
+CONFIG_AHCI=y
 CONFIG_SCSI_AHCI=y
 CONFIG_DFU_MMC=y
 CONFIG_DFU_RAM=y
@@ -37,9 +42,9 @@ CONFIG_MMC_OMAP_HS=y
 CONFIG_SCSI=y
 CONFIG_CONS_INDEX=3
 CONFIG_SYS_NS16550=y
-CONFIG_SPI=y
-CONFIG_OMAP3_SPI=y
+# CONFIG_SPI is not set
 CONFIG_USB=y
+CONFIG_DM_USB=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_DWC3=y
 CONFIG_USB_DWC3_OMAP=y
@@ -53,3 +58,5 @@ CONFIG_USB_HOST_ETHER=y
 CONFIG_USB_ETHER_SMSC95XX=y
 CONFIG_FAT_WRITE=y
 CONFIG_OF_LIBFDT=y
+CONFIG_SYS_MALLOC_F_LEN=0x4000
+CONFIG_DM_ETH=y
Signature · 4 lines
2.17.1

--
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
#7 lore raw

v3 cover omap4/omap5: convert to DM model

In reply to Tero Kristo
Quoted 9 lines · Tero Kristo

Hi,

This is a combined series of both omap4/omap5 DM conversion in one. The main change across all the boards in this version is to drop SPI support completely. SPI is only available on expansion headers on the omap4 panda / omap5 uevm boards, and it is impossible for the authors of the patches in this series to both complete the SPI conversion to DM model, and test it, so it was deemed better to drop it completely.

Quoted 3 lines

Again, if someone from community needs the SPI support later, it should be relatively straightforward to add it back with proper expertise / tools.

Applied to u-boot-ti next.

Thanks and regards,
Lokesh