Skip to content

Commit 0d185df

Browse files
tokyovigilantejernejsk
authored andcommitted
arm64: dts: allwinner: h700: Add RG35XX-H DTS
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@testtoast.com> Reviewed-by: Andre Przywara <andre.przywara@arm.com> Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com> Link: https://lore.kernel.org/r/20240427110225.727472-8-ryan@testtoast.com Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com>
1 parent 398e5fd commit 0d185df

2 files changed

Lines changed: 37 additions & 0 deletions

File tree

arch/arm64/boot/dts/allwinner/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,4 @@ dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h618-orangepi-zero3.dtb
5050
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h618-transpeed-8k618-t.dtb
5151
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h700-anbernic-rg35xx-2024.dtb
5252
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h700-anbernic-rg35xx-plus.dtb
53+
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h700-anbernic-rg35xx-h.dtb
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
/*
3+
* Copyright (C) 2024 Ryan Walklin <ryan@testtoast.com>.
4+
* Copyright (C) 2024 Chris Morgan <macroalpha82@gmail.com>.
5+
*/
6+
7+
#include "sun50i-h700-anbernic-rg35xx-plus.dts"
8+
9+
/ {
10+
model = "Anbernic RG35XX H";
11+
compatible = "anbernic,rg35xx-h", "allwinner,sun50i-h700";
12+
};
13+
14+
&gpio_keys_gamepad {
15+
button-thumbl {
16+
label = "GPIO Thumb Left";
17+
gpios = <&pio 4 8 GPIO_ACTIVE_LOW>; /* PE8 */
18+
linux,input-type = <EV_KEY>;
19+
linux,code = <BTN_THUMBL>;
20+
};
21+
22+
button-thumbr {
23+
label = "GPIO Thumb Right";
24+
gpios = <&pio 4 9 GPIO_ACTIVE_LOW>; /* PE9 */
25+
linux,input-type = <EV_KEY>;
26+
linux,code = <BTN_THUMBR>;
27+
};
28+
};
29+
30+
&ehci1 {
31+
status = "okay";
32+
};
33+
34+
&ohci1 {
35+
status = "okay";
36+
};

0 commit comments

Comments
 (0)