mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2025-04-02 10:41:46 -04:00
74 lines
1.9 KiB
Diff
74 lines
1.9 KiB
Diff
From 72193ae3fa4e37c1363d02728bdc4bbc7180b3f1 Mon Sep 17 00:00:00 2001
|
|
From: Christian Hewitt <christianshewitt@gmail.com>
|
|
Date: Thu, 5 Jan 2023 06:08:37 +0000
|
|
Subject: [PATCH 91/92] FIXUP! add adc/gpio keys and led's to dreambox
|
|
|
|
Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
|
|
---
|
|
.../boot/dts/amlogic/meson-g12b-dreambox.dtsi | 50 +++++++++++++++++++
|
|
1 file changed, 50 insertions(+)
|
|
|
|
diff --git a/arch/arm64/boot/dts/amlogic/meson-g12b-dreambox.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12b-dreambox.dtsi
|
|
index 14b2827b592d..1566dd48c473 100644
|
|
--- a/arch/arm64/boot/dts/amlogic/meson-g12b-dreambox.dtsi
|
|
+++ b/arch/arm64/boot/dts/amlogic/meson-g12b-dreambox.dtsi
|
|
@@ -13,6 +13,56 @@ cvbs-connector {
|
|
status = "disabled";
|
|
};
|
|
|
|
+ adc_keys {
|
|
+ compatible = "adc-keys";
|
|
+ io-channels = <&saradc 2>;
|
|
+ io-channel-names = "buttons";
|
|
+ keyup-threshold-microvolt = <1800000>;
|
|
+
|
|
+ button-up {
|
|
+ label = "Volume Up";
|
|
+ linux,code = <KEY_VOLUMEUP>;
|
|
+ press-threshold-microvolt = <4680352>;
|
|
+ };
|
|
+
|
|
+ button-down {
|
|
+ label = "Volume Down";
|
|
+ linux,code = <KEY_VOLUMEDOWN>;
|
|
+ press-threshold-microvolt = <2516129>;
|
|
+ };
|
|
+
|
|
+ button-enter {
|
|
+ label = "Enter";
|
|
+ linux,code = <KEY_ENTER>;
|
|
+ press-threshold-microvolt = <6844575>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ gpio-keys-polled {
|
|
+ compatible = "gpio-keys-polled";
|
|
+ poll-interval = <20>;
|
|
+
|
|
+ button {
|
|
+ label = "power";
|
|
+ linux,code = <KEY_POWER>;
|
|
+ gpios = <&gpio_ao GPIOAO_3 GPIO_ACTIVE_HIGH>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ leds {
|
|
+ compatible = "gpio-leds";
|
|
+
|
|
+ led-system {
|
|
+ label = "system-status";
|
|
+ color = <LED_COLOR_ID_RED>;
|
|
+ function = LED_FUNCTION_POWER;
|
|
+ gpios = <&gpio_ao GPIOAO_11 GPIO_ACTIVE_HIGH>;
|
|
+ default-state = "on";
|
|
+ panic-indicator;
|
|
+ retain-state-suspended;
|
|
+ };
|
|
+ };
|
|
+
|
|
sdio_pwrseq: sdio-pwrseq {
|
|
compatible = "mmc-pwrseq-simple";
|
|
reset-gpios = <&gpio GPIOA_11 GPIO_ACTIVE_LOW>;
|
|
--
|
|
2.34.1
|
|
|