Skip to contentSkip to conversation

device model bringup of AM335x bbw and sk-evm

PATCH New Mugunthan V N 2 participants 5 messages Feb 29, 2016 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

cover device model bringup of AM335x bbw and sk-evm

This patch series enables Driver Model and Device tree usage for AM335x Beagle Bone White and AM335x EVMsk tested it on same with loading file from MMC and over TFTP. (Loga [1]). Also pushed a branch [2] for reference.

[1]: http://pastebin.ubuntu.com/15243394/
[2]: git://git.ti.com/~mugunthanvnm/ti-u-boot/mugunth-ti-u-boot.git am335x-dm

Mugunthan V N (3):
include: configs: am335x_evm: add FAT_ENV configs when env is in fat
am335x-bbw: Add am335x_bone_defconfig using CONFIG_DM
am437x-sk: add am335x_gp_evm_defconfig using CONFIG_DM

 arch/arm/dts/Makefile           |   5 +-
 arch/arm/dts/am335x-evmsk.dts   | 720 ++++++++++++++++++++++++++++++++++++++++
 configs/am335x_bone_defconfig   |  27 ++
 configs/am335x_sk_evm_defconfig |  27 ++
 include/configs/am335x_evm.h    |   6 +
 5 files changed, 784 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm/dts/am335x-evmsk.dts
 create mode 100644 configs/am335x_bone_defconfig
 create mode 100644 configs/am335x_sk_evm_defconfig
Signature · 1 line
2.7.2.333.g70bd996
#1 lore raw

PATCH 1/3 include: configs: am335x_evm: add FAT_ENV configs when env is in fat

When CONFIG_ENV_IS_IN_FAT is defined, define FAT_ENV configurations for storing the environment setup.

---
 include/configs/am335x_evm.h | 6 ++++++
 1 file changed, 6 insertions(+)
include/configs/am335x_evm.h +6 -0
index 6ebe0b3..5cc6b73 100644
@@ -39,6 +39,12 @@
 /* Custom script for NOR */
 #define CONFIG_SYS_LDSCRIPT		"board/ti/am335x/u-boot.lds"
 
+#ifdef CONFIG_ENV_IS_IN_FAT
+#define FAT_ENV_INTERFACE		"mmc"
+#define FAT_ENV_DEVICE_AND_PART		"0:1"
+#define FAT_ENV_FILE			"uboot.env"
+#endif
+
 /* Always 128 KiB env size */
 #define CONFIG_ENV_SIZE			(128 << 10)
 
Signature · 1 line
2.7.2.333.g70bd996
#2 lore raw

PATCH 2/3 am335x-bbw: Add am335x_bone_defconfig using CONFIG_DM

In reply to Mugunthan V N

Add config file for AM335x Beagle Bone White and enable DM, DM_GPIO, DM_SERIAL, DM_ETH and DM_MMC.

---
 arch/arm/dts/Makefile         |  4 +++-
 configs/am335x_bone_defconfig | 27 +++++++++++++++++++++++++++
 2 files changed, 30 insertions(+), 1 deletion(-)
 create mode 100644 configs/am335x_bone_defconfig
arch/arm/dts/Makefile +3 -1
index 578038b..a0a3e2e 100644
@@ -79,7 +79,9 @@ dtb-$(CONFIG_ARCH_ZYNQ) += zynq-zc702.dtb \
 	zynq-zc770-xm013.dtb
 dtb-$(CONFIG_ARCH_ZYNQMP) += \
 	zynqmp-ep108.dtb
-dtb-$(CONFIG_AM33XX) += am335x-boneblack.dtb am335x-evm.dtb
+dtb-$(CONFIG_AM33XX) += am335x-boneblack.dtb \
+	am335x-evm.dtb \
+	am335x-bone.dtb
 dtb-$(CONFIG_AM43XX) += am437x-gp-evm.dtb am437x-sk-evm.dtb
 dtb-$(CONFIG_THUNDERX) += thunderx-88xx.dtb
 
configs/am335x_bone_defconfig new file +27 -0
new file mode 100644
index 0000000..0223510
@@ -0,0 +1,27 @@
+CONFIG_ARM=y
+CONFIG_TARGET_AM335X_EVM=y
+CONFIG_SPL_STACK_R_ADDR=0x82000000
+CONFIG_DEFAULT_DEVICE_TREE="am335x-bone"
+CONFIG_SPL=y
+CONFIG_SPL_STACK_R=y
+CONFIG_FIT=y
+CONFIG_FIT_VERBOSE=y
+CONFIG_FIT_SIGNATURE=y
+CONFIG_SYS_EXTRA_OPTIONS="ENV_IS_IN_FAT"
+CONFIG_AUTOBOOT_KEYED=y
+CONFIG_AUTOBOOT_PROMPT="Press SPACE to abort autoboot in %d seconds\n"
+CONFIG_AUTOBOOT_DELAY_STR="d"
+CONFIG_AUTOBOOT_STOP_STR=" "
+# CONFIG_CMD_IMLS is not set
+# CONFIG_CMD_FLASH is not set
+CONFIG_CMD_GPIO=y
+# CONFIG_CMD_SETEXPR is not set
+CONFIG_OF_CONTROL=y
+CONFIG_DM_MMC=y
+CONFIG_DM_GPIO=y
+CONFIG_SPI_FLASH=y
+CONFIG_SPI_FLASH_WINBOND=y
+CONFIG_DM_ETH=y
+CONFIG_SYS_NS16550=y
+CONFIG_TIMER=y
+CONFIG_OMAP_TIMER=y
Signature · 1 line
2.7.2.333.g70bd996
#3 lore raw

PATCH 3/3 am437x-sk: add am335x_gp_evm_defconfig using CONFIG_DM

In reply to Mugunthan V N

Import DT file for am335x-sk-evm from Linux Kernel v4.4 Add config file for this board, enable DM, DM_GPIO, DM_SERIAL, DM_ETH and DM_MMC.

---
 arch/arm/dts/Makefile           |   1 +
 arch/arm/dts/am335x-evmsk.dts   | 720 ++++++++++++++++++++++++++++++++++++++++
 configs/am335x_sk_evm_defconfig |  27 ++
 3 files changed, 748 insertions(+)
 create mode 100644 arch/arm/dts/am335x-evmsk.dts
 create mode 100644 configs/am335x_sk_evm_defconfig
arch/arm/dts/Makefile +1 -0
index a0a3e2e..2542930 100644
@@ -81,6 +81,7 @@ dtb-$(CONFIG_ARCH_ZYNQMP) += \
 	zynqmp-ep108.dtb
 dtb-$(CONFIG_AM33XX) += am335x-boneblack.dtb \
 	am335x-evm.dtb \
+	am335x-evmsk.dtb \
 	am335x-bone.dtb
 dtb-$(CONFIG_AM43XX) += am437x-gp-evm.dtb am437x-sk-evm.dtb
 dtb-$(CONFIG_THUNDERX) += thunderx-88xx.dtb
arch/arm/dts/am335x-evmsk.dts new file +720 -0

720 lines not on this page · raw message

configs/am335x_sk_evm_defconfig new file +27 -0
new file mode 100644
index 0000000..222f66b
@@ -0,0 +1,27 @@
+CONFIG_ARM=y
+CONFIG_TARGET_AM335X_EVM=y
+CONFIG_SPL_STACK_R_ADDR=0x82000000
+CONFIG_DEFAULT_DEVICE_TREE="am335x-evmsk"
+CONFIG_SPL=y
+CONFIG_SPL_STACK_R=y
+CONFIG_FIT=y
+CONFIG_FIT_VERBOSE=y
+CONFIG_FIT_SIGNATURE=y
+CONFIG_SYS_EXTRA_OPTIONS="ENV_IS_IN_FAT"
+CONFIG_AUTOBOOT_KEYED=y
+CONFIG_AUTOBOOT_PROMPT="Press SPACE to abort autoboot in %d seconds\n"
+CONFIG_AUTOBOOT_DELAY_STR="d"
+CONFIG_AUTOBOOT_STOP_STR=" "
+# CONFIG_CMD_IMLS is not set
+# CONFIG_CMD_FLASH is not set
+CONFIG_CMD_GPIO=y
+# CONFIG_CMD_SETEXPR is not set
+CONFIG_OF_CONTROL=y
+CONFIG_DM_MMC=y
+CONFIG_DM_GPIO=y
+CONFIG_SPI_FLASH=y
+CONFIG_SPI_FLASH_WINBOND=y
+CONFIG_DM_ETH=y
+CONFIG_SYS_NS16550=y
+CONFIG_TIMER=y
+CONFIG_OMAP_TIMER=y
Signature · 1 line
2.7.2.333.g70bd996
#4 lore raw

cover device model bringup of AM335x bbw and sk-evm

In reply to Mugunthan V N
Quoted 7 lines · Mugunthan V N

This patch series enables Driver Model and Device tree usage for AM335x Beagle Bone White and AM335x EVMsk tested it on same with loading file from MMC and over TFTP. (Loga [1]). Also pushed a branch [2] for reference.

[1]: http://pastebin.ubuntu.com/15243394/
[2]: git://git.ti.com/~mugunthanvnm/ti-u-boot/mugunth-ti-u-boot.git am335x-dm

I really want to hold off on doing more am335x DM conversions until we pull in Simon's series that lets us do FIT images in SPL and thus we can have all of the am335x family at least (and maybe more, we'll have to see) supported in a single build again, like we can in the non-DM case.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160229/a0de80af/attachment.sig>