BPI-CM4: In accordance with the BSP DTS, set LED gpio to GPIO_ACTIVE_LOW. Added default-on trigger to led-green Board now powers off, added reboot node 'meson64-reboot'. CONFIG_POWER_RESET_MESON64 Isolated RESET ODROID driver and renamed to MESON64 as it can be used in more than ODROIDS. MESON UART Series improves support for UART attached Bluetooth modules on Amlogic Meson G12A and newer SoCs. These SoCs also support the "divide XTAL by 2" bit which (greatly) reduces jitter when generating baud rates such as 1500000 (which is used by the Bluetooth part of the RTL8822CS SDIO WiFi and UART Bluetooth combo chip). Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>
36 lines
1.3 KiB
Diff
36 lines
1.3 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Ash Hughes <spirit.returned@gmail.com>
|
|
Date: Sat, 18 Feb 2023 07:46:38 -0300
|
|
Subject: adapted meson64-reboot driver, fix reboot on odroid C4 when using
|
|
UHS-II SD cards
|
|
|
|
bring back fixed version of `odroid-reboot` driver (Fix reboot on odroid C4 when using UHS-II SD cards)
|
|
---
|
|
arch/arm64/boot/dts/amlogic/meson-sm1-odroid-c4.dts | 10 +
|
|
drivers/power/reset/Kconfig | 7 +
|
|
drivers/power/reset/Makefile | 1 +
|
|
drivers/power/reset/odroid-reboot.c | 186 ++++++++++
|
|
4 files changed, 204 insertions(+)
|
|
|
|
diff --git a/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-c4.dts b/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-c4.dts
|
|
index 8c30ce63686e..ee8aa390ea56 100644
|
|
--- a/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-c4.dts
|
|
+++ b/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-c4.dts
|
|
@@ -11,6 +11,16 @@ / {
|
|
compatible = "hardkernel,odroid-c4", "amlogic,sm1";
|
|
model = "Hardkernel ODROID-C4";
|
|
|
|
+ odroid-reboot {
|
|
+ compatible = "odroid,reboot";
|
|
+ sys_reset = <0x84000009>;
|
|
+ sys_poweroff = <0x84000008>;
|
|
+
|
|
+ sd-vqen = <&gpio_ao GPIOE_2 GPIO_ACTIVE_HIGH>;
|
|
+ sd-vqsw = <&gpio_ao GPIOAO_6 GPIO_ACTIVE_HIGH>;
|
|
+ sd-vmmc = <&gpio_ao GPIOAO_3 GPIO_ACTIVE_HIGH>;
|
|
+ };
|
|
+
|
|
leds {
|
|
compatible = "gpio-leds";
|
|
|