* Fix enable USB host mode kernel patch Update to a new patch which applies the device tree change such that the USB controller actually gets enabled. * Update Home Assistant Yellow board config Update config to match changes which have been made to other baords as well.
72 lines
1.9 KiB
Diff
72 lines
1.9 KiB
Diff
From 8571b271c3e0b861cf666b2588eed380c0b79791 Mon Sep 17 00:00:00 2001
|
|
Message-Id: <8571b271c3e0b861cf666b2588eed380c0b79791.1641591965.git.stefan@agner.ch>
|
|
In-Reply-To: <9d68dedb813f942286856c9d8c2eed01b55bb473.1641591965.git.stefan@agner.ch>
|
|
References: <9d68dedb813f942286856c9d8c2eed01b55bb473.1641591965.git.stefan@agner.ch>
|
|
From: Stefan Agner <stefan@agner.ch>
|
|
Date: Tue, 9 Mar 2021 15:02:53 +0100
|
|
Subject: [PATCH 6/9] ARM: dts: bcm2711: yellow: enable GPIO keys
|
|
|
|
Signed-off-by: Stefan Agner <stefan@agner.ch>
|
|
---
|
|
.../boot/dts/bcm2711-rpi-cm4-ha-yellow.dts | 30 +++++++++++++++++++
|
|
1 file changed, 30 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 f3967b67368a..6a0c89d1f4c8 100644
|
|
--- a/arch/arm/boot/dts/bcm2711-rpi-cm4-ha-yellow.dts
|
|
+++ b/arch/arm/boot/dts/bcm2711-rpi-cm4-ha-yellow.dts
|
|
@@ -2,6 +2,7 @@
|
|
/dts-v1/;
|
|
#include "bcm2711.dtsi"
|
|
#include "bcm2835-rpi.dtsi"
|
|
+#include <dt-bindings/input/input.h>
|
|
|
|
#include <dt-bindings/reset/raspberrypi,firmware-reset.h>
|
|
|
|
@@ -29,6 +30,29 @@ aliases {
|
|
blconfig = &blconfig;
|
|
};
|
|
|
|
+ keys: gpio-keys {
|
|
+ compatible = "gpio-keys";
|
|
+
|
|
+ pinctrl-names = "default";
|
|
+ pinctrl-0 = <&gpio_button_pins>;
|
|
+
|
|
+ status = "okay";
|
|
+
|
|
+ power {
|
|
+ label = "Power Button";
|
|
+ linux,code = <KEY_POWER>;
|
|
+ gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
|
|
+ debounce-interval = <100>; // ms
|
|
+ };
|
|
+
|
|
+ user {
|
|
+ label = "User Button";
|
|
+ linux,code = <KEY_MACRO>;
|
|
+ gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
|
|
+ debounce-interval = <100>; // ms
|
|
+ };
|
|
+ };
|
|
+
|
|
leds {
|
|
led-act {
|
|
gpios = <&gpio 42 GPIO_ACTIVE_HIGH>;
|
|
@@ -438,6 +462,12 @@ spidev1: spidev@1{
|
|
};
|
|
|
|
&gpio {
|
|
+ gpio_button_pins: gpio_button_pins {
|
|
+ brcm,pins = <26 27>;
|
|
+ brcm,function = <BCM2835_FSEL_GPIO_IN>;
|
|
+ brcm,pull = <BCM2835_PUD_UP>;
|
|
+ };
|
|
+
|
|
spi0_pins: spi0_pins {
|
|
brcm,pins = <9 10 11>;
|
|
brcm,function = <BCM2835_FSEL_ALT0>;
|
|
--
|
|
2.34.1
|
|
|