Skip to content

Commit

Permalink
overlays: Add a sample hat_map
Browse files Browse the repository at this point in the history
The HAT map is way of associating named overlays with HATs whose
EEPROMs were programmed with the contents of the overlay.
Unfortunately, change in the DT and kernel drivers has meant that some
of these embedded overlays no longer function, or even don't apply.

The HAT map is a mapping from HAT UUIDs to overlay names. If a HAT with
a listed UUID is detected, the embedded overlay is ignored and the
overlay named in the mapping is loaded in its place.

Signed-off-by: Phil Elwell <[email protected]>
  • Loading branch information
pelwell committed Sep 27, 2023
1 parent 98070c2 commit 97d8f65
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/overlays/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Overlays for the Raspberry Pi platform

dtb-$(CONFIG_ARCH_BCM2835) += overlay_map.dtb
dtb-$(CONFIG_ARCH_BCM2835) += overlay_map.dtb hat_map.dtb

dtbo-$(CONFIG_ARCH_BCM2835) += \
act-led.dtbo \
Expand Down
13 changes: 13 additions & 0 deletions arch/arm/boot/dts/overlays/hat_map.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/dts-v1/;

/ {
iqaudio-pi-codecplus {
uuid = [ dc1c9594 c1ab 4c6c acda a88dc59a3c5b ];
overlay = "iqaudio-codec";
};

recalbox-rgbdual {
uuid = [ 1c955808 681f 4bbc a2ef b7ea47cd388e ];
overlay = "recalboxrgbdual";
};
};

0 comments on commit 97d8f65

Please sign in to comment.