bcm27xx: update 6.1 patches to latest version
[openwrt/staging/dangole.git] / target / linux / bcm27xx / patches-6.1 / 950-0850-overlays-Add-a-sample-hat_map.patch
1 From cc08810f89e52337a99cc6ae5f53f08588357c5f Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.com>
3 Date: Tue, 19 Sep 2023 20:31:34 +0100
4 Subject: [PATCH] overlays: Add a sample hat_map
5
6 The HAT map is way of associating named overlays with HATs whose
7 EEPROMs were programmed with the contents of the overlay.
8 Unfortunately, change in the DT and kernel drivers has meant that some
9 of these embedded overlays no longer function, or even don't apply.
10
11 The HAT map is a mapping from HAT UUIDs to overlay names. If a HAT with
12 a listed UUID is detected, the embedded overlay is ignored and the
13 overlay named in the mapping is loaded in its place.
14
15 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
16 ---
17 arch/arm/boot/dts/overlays/Makefile | 2 +-
18 arch/arm/boot/dts/overlays/hat_map.dts | 13 +++++++++++++
19 2 files changed, 14 insertions(+), 1 deletion(-)
20 create mode 100644 arch/arm/boot/dts/overlays/hat_map.dts
21
22 --- a/arch/arm/boot/dts/overlays/Makefile
23 +++ b/arch/arm/boot/dts/overlays/Makefile
24 @@ -1,6 +1,6 @@
25 # Overlays for the Raspberry Pi platform
26
27 -dtb-$(CONFIG_ARCH_BCM2835) += overlay_map.dtb
28 +dtb-$(CONFIG_ARCH_BCM2835) += overlay_map.dtb hat_map.dtb
29
30 dtbo-$(CONFIG_ARCH_BCM2835) += \
31 act-led.dtbo \
32 --- /dev/null
33 +++ b/arch/arm/boot/dts/overlays/hat_map.dts
34 @@ -0,0 +1,13 @@
35 +/dts-v1/;
36 +
37 +/ {
38 + iqaudio-pi-codecplus {
39 + uuid = [ dc1c9594 c1ab 4c6c acda a88dc59a3c5b ];
40 + overlay = "iqaudio-codec";
41 + };
42 +
43 + recalbox-rgbdual {
44 + uuid = [ 1c955808 681f 4bbc a2ef b7ea47cd388e ];
45 + overlay = "recalboxrgbdual";
46 + };
47 +};