]> Git Repo - linux.git/commitdiff
arm64: dts: allwinner: h700: Add RG35XX-H DTS
authorRyan Walklin <[email protected]>
Sat, 27 Apr 2024 11:02:28 +0000 (23:02 +1200)
committerJernej Skrabec <[email protected]>
Sat, 27 Apr 2024 13:21:00 +0000 (15:21 +0200)
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 <[email protected]>
Reviewed-by: Andre Przywara <[email protected]>
Reviewed-by: Jernej Skrabec <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jernej Skrabec <[email protected]>
arch/arm64/boot/dts/allwinner/Makefile
arch/arm64/boot/dts/allwinner/sun50i-h700-anbernic-rg35xx-h.dts [new file with mode: 0644]

index 2d6b7e6f0b29d04d0403310ed8219463326bf7f2..0db7b60b49a196eb4b6a5a9ef00f7d06bfe14775 100644 (file)
@@ -50,3 +50,4 @@ dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h618-orangepi-zero3.dtb
 dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h618-transpeed-8k618-t.dtb
 dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h700-anbernic-rg35xx-2024.dtb
 dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h700-anbernic-rg35xx-plus.dtb
+dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h700-anbernic-rg35xx-h.dtb
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 (file)
index 0000000..6303625
--- /dev/null
@@ -0,0 +1,36 @@
+// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+/*
+ * Copyright (C) 2024 Ryan Walklin <[email protected]>.
+ * Copyright (C) 2024 Chris Morgan <[email protected]>.
+ */
+
+#include "sun50i-h700-anbernic-rg35xx-plus.dts"
+
+/ {
+       model = "Anbernic RG35XX H";
+       compatible = "anbernic,rg35xx-h", "allwinner,sun50i-h700";
+};
+
+&gpio_keys_gamepad {
+       button-thumbl {
+               label = "GPIO Thumb Left";
+               gpios = <&pio 4 8 GPIO_ACTIVE_LOW>; /* PE8 */
+               linux,input-type = <EV_KEY>;
+               linux,code = <BTN_THUMBL>;
+       };
+
+       button-thumbr {
+               label = "GPIO Thumb Right";
+               gpios = <&pio 4 9 GPIO_ACTIVE_LOW>; /* PE9 */
+               linux,input-type = <EV_KEY>;
+               linux,code = <BTN_THUMBR>;
+       };
+};
+
+&ehci1 {
+       status = "okay";
+};
+
+&ohci1 {
+       status = "okay";
+};
This page took 0.067687 seconds and 4 git commands to generate.