[U-Boot] Enable DT Overlays on common boards with expansion options

Enable Device Tree Overlays for a number of boards with widely available expanion options such as HATs/Capes/DIPs/mezzanine.
Signed-off-by: Peter Robinson pbrobinson@gmail.com

Raspberry Pi has numerous HAT and other HW expansion options such as screens and cameras some of which need overlays from the beginning so it makes sense to enable evice tree overlays.
Signed-off-by: Peter Robinson pbrobinson@gmail.com --- configs/rpi_2_defconfig | 2 ++ configs/rpi_3_32b_defconfig | 2 ++ configs/rpi_3_defconfig | 2 ++ configs/rpi_defconfig | 2 ++ 4 files changed, 8 insertions(+)
diff --git a/configs/rpi_2_defconfig b/configs/rpi_2_defconfig index f8b3ed49a9..be3e5e7e7d 100644 --- a/configs/rpi_2_defconfig +++ b/configs/rpi_2_defconfig @@ -25,3 +25,5 @@ CONFIG_DM_VIDEO=y CONFIG_SYS_WHITE_ON_BLACK=y CONFIG_CONSOLE_SCROLL_LINES=10 CONFIG_PHYS_TO_BUS=y +CONFIG_OF_LIBFDT=y +CONFIG_OF_LIBFDT_OVERLAY=y diff --git a/configs/rpi_3_32b_defconfig b/configs/rpi_3_32b_defconfig index 490af818b6..f0c9f49799 100644 --- a/configs/rpi_3_32b_defconfig +++ b/configs/rpi_3_32b_defconfig @@ -27,3 +27,5 @@ CONFIG_DM_VIDEO=y CONFIG_SYS_WHITE_ON_BLACK=y CONFIG_CONSOLE_SCROLL_LINES=10 CONFIG_PHYS_TO_BUS=y +CONFIG_OF_LIBFDT=y +CONFIG_OF_LIBFDT_OVERLAY=y diff --git a/configs/rpi_3_defconfig b/configs/rpi_3_defconfig index 4c0eb049b2..9709d53a0a 100644 --- a/configs/rpi_3_defconfig +++ b/configs/rpi_3_defconfig @@ -27,3 +27,5 @@ CONFIG_DM_VIDEO=y CONFIG_SYS_WHITE_ON_BLACK=y CONFIG_CONSOLE_SCROLL_LINES=10 CONFIG_PHYS_TO_BUS=y +CONFIG_OF_LIBFDT=y +CONFIG_OF_LIBFDT_OVERLAY=y diff --git a/configs/rpi_defconfig b/configs/rpi_defconfig index 1b954fe2b7..4aa2d3eaf7 100644 --- a/configs/rpi_defconfig +++ b/configs/rpi_defconfig @@ -25,3 +25,5 @@ CONFIG_DM_VIDEO=y CONFIG_SYS_WHITE_ON_BLACK=y CONFIG_CONSOLE_SCROLL_LINES=10 CONFIG_PHYS_TO_BUS=y +CONFIG_OF_LIBFDT=y +CONFIG_OF_LIBFDT_OVERLAY=y

On 06/26/2017 03:25 PM, Peter Robinson wrote:
Raspberry Pi has numerous HAT and other HW expansion options such as screens and cameras some of which need overlays from the beginning so it makes sense to enable evice tree overlays.
Signed-off-by: Peter Robinson pbrobinson@gmail.com
configs/rpi_2_defconfig | 2 ++ configs/rpi_3_32b_defconfig | 2 ++ configs/rpi_3_defconfig | 2 ++ configs/rpi_defconfig | 2 ++ 4 files changed, 8 insertions(+)
diff --git a/configs/rpi_2_defconfig b/configs/rpi_2_defconfig index f8b3ed49a9..be3e5e7e7d 100644 --- a/configs/rpi_2_defconfig +++ b/configs/rpi_2_defconfig @@ -25,3 +25,5 @@ CONFIG_DM_VIDEO=y CONFIG_SYS_WHITE_ON_BLACK=y CONFIG_CONSOLE_SCROLL_LINES=10 CONFIG_PHYS_TO_BUS=y +CONFIG_OF_LIBFDT=y
OF_LIBFDT=y is default for ARCH_BCM283X.
+CONFIG_OF_LIBFDT_OVERLAY=y diff --git a/configs/rpi_3_32b_defconfig b/configs/rpi_3_32b_defconfig index 490af818b6..f0c9f49799 100644 --- a/configs/rpi_3_32b_defconfig +++ b/configs/rpi_3_32b_defconfig @@ -27,3 +27,5 @@ CONFIG_DM_VIDEO=y CONFIG_SYS_WHITE_ON_BLACK=y CONFIG_CONSOLE_SCROLL_LINES=10 CONFIG_PHYS_TO_BUS=y +CONFIG_OF_LIBFDT=y
see above
+CONFIG_OF_LIBFDT_OVERLAY=y diff --git a/configs/rpi_3_defconfig b/configs/rpi_3_defconfig index 4c0eb049b2..9709d53a0a 100644 --- a/configs/rpi_3_defconfig +++ b/configs/rpi_3_defconfig @@ -27,3 +27,5 @@ CONFIG_DM_VIDEO=y CONFIG_SYS_WHITE_ON_BLACK=y CONFIG_CONSOLE_SCROLL_LINES=10 CONFIG_PHYS_TO_BUS=y +CONFIG_OF_LIBFDT=y
see above
+CONFIG_OF_LIBFDT_OVERLAY=y diff --git a/configs/rpi_defconfig b/configs/rpi_defconfig index 1b954fe2b7..4aa2d3eaf7 100644 --- a/configs/rpi_defconfig +++ b/configs/rpi_defconfig @@ -25,3 +25,5 @@ CONFIG_DM_VIDEO=y CONFIG_SYS_WHITE_ON_BLACK=y CONFIG_CONSOLE_SCROLL_LINES=10 CONFIG_PHYS_TO_BUS=y +CONFIG_OF_LIBFDT=y
see above
+CONFIG_OF_LIBFDT_OVERLAY=y
Regards
Heinrich Schuchardt

On Mon, Jun 26, 2017 at 02:25:03PM +0100, Peter Robinson wrote:
Raspberry Pi has numerous HAT and other HW expansion options such as screens and cameras some of which need overlays from the beginning so it makes sense to enable evice tree overlays.
Signed-off-by: Peter Robinson pbrobinson@gmail.com
Applied to u-boot/master, thanks!

TI am33xx devices such as the BeagleBone devices have numerous cape options such as screens some of which need overlays from the beginning so it makes sense to enable evice tree overlays.
Signed-off-by: Peter Robinson pbrobinson@gmail.com --- configs/am335x_boneblack_defconfig | 1 + configs/am335x_evm_defconfig | 2 ++ configs/am335x_evm_nor_defconfig | 1 + configs/am335x_evm_norboot_defconfig | 1 + configs/am335x_evm_spiboot_defconfig | 1 + configs/am335x_evm_usbspl_defconfig | 1 + 6 files changed, 7 insertions(+)
diff --git a/configs/am335x_boneblack_defconfig b/configs/am335x_boneblack_defconfig index 7bfdfa8341..3d86c1b34e 100644 --- a/configs/am335x_boneblack_defconfig +++ b/configs/am335x_boneblack_defconfig @@ -37,3 +37,4 @@ CONFIG_G_DNL_MANUFACTURER="Texas Instruments" CONFIG_G_DNL_VENDOR_NUM=0x0451 CONFIG_G_DNL_PRODUCT_NUM=0xd022 CONFIG_OF_LIBFDT=y +CONFIG_OF_LIBFDT_OVERLAY=y diff --git a/configs/am335x_evm_defconfig b/configs/am335x_evm_defconfig index ff1e43f226..3fe845c934 100644 --- a/configs/am335x_evm_defconfig +++ b/configs/am335x_evm_defconfig @@ -46,3 +46,5 @@ CONFIG_G_DNL_MANUFACTURER="Texas Instruments" CONFIG_G_DNL_VENDOR_NUM=0x0451 CONFIG_G_DNL_PRODUCT_NUM=0xd022 CONFIG_RSA=y +CONFIG_OF_LIBFDT=y +CONFIG_OF_LIBFDT_OVERLAY=y diff --git a/configs/am335x_evm_nor_defconfig b/configs/am335x_evm_nor_defconfig index 6ff0aca978..d038eb30a1 100644 --- a/configs/am335x_evm_nor_defconfig +++ b/configs/am335x_evm_nor_defconfig @@ -45,3 +45,4 @@ CONFIG_G_DNL_VENDOR_NUM=0x0451 CONFIG_G_DNL_PRODUCT_NUM=0xd022 CONFIG_FAT_WRITE=y CONFIG_OF_LIBFDT=y +CONFIG_OF_LIBFDT_OVERLAY=y diff --git a/configs/am335x_evm_norboot_defconfig b/configs/am335x_evm_norboot_defconfig index 49f75b26e0..2f9662797e 100644 --- a/configs/am335x_evm_norboot_defconfig +++ b/configs/am335x_evm_norboot_defconfig @@ -29,3 +29,4 @@ CONFIG_G_DNL_MANUFACTURER="Texas Instruments" CONFIG_G_DNL_VENDOR_NUM=0x0451 CONFIG_G_DNL_PRODUCT_NUM=0xd022 CONFIG_OF_LIBFDT=y +CONFIG_OF_LIBFDT_OVERLAY=y diff --git a/configs/am335x_evm_spiboot_defconfig b/configs/am335x_evm_spiboot_defconfig index 64b44ff8fd..40c165d2f5 100644 --- a/configs/am335x_evm_spiboot_defconfig +++ b/configs/am335x_evm_spiboot_defconfig @@ -34,3 +34,4 @@ CONFIG_G_DNL_MANUFACTURER="Texas Instruments" CONFIG_G_DNL_VENDOR_NUM=0x0451 CONFIG_G_DNL_PRODUCT_NUM=0xd022 CONFIG_OF_LIBFDT=y +CONFIG_OF_LIBFDT_OVERLAY=y diff --git a/configs/am335x_evm_usbspl_defconfig b/configs/am335x_evm_usbspl_defconfig index a578322e1a..ffd730eeb8 100644 --- a/configs/am335x_evm_usbspl_defconfig +++ b/configs/am335x_evm_usbspl_defconfig @@ -37,3 +37,4 @@ CONFIG_G_DNL_MANUFACTURER="Texas Instruments" CONFIG_G_DNL_VENDOR_NUM=0x0451 CONFIG_G_DNL_PRODUCT_NUM=0xd022 CONFIG_OF_LIBFDT=y +CONFIG_OF_LIBFDT_OVERLAY=y

On Mon, Jun 26, 2017 at 02:25:04PM +0100, Peter Robinson wrote:
TI am33xx devices such as the BeagleBone devices have numerous cape options such as screens some of which need overlays from the beginning so it makes sense to enable evice tree overlays.
Signed-off-by: Peter Robinson pbrobinson@gmail.com
Applied to u-boot/master, thanks!

96boards CE devices such as the DragonBoard and Hikey devices have numerous mezzanine options some of which need overlays from the beginning so it makes sense to enable device tree overlays.
Signed-off-by: Peter Robinson pbrobinson@gmail.com --- configs/dragonboard410c_defconfig | 2 ++ configs/hikey_defconfig | 2 ++ 2 files changed, 4 insertions(+)
diff --git a/configs/dragonboard410c_defconfig b/configs/dragonboard410c_defconfig index 90c145aa15..79ac7dd423 100644 --- a/configs/dragonboard410c_defconfig +++ b/configs/dragonboard410c_defconfig @@ -37,3 +37,5 @@ CONFIG_USB_EHCI_MSM=y CONFIG_USB_ULPI_VIEWPORT=y CONFIG_USB_ULPI=y CONFIG_USB_STORAGE=y +CONFIG_OF_LIBFDT=y +CONFIG_OF_LIBFDT_OVERLAY=y diff --git a/configs/hikey_defconfig b/configs/hikey_defconfig index 5981d2f530..1773a70c80 100644 --- a/configs/hikey_defconfig +++ b/configs/hikey_defconfig @@ -17,3 +17,5 @@ CONFIG_MMC_DW_K3=y CONFIG_USB=y CONFIG_USB_STORAGE=y CONFIG_FAT_WRITE=y +CONFIG_OF_LIBFDT=y +CONFIG_OF_LIBFDT_OVERLAY=y

On Mon, Jun 26, 2017 at 02:25:05PM +0100, Peter Robinson wrote:
96boards CE devices such as the DragonBoard and Hikey devices have numerous mezzanine options some of which need overlays from the beginning so it makes sense to enable device tree overlays.
Signed-off-by: Peter Robinson pbrobinson@gmail.com
Applied to u-boot/master, thanks!

CHIP and CHIP Pro devices have options of DIP addon boards some of which need overlays from the beginning so it makes sense to enable device tree overlays.
Signed-off-by: Peter Robinson pbrobinson@gmail.com --- configs/CHIP_defconfig | 2 ++ configs/CHIP_pro_defconfig | 2 ++ 2 files changed, 4 insertions(+)
diff --git a/configs/CHIP_defconfig b/configs/CHIP_defconfig index 9b9e0b7e62..6b07eab21e 100644 --- a/configs/CHIP_defconfig +++ b/configs/CHIP_defconfig @@ -24,3 +24,5 @@ CONFIG_USB_GADGET_DOWNLOAD=y CONFIG_G_DNL_MANUFACTURER="Allwinner Technology" CONFIG_G_DNL_VENDOR_NUM=0x1f3a CONFIG_G_DNL_PRODUCT_NUM=0x1010 +CONFIG_OF_LIBFDT=y +CONFIG_OF_LIBFDT_OVERLAY=y diff --git a/configs/CHIP_pro_defconfig b/configs/CHIP_pro_defconfig index 52572bd055..2c73c35c5c 100644 --- a/configs/CHIP_pro_defconfig +++ b/configs/CHIP_pro_defconfig @@ -30,3 +30,5 @@ CONFIG_USB_GADGET_DOWNLOAD=y CONFIG_G_DNL_MANUFACTURER="Allwinner Technology" CONFIG_G_DNL_VENDOR_NUM=0x1f3a CONFIG_G_DNL_PRODUCT_NUM=0x1010 +CONFIG_OF_LIBFDT=y +CONFIG_OF_LIBFDT_OVERLAY=y

On Mon, Jun 26, 2017 at 02:25:06PM +0100, Peter Robinson wrote:
CHIP and CHIP Pro devices have options of DIP addon boards some of which need overlays from the beginning so it makes sense to enable device tree overlays.
Signed-off-by: Peter Robinson pbrobinson@gmail.com
Applied to u-boot/master, thanks!

The Odroid C2 comes with several expansion options such as an RTC module. As these expansions are not considered in the Linux device tree they have to be enabled via device tree overlays.
Signed-off-by: Heinrich Schuchardt xypron.glpk@gmx.de --- configs/odroid-c2_defconfig | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/configs/odroid-c2_defconfig b/configs/odroid-c2_defconfig index 547cd52ec2..a997b0ac64 100644 --- a/configs/odroid-c2_defconfig +++ b/configs/odroid-c2_defconfig @@ -28,3 +28,5 @@ CONFIG_DEBUG_UART_CLOCK=24000000 CONFIG_DEBUG_UART_ANNOUNCE=y CONFIG_DEBUG_UART_SKIP_INIT=y CONFIG_MESON_SERIAL=y +CONFIG_OF_LIBFDT=y +CONFIG_OF_LIBFDT_OVERLAY=y

The Odroid C2 comes with several expansion options such as an RTC module. As these expansions are not considered in the Linux device tree they have to be enabled via device tree overlays.
Signed-off-by: Heinrich Schuchardt xypron.glpk@gmx.de --- v2: remove unnecessary CONFIG_OF_LIBFDT=y --- configs/odroid-c2_defconfig | 1 + 1 file changed, 1 insertion(+)
diff --git a/configs/odroid-c2_defconfig b/configs/odroid-c2_defconfig index 547cd52ec2..35314142a0 100644 --- a/configs/odroid-c2_defconfig +++ b/configs/odroid-c2_defconfig @@ -28,3 +28,4 @@ CONFIG_DEBUG_UART_CLOCK=24000000 CONFIG_DEBUG_UART_ANNOUNCE=y CONFIG_DEBUG_UART_SKIP_INIT=y CONFIG_MESON_SERIAL=y +CONFIG_OF_LIBFDT_OVERLAY=y

On Thu, Jun 29, 2017 at 09:29:55PM +0200, Heinrich Schuchardt wrote:
The Odroid C2 comes with several expansion options such as an RTC module. As these expansions are not considered in the Linux device tree they have to be enabled via device tree overlays.
Signed-off-by: Heinrich Schuchardt xypron.glpk@gmx.de
I'm going to re-sync all defconfigs with -rc3, so this isn't necessary, thanks!

On Thu, Jun 29, 2017 at 04:19:26PM -0400, Tom Rini wrote:
On Thu, Jun 29, 2017 at 09:29:55PM +0200, Heinrich Schuchardt wrote:
The Odroid C2 comes with several expansion options such as an RTC module. As these expansions are not considered in the Linux device tree they have to be enabled via device tree overlays.
Signed-off-by: Heinrich Schuchardt xypron.glpk@gmx.de
I'm going to re-sync all defconfigs with -rc3, so this isn't necessary, thanks!
Erp, derp, I mis-read the context, sorry, disregard my comment, thanks!

On Thu, Jun 29, 2017 at 09:29:55PM +0200, xypron.glpk@gmx.de wrote:
The Odroid C2 comes with several expansion options such as an RTC module. As these expansions are not considered in the Linux device tree they have to be enabled via device tree overlays.
Signed-off-by: Heinrich Schuchardt xypron.glpk@gmx.de
Applied to u-boot/master, thanks!
participants (3)
-
Heinrich Schuchardt
-
Peter Robinson
-
Tom Rini