Skip to contentSkip to conversation

Enable DT Overlays on common boards with expansion options

U-Boot New Peter Robinson 3 participants 15 messages Jun 26, 2017 – Jul 7, 2017

lore
Share & tools
lore
#1 lore raw

PATCH 1/4 Raspberry Pi: add device tree overlay support

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.

---
 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(+)
configs/rpi_2_defconfig +2 -0
index f8b3ed49a9..be3e5e7e7d 100644
@@ -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
configs/rpi_3_32b_defconfig +2 -0
index 490af818b6..f0c9f49799 100644
@@ -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
configs/rpi_3_defconfig +2 -0
index 4c0eb049b2..9709d53a0a 100644
@@ -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
configs/rpi_defconfig +2 -0
index 1b954fe2b7..4aa2d3eaf7 100644
@@ -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
Signature · 1 line
2.13.0
#4 lore raw

PATCH 2/4 am335x: beagle/evm: add device tree overlay support

In reply to Peter Robinson

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.

---
 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(+)
configs/am335x_boneblack_defconfig +1 -0
index 7bfdfa8341..3d86c1b34e 100644
@@ -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
configs/am335x_evm_defconfig +2 -0
index ff1e43f226..3fe845c934 100644
@@ -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
configs/am335x_evm_nor_defconfig +1 -0
index 6ff0aca978..d038eb30a1 100644
@@ -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
configs/am335x_evm_norboot_defconfig +1 -0
index 49f75b26e0..2f9662797e 100644
@@ -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
configs/am335x_evm_spiboot_defconfig +1 -0
index 64b44ff8fd..40c165d2f5 100644
@@ -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
configs/am335x_evm_usbspl_defconfig +1 -0
index a578322e1a..ffd730eeb8 100644
@@ -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
Signature · 1 line
2.13.0
#6 lore raw

PATCH 3/4 96boards: dragonboard/hikey: add device tree overlay support

In reply to Peter Robinson

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.

---
 configs/dragonboard410c_defconfig | 2 ++
 configs/hikey_defconfig           | 2 ++
 2 files changed, 4 insertions(+)
configs/dragonboard410c_defconfig +2 -0
index 90c145aa15..79ac7dd423 100644
@@ -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
configs/hikey_defconfig +2 -0
index 5981d2f530..1773a70c80 100644
@@ -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
Signature · 1 line
2.13.0
#8 lore raw

PATCH 4/4 CHIP: add device tree overlay support

In reply to Peter Robinson

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.

---
 configs/CHIP_defconfig     | 2 ++
 configs/CHIP_pro_defconfig | 2 ++
 2 files changed, 4 insertions(+)
configs/CHIP_defconfig +2 -0
index 9b9e0b7e62..6b07eab21e 100644
@@ -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
configs/CHIP_pro_defconfig +2 -0
index 52572bd055..2c73c35c5c 100644
@@ -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
Signature · 1 line
2.13.0
#10 lore raw

PATCH 1/1 configs: Odroid C2: enable device tree overlays

In reply to Peter Robinson

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.

---
 configs/odroid-c2_defconfig | 2 ++
 1 file changed, 2 insertions(+)
configs/odroid-c2_defconfig +2 -0
index 547cd52ec2..a997b0ac64 100644
@@ -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
Signature · 1 line
2.11.0
#2 lore raw

PATCH 1/4 Raspberry Pi: add device tree overlay support

In reply to Peter Robinson
Quoted 17 lines · Peter Robinson

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.

---
 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(+)
configs/rpi_2_defconfig +0 -0
index f8b3ed49a9..be3e5e7e7d 100644

configs/rpi_2_defconfig CONFIG_DM_VIDEO=y · line 28

Quoted 4 lines
configs/rpi_2_defconfig +1 -0
@@ -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.

configs/rpi_3_32b_defconfig CONFIG_DM_VIDEO=y · line 30

Quoted 10 lines
configs/rpi_2_defconfig +1 -0
+CONFIG_OF_LIBFDT_OVERLAY=y
configs/rpi_3_32b_defconfig +1 -0
index 490af818b6..f0c9f49799 100644
@@ -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

configs/rpi_3_defconfig CONFIG_DM_VIDEO=y · line 30

Quoted 10 lines
configs/rpi_3_32b_defconfig +1 -0
+CONFIG_OF_LIBFDT_OVERLAY=y
configs/rpi_3_defconfig +1 -0
index 4c0eb049b2..9709d53a0a 100644
@@ -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

configs/rpi_defconfig CONFIG_DM_VIDEO=y · line 28

Quoted 10 lines
configs/rpi_3_defconfig +1 -0
+CONFIG_OF_LIBFDT_OVERLAY=y
configs/rpi_defconfig +1 -0
index 1b954fe2b7..4aa2d3eaf7 100644
@@ -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

configs/rpi_defconfig CONFIG_DM_VIDEO=y · line 29

Quoted 2 lines
configs/rpi_defconfig +1 -0
+CONFIG_OF_LIBFDT_OVERLAY=y

Regards

Heinrich Schuchardt

#11 lore raw

PATCH v2 1/1 configs: Odroid C2: enable device tree overlays

In reply to Heinrich Schuchardt

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.

---
v2:
remove unnecessary CONFIG_OF_LIBFDT=y

---
 configs/odroid-c2_defconfig | 1 +
 1 file changed, 1 insertion(+)
configs/odroid-c2_defconfig +1 -0
index 547cd52ec2..35314142a0 100644
@@ -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
Signature · 1 line
2.11.0
#12 lore raw

PATCH v2 1/1 configs: Odroid C2: enable device tree overlays

Quoted 5 lines · Heinrich Schuchardt

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.

I'm going to re-sync all defconfigs with -rc3, so this isn't necessary, 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/20170629/96fb6d92/attachment.sig>
#13 lore raw

PATCH v2 1/1 configs: Odroid C2: enable device tree overlays

Quoted 10 lines · Tom Rini
Quoted 5 lines · Heinrich Schuchardt

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.

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!

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/20170629/85e99f48/attachment.sig>
#3 lore raw

PATCH 1/4 Raspberry Pi: add device tree overlay support

In reply to Peter Robinson
Quoted 5 lines · Peter Robinson

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.

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/20170707/1f607f6c/attachment.sig>
#5 lore raw

PATCH 2/4 am335x: beagle/evm: add device tree overlay support

In reply to Peter Robinson
Quoted 5 lines · Peter Robinson

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.

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/20170707/7aea98d9/attachment.sig>
#7 lore raw

PATCH 3/4 96boards: dragonboard/hikey: add device tree overlay support

In reply to Peter Robinson
Quoted 5 lines · Peter Robinson

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.

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/20170707/547b7b70/attachment.sig>
#9 lore raw

PATCH 4/4 CHIP: add device tree overlay support

In reply to Peter Robinson
Quoted 4 lines · Peter Robinson

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.

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/20170707/ffb78cd2/attachment.sig>
#14 lore raw

PATCH v2 1/1 configs: Odroid C2: enable device tree overlays

In reply to Heinrich Schuchardt
Quoted 5 lines · xypron.glpk at gmx.de

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.

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/20170707/6d8c3aae/attachment.sig>