Skip to contentSkip to conversation

ARM: omap3: evm: Add OF_CONTROL support

PATCH New Derald D. Woods 2 participants 15 messages Dec 16, 2017 – Jan 2, 2018

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

cover ARM: omap3: evm: Add OF_CONTROL support

This series adds OF_CONTROL support for TMDSEVM{3530,3730} and additionally updates ethaddr setup with smc911x initialization.

Devicetree files are taken from Linux v4.15-rc3. Note that this is the first addition of OMAP34XX devicetree files.

Tested using GCC 7.2.0 [--with-float=hard --with-mode=thumb]

--- 8< ----------------------------------------------------------------- U-Boot SPL 2018.01-rc1-00177-g27f9740bcf (Dec 16 2017 - 13:13:10) Trying to boot from MMC1
reading u-boot.img
reading u-boot.img

U-Boot 2018.01-rc1-00177-g27f9740bcf (Dec 16 2017 - 13:13:10 -0600)

OMAP3530-GP ES3.1, CPU-OPP2, L3-165MHz, Max CPU Clock 720 MHz
Model: TI OMAP35XX EVM (TMDSEVM3530)
OMAP3 EVM board + LPDDR/NAND

I2C:   ready
DRAM:  256 MiB
NAND:  256 MiB
MMC:   OMAP SD/MMC: 0

Read back SMSC id 0x92200000
OMAP die ID: 265a002400000000040365fa1801b01f
Net: smc911x-0
starting USB...
USB0: USB EHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
Hit any key to stop autoboot: 0
OMAP3_EVM # echo $stdin;echo $stdout;echo $stderr
serial at 4806a000
serial at 4806a000
serial@4806a000
--- 8< -----------------------------------------------------------------

Derald D. Woods (3):
ARM: dts: omap3-evm: Add support for TMDSEVM{3530,3730}
ARM: dts: omap3-evm: Enable DM and devicetree for TMDSEVM{3530,3730}
ARM: omap3: evm: Refactor 'board_eth_init'

 arch/arm/dts/Makefile                           |   4 +
 arch/arm/dts/omap-gpmc-smsc911x.dtsi            |  55 ++++++
 arch/arm/dts/omap3-evm-37xx-u-boot.dtsi         |  29 ++++
 arch/arm/dts/omap3-evm-37xx.dts                 | 110 ++++++++++++
 arch/arm/dts/omap3-evm-common.dtsi              | 195 +++++++++++++++++++++
 arch/arm/dts/omap3-evm-processor-common.dtsi    | 216 ++++++++++++++++++++++++
 arch/arm/dts/omap3-evm-u-boot.dtsi              |  29 ++++
 arch/arm/dts/omap3-evm.dts                      |  89 ++++++++++
 arch/arm/dts/omap3-panel-sharp-ls037v7dw01.dtsi |  73 ++++++++
 arch/arm/dts/omap34xx.dtsi                      |  84 +++++++++
 arch/arm/mach-omap2/omap3/Kconfig               |   4 +
 board/ti/evm/evm.c                              |  24 +--
 configs/omap3_evm_defconfig                     |   9 +-
 include/configs/omap3_evm.h                     |   2 -
 14 files changed, 896 insertions(+), 27 deletions(-)
 create mode 100644 arch/arm/dts/omap-gpmc-smsc911x.dtsi
 create mode 100644 arch/arm/dts/omap3-evm-37xx-u-boot.dtsi
 create mode 100644 arch/arm/dts/omap3-evm-37xx.dts
 create mode 100644 arch/arm/dts/omap3-evm-common.dtsi
 create mode 100644 arch/arm/dts/omap3-evm-processor-common.dtsi
 create mode 100644 arch/arm/dts/omap3-evm-u-boot.dtsi
 create mode 100644 arch/arm/dts/omap3-evm.dts
 create mode 100644 arch/arm/dts/omap3-panel-sharp-ls037v7dw01.dtsi
 create mode 100644 arch/arm/dts/omap34xx.dtsi
Signature · 1 line
2.15.1
#1 lore raw

PATCH 1/3 ARM: dts: omap3-evm: Add support for TMDSEVM{3530, 3730}

This commit adds OMAP3 EVM devicetree files from Linux v4.15-rc3. Note that this is the first addition of OMAP34XX devicetree files.

---
 arch/arm/dts/Makefile                           |   4 +
 arch/arm/dts/omap-gpmc-smsc911x.dtsi            |  55 ++++++
 arch/arm/dts/omap3-evm-37xx-u-boot.dtsi         |  29 ++++
 arch/arm/dts/omap3-evm-37xx.dts                 | 110 ++++++++++++
 arch/arm/dts/omap3-evm-common.dtsi              | 195 +++++++++++++++++++++
 arch/arm/dts/omap3-evm-processor-common.dtsi    | 216 ++++++++++++++++++++++++
 arch/arm/dts/omap3-evm-u-boot.dtsi              |  29 ++++
 arch/arm/dts/omap3-evm.dts                      |  89 ++++++++++
 arch/arm/dts/omap3-panel-sharp-ls037v7dw01.dtsi |  73 ++++++++
 arch/arm/dts/omap34xx.dtsi                      |  84 +++++++++
 10 files changed, 884 insertions(+)
 create mode 100644 arch/arm/dts/omap-gpmc-smsc911x.dtsi
 create mode 100644 arch/arm/dts/omap3-evm-37xx-u-boot.dtsi
 create mode 100644 arch/arm/dts/omap3-evm-37xx.dts
 create mode 100644 arch/arm/dts/omap3-evm-common.dtsi
 create mode 100644 arch/arm/dts/omap3-evm-processor-common.dtsi
 create mode 100644 arch/arm/dts/omap3-evm-u-boot.dtsi
 create mode 100644 arch/arm/dts/omap3-evm.dts
 create mode 100644 arch/arm/dts/omap3-panel-sharp-ls037v7dw01.dtsi
 create mode 100644 arch/arm/dts/omap34xx.dtsi
arch/arm/dts/Makefile +4 -0
index 1c9ac1468b..cf23a46f4c 100644
@@ -432,6 +432,10 @@ dtb-$(CONFIG_TARGET_OMAP3_LOGIC) += \
 	logicpd-torpedo-37xx-devkit.dtb \
 	logicpd-som-lv-37xx-devkit.dtb
 
+dtb-$(CONFIG_TARGET_OMAP3_EVM) += \
+	omap3-evm-37xx.dtb \
+	omap3-evm.dtb
+
 dtb-$(CONFIG_TARGET_SAMA5D2_PTC_EK) += \
 	at91-sama5d2_ptc_ek.dtb
 
arch/arm/dts/omap-gpmc-smsc911x.dtsi new file +55 -0

55 lines not on this page · raw message

arch/arm/dts/omap3-evm-37xx-u-boot.dtsi new file +29 -0
new file mode 100644
index 0000000000..53a489988e
@@ -0,0 +1,29 @@
+/*
+ * U-Boot additions
+ *
+ * (C) Copyright 2017 Derald D. Woods <[email protected]>
+ *
+ * SPDX-License-Identifier:	GPL-2.0+
+ */
+
+/ {
+	chosen {
+		stdout-path = &uart1;
+	};
+};
+
+&mmc1 {
+	cd-inverted;
+};
+
+&uart1 {
+	reg-shift = <2>;
+};
+
+&uart2 {
+	reg-shift = <2>;
+};
+
+&uart3 {
+	reg-shift = <2>;
+};
arch/arm/dts/omap3-evm-37xx.dts new file +110 -0

110 lines not on this page · raw message

arch/arm/dts/omap3-evm-common.dtsi new file +195 -0

195 lines not on this page · raw message

arch/arm/dts/omap3-evm-processor-common.dtsi new file +216 -0

216 lines not on this page · raw message

arch/arm/dts/omap3-evm-u-boot.dtsi new file +29 -0
new file mode 100644
index 0000000000..53a489988e
@@ -0,0 +1,29 @@
+/*
+ * U-Boot additions
+ *
+ * (C) Copyright 2017 Derald D. Woods <[email protected]>
+ *
+ * SPDX-License-Identifier:	GPL-2.0+
+ */
+
+/ {
+	chosen {
+		stdout-path = &uart1;
+	};
+};
+
+&mmc1 {
+	cd-inverted;
+};
+
+&uart1 {
+	reg-shift = <2>;
+};
+
+&uart2 {
+	reg-shift = <2>;
+};
+
+&uart3 {
+	reg-shift = <2>;
+};
arch/arm/dts/omap3-evm.dts new file +89 -0

89 lines not on this page · raw message

arch/arm/dts/omap3-panel-sharp-ls037v7dw01.dtsi new file +73 -0

73 lines not on this page · raw message

arch/arm/dts/omap34xx.dtsi new file +84 -0

84 lines not on this page · raw message

Signature · 1 line
2.15.1
#3 lore raw

PATCH 2/3 ARM: dts: omap3-evm: Enable DM and devicetree for TMDSEVM{3530, 3730}

In reply to Derald D. Woods

This commit updates the configuration files needed to support OF_CONTROL on the OMAP3 EVM baseboard.

Tested using GCC 7.2.0 [--with-float=hard --with-mode=thumb].

---
 arch/arm/mach-omap2/omap3/Kconfig | 4 ++++
 configs/omap3_evm_defconfig       | 9 +++------
 include/configs/omap3_evm.h       | 2 --
 3 files changed, 7 insertions(+), 8 deletions(-)
arch/arm/mach-omap2/omap3/Kconfig +4 -0
index 4dbf9a27da..6d714f6cdb 100644
@@ -61,6 +61,10 @@ config TARGET_DEVKIT8000
 
 config TARGET_OMAP3_EVM
 	bool "TI OMAP3 EVM"
+	select DM
+	select DM_SERIAL
+	select DM_GPIO
+	select OMAP3_GPIO_3
 
 config TARGET_OMAP3_IGEP00X0
 	bool "IGEP"
configs/omap3_evm_defconfig +3 -6
index 0c513664fe..bf4480fc5d 100644
@@ -1,10 +1,11 @@
 CONFIG_ARM=y
-# CONFIG_SYS_THUMB_BUILD is not set
 CONFIG_ARCH_OMAP2PLUS=y
 CONFIG_SYS_TEXT_BASE=0x80100000
+CONFIG_TI_COMMON_CMD_OPTIONS=y
 CONFIG_SYS_MALLOC_F_LEN=0x2000
 CONFIG_SYS_MPUCLK=720
 CONFIG_TARGET_OMAP3_EVM=y
+CONFIG_DEFAULT_DEVICE_TREE="omap3-evm"
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_BOOTDELAY=3
 CONFIG_USE_BOOTCOMMAND=y
@@ -20,15 +21,11 @@ CONFIG_SYS_PROMPT="OMAP3_EVM # "
 CONFIG_CMD_ASKENV=y
 # CONFIG_CMD_FLASH is not set
 # CONFIG_CMD_FPGA is not set
-CONFIG_CMD_GPIO=y
-CONFIG_CMD_I2C=y
 CONFIG_CMD_MMC=y
 CONFIG_CMD_NAND=y
 CONFIG_CMD_NAND_TRIMFFS=y
-CONFIG_CMD_SPI=y
 CONFIG_CMD_USB=y
 CONFIG_CMD_CACHE=y
-CONFIG_CMD_EXT4_WRITE=y
 CONFIG_CMD_FS_UUID=y
 CONFIG_MTDIDS_DEFAULT="nand0=omap2-nand.0"
 CONFIG_MTDPARTS_DEFAULT="mtdparts=omap2-nand.0:512k(spl),1792k(u-boot),128k(dtb),128k(u-boot-env),6m(kernel),-(rootfs)"
@@ -36,6 +33,7 @@ CONFIG_CMD_UBI=y
 # CONFIG_ISO_PARTITION is not set
 # CONFIG_EFI_PARTITION is not set
 CONFIG_SPL_PARTITION_UUIDS=y
+CONFIG_OF_CONTROL=y
 CONFIG_ENV_IS_IN_NAND=y
 CONFIG_DM=y
 CONFIG_SPL_DM=y
@@ -61,7 +59,6 @@ CONFIG_USB_GADGET_VENDOR_NUM=0x0451
 CONFIG_USB_GADGET_PRODUCT_NUM=0x5678
 CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_USB_ETHER=y
-CONFIG_FAT_WRITE=y
 CONFIG_BCH=y
 CONFIG_OF_LIBFDT=y
 CONFIG_OF_LIBFDT_OVERLAY=y
include/configs/omap3_evm.h +0 -2
index 42f2153637..0bf3423129 100644
@@ -42,8 +42,6 @@
 #define CONFIG_SYS_NS16550_COM1         OMAP34XX_UART1
 #if defined(CONFIG_SPL_BUILD)
 #undef CONFIG_SYS_NS16550_REG_SIZE
-#else /* !CONFIG_SPL_BUILD  */
-#define CONFIG_SYS_NS16550_REG_SIZE     (-1)
 #endif /* CONFIG_SPL_BUILD */
 
 /* NAND */
Signature · 1 line
2.15.1
#10 lore raw

PATCH 3/3 ARM: omap3: evm: Refactor 'board_eth_init'

In reply to Derald D. Woods

This commit clears 'ethaddr' before calling 'smc911x_initialize' to allow the SROM MAC address to be assigned properly.

---
 board/ti/evm/evm.c | 24 +++++-------------------
 1 file changed, 5 insertions(+), 19 deletions(-)
board/ti/evm/evm.c +5 -19
index 4d5ddff1e1..3a9680ffec 100644
@@ -299,26 +299,12 @@ static void reset_net_chip(void)
 
 int board_eth_init(bd_t *bis)
 {
-	int rc = 0;
 #if defined(CONFIG_SMC911X)
-#define STR_ENV_ETHADDR	"ethaddr"
-
-	struct eth_device *dev;
-	uchar eth_addr[6];
-
-	rc = smc911x_initialize(0, CONFIG_SMC911X_BASE);
-
-	if (!eth_env_get_enetaddr(STR_ENV_ETHADDR, eth_addr)) {
-		dev = eth_get_dev_by_index(0);
-		if (dev) {
-			eth_env_set_enetaddr(STR_ENV_ETHADDR, dev->enetaddr);
-		} else {
-			printf("omap3evm: Couldn't get eth device\n");
-			rc = -1;
-		}
-	}
-#endif /* CONFIG_SMC911X */
-	return rc;
+	env_set("ethaddr", NULL);
+	return smc911x_initialize(0, CONFIG_SMC911X_BASE);
+#else
+	return 0;
+#endif
 }
 #endif /* CONFIG_CMD_NET */
 
Signature · 1 line
2.15.1
#4 lore raw

PATCH 2/3 ARM: dts: omap3-evm: Enable DM and devicetree for TMDSEVM{3530, 3730}

In reply to Derald D. Woods

This commit updates the configuration files needed to support OF_CONTROL on the OMAP3 EVM baseboard.

Additionally:
- CONFIG_SYS_THUMB_BUILD is enabled
- CONFIG_SPL_ENV_SUPPORT is enabled
- CONFIG_SPL_EXT_SUPPORT is enabled

Tested using GCC 7.2.0 [--with-float=hard --with-mode=thumb].

---

v2:
- Added CONFIG_SPL_ENV_SUPPORT and CONFIG_SPL_EXT_SUPPORT
- Bring back bus and filesystem commands previously dropped
- Update commit message

 arch/arm/mach-omap2/omap3/Kconfig | 4 ++++
 configs/omap3_evm_defconfig       | 6 +++++-
 include/configs/omap3_evm.h       | 6 ------
 3 files changed, 9 insertions(+), 7 deletions(-)
arch/arm/mach-omap2/omap3/Kconfig +4 -0
index 4dbf9a27da..6d714f6cdb 100644
@@ -61,6 +61,10 @@ config TARGET_DEVKIT8000
 
 config TARGET_OMAP3_EVM
 	bool "TI OMAP3 EVM"
+	select DM
+	select DM_SERIAL
+	select DM_GPIO
+	select OMAP3_GPIO_3
 
 config TARGET_OMAP3_IGEP00X0
 	bool "IGEP"
configs/omap3_evm_defconfig +5 -1
index 0c513664fe..c69b880bcc 100644
@@ -1,10 +1,11 @@
 CONFIG_ARM=y
-# CONFIG_SYS_THUMB_BUILD is not set
 CONFIG_ARCH_OMAP2PLUS=y
 CONFIG_SYS_TEXT_BASE=0x80100000
+CONFIG_TI_COMMON_CMD_OPTIONS=y
 CONFIG_SYS_MALLOC_F_LEN=0x2000
 CONFIG_SYS_MPUCLK=720
 CONFIG_TARGET_OMAP3_EVM=y
+CONFIG_DEFAULT_DEVICE_TREE="omap3-evm"
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_BOOTDELAY=3
 CONFIG_USE_BOOTCOMMAND=y
@@ -12,6 +13,8 @@ CONFIG_SYS_CONSOLE_INFO_QUIET=y
 CONFIG_DEFAULT_FDT_FILE="omap3-evm.dtb"
 CONFIG_VERSION_VARIABLE=y
 CONFIG_SPL=y
+CONFIG_SPL_ENV_SUPPORT=y
+CONFIG_SPL_EXT_SUPPORT=y
 CONFIG_SPL_SYS_MALLOC_SIMPLE=y
 # CONFIG_SPL_EXT_SUPPORT is not set
 CONFIG_SPL_MTD_SUPPORT=y
@@ -36,6 +39,7 @@ CONFIG_CMD_UBI=y
 # CONFIG_ISO_PARTITION is not set
 # CONFIG_EFI_PARTITION is not set
 CONFIG_SPL_PARTITION_UUIDS=y
+CONFIG_OF_CONTROL=y
 CONFIG_ENV_IS_IN_NAND=y
 CONFIG_DM=y
 CONFIG_SPL_DM=y
include/configs/omap3_evm.h +0 -6
index 42f2153637..629d60b961 100644
@@ -42,8 +42,6 @@
 #define CONFIG_SYS_NS16550_COM1         OMAP34XX_UART1
 #if defined(CONFIG_SPL_BUILD)
 #undef CONFIG_SYS_NS16550_REG_SIZE
-#else /* !CONFIG_SPL_BUILD  */
-#define CONFIG_SYS_NS16550_REG_SIZE     (-1)
 #endif /* CONFIG_SPL_BUILD */
 
 /* NAND */
@@ -86,8 +84,6 @@
 /* Environment */
 #define CONFIG_PREBOOT                  "usb start"
 
-#if !defined(CONFIG_SPL_BUILD)
-
 #include <config_distro_defaults.h>
 
 #define MEM_LAYOUT_ENV_SETTINGS \
@@ -181,6 +177,4 @@
 		"bootm ${loadaddr} - ${fdtaddr}\0" \
 	BOOTENV
 
-#endif /* !CONFIG_SPL_BUILD */
-
 #endif /* __CONFIG_H */
Signature · 1 line
2.15.1
#12 lore raw

cover ARM: omap3: evm: Add OF_CONTROL support

In reply to Derald D. Woods
Quoted 59 lines · Derald D. Woods

This series adds OF_CONTROL support for TMDSEVM{3530,3730} and additionally updates ethaddr setup with smc911x initialization.

Devicetree files are taken from Linux v4.15-rc3. Note that this is the first addition of OMAP34XX devicetree files.

Tested using GCC 7.2.0 [--with-float=hard --with-mode=thumb]

--- 8< ----------------------------------------------------------------- U-Boot SPL 2018.01-rc1-00177-g27f9740bcf (Dec 16 2017 - 13:13:10) Trying to boot from MMC1
reading u-boot.img
reading u-boot.img

U-Boot 2018.01-rc1-00177-g27f9740bcf (Dec 16 2017 - 13:13:10 -0600)

OMAP3530-GP ES3.1, CPU-OPP2, L3-165MHz, Max CPU Clock 720 MHz
Model: TI OMAP35XX EVM (TMDSEVM3530)
OMAP3 EVM board + LPDDR/NAND

I2C:   ready
DRAM:  256 MiB
NAND:  256 MiB
MMC:   OMAP SD/MMC: 0

Read back SMSC id 0x92200000
OMAP die ID: 265a002400000000040365fa1801b01f
Net: smc911x-0
starting USB...
USB0: USB EHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
Hit any key to stop autoboot: 0
OMAP3_EVM # echo $stdin;echo $stdout;echo $stderr
serial at 4806a000
serial at 4806a000
serial at 4806a000
--- 8< -----------------------------------------------------------------

Derald D. Woods (3):
ARM: dts: omap3-evm: Add support for TMDSEVM{3530,3730}
ARM: dts: omap3-evm: Enable DM and devicetree for TMDSEVM{3530,3730}
ARM: omap3: evm: Refactor 'board_eth_init'

 arch/arm/dts/Makefile                           |   4 +
 arch/arm/dts/omap-gpmc-smsc911x.dtsi            |  55 ++++++
 arch/arm/dts/omap3-evm-37xx-u-boot.dtsi         |  29 ++++
 arch/arm/dts/omap3-evm-37xx.dts                 | 110 ++++++++++++
 arch/arm/dts/omap3-evm-common.dtsi              | 195 +++++++++++++++++++++
 arch/arm/dts/omap3-evm-processor-common.dtsi    | 216 ++++++++++++++++++++++++
 arch/arm/dts/omap3-evm-u-boot.dtsi              |  29 ++++
 arch/arm/dts/omap3-evm.dts                      |  89 ++++++++++
 arch/arm/dts/omap3-panel-sharp-ls037v7dw01.dtsi |  73 ++++++++
 arch/arm/dts/omap34xx.dtsi                      |  84 +++++++++
 arch/arm/mach-omap2/omap3/Kconfig               |   4 +
 board/ti/evm/evm.c                              |  24 +--
 configs/omap3_evm_defconfig                     |   9 +-
 include/configs/omap3_evm.h                     |   2 -
 14 files changed, 896 insertions(+), 27 deletions(-)
 create mode 100644 arch/arm/dts/omap-gpmc-smsc911x.dtsi
Quoted 12 lines
 create mode 100644 arch/arm/dts/omap3-evm-37xx-u-boot.dtsi
 create mode 100644 arch/arm/dts/omap3-evm-37xx.dts
 create mode 100644 arch/arm/dts/omap3-evm-common.dtsi
 create mode 100644 arch/arm/dts/omap3-evm-processor-common.dtsi
 create mode 100644 arch/arm/dts/omap3-evm-u-boot.dtsi
 create mode 100644 arch/arm/dts/omap3-evm.dts
 create mode 100644 arch/arm/dts/omap3-panel-sharp-ls037v7dw01.dtsi
 create mode 100644 arch/arm/dts/omap34xx.dtsi
Signature · 1 line
2.15.1

Ping. If there is any concern, please let me know and I will make corrections. I plan to also update beagleboard and overo to use their respective devicetree files. I would like to have these three OMAP34XX boards, that I possess, to be near the same level of support. It will help me to continue testing OMAP34XX stuff in general.

Derald

#13 lore raw

cover ARM: omap3: evm: Add OF_CONTROL support

Quoted 73 lines · Derald D. Woods
Quoted 59 lines · Derald D. Woods

This series adds OF_CONTROL support for TMDSEVM{3530,3730} and additionally updates ethaddr setup with smc911x initialization.

Devicetree files are taken from Linux v4.15-rc3. Note that this is the first addition of OMAP34XX devicetree files.

Tested using GCC 7.2.0 [--with-float=hard --with-mode=thumb]

--- 8< ----------------------------------------------------------------- U-Boot SPL 2018.01-rc1-00177-g27f9740bcf (Dec 16 2017 - 13:13:10) Trying to boot from MMC1
reading u-boot.img
reading u-boot.img

U-Boot 2018.01-rc1-00177-g27f9740bcf (Dec 16 2017 - 13:13:10 -0600)

OMAP3530-GP ES3.1, CPU-OPP2, L3-165MHz, Max CPU Clock 720 MHz
Model: TI OMAP35XX EVM (TMDSEVM3530)
OMAP3 EVM board + LPDDR/NAND

I2C:   ready
DRAM:  256 MiB
NAND:  256 MiB
MMC:   OMAP SD/MMC: 0

Read back SMSC id 0x92200000
OMAP die ID: 265a002400000000040365fa1801b01f
Net: smc911x-0
starting USB...
USB0: USB EHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
Hit any key to stop autoboot: 0
OMAP3_EVM # echo $stdin;echo $stdout;echo $stderr
serial at 4806a000
serial at 4806a000
serial at 4806a000
--- 8< -----------------------------------------------------------------

Derald D. Woods (3):
ARM: dts: omap3-evm: Add support for TMDSEVM{3530,3730}
ARM: dts: omap3-evm: Enable DM and devicetree for TMDSEVM{3530,3730}
ARM: omap3: evm: Refactor 'board_eth_init'

 arch/arm/dts/Makefile                           |   4 +
 arch/arm/dts/omap-gpmc-smsc911x.dtsi            |  55 ++++++
 arch/arm/dts/omap3-evm-37xx-u-boot.dtsi         |  29 ++++
 arch/arm/dts/omap3-evm-37xx.dts                 | 110 ++++++++++++
 arch/arm/dts/omap3-evm-common.dtsi              | 195 +++++++++++++++++++++
 arch/arm/dts/omap3-evm-processor-common.dtsi    | 216 ++++++++++++++++++++++++
 arch/arm/dts/omap3-evm-u-boot.dtsi              |  29 ++++
 arch/arm/dts/omap3-evm.dts                      |  89 ++++++++++
 arch/arm/dts/omap3-panel-sharp-ls037v7dw01.dtsi |  73 ++++++++
 arch/arm/dts/omap34xx.dtsi                      |  84 +++++++++
 arch/arm/mach-omap2/omap3/Kconfig               |   4 +
 board/ti/evm/evm.c                              |  24 +--
 configs/omap3_evm_defconfig                     |   9 +-
 include/configs/omap3_evm.h                     |   2 -
 14 files changed, 896 insertions(+), 27 deletions(-)
 create mode 100644 arch/arm/dts/omap-gpmc-smsc911x.dtsi
Quoted 12 lines
 create mode 100644 arch/arm/dts/omap3-evm-37xx-u-boot.dtsi
 create mode 100644 arch/arm/dts/omap3-evm-37xx.dts
 create mode 100644 arch/arm/dts/omap3-evm-common.dtsi
 create mode 100644 arch/arm/dts/omap3-evm-processor-common.dtsi
 create mode 100644 arch/arm/dts/omap3-evm-u-boot.dtsi
 create mode 100644 arch/arm/dts/omap3-evm.dts
 create mode 100644 arch/arm/dts/omap3-panel-sharp-ls037v7dw01.dtsi
 create mode 100644 arch/arm/dts/omap34xx.dtsi
Signature · 1 line
2.15.1
Quoted 5 lines

Ping. If there is any concern, please let me know and I will make corrections. I plan to also update beagleboard and overo to use their respective devicetree files. I would like to have these three OMAP34XX boards, that I possess, to be near the same level of support. It will help me to continue testing OMAP34XX stuff in general.

It's localized enough that it's your call, do you want it in for v2018.01 or .03? Thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20171226/8cb527bf/attachment.sig>
#14 lore raw

cover ARM: omap3: evm: Add OF_CONTROL support

Quoted 74 lines · Tom Rini
Quoted 73 lines · Derald D. Woods
Quoted 71 lines · Derald D. Woods

This series adds OF_CONTROL support for TMDSEVM{3530,3730} and additionally updates ethaddr setup with smc911x initialization.

Devicetree files are taken from Linux v4.15-rc3. Note that this is the first addition of OMAP34XX devicetree files.

Tested using GCC 7.2.0 [--with-float=hard --with-mode=thumb]

--- 8< ----------------------------------------------------------------- U-Boot SPL 2018.01-rc1-00177-g27f9740bcf (Dec 16 2017 - 13:13:10) Trying to boot from MMC1
reading u-boot.img
reading u-boot.img

U-Boot 2018.01-rc1-00177-g27f9740bcf (Dec 16 2017 - 13:13:10 -0600)

OMAP3530-GP ES3.1, CPU-OPP2, L3-165MHz, Max CPU Clock 720 MHz
Model: TI OMAP35XX EVM (TMDSEVM3530)
OMAP3 EVM board + LPDDR/NAND

I2C:   ready
DRAM:  256 MiB
NAND:  256 MiB
MMC:   OMAP SD/MMC: 0

Read back SMSC id 0x92200000
OMAP die ID: 265a002400000000040365fa1801b01f
Net: smc911x-0
starting USB...
USB0: USB EHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
Hit any key to stop autoboot: 0
OMAP3_EVM # echo $stdin;echo $stdout;echo $stderr
serial at 4806a000
serial at 4806a000
serial at 4806a000
--- 8< -----------------------------------------------------------------

Derald D. Woods (3):
ARM: dts: omap3-evm: Add support for TMDSEVM{3530,3730}
ARM: dts: omap3-evm: Enable DM and devicetree for TMDSEVM{3530,3730}
ARM: omap3: evm: Refactor 'board_eth_init'

 arch/arm/dts/Makefile                           |   4 +
 arch/arm/dts/omap-gpmc-smsc911x.dtsi            |  55 ++++++
 arch/arm/dts/omap3-evm-37xx-u-boot.dtsi         |  29 ++++
 arch/arm/dts/omap3-evm-37xx.dts                 | 110 ++++++++++++
 arch/arm/dts/omap3-evm-common.dtsi              | 195 +++++++++++++++++++++
 arch/arm/dts/omap3-evm-processor-common.dtsi    | 216 ++++++++++++++++++++++++
 arch/arm/dts/omap3-evm-u-boot.dtsi              |  29 ++++
 arch/arm/dts/omap3-evm.dts                      |  89 ++++++++++
 arch/arm/dts/omap3-panel-sharp-ls037v7dw01.dtsi |  73 ++++++++
 arch/arm/dts/omap34xx.dtsi                      |  84 +++++++++
 arch/arm/mach-omap2/omap3/Kconfig               |   4 +
 board/ti/evm/evm.c                              |  24 +--
 configs/omap3_evm_defconfig                     |   9 +-
 include/configs/omap3_evm.h                     |   2 -
 14 files changed, 896 insertions(+), 27 deletions(-)
 create mode 100644 arch/arm/dts/omap-gpmc-smsc911x.dtsi
 create mode 100644 arch/arm/dts/omap3-evm-37xx-u-boot.dtsi
 create mode 100644 arch/arm/dts/omap3-evm-37xx.dts
 create mode 100644 arch/arm/dts/omap3-evm-common.dtsi
 create mode 100644 arch/arm/dts/omap3-evm-processor-common.dtsi
 create mode 100644 arch/arm/dts/omap3-evm-u-boot.dtsi
 create mode 100644 arch/arm/dts/omap3-evm.dts
 create mode 100644 arch/arm/dts/omap3-panel-sharp-ls037v7dw01.dtsi
 create mode 100644 arch/arm/dts/omap34xx.dtsi
Signature · 1 line
2.15.1
Quoted 9 lines
Quoted 5 lines

Ping. If there is any concern, please let me know and I will make corrections. I plan to also update beagleboard and overo to use their respective devicetree files. I would like to have these three OMAP34XX boards, that I possess, to be near the same level of support. It will help me to continue testing OMAP34XX stuff in general.

It's localized enough that it's your call, do you want it in for v2018.01 or .03? Thanks!

I would like it to land in v2018.01 if possible.

Derald

#5 lore raw

PATCH 2/3 ARM: dts: omap3-evm: Enable DM and devicetree for TMDSEVM{3530, 3730}

In reply to Derald D. Woods
Quoted 10 lines · Derald D. Woods

This commit updates the configuration files needed to support OF_CONTROL on the OMAP3 EVM baseboard.

Additionally:
- CONFIG_SYS_THUMB_BUILD is enabled
- CONFIG_SPL_ENV_SUPPORT is enabled
- CONFIG_SPL_EXT_SUPPORT is enabled

Tested using GCC 7.2.0 [--with-float=hard --with-mode=thumb].

Quoted 7 lines

---

v2:
- Added CONFIG_SPL_ENV_SUPPORT and CONFIG_SPL_EXT_SUPPORT
- Bring back bus and filesystem commands previously dropped
- Update commit message

So, this fails for me:
https://travis-ci.org/trini/u-boot/jobs/321879321

There's two possible reasons. One, gcc 7.2.0 is doing a better job of optimizing things down and it still fits in SRAM. Or two, I noticed when test building this at first that CONFIG_SPL_EXT_SUPPORT was both enabled then disabled in the defconfig, and the disable won. Given the commit message about enabling it specifically I also dropped the disable line from the defconfig. Perhaps there's really not room for CONFIG_SPL_EXT_SUPPORT ?

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20171227/5f97f9bc/attachment.sig>
#6 lore raw

PATCH 2/3 ARM: dts: omap3-evm: Enable DM and devicetree for TMDSEVM{3530, 3730}

Quoted 23 lines · Tom Rini
Quoted 10 lines · Derald D. Woods

This commit updates the configuration files needed to support OF_CONTROL on the OMAP3 EVM baseboard.

Additionally:
- CONFIG_SYS_THUMB_BUILD is enabled
- CONFIG_SPL_ENV_SUPPORT is enabled
- CONFIG_SPL_EXT_SUPPORT is enabled

Tested using GCC 7.2.0 [--with-float=hard --with-mode=thumb].

Quoted 7 lines

---

v2:
- Added CONFIG_SPL_ENV_SUPPORT and CONFIG_SPL_EXT_SUPPORT
- Bring back bus and filesystem commands previously dropped
- Update commit message

So, this fails for me:
https://travis-ci.org/trini/u-boot/jobs/321879321

Quoted 8 lines

There's two possible reasons. One, gcc 7.2.0 is doing a better job of optimizing things down and it still fits in SRAM. Or two, I noticed when test building this at first that CONFIG_SPL_EXT_SUPPORT was both enabled then disabled in the defconfig, and the disable won. Given the commit message about enabling it specifically I also dropped the disable line from the defconfig. Perhaps there's really not room for CONFIG_SPL_EXT_SUPPORT ?

Okay. I will revert the CONFIG_SPL_EXT_SUPPORT so that the 'CI' build works for the board. A 'V3' will be posted shortly.

Derald

#7 lore raw

PATCH v3 2/3 ARM: dts: omap3-evm: Enable DM and devicetree for TMDSEVM{3530, 3730}

In reply to Derald D. Woods

This commit updates the configuration files needed to support OF_CONTROL on the OMAP3 EVM baseboard.

Additionally:
- CONFIG_SYS_THUMB_BUILD is enabled
- CONFIG_SPL_ENV_SUPPORT is enabled
- CONFIG_SPL_EXT_SUPPORT is enabled

Tested using GCC 7.2.0 [--with-float=hard --with-mode=thumb].

--
v3:
- Remove CONFIG_SPL_EXT_SUPPORT from default config

v2:
- Added CONFIG_SPL_ENV_SUPPORT and CONFIG_SPL_EXT_SUPPORT
- Bring back bus and filesystem commands previously dropped
- Update commit message

---
 arch/arm/mach-omap2/omap3/Kconfig | 4 ++++
 configs/omap3_evm_defconfig       | 5 ++++-
 include/configs/omap3_evm.h       | 6 ------
 3 files changed, 8 insertions(+), 7 deletions(-)
arch/arm/mach-omap2/omap3/Kconfig +4 -0
index 4dbf9a27da..6d714f6cdb 100644
@@ -61,6 +61,10 @@ config TARGET_DEVKIT8000
 
 config TARGET_OMAP3_EVM
 	bool "TI OMAP3 EVM"
+	select DM
+	select DM_SERIAL
+	select DM_GPIO
+	select OMAP3_GPIO_3
 
 config TARGET_OMAP3_IGEP00X0
 	bool "IGEP"
configs/omap3_evm_defconfig +4 -1
index 5103e9fd8d..d2b8d42175 100644
@@ -1,16 +1,18 @@
 CONFIG_ARM=y
-# CONFIG_SYS_THUMB_BUILD is not set
 CONFIG_ARCH_OMAP2PLUS=y
 CONFIG_SYS_TEXT_BASE=0x80100000
+CONFIG_TI_COMMON_CMD_OPTIONS=y
 CONFIG_SYS_MALLOC_F_LEN=0x2000
 CONFIG_SYS_MPUCLK=720
 CONFIG_TARGET_OMAP3_EVM=y
+CONFIG_DEFAULT_DEVICE_TREE="omap3-evm"
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_BOOTDELAY=3
 CONFIG_SYS_CONSOLE_INFO_QUIET=y
 CONFIG_DEFAULT_FDT_FILE="omap3-evm.dtb"
 CONFIG_VERSION_VARIABLE=y
 CONFIG_SPL=y
+CONFIG_SPL_ENV_SUPPORT=y
 CONFIG_SPL_SYS_MALLOC_SIMPLE=y
 # CONFIG_SPL_EXT_SUPPORT is not set
 CONFIG_SPL_MTD_SUPPORT=y
@@ -35,6 +37,7 @@ CONFIG_CMD_UBI=y
 # CONFIG_ISO_PARTITION is not set
 # CONFIG_EFI_PARTITION is not set
 CONFIG_SPL_PARTITION_UUIDS=y
+CONFIG_OF_CONTROL=y
 CONFIG_ENV_IS_IN_NAND=y
 CONFIG_DM=y
 CONFIG_SPL_DM=y
include/configs/omap3_evm.h +0 -6
index 42f2153637..629d60b961 100644
@@ -42,8 +42,6 @@
 #define CONFIG_SYS_NS16550_COM1         OMAP34XX_UART1
 #if defined(CONFIG_SPL_BUILD)
 #undef CONFIG_SYS_NS16550_REG_SIZE
-#else /* !CONFIG_SPL_BUILD  */
-#define CONFIG_SYS_NS16550_REG_SIZE     (-1)
 #endif /* CONFIG_SPL_BUILD */
 
 /* NAND */
@@ -86,8 +84,6 @@
 /* Environment */
 #define CONFIG_PREBOOT                  "usb start"
 
-#if !defined(CONFIG_SPL_BUILD)
-
 #include <config_distro_defaults.h>
 
 #define MEM_LAYOUT_ENV_SETTINGS \
@@ -181,6 +177,4 @@
 		"bootm ${loadaddr} - ${fdtaddr}\0" \
 	BOOTENV
 
-#endif /* !CONFIG_SPL_BUILD */
-
 #endif /* __CONFIG_H */
Signature · 1 line
2.15.1
#8 lore raw

PATCH v4 2/3 ARM: dts: omap3-evm: Enable DM and devicetree for TMDSEVM{3530, 3730}

This commit updates the configuration files needed to support OF_CONTROL on the OMAP3 EVM baseboard.

Additionally:
- CONFIG_SYS_THUMB_BUILD is enabled
- CONFIG_SPL_ENV_SUPPORT is enabled

Tested using GCC 7.2.0 [--with-float=hard --with-mode=thumb].

--
v4:
- Fix commit message

v3:
- Remove CONFIG_SPL_EXT_SUPPORT from default config

v2:
- Added CONFIG_SPL_ENV_SUPPORT and CONFIG_SPL_EXT_SUPPORT
- Bring back bus and filesystem commands previously dropped
- Update commit message

---
 arch/arm/mach-omap2/omap3/Kconfig | 4 ++++
 configs/omap3_evm_defconfig       | 5 ++++-
 include/configs/omap3_evm.h       | 6 ------
 3 files changed, 8 insertions(+), 7 deletions(-)
arch/arm/mach-omap2/omap3/Kconfig +4 -0
index 4dbf9a27da..6d714f6cdb 100644
@@ -61,6 +61,10 @@ config TARGET_DEVKIT8000
 
 config TARGET_OMAP3_EVM
 	bool "TI OMAP3 EVM"
+	select DM
+	select DM_SERIAL
+	select DM_GPIO
+	select OMAP3_GPIO_3
 
 config TARGET_OMAP3_IGEP00X0
 	bool "IGEP"
configs/omap3_evm_defconfig +4 -1
index 5103e9fd8d..d2b8d42175 100644
@@ -1,16 +1,18 @@
 CONFIG_ARM=y
-# CONFIG_SYS_THUMB_BUILD is not set
 CONFIG_ARCH_OMAP2PLUS=y
 CONFIG_SYS_TEXT_BASE=0x80100000
+CONFIG_TI_COMMON_CMD_OPTIONS=y
 CONFIG_SYS_MALLOC_F_LEN=0x2000
 CONFIG_SYS_MPUCLK=720
 CONFIG_TARGET_OMAP3_EVM=y
+CONFIG_DEFAULT_DEVICE_TREE="omap3-evm"
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_BOOTDELAY=3
 CONFIG_SYS_CONSOLE_INFO_QUIET=y
 CONFIG_DEFAULT_FDT_FILE="omap3-evm.dtb"
 CONFIG_VERSION_VARIABLE=y
 CONFIG_SPL=y
+CONFIG_SPL_ENV_SUPPORT=y
 CONFIG_SPL_SYS_MALLOC_SIMPLE=y
 # CONFIG_SPL_EXT_SUPPORT is not set
 CONFIG_SPL_MTD_SUPPORT=y
@@ -35,6 +37,7 @@ CONFIG_CMD_UBI=y
 # CONFIG_ISO_PARTITION is not set
 # CONFIG_EFI_PARTITION is not set
 CONFIG_SPL_PARTITION_UUIDS=y
+CONFIG_OF_CONTROL=y
 CONFIG_ENV_IS_IN_NAND=y
 CONFIG_DM=y
 CONFIG_SPL_DM=y
include/configs/omap3_evm.h +0 -6
index 42f2153637..629d60b961 100644
@@ -42,8 +42,6 @@
 #define CONFIG_SYS_NS16550_COM1         OMAP34XX_UART1
 #if defined(CONFIG_SPL_BUILD)
 #undef CONFIG_SYS_NS16550_REG_SIZE
-#else /* !CONFIG_SPL_BUILD  */
-#define CONFIG_SYS_NS16550_REG_SIZE     (-1)
 #endif /* CONFIG_SPL_BUILD */
 
 /* NAND */
@@ -86,8 +84,6 @@
 /* Environment */
 #define CONFIG_PREBOOT                  "usb start"
 
-#if !defined(CONFIG_SPL_BUILD)
-
 #include <config_distro_defaults.h>
 
 #define MEM_LAYOUT_ENV_SETTINGS \
@@ -181,6 +177,4 @@
 		"bootm ${loadaddr} - ${fdtaddr}\0" \
 	BOOTENV
 
-#endif /* !CONFIG_SPL_BUILD */
-
 #endif /* __CONFIG_H */
Signature · 1 line
2.15.1
#2 lore raw

PATCH 1/3 ARM: dts: omap3-evm: Add support for TMDSEVM{3530, 3730}

In reply to Derald D. Woods
Quoted 4 lines · Derald D. Woods

This commit adds OMAP3 EVM devicetree files from Linux v4.15-rc3. Note that this is the first addition of OMAP34XX devicetree files.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180101/001d6425/attachment.sig>
#11 lore raw

PATCH 3/3 ARM: omap3: evm: Refactor 'board_eth_init'

In reply to Derald D. Woods
Quoted 4 lines · Derald D. Woods

This commit clears 'ethaddr' before calling 'smc911x_initialize' to allow the SROM MAC address to be assigned properly.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180101/f786eba4/attachment.sig>
#9 lore raw

PATCH v4 2/3 ARM: dts: omap3-evm: Enable DM and devicetree for TMDSEVM{3530, 3730}

In reply to Derald D. Woods
Quoted 10 lines · Derald D. Woods

This commit updates the configuration files needed to support OF_CONTROL on the OMAP3 EVM baseboard.

Additionally:
- CONFIG_SYS_THUMB_BUILD is enabled
- CONFIG_SPL_ENV_SUPPORT is enabled

Tested using GCC 7.2.0 [--with-float=hard --with-mode=thumb].

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180101/05e7d224/attachment.sig>