Commit 5b2d189b authored by Rabeeh Khoury's avatar Rabeeh Khoury

misc fixes

1. Rename DWC3 SS patch from .patc to .patch
2. Add power button support to LX2 COM PWRBTN# GPIO input
3. Set pinmuxing to correctly read SD card CD# signal when booting from
SPI / eMMC.
Signed-off-by: default avatarRabeeh Khoury <rabeeh@solid-run.com>
parent 031463b5
From b640a74851bf1fdc3abe49860e9efc498e4483a8 Mon Sep 17 00:00:00 2001
From: Rabeeh Khoury <rabeeh@solid-run.com>
Date: Tue, 8 Dec 2020 13:21:03 +0200
Subject: [PATCH] arm64: dts: lx2160a-cex7: add power button support
COM express PWRBTN# signal is connected as a GPIO to the LX2 SoC.
Translate that power button click as KEY_POWER event.
Signed-off-by: Rabeeh Khoury <rabeeh@solid-run.com>
---
arch/arm64/boot/dts/freescale/fsl-lx2160a-cex7.dts | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/arch/arm64/boot/dts/freescale/fsl-lx2160a-cex7.dts b/arch/arm64/boot/dts/freescale/fsl-lx2160a-cex7.dts
index 2b8f1118b..e2dfe4f67 100644
--- a/arch/arm64/boot/dts/freescale/fsl-lx2160a-cex7.dts
+++ b/arch/arm64/boot/dts/freescale/fsl-lx2160a-cex7.dts
@@ -7,6 +7,7 @@
/dts-v1/;
#include "fsl-lx2160a.dtsi"
+#include <dt-bindings/input/linux-event-codes.h>
/ {
model = "SolidRun LX2160A COM express type 7 module";
@@ -30,6 +31,17 @@
regulator-boot-on;
regulator-always-on;
};
+
+ gpio-keys {
+ compatible = "gpio-keys";
+
+ key {
+ label = "power";
+ linux,can-disable;
+ linux,code = <KEY_POWER>;
+ gpios = <&gpio2 6 GPIO_ACTIVE_LOW>;
+ };
+ };
};
&crypto {
--
2.25.1
From ec8c382532d01a3e26491dbcfe2ad854a164006f Mon Sep 17 00:00:00 2001
From: Rabeeh Khoury <rabeeh@solid-run.com>
Date: Thu, 3 Dec 2020 19:55:07 +0200
Subject: [PATCH] lx2160acex7: set correctly sdcard card detect and write
protect pmux
Signed-off-by: Rabeeh Khoury <rabeeh@solid-run.com>
---
lx2160acex7/configs/lx2160a_defaults.rcwi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lx2160acex7/configs/lx2160a_defaults.rcwi b/lx2160acex7/configs/lx2160a_defaults.rcwi
index 359e86c..30e0399 100644
--- a/lx2160acex7/configs/lx2160a_defaults.rcwi
+++ b/lx2160acex7/configs/lx2160a_defaults.rcwi
@@ -5,7 +5,7 @@ HWA_CGA_M1_CLK_SEL=1
HWA_CGB_M1_CLK_SEL=7
BOOT_LOC=26
SYSCLK_FREQ=600
-IIC2_PMUX=1
+IIC2_PMUX=6
IIC3_PMUX=0
IIC4_PMUX=2
USB3_CLK_FSEL=39
--
2.25.1
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment