ARM: AM43xx: Enable FIT and EPOS, IDK support
Subsystems (4)
v2 cover ARM: AM43xx: Enable FIT and EPOS, IDK support
This series adds support for AM43x-EPOS, AM437x-IDK. Also enabled FIT support for all platforms.
Link to v1: https://www.mail-archive.com/u-boot%40lists.denx.de/msg212279.html
Lokesh Vutla (5):
board: AM43xx: fit: add support for selecting dtb dynamically
ARM: AM43xx: Enable FIT
ARM: dts: AM43x-EPOS Initial Support
ARM: dts: AM437x-IDK Initial Support
ARM: AM43xx: configs: Update usb host boot defconfig
arch/arm/dts/Makefile | 4 +- arch/arm/dts/am437x-idk-evm.dts | 420 +++++++++++ arch/arm/dts/am43x-epos-evm.dts | 806 ++++++++++++++++++++++ board/ti/am43xx/MAINTAINERS | 2 - board/ti/am43xx/board.c | 16 + configs/am437x_gp_evm_defconfig | 49 -- configs/am437x_sk_evm_defconfig | 53 -- configs/am43xx_evm_defconfig | 18 +- configs/am43xx_evm_usbhost_boot_defconfig | 15 +- include/dt-bindings/pinctrl/am43xx.h | 6 + include/dt-bindings/sound/tlv320aic31xx-micbias.h | 8 + 11 files changed, 1288 insertions(+), 109 deletions(-) create mode 100644 arch/arm/dts/am437x-idk-evm.dts create mode 100644 arch/arm/dts/am43x-epos-evm.dts delete mode 100644 configs/am437x_gp_evm_defconfig delete mode 100644 configs/am437x_sk_evm_defconfig create mode 100644 include/dt-bindings/sound/tlv320aic31xx-micbias.h
Signature · 1 line
2.8.2
PATCH v2 1/5 board: AM43xx: fit: add support for selecting dtb dynamically
FIT allows for a multiple dtb in a single image. SPL needs a way to detect the right dtb to be used. Adding support for the same.
---
Changes since v1:
- None
board/ti/am43xx/board.c | 12 ++++++++++++ 1 file changed, 12 insertions(+)
board/ti/am43xx/board.c +12 -0
@@ -846,3 +846,15 @@ int board_eth_init(bd_t *bis) return rv; }#endif + +#ifdef CONFIG_SPL_LOAD_FIT +int board_fit_config_name_match (const char *name) +{ +if (board_is_gpevm () && !strcmp (name,"am437x-gp-evm" )) +return 0 ; +else if (board_is_sk () && !strcmp (name,"am437x-sk-evm" )) +return 0 ; +else +return -1 ; +} +#endif
Signature · 1 line
2.8.2
PATCH v2 1/5 board: AM43xx: fit: add support for selecting dtb dynamically
Quoted 5 lines · Lokesh Vutla
FIT allows for a multiple dtb in a single image. SPL needs a way to detect the right dtb to be used. Adding support for the same.
Reviewed-by Tom Rini <[email protected]>Signed-off-by Lokesh Vutla <[email protected]>
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: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160530/917a7e35/attachment.sig>
PATCH v2 2/5 ARM: AM43xx: Enable FIT
In reply to Lokesh VutlaUse a single defconfig for all AM43xx platforms by enabling FIT and delete the platform specific defconfigs.
---
Changes since v1:
- Removed dra7xx_evm_nodt_defconfig
board/ti/am43xx/MAINTAINERS | 2 -- configs/am437x_gp_evm_defconfig | 49 ------------------------------------- configs/am437x_sk_evm_defconfig | 53 ----------------------------------------- configs/am43xx_evm_defconfig | 18 +++++++++++--- 4 files changed, 15 insertions(+), 107 deletions(-) delete mode 100644 configs/am437x_gp_evm_defconfig delete mode 100644 configs/am437x_sk_evm_defconfig
board/ti/am43xx/MAINTAINERS +0 -2
@@ -7,5 +7,3 @@ F: configs/am43xx_evm_defconfig F: configs/am43xx_evm_qspiboot_defconfig F: configs/am43xx_evm_ethboot_defconfig F: configs/am43xx_evm_usbhost_boot_defconfig -F: configs/am437x_gp_evm_defconfig -F: configs/am437x_sk_evm_defconfig
configs/am437x_gp_evm_defconfig deleted +0 -49
49 lines not on this page · raw message
configs/am437x_sk_evm_defconfig deleted +0 -53
53 lines not on this page · raw message
configs/am43xx_evm_defconfig +15 -3
@@ -1,7 +1,12 @@ CONFIG_ARM=y CONFIG_TARGET_AM43XX_EVM=y +CONFIG_DM_SERIAL=y +CONFIG_DM_GPIO=y +CONFIG_SPL_STACK_R_ADDR=0x82000000 +CONFIG_DEFAULT_DEVICE_TREE="am437x-gp-evm" CONFIG_SPL=y -CONFIG_SYS_EXTRA_OPTIONS="SERIAL1,CONS_INDEX=1,NAND" +CONFIG_SPL_STACK_R=y +CONFIG_SYS_EXTRA_OPTIONS="CONS_INDEX=1,NAND" CONFIG_HUSH_PARSER=y CONFIG_CMD_BOOTZ=y # CONFIG_CMD_IMLS is not set
@@ -23,11 +28,15 @@ CONFIG_CMD_EXT4=y CONFIG_CMD_EXT4_WRITE=y CONFIG_CMD_FAT=y CONFIG_CMD_FS_GENERIC=y +CONFIG_OF_CONTROL=y +CONFIG_DM=y +CONFIG_DM_MMC=y CONFIG_SPI_FLASH=y -CONFIG_SPI_FLASH_BAR=y CONFIG_SPI_FLASH_MACRONIX=y CONFIG_SYS_NS16550=y CONFIG_TI_QSPI=y +CONFIG_TIMER=y +CONFIG_OMAP_TIMER=y CONFIG_USB=y CONFIG_USB_DWC3=y CONFIG_USB_DWC3_GADGET=y
@@ -38,4 +47,7 @@ CONFIG_USB_GADGET_DOWNLOAD=y CONFIG_G_DNL_MANUFACTURER="Texas Instruments" CONFIG_G_DNL_VENDOR_NUM=0x0403 CONFIG_G_DNL_PRODUCT_NUM=0xbd00 -CONFIG_OF_LIBFDT=y +CONFIG_FIT=y +CONFIG_SPL_OF_LIBFDT=y +CONFIG_SPL_LOAD_FIT=y +CONFIG_OF_LIST="am437x-gp-evm am437x-sk-evm"
Signature · 1 line
2.8.2
PATCH v2 2/5 ARM: AM43xx: Enable FIT
Quoted 4 lines · Lokesh Vutla
Use a single defconfig for all AM43xx platforms by enabling FIT and delete the platform specific defconfigs.
Signed-off-by Lokesh Vutla <[email protected]>
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160516/efd5904d/attachment.sig>
PATCH v2 2/5 ARM: AM43xx: Enable FIT
In reply to Lokesh VutlaQuoted 5 lines · Lokesh Vutla
Use a single defconfig for all AM43xx platforms by enabling FIT and delete the platform specific defconfigs.
Signed-off-by Lokesh Vutla <[email protected]>Reviewed-by Tom Rini <[email protected]>
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: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160530/9aa36efe/attachment.sig>
PATCH v2 3/5 ARM: dts: AM43x-EPOS Initial Support
In reply to Lokesh VutlaAdd initial DTS support for AM43-EPOS evm.
---
Changes since v1:
- None
arch/arm/dts/Makefile | 3 +- arch/arm/dts/am43x-epos-evm.dts | 806 ++++++++++++++++++++++ board/ti/am43xx/board.c | 2 + configs/am43xx_evm_defconfig | 2 +- include/dt-bindings/pinctrl/am43xx.h | 6 + include/dt-bindings/sound/tlv320aic31xx-micbias.h | 8 + 6 files changed, 825 insertions(+), 2 deletions(-) create mode 100644 arch/arm/dts/am43x-epos-evm.dts create mode 100644 include/dt-bindings/sound/tlv320aic31xx-micbias.h
arch/arm/dts/Makefile +2 -1
@@ -90,7 +90,8 @@ dtb-$(CONFIG_ARCH_ZYNQMP) += \ zynqmp-zc1751-xm016-dc2.dtb \ zynqmp-zc1751-xm019-dc5.dtb dtb-$(CONFIG_AM33XX) += am335x-boneblack.dtb am335x-evm.dtb -dtb-$(CONFIG_AM43XX) += am437x-gp-evm.dtb am437x-sk-evm.dtb +dtb-$(CONFIG_AM43XX) += am437x-gp-evm.dtb am437x-sk-evm.dtb \ + am43x-epos-evm.dtb dtb-$(CONFIG_THUNDERX) += thunderx-88xx.dtb dtb-$(CONFIG_ARCH_SOCFPGA) += \
arch/arm/dts/am43x-epos-evm.dts new file +806 -0
806 lines not on this page · raw message
board/ti/am43xx/board.c +2 -0
@@ -854,6 +854,8 @@ int board_fit_config_name_match(const char *name)return 0 ; else if (board_is_sk() && !strcmp(name, "am437x-sk-evm"))return 0 ; + else if (board_is_eposevm() && !strcmp(name, "am43x-epos-evm")) +return 0 ; else return -1; }
configs/am43xx_evm_defconfig +1 -1
@@ -50,4 +50,4 @@ CONFIG_G_DNL_PRODUCT_NUM=0xbd00 CONFIG_FIT=y CONFIG_SPL_OF_LIBFDT=y CONFIG_SPL_LOAD_FIT=y -CONFIG_OF_LIST="am437x-gp-evm am437x-sk-evm" +CONFIG_OF_LIST="am437x-gp-evm am437x-sk-evm am43x-epos-evm"
include/dt-bindings/pinctrl/am43xx.h +6 -0
@@ -30,4 +30,10 @@#define PIN_INPUT_PULLUP (INPUT_EN | PULL_UP)#define PIN_INPUT_PULLDOWN (INPUT_EN) +/* +* Macro to allow using the absolute physical address instead of the +* padconf registers instead of the offset from padconf base. +*/ +#define AM4372_IOPAD (pa, val) (((pa) & 0xffff) - 0x0800) (val) +#endif
include/dt-bindings/sound/tlv320aic31xx-micbias.h new file +8 -0
@@ -0,0 +1,8 @@ +#ifndef __DT_TLV320AIC31XX_MICBIAS_H +#define __DT_TLV320AIC31XX_MICBIAS_H + +#define MICBIAS_2_0V 1 +#define MICBIAS_2_5V 2 +#define MICBIAS_AVDDV 3 + +#endif /* __DT_TLV320AIC31XX_MICBIAS_H */
Signature · 1 line
2.8.2
PATCH v2 3/5 ARM: dts: AM43x-EPOS Initial Support
Quoted 4 lines · Lokesh Vutla
Add initial DTS support for AM43-EPOS evm.
Reviewed-by Tom Rini <[email protected]>Signed-off-by Lokesh Vutla <[email protected]>
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: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160530/4da304a1/attachment.sig>
PATCH v2 4/5 ARM: dts: AM437x-IDK Initial Support
In reply to Lokesh VutlaAdd initial DTS support for AM437x-IDK evm.
---
Changes since v1:
- None
arch/arm/dts/Makefile | 3 +- arch/arm/dts/am437x-idk-evm.dts | 420 ++++++++++++++++++++++++++++++++++++++++ board/ti/am43xx/board.c | 2 + configs/am43xx_evm_defconfig | 2 +- 4 files changed, 425 insertions(+), 2 deletions(-) create mode 100644 arch/arm/dts/am437x-idk-evm.dts
arch/arm/dts/Makefile +2 -1
@@ -91,7 +91,8 @@ dtb-$(CONFIG_ARCH_ZYNQMP) += \ zynqmp-zc1751-xm019-dc5.dtb dtb-$(CONFIG_AM33XX) += am335x-boneblack.dtb am335x-evm.dtb dtb-$(CONFIG_AM43XX) += am437x-gp-evm.dtb am437x-sk-evm.dtb \ - am43x-epos-evm.dtb + am43x-epos-evm.dtb \ + am437x-idk-evm.dtb dtb-$(CONFIG_THUNDERX) += thunderx-88xx.dtb dtb-$(CONFIG_ARCH_SOCFPGA) += \
arch/arm/dts/am437x-idk-evm.dts new file +420 -0
420 lines not on this page · raw message
board/ti/am43xx/board.c +2 -0
@@ -856,6 +856,8 @@ int board_fit_config_name_match(const char *name)return 0 ; else if (board_is_eposevm() && !strcmp(name, "am43x-epos-evm"))return 0 ; + else if (board_is_idk() && !strcmp(name, "am437x-idk-evm")) +return 0 ; else return -1; }
configs/am43xx_evm_defconfig +1 -1
@@ -50,4 +50,4 @@ CONFIG_G_DNL_PRODUCT_NUM=0xbd00 CONFIG_FIT=y CONFIG_SPL_OF_LIBFDT=y CONFIG_SPL_LOAD_FIT=y -CONFIG_OF_LIST="am437x-gp-evm am437x-sk-evm am43x-epos-evm" +CONFIG_OF_LIST="am437x-gp-evm am437x-sk-evm am43x-epos-evm am437x-idk-evm"
Signature · 1 line
2.8.2
PATCH v2 4/5 ARM: dts: AM437x-IDK Initial Support
Quoted 4 lines · Lokesh Vutla
Add initial DTS support for AM437x-IDK evm.
Reviewed-by Tom Rini <[email protected]>Signed-off-by Lokesh Vutla <[email protected]>
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: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160530/f2e4579d/attachment.sig>
PATCH v2 5/5 ARM: AM43xx: configs: Update usb host boot defconfig
In reply to Lokesh VutlaConvert usb host boot defconfig to use DM, DT. Also enable FIT support.
---
Changes since v1:
- None
configs/am43xx_evm_usbhost_boot_defconfig | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-)
configs/am43xx_evm_usbhost_boot_defconfig +14 -1
@@ -1,6 +1,11 @@ CONFIG_ARM=y CONFIG_TARGET_AM43XX_EVM=y +CONFIG_DM_SERIAL=y +CONFIG_DM_GPIO=y +CONFIG_SPL_STACK_R_ADDR=0x82000000 +CONFIG_DEFAULT_DEVICE_TREE="am437x-gp-evm" CONFIG_SPL=y +CONFIG_SPL_STACK_R=y CONFIG_SYS_EXTRA_OPTIONS="SERIAL1,CONS_INDEX=1,NAND,SPL_USB_HOST_SUPPORT" CONFIG_HUSH_PARSER=y CONFIG_CMD_BOOTZ=y
@@ -23,10 +28,15 @@ CONFIG_CMD_EXT4=y CONFIG_CMD_EXT4_WRITE=y CONFIG_CMD_FAT=y CONFIG_CMD_FS_GENERIC=y +CONFIG_OF_CONTROL=y +CONFIG_DM=y +CONFIG_DM_MMC=y CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_MACRONIX=y CONFIG_SYS_NS16550=y CONFIG_TI_QSPI=y +CONFIG_TIMER=y +CONFIG_OMAP_TIMER=y CONFIG_USB=y CONFIG_USB_DWC3=y CONFIG_USB_DWC3_GADGET=y
@@ -37,4 +47,7 @@ CONFIG_USB_GADGET_DOWNLOAD=y CONFIG_G_DNL_MANUFACTURER="Texas Instruments" CONFIG_G_DNL_VENDOR_NUM=0x0403 CONFIG_G_DNL_PRODUCT_NUM=0xbd00 -CONFIG_OF_LIBFDT=y +CONFIG_FIT=y +CONFIG_SPL_OF_LIBFDT=y +CONFIG_SPL_LOAD_FIT=y +CONFIG_OF_LIST="am437x-gp-evm am437x-sk-evm am43x-epos-evm am437x-idk-evm"
Signature · 1 line
2.8.2
PATCH v2 5/5 ARM: AM43xx: configs: Update usb host boot defconfig
Quoted 5 lines · Lokesh Vutla
Convert usb host boot defconfig to use DM, DT. Also enable FIT support.
Reviewed-by Tom Rini <[email protected]>Signed-off-by Lokesh Vutla <[email protected]>
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: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160530/11bc0ec5/attachment.sig>