mirror of
https://github.com/armbian/build.git
synced 2025-09-18 12:11:12 +02:00
- starting from Home Assistant OS (HASSOS) setup/patchset, which is stable with pure-mainline - *huge thanks* to Stefan Agner (@agners) from Home Assistant for his work and help with this - CONFIG_DRM_MESON=y fixes the order of shutdown callbacks, allowing it to reboot without patches - this increases the kernel size a bit, due to some dependencies like DRM=y - remove the shutdown revert patch, allowing other meson64 boards to mainline-reboot - add fdt/no-map patch fixing the dreaded "SError Interrupt on CPU4" panics that plagued the N2 - move the N2 to mainline u-boot on current (rebased, already done) - add SPI-enabling DTB variants, which allow writing to SPI NOR flash (and usage instructions in comments) - add UBOOT_TARGET_MAP and write_uboot_platform_mtd to current, for nand-sata-install to SPI/USB goodness - remove the UHS-enabling patch, to avoid 1.8v vs 3.3v mess. Make sure to use only A1-rated SD cards as recommended. - change default cpufreq governor for 24h+ stability - other patch cleanups: - move deprecated/non-applying patch to need-check - remove the HardKernel ODROID-specific reboot driver and DTS patches (odroid-reboot.c) which are now useless. - remove documentation-only patches (we have enough patches in meson64 without those) - remove duplicated SAR ADC patches - remove multiple different and conflicting patches for DTS and emulated-PWM GPIO fan - now using simple on/off GPIO fan at 30 celsius, unrelated to passive cooling
43 lines
1.4 KiB
Diff
43 lines
1.4 KiB
Diff
From 70e65f906389f7236fe9ad8e1c05dedac0d1988b Mon Sep 17 00:00:00 2001
|
|
Message-Id: <70e65f906389f7236fe9ad8e1c05dedac0d1988b.1627311993.git.stefan@agner.ch>
|
|
In-Reply-To: <c7825747afd8bb975dc918f28e4afe8058a518f3.1627311993.git.stefan@agner.ch>
|
|
References: <c7825747afd8bb975dc918f28e4afe8058a518f3.1627311993.git.stefan@agner.ch>
|
|
From: Stefan Agner <stefan@agner.ch>
|
|
Date: Mon, 11 Jan 2021 11:20:48 +0100
|
|
Subject: [PATCH 4/9] arm64: dts: meson: g12b: add power button support
|
|
|
|
Add power button support on J2 pin 11 (GPIOX_3 on the SoC side). The
|
|
GPIO is low active, e.g. when connecting with pin 9 (GND) a power
|
|
button press is triggered.
|
|
|
|
Signed-off-by: Stefan Agner <stefan@agner.ch>
|
|
---
|
|
arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dtsi | 11 +++++++++++
|
|
1 file changed, 11 insertions(+)
|
|
|
|
diff --git a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dtsi
|
|
index 41b2f9c96b5f..4b6bb7e74e25 100644
|
|
--- a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dtsi
|
|
+++ b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dtsi
|
|
@@ -39,6 +39,17 @@ emmc_pwrseq: emmc-pwrseq {
|
|
reset-gpios = <&gpio BOOT_12 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
+ gpio-keys-polled {
|
|
+ compatible = "gpio-keys-polled";
|
|
+ poll-interval = <100>;
|
|
+
|
|
+ power-button {
|
|
+ label = "power";
|
|
+ linux,code = <KEY_POWER>;
|
|
+ gpios = <&gpio GPIOX_3 GPIO_ACTIVE_LOW>;
|
|
+ };
|
|
+ };
|
|
+
|
|
leds {
|
|
compatible = "gpio-leds";
|
|
|
|
--
|
|
2.32.0
|
|
|