device model bringup of AM335x bbw and sk-evm
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
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
@@ -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
PATCH 2/3 am335x-bbw: Add am335x_bone_defconfig using CONFIG_DM
In reply to Mugunthan V NAdd 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
@@ -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
@@ -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
PATCH 3/3 am437x-sk: add am335x_gp_evm_defconfig using CONFIG_DM
In reply to Mugunthan V NImport 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
@@ -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
@@ -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
cover device model bringup of AM335x bbw and sk-evm
In reply to Mugunthan V NQuoted 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.gitam335x-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>