[PATCH 4/4] arm64: dts: allwinner: h700: Add RG35XX-H DTS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Ryan Walklin <ryan@xxxxxxxxxxxxx>

The RG35XX-H adds thumbsticks, a stereo speaker, and a second USB port
to the RG35XX-Plus, and has a horizontal form factor.

Enabled in this DTS:
- Thumbsticks
- Second USB port

Signed-off-by: Ryan Walklin <ryan@xxxxxxxxxxxxx>
---
 .../sun50i-h700-anbernic-rg35xx-h.dts         | 38 +++++++++++++++++++
 1 file changed, 38 insertions(+)
 create mode 100644 arch/arm64/boot/dts/allwinner/sun50i-h700-anbernic-rg35xx-h.dts

diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h700-anbernic-rg35xx-h.dts b/arch/arm64/boot/dts/allwinner/sun50i-h700-anbernic-rg35xx-h.dts
new file mode 100644
index 000000000000..5b7de7bfc458
--- /dev/null
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h700-anbernic-rg35xx-h.dts
@@ -0,0 +1,38 @@
+// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+/*
+ * Copyright (C) 2024 Andre Przywara <andre.przywara@xxxxxxx>.
+ * Copyright (C) 2024 Ryan Walklin <ryan@xxxxxxxxxxxxx>.
+ * Copyright (C) 2024 Chris Morgan <macroalpha82@xxxxxxxxx>.
+ */
+
+
+/dts-v1/;
+#include "sun50i-h700-anbernic-rg35xx-plus.dts"
+
+/ {
+    model = "Anbernic RG35XX H";
+    compatible = "anbernic,rg35xx-h", "allwinner,sun50i-h700";
+
+    gpio-keys: gpio-keys-thumb {
+       compatible = "gpio-keys";
+
+        keyThumbLeft {
+            label = "GPIO Thumb Left";
+            gpios = <&pio 4 8 GPIO_ACTIVE_LOW>; /* PE8 */
+            linux,input-type = <EV_KEY>;
+            linux,code = <BTN_THUMBL>;
+        };
+
+        keyThumbRight {
+            label = "GPIO Thumb Right";
+            gpios = <&pio 4 9 GPIO_ACTIVE_LOW>; /* PE9 */
+            linux,input-type = <EV_KEY>;
+            linux,code = <BTN_THUMBR>;
+        };
+    };
+};
+
+&usbotg {
+    dr_mode = "peripheral";
+    status = "okay";
+};
-- 
2.44.0





[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux