[PATCH v2 09/11] ARM: dts: cortina: almondplus: Add reset button and enable I2C
Fil Dunsky via B4 Relay
devnull+filipp.dunsky.gmail.com at kernel.org
Mon Oct 12 20:47:07 PDT 2026
From: Fil Dunsky <filipp.dunsky at gmail.com>
The pinhole button on the back of the Almond+ is connected to GPIO 37
(bank 1, line 5), active low. The stock firmware uses it for restart
and factory reset.
Enable the I2C bus, which has the touchscreen controller on it; the
touchscreen itself will be added together with its driver changes.
Signed-off-by: Fil Dunsky <filipp.dunsky at gmail.com>
---
.../boot/dts/cortina/cs7542-securifi-almondplus.dts | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/arch/arm/boot/dts/cortina/cs7542-securifi-almondplus.dts b/arch/arm/boot/dts/cortina/cs7542-securifi-almondplus.dts
index e2988c687..0619bd754 100644
--- a/arch/arm/boot/dts/cortina/cs7542-securifi-almondplus.dts
+++ b/arch/arm/boot/dts/cortina/cs7542-securifi-almondplus.dts
@@ -5,6 +5,9 @@
/dts-v1/;
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
#include "cs7542.dtsi"
/ {
@@ -19,6 +22,16 @@ chosen {
stdout-path = "serial0:115200n8";
};
+ keys {
+ compatible = "gpio-keys";
+
+ button-reset {
+ label = "reset";
+ gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
+ linux,code = <KEY_RESTART>;
+ };
+ };
+
memory at 0 {
device_type = "memory";
reg = <0x00000000 0x20000000>;
@@ -50,6 +63,12 @@ &apb_clk {
clock-frequency = <150000000>;
};
+&i2c {
+ clock-frequency = <400000>;
+
+ status = "okay";
+};
+
&uart0 {
status = "okay";
};
--
2.53.0
More information about the linux-arm-kernel
mailing list