From d284a1dee7efa7fe8cb0d62318e860efe476893c Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Wed, 27 Apr 2022 22:51:55 +0200 Subject: [PATCH] Small Yellow improvements (#1875) * Enable additional LED triggers * Improve Yellow device tree Fix soundcard name and use BTN_1 as key code. * Add input-event-daemon configuration Add minimal input-event-daemon configuration to avoid the default configuration taking effect. This minimal configuration triggers the USB configuration import on button press. --- .../board/raspberrypi/kernel.config | 4 +++ ...Add-device-tree-for-Home-Assistant-Y.patch | 6 ++-- ...yellow-Mux-UART4-for-SiLabs-radio-mo.patch | 10 +++--- ...M-dts-bcm2711-yellow-Mux-debug-UART5.patch | 10 +++--- ...cm2711-yellow-Enable-I2C6-by-default.patch | 10 +++--- ...s-bcm2711-yellow-add-I2S-audio-codec.patch | 16 ++++----- ...-dts-bcm2711-yellow-enable-GPIO-keys.patch | 20 +++++------ ...-ARM-dts-bcm2711-yellow-add-user-LED.patch | 14 ++++---- ...bcm2711-yellow-add-NXP-PCF85063A-RTC.patch | 14 ++++---- ...yellow-enable-USB-host-mode-by-defau.patch | 14 ++++---- ...yellow-use-generic-activity-trigger-.patch | 33 +++++++++++++++++++ .../etc/input-event-daemon.conf | 10 ++++++ 12 files changed, 104 insertions(+), 57 deletions(-) create mode 100644 buildroot-external/board/raspberrypi/yellow/patches/linux/0010-ARM-dts-bcm2711-yellow-use-generic-activity-trigger-.patch create mode 100644 buildroot-external/rootfs-overlay/etc/input-event-daemon.conf diff --git a/buildroot-external/board/raspberrypi/kernel.config b/buildroot-external/board/raspberrypi/kernel.config index 2f7e1795d..bcc47a26b 100644 --- a/buildroot-external/board/raspberrypi/kernel.config +++ b/buildroot-external/board/raspberrypi/kernel.config @@ -4,3 +4,7 @@ CONFIG_NVME_CORE=y CONFIG_BLK_DEV_NVME=y + +CONFIG_LEDS_TRIGGERS=y +CONFIG_LEDS_TRIGGER_DISK=y +CONFIG_LEDS_TRIGGER_ACTIVITY=y diff --git a/buildroot-external/board/raspberrypi/yellow/patches/linux/0001-ARM-dts-bcm2711-Add-device-tree-for-Home-Assistant-Y.patch b/buildroot-external/board/raspberrypi/yellow/patches/linux/0001-ARM-dts-bcm2711-Add-device-tree-for-Home-Assistant-Y.patch index bef858632..5a7cd9c14 100644 --- a/buildroot-external/board/raspberrypi/yellow/patches/linux/0001-ARM-dts-bcm2711-Add-device-tree-for-Home-Assistant-Y.patch +++ b/buildroot-external/board/raspberrypi/yellow/patches/linux/0001-ARM-dts-bcm2711-Add-device-tree-for-Home-Assistant-Y.patch @@ -1,8 +1,8 @@ From 2d3d8c091bc692999a1c519c1dc1570cc8be2358 Mon Sep 17 00:00:00 2001 -Message-Id: <2d3d8c091bc692999a1c519c1dc1570cc8be2358.1649681596.git.stefan@agner.ch> +Message-Id: <2d3d8c091bc692999a1c519c1dc1570cc8be2358.1651085802.git.stefan@agner.ch> From: Stefan Agner Date: Mon, 11 Apr 2022 14:47:59 +0200 -Subject: [PATCH 1/9] ARM: dts: bcm2711: Add device tree for Home Assistant +Subject: [PATCH 01/10] ARM: dts: bcm2711: Add device tree for Home Assistant Yellow Add device tree for Home Assistant Yellow, a Compute Module 4 based I/O @@ -656,5 +656,5 @@ index 000000000000..fdc5ec5bc956 @@ -0,0 +1 @@ +#include "../../../../arm/boot/dts/bcm2711-rpi-cm4-ha-yellow.dts" -- -2.35.1 +2.36.0 diff --git a/buildroot-external/board/raspberrypi/yellow/patches/linux/0002-ARM-dts-bcm2711-yellow-Mux-UART4-for-SiLabs-radio-mo.patch b/buildroot-external/board/raspberrypi/yellow/patches/linux/0002-ARM-dts-bcm2711-yellow-Mux-UART4-for-SiLabs-radio-mo.patch index e02b34680..00ee9d96a 100644 --- a/buildroot-external/board/raspberrypi/yellow/patches/linux/0002-ARM-dts-bcm2711-yellow-Mux-UART4-for-SiLabs-radio-mo.patch +++ b/buildroot-external/board/raspberrypi/yellow/patches/linux/0002-ARM-dts-bcm2711-yellow-Mux-UART4-for-SiLabs-radio-mo.patch @@ -1,10 +1,10 @@ From a4a63bb6f6789c00762b92f0469d10bac525d1f9 Mon Sep 17 00:00:00 2001 -Message-Id: -In-Reply-To: <2d3d8c091bc692999a1c519c1dc1570cc8be2358.1649681596.git.stefan@agner.ch> -References: <2d3d8c091bc692999a1c519c1dc1570cc8be2358.1649681596.git.stefan@agner.ch> +Message-Id: +In-Reply-To: <2d3d8c091bc692999a1c519c1dc1570cc8be2358.1651085802.git.stefan@agner.ch> +References: <2d3d8c091bc692999a1c519c1dc1570cc8be2358.1651085802.git.stefan@agner.ch> From: Stefan Agner Date: Thu, 4 Mar 2021 14:33:09 +0100 -Subject: [PATCH 2/9] ARM: dts: bcm2711: yellow: Mux UART4 for SiLabs radio +Subject: [PATCH 02/10] ARM: dts: bcm2711: yellow: Mux UART4 for SiLabs radio module Enable UART4 by default and mux pins including hardware flow control. @@ -57,5 +57,5 @@ index 61d8c81d3de4..8db71876a78c 100644 uart5_pins: uart5_pins { -- -2.35.1 +2.36.0 diff --git a/buildroot-external/board/raspberrypi/yellow/patches/linux/0003-ARM-dts-bcm2711-yellow-Mux-debug-UART5.patch b/buildroot-external/board/raspberrypi/yellow/patches/linux/0003-ARM-dts-bcm2711-yellow-Mux-debug-UART5.patch index 5e0efd638..3328d4f82 100644 --- a/buildroot-external/board/raspberrypi/yellow/patches/linux/0003-ARM-dts-bcm2711-yellow-Mux-debug-UART5.patch +++ b/buildroot-external/board/raspberrypi/yellow/patches/linux/0003-ARM-dts-bcm2711-yellow-Mux-debug-UART5.patch @@ -1,10 +1,10 @@ From c0ddd45166d5aa922045da915202540db3ef2dc2 Mon Sep 17 00:00:00 2001 -Message-Id: -In-Reply-To: <2d3d8c091bc692999a1c519c1dc1570cc8be2358.1649681596.git.stefan@agner.ch> -References: <2d3d8c091bc692999a1c519c1dc1570cc8be2358.1649681596.git.stefan@agner.ch> +Message-Id: +In-Reply-To: <2d3d8c091bc692999a1c519c1dc1570cc8be2358.1651085802.git.stefan@agner.ch> +References: <2d3d8c091bc692999a1c519c1dc1570cc8be2358.1651085802.git.stefan@agner.ch> From: Stefan Agner Date: Thu, 4 Mar 2021 14:44:23 +0100 -Subject: [PATCH 3/9] ARM: dts: bcm2711: yellow: Mux debug UART5 +Subject: [PATCH 03/10] ARM: dts: bcm2711: yellow: Mux debug UART5 Signed-off-by: Stefan Agner --- @@ -46,5 +46,5 @@ index 8db71876a78c..d1dea0a214a6 100644 aliases { -- -2.35.1 +2.36.0 diff --git a/buildroot-external/board/raspberrypi/yellow/patches/linux/0004-ARM-dts-bcm2711-yellow-Enable-I2C6-by-default.patch b/buildroot-external/board/raspberrypi/yellow/patches/linux/0004-ARM-dts-bcm2711-yellow-Enable-I2C6-by-default.patch index 09f91f01c..71a26e87b 100644 --- a/buildroot-external/board/raspberrypi/yellow/patches/linux/0004-ARM-dts-bcm2711-yellow-Enable-I2C6-by-default.patch +++ b/buildroot-external/board/raspberrypi/yellow/patches/linux/0004-ARM-dts-bcm2711-yellow-Enable-I2C6-by-default.patch @@ -1,10 +1,10 @@ From 606dcdc896ffc18001ad4983d45a2e23cacd040a Mon Sep 17 00:00:00 2001 -Message-Id: <606dcdc896ffc18001ad4983d45a2e23cacd040a.1649681596.git.stefan@agner.ch> -In-Reply-To: <2d3d8c091bc692999a1c519c1dc1570cc8be2358.1649681596.git.stefan@agner.ch> -References: <2d3d8c091bc692999a1c519c1dc1570cc8be2358.1649681596.git.stefan@agner.ch> +Message-Id: <606dcdc896ffc18001ad4983d45a2e23cacd040a.1651085802.git.stefan@agner.ch> +In-Reply-To: <2d3d8c091bc692999a1c519c1dc1570cc8be2358.1651085802.git.stefan@agner.ch> +References: <2d3d8c091bc692999a1c519c1dc1570cc8be2358.1651085802.git.stefan@agner.ch> From: Stefan Agner Date: Thu, 4 Mar 2021 14:48:48 +0100 -Subject: [PATCH 4/9] ARM: dts: bcm2711: yellow: Enable I2C6 by default +Subject: [PATCH 04/10] ARM: dts: bcm2711: yellow: Enable I2C6 by default The main I2C bus used on Yellow is I2C6. Enable it by default. @@ -31,5 +31,5 @@ index d1dea0a214a6..0bdbfdd44aed 100644 pinctrl-names = "default"; pinctrl-0 = <&i2s_pins>; -- -2.35.1 +2.36.0 diff --git a/buildroot-external/board/raspberrypi/yellow/patches/linux/0005-ARM-dts-bcm2711-yellow-add-I2S-audio-codec.patch b/buildroot-external/board/raspberrypi/yellow/patches/linux/0005-ARM-dts-bcm2711-yellow-add-I2S-audio-codec.patch index e8cdd1818..1593dfcd3 100644 --- a/buildroot-external/board/raspberrypi/yellow/patches/linux/0005-ARM-dts-bcm2711-yellow-add-I2S-audio-codec.patch +++ b/buildroot-external/board/raspberrypi/yellow/patches/linux/0005-ARM-dts-bcm2711-yellow-add-I2S-audio-codec.patch @@ -1,10 +1,10 @@ -From 955e093a5ed6b27e36506df63cfb268cc82f2935 Mon Sep 17 00:00:00 2001 -Message-Id: <955e093a5ed6b27e36506df63cfb268cc82f2935.1649681596.git.stefan@agner.ch> -In-Reply-To: <2d3d8c091bc692999a1c519c1dc1570cc8be2358.1649681596.git.stefan@agner.ch> -References: <2d3d8c091bc692999a1c519c1dc1570cc8be2358.1649681596.git.stefan@agner.ch> +From 298d5254c1c2151b34eaf87f7e2f44205d34d909 Mon Sep 17 00:00:00 2001 +Message-Id: <298d5254c1c2151b34eaf87f7e2f44205d34d909.1651085802.git.stefan@agner.ch> +In-Reply-To: <2d3d8c091bc692999a1c519c1dc1570cc8be2358.1651085802.git.stefan@agner.ch> +References: <2d3d8c091bc692999a1c519c1dc1570cc8be2358.1651085802.git.stefan@agner.ch> From: Stefan Agner Date: Thu, 4 Mar 2021 17:19:01 +0100 -Subject: [PATCH 5/9] ARM: dts: bcm2711: yellow: add I2S audio codec +Subject: [PATCH 05/10] ARM: dts: bcm2711: yellow: add I2S audio codec Add TI PCM5122 I2S audio codec. @@ -14,7 +14,7 @@ Signed-off-by: Stefan Agner 1 file changed, 26 insertions(+) diff --git a/arch/arm/boot/dts/bcm2711-rpi-cm4-ha-yellow.dts b/arch/arm/boot/dts/bcm2711-rpi-cm4-ha-yellow.dts -index 0bdbfdd44aed..f203f7037915 100644 +index 0bdbfdd44aed..f6f42bf45c92 100644 --- a/arch/arm/boot/dts/bcm2711-rpi-cm4-ha-yellow.dts +++ b/arch/arm/boot/dts/bcm2711-rpi-cm4-ha-yellow.dts @@ -535,11 +535,22 @@ &i2c6 { @@ -47,7 +47,7 @@ index 0bdbfdd44aed..f203f7037915 100644 +&sound { + compatible = "simple-audio-card"; + simple-audio-card,format = "i2s"; -+ simple-audio-card,name = "pcm5521-sound"; ++ simple-audio-card,name = "pcm5121-sound"; + status = "okay"; + + simple-audio-card,cpu { @@ -63,5 +63,5 @@ index 0bdbfdd44aed..f203f7037915 100644 pinctrl-names = "default"; pinctrl-0 = <&audio_pins>; -- -2.35.1 +2.36.0 diff --git a/buildroot-external/board/raspberrypi/yellow/patches/linux/0006-ARM-dts-bcm2711-yellow-enable-GPIO-keys.patch b/buildroot-external/board/raspberrypi/yellow/patches/linux/0006-ARM-dts-bcm2711-yellow-enable-GPIO-keys.patch index 73da58574..e2d8afcc9 100644 --- a/buildroot-external/board/raspberrypi/yellow/patches/linux/0006-ARM-dts-bcm2711-yellow-enable-GPIO-keys.patch +++ b/buildroot-external/board/raspberrypi/yellow/patches/linux/0006-ARM-dts-bcm2711-yellow-enable-GPIO-keys.patch @@ -1,10 +1,10 @@ -From 7cccc3ff3a11bbf572e35678cf1cb8ed03c1fbc9 Mon Sep 17 00:00:00 2001 -Message-Id: <7cccc3ff3a11bbf572e35678cf1cb8ed03c1fbc9.1649681596.git.stefan@agner.ch> -In-Reply-To: <2d3d8c091bc692999a1c519c1dc1570cc8be2358.1649681596.git.stefan@agner.ch> -References: <2d3d8c091bc692999a1c519c1dc1570cc8be2358.1649681596.git.stefan@agner.ch> +From 41127a02d66d07d0a17e904557899b15a067a692 Mon Sep 17 00:00:00 2001 +Message-Id: <41127a02d66d07d0a17e904557899b15a067a692.1651085802.git.stefan@agner.ch> +In-Reply-To: <2d3d8c091bc692999a1c519c1dc1570cc8be2358.1651085802.git.stefan@agner.ch> +References: <2d3d8c091bc692999a1c519c1dc1570cc8be2358.1651085802.git.stefan@agner.ch> From: Stefan Agner Date: Tue, 9 Mar 2021 15:02:53 +0100 -Subject: [PATCH 6/9] ARM: dts: bcm2711: yellow: enable GPIO keys +Subject: [PATCH 06/10] ARM: dts: bcm2711: yellow: enable GPIO keys Signed-off-by: Stefan Agner --- @@ -12,7 +12,7 @@ Signed-off-by: Stefan Agner 1 file changed, 31 insertions(+) diff --git a/arch/arm/boot/dts/bcm2711-rpi-cm4-ha-yellow.dts b/arch/arm/boot/dts/bcm2711-rpi-cm4-ha-yellow.dts -index f203f7037915..c74193b3987e 100644 +index f6f42bf45c92..e2fa42a11cc9 100644 --- a/arch/arm/boot/dts/bcm2711-rpi-cm4-ha-yellow.dts +++ b/arch/arm/boot/dts/bcm2711-rpi-cm4-ha-yellow.dts @@ -4,6 +4,8 @@ @@ -37,15 +37,15 @@ index f203f7037915..c74193b3987e 100644 + status = "okay"; + + power { -+ label = "Power Button"; ++ label = "Blue Button"; + linux,code = ; + gpios = <&gpio 26 GPIO_ACTIVE_LOW>; + debounce-interval = <100>; // ms + }; + + user { -+ label = "User Button"; -+ linux,code = ; ++ label = "Red Button"; ++ linux,code = ; + gpios = <&gpio 27 GPIO_ACTIVE_LOW>; + debounce-interval = <100>; // ms + }; @@ -68,5 +68,5 @@ index f203f7037915..c74193b3987e 100644 brcm,pins = <9 10 11>; brcm,function = ; -- -2.35.1 +2.36.0 diff --git a/buildroot-external/board/raspberrypi/yellow/patches/linux/0007-ARM-dts-bcm2711-yellow-add-user-LED.patch b/buildroot-external/board/raspberrypi/yellow/patches/linux/0007-ARM-dts-bcm2711-yellow-add-user-LED.patch index 5f1ffea63..a0151811a 100644 --- a/buildroot-external/board/raspberrypi/yellow/patches/linux/0007-ARM-dts-bcm2711-yellow-add-user-LED.patch +++ b/buildroot-external/board/raspberrypi/yellow/patches/linux/0007-ARM-dts-bcm2711-yellow-add-user-LED.patch @@ -1,10 +1,10 @@ -From c6861d55c71dfd6fb428e9e8b4246e78d526df82 Mon Sep 17 00:00:00 2001 -Message-Id: -In-Reply-To: <2d3d8c091bc692999a1c519c1dc1570cc8be2358.1649681596.git.stefan@agner.ch> -References: <2d3d8c091bc692999a1c519c1dc1570cc8be2358.1649681596.git.stefan@agner.ch> +From efe5e827dc0653066ebc9f71de2ccf391a4bb27e Mon Sep 17 00:00:00 2001 +Message-Id: +In-Reply-To: <2d3d8c091bc692999a1c519c1dc1570cc8be2358.1651085802.git.stefan@agner.ch> +References: <2d3d8c091bc692999a1c519c1dc1570cc8be2358.1651085802.git.stefan@agner.ch> From: Stefan Agner Date: Thu, 28 Oct 2021 19:38:04 +0200 -Subject: [PATCH 7/9] ARM: dts: bcm2711: yellow: add user LED +Subject: [PATCH 07/10] ARM: dts: bcm2711: yellow: add user LED Add yellow user LED. @@ -14,7 +14,7 @@ Signed-off-by: Stefan Agner 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/bcm2711-rpi-cm4-ha-yellow.dts b/arch/arm/boot/dts/bcm2711-rpi-cm4-ha-yellow.dts -index c74193b3987e..f5d1d8b9ea32 100644 +index e2fa42a11cc9..6039c7894796 100644 --- a/arch/arm/boot/dts/bcm2711-rpi-cm4-ha-yellow.dts +++ b/arch/arm/boot/dts/bcm2711-rpi-cm4-ha-yellow.dts @@ -336,7 +336,6 @@ soc { @@ -39,5 +39,5 @@ index c74193b3987e..f5d1d8b9ea32 100644 &pwm1 { -- -2.35.1 +2.36.0 diff --git a/buildroot-external/board/raspberrypi/yellow/patches/linux/0008-ARM-dts-bcm2711-yellow-add-NXP-PCF85063A-RTC.patch b/buildroot-external/board/raspberrypi/yellow/patches/linux/0008-ARM-dts-bcm2711-yellow-add-NXP-PCF85063A-RTC.patch index ce8d9903c..2297a7051 100644 --- a/buildroot-external/board/raspberrypi/yellow/patches/linux/0008-ARM-dts-bcm2711-yellow-add-NXP-PCF85063A-RTC.patch +++ b/buildroot-external/board/raspberrypi/yellow/patches/linux/0008-ARM-dts-bcm2711-yellow-add-NXP-PCF85063A-RTC.patch @@ -1,10 +1,10 @@ -From 57289aaeb0a0a3b09991d005d6e3317ed2da6b7a Mon Sep 17 00:00:00 2001 -Message-Id: <57289aaeb0a0a3b09991d005d6e3317ed2da6b7a.1649681596.git.stefan@agner.ch> -In-Reply-To: <2d3d8c091bc692999a1c519c1dc1570cc8be2358.1649681596.git.stefan@agner.ch> -References: <2d3d8c091bc692999a1c519c1dc1570cc8be2358.1649681596.git.stefan@agner.ch> +From 31ab383d0803e39e94472eea192e712fcc6e3cd6 Mon Sep 17 00:00:00 2001 +Message-Id: <31ab383d0803e39e94472eea192e712fcc6e3cd6.1651085802.git.stefan@agner.ch> +In-Reply-To: <2d3d8c091bc692999a1c519c1dc1570cc8be2358.1651085802.git.stefan@agner.ch> +References: <2d3d8c091bc692999a1c519c1dc1570cc8be2358.1651085802.git.stefan@agner.ch> From: Stefan Agner Date: Fri, 12 Nov 2021 17:33:32 +0100 -Subject: [PATCH 8/9] ARM: dts: bcm2711: yellow: add NXP PCF85063A RTC +Subject: [PATCH 08/10] ARM: dts: bcm2711: yellow: add NXP PCF85063A RTC Signed-off-by: Stefan Agner --- @@ -12,7 +12,7 @@ Signed-off-by: Stefan Agner 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/bcm2711-rpi-cm4-ha-yellow.dts b/arch/arm/boot/dts/bcm2711-rpi-cm4-ha-yellow.dts -index f5d1d8b9ea32..5c682d09616a 100644 +index 6039c7894796..f78428ea64f3 100644 --- a/arch/arm/boot/dts/bcm2711-rpi-cm4-ha-yellow.dts +++ b/arch/arm/boot/dts/bcm2711-rpi-cm4-ha-yellow.dts @@ -575,6 +575,11 @@ card_codec: pcm5121@4c { @@ -28,5 +28,5 @@ index f5d1d8b9ea32..5c682d09616a 100644 &i2s { -- -2.35.1 +2.36.0 diff --git a/buildroot-external/board/raspberrypi/yellow/patches/linux/0009-ARM-dts-bcm2711-yellow-enable-USB-host-mode-by-defau.patch b/buildroot-external/board/raspberrypi/yellow/patches/linux/0009-ARM-dts-bcm2711-yellow-enable-USB-host-mode-by-defau.patch index 785e00fa3..eed9f12e1 100644 --- a/buildroot-external/board/raspberrypi/yellow/patches/linux/0009-ARM-dts-bcm2711-yellow-enable-USB-host-mode-by-defau.patch +++ b/buildroot-external/board/raspberrypi/yellow/patches/linux/0009-ARM-dts-bcm2711-yellow-enable-USB-host-mode-by-defau.patch @@ -1,10 +1,10 @@ -From 7211af3546200c906b719c3e664d2554d48a43f5 Mon Sep 17 00:00:00 2001 -Message-Id: <7211af3546200c906b719c3e664d2554d48a43f5.1649681596.git.stefan@agner.ch> -In-Reply-To: <2d3d8c091bc692999a1c519c1dc1570cc8be2358.1649681596.git.stefan@agner.ch> -References: <2d3d8c091bc692999a1c519c1dc1570cc8be2358.1649681596.git.stefan@agner.ch> +From f1553f413c8f53694d2f27db5b5c43d19cf1ff4f Mon Sep 17 00:00:00 2001 +Message-Id: +In-Reply-To: <2d3d8c091bc692999a1c519c1dc1570cc8be2358.1651085802.git.stefan@agner.ch> +References: <2d3d8c091bc692999a1c519c1dc1570cc8be2358.1651085802.git.stefan@agner.ch> From: Stefan Agner Date: Fri, 7 Jan 2022 17:10:00 +0100 -Subject: [PATCH 9/9] ARM: dts: bcm2711: yellow: enable USB host mode by +Subject: [PATCH 09/10] ARM: dts: bcm2711: yellow: enable USB host mode by default The DWC2 controller is disable by default. Enable it since Home @@ -16,7 +16,7 @@ Signed-off-by: Stefan Agner 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/bcm2711-rpi-cm4-ha-yellow.dts b/arch/arm/boot/dts/bcm2711-rpi-cm4-ha-yellow.dts -index 5c682d09616a..b988d50234c1 100644 +index f78428ea64f3..711a09441ad0 100644 --- a/arch/arm/boot/dts/bcm2711-rpi-cm4-ha-yellow.dts +++ b/arch/arm/boot/dts/bcm2711-rpi-cm4-ha-yellow.dts @@ -599,6 +599,15 @@ &sdhost { @@ -36,5 +36,5 @@ index 5c682d09616a..b988d50234c1 100644 led-modes = <0x00 0x08>; /* link/activity link */ }; -- -2.35.1 +2.36.0 diff --git a/buildroot-external/board/raspberrypi/yellow/patches/linux/0010-ARM-dts-bcm2711-yellow-use-generic-activity-trigger-.patch b/buildroot-external/board/raspberrypi/yellow/patches/linux/0010-ARM-dts-bcm2711-yellow-use-generic-activity-trigger-.patch new file mode 100644 index 000000000..f6be7b2b2 --- /dev/null +++ b/buildroot-external/board/raspberrypi/yellow/patches/linux/0010-ARM-dts-bcm2711-yellow-use-generic-activity-trigger-.patch @@ -0,0 +1,33 @@ +From 6f5e8133651df38d187c05bc27fd8fa25f0216da Mon Sep 17 00:00:00 2001 +Message-Id: <6f5e8133651df38d187c05bc27fd8fa25f0216da.1651085802.git.stefan@agner.ch> +In-Reply-To: <2d3d8c091bc692999a1c519c1dc1570cc8be2358.1651085802.git.stefan@agner.ch> +References: <2d3d8c091bc692999a1c519c1dc1570cc8be2358.1651085802.git.stefan@agner.ch> +From: Stefan Agner +Date: Wed, 27 Apr 2022 20:36:19 +0200 +Subject: [PATCH 10/10] ARM: dts: bcm2711: yellow: use generic activity trigger + for green LED + +Use the generic trigger "activity" for the green LED so that any +system activity is shown. + +Signed-off-by: Stefan Agner +--- + arch/arm/boot/dts/bcm2711-rpi-cm4-ha-yellow.dts | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/arch/arm/boot/dts/bcm2711-rpi-cm4-ha-yellow.dts b/arch/arm/boot/dts/bcm2711-rpi-cm4-ha-yellow.dts +index 711a09441ad0..f2f4f1a49592 100644 +--- a/arch/arm/boot/dts/bcm2711-rpi-cm4-ha-yellow.dts ++++ b/arch/arm/boot/dts/bcm2711-rpi-cm4-ha-yellow.dts +@@ -622,7 +622,7 @@ audio_pins: audio_pins { + &leds { + act_led: led-act { + label = "led0"; +- linux,default-trigger = "mmc0"; ++ linux,default-trigger = "activity"; + gpios = <&gpio 42 GPIO_ACTIVE_HIGH>; + }; + +-- +2.36.0 + diff --git a/buildroot-external/rootfs-overlay/etc/input-event-daemon.conf b/buildroot-external/rootfs-overlay/etc/input-event-daemon.conf new file mode 100644 index 000000000..2bb282923 --- /dev/null +++ b/buildroot-external/rootfs-overlay/etc/input-event-daemon.conf @@ -0,0 +1,10 @@ +# +# /etc/input-event-daemon.conf +# + +[Global] +listen = /dev/input/by-path/platform-gpio-keys-event + +[Keys] +BTN_1 = /usr/bin/systemctl start hassos-config.service +