Skip to content

Commit 247aa48

Browse files
committed
2 parents 67163c2 + f047f13 commit 247aa48

File tree

3 files changed

+98
-1
lines changed

3 files changed

+98
-1
lines changed

batocera-Changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
- Taradino to 20250816
6464
- TheXTech to v1.3.7.1-2
6565
- TheForceEngine to v1.22.420
66+
- VkQuake to 19th of November 2025 build
6667
- Xash3D FWGS engine to Oct 17 build
6768
- Xemu to v0.8.108
6869
- Ymir to 0.2.0

board/batocera/allwinner/h700/linux_patches/0018-Create-sun50i-h700-anbernic-rg34xx-sp.dts.patch

Lines changed: 96 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ new file mode 100644
1313
index 000000000..f2eca80b3
1414
--- /dev/null
1515
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h700-anbernic-rg34xx-sp.dts
16-
@@ -0,0 +1,17 @@
16+
@@ -0,0 +1,112 @@
1717
+// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
1818
+/*
1919
+ * Copyright (C) 2024 Ryan Walklin <[email protected]>.
@@ -26,11 +26,106 @@ index 000000000..f2eca80b3
2626
+ model = "Anbernic RG34XX-SP";
2727
+ compatible = "anbernic,rg34xx-sp", "allwinner,sun50i-h700";
2828
+ rocknix-dt-id = "sun50i-h700-anbernic-rg34xx-sp";
29+
+
30+
+ adc-joystick {
31+
+ compatible = "adc-joystick";
32+
+ io-channels = <&adc_mux 0>,
33+
+ <&adc_mux 1>,
34+
+ <&adc_mux 2>,
35+
+ <&adc_mux 3>;
36+
+ pinctrl-0 = <&joy_mux_pin>;
37+
+ pinctrl-names = "default";
38+
+ poll-interval = <60>;
39+
+ #address-cells = <1>;
40+
+ #size-cells = <0>;
41+
+
42+
+ axis@0 {
43+
+ reg = <0>;
44+
+ abs-flat = <32>;
45+
+ abs-fuzz = <32>;
46+
+ abs-range = <4096 0>;
47+
+ linux,code = <ABS_X>;
48+
+ };
49+
+
50+
+ axis@1 {
51+
+ reg = <1>;
52+
+ abs-flat = <32>;
53+
+ abs-fuzz = <32>;
54+
+ abs-range = <0 4096>;
55+
+ linux,code = <ABS_Y>;
56+
+ };
57+
+
58+
+ axis@2 {
59+
+ reg = <2>;
60+
+ abs-flat = <32>;
61+
+ abs-fuzz = <32>;
62+
+ abs-range = <0 4096>;
63+
+ linux,code = <ABS_RX>;
64+
+ };
65+
+
66+
+ axis@3 {
67+
+ reg = <3>;
68+
+ abs-flat = <32>;
69+
+ abs-fuzz = <32>;
70+
+ abs-range = <4096 0>;
71+
+ linux,code = <ABS_RY>;
72+
+ };
73+
+ };
74+
+
75+
+ adc_mux: adc-mux {
76+
+ compatible = "io-channel-mux";
77+
+ channels = "left_x", "left_y", "right_x", "right_y";
78+
+ #io-channel-cells = <1>;
79+
+ io-channels = <&gpadc 0>;
80+
+ io-channel-names = "parent";
81+
+ mux-controls = <&gpio_mux>;
82+
+ settle-time-us = <100>;
83+
+ };
84+
+
85+
+ gpio_mux: mux-controller {
86+
+ compatible = "gpio-mux";
87+
+ mux-gpios = <&pio 8 1 GPIO_ACTIVE_LOW>, /* PI1 */
88+
+ <&pio 8 2 GPIO_ACTIVE_LOW>; /* PI2 */
89+
+ #mux-control-cells = <0>;
90+
+ };
2991
+};
3092
+
3193
+&panel {
3294
+ compatible = "anbernic,rg34xx-sp-panel", "panel-mipi-dpi-spi";
3395
+};
96+
+
97+
+&gpadc {
98+
+ #address-cells = <1>;
99+
+ #size-cells = <0>;
100+
+ status = "okay";
101+
+
102+
+ channel@0 {
103+
+ reg = <0>;
104+
+ };
105+
+};
106+
+
107+
+&pio {
108+
+ joy_mux_pin: joy-mux-pin {
109+
+ pins = "PI0";
110+
+ function = "gpio_out";
111+
+ };
112+
+};
113+
+
114+
+&gpio_keys_gamepad {
115+
+ button-thumbl {
116+
+ label = "GPIO Thumb Left";
117+
+ gpios = <&pio 4 8 GPIO_ACTIVE_LOW>; /* PE8 */
118+
+ linux,input-type = <EV_KEY>;
119+
+ linux,code = <BTN_THUMBL>;
120+
+ };
121+
+
122+
+ button-thumbr {
123+
+ label = "GPIO Thumb Right";
124+
+ gpios = <&pio 4 9 GPIO_ACTIVE_LOW>; /* PE9 */
125+
+ linux,input-type = <EV_KEY>;
126+
+ linux,code = <BTN_THUMBR>;
127+
+ };
128+
+};
34129
--
35130
2.47.1
36131

package/batocera/core/batocera-configgen/configgen/configgen/generators/libretro/libretroGenerator.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,7 @@ def generate(self, system, rom, playersControllers, metadata, guns, wheels, game
375375
if rom.suffix.lower() in ['.hd', '.gemdos']:
376376
#don't pass hd drive as parameter, it need to be added in configuration
377377
dontAppendROM = True
378+
targetlink.unlink(missing_ok=True)
378379
targetlink.symlink_to(rom)
379380

380381
if not dontAppendROM:

0 commit comments

Comments
 (0)