Skip to content

Commit 5db4655

Browse files
committed
MIPS: ingenic: Add support for the YLM RG-280M
Add support for the YLM RG-280M, known as the Anbernic RG-280M in the western world. The RG-280M is a slightly modified version of the RG-350, with a different LCD panel (320x480 non-square pixels) and only one analog stick. Signed-off-by: Paul Cercueil <paul@crapouillou.net>
1 parent e2430c8 commit 5db4655

File tree

2 files changed

+80
-1
lines changed

2 files changed

+80
-1
lines changed
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
// SPDX-License-Identifier: GPL-2.0
2+
/dts-v1/;
3+
4+
#include "rg350.dts"
5+
6+
/ {
7+
compatible = "ylm,rg280m", "ingenic,jz4770";
8+
model = "Anbernic RG-280M";
9+
10+
spi {
11+
compatible = "spi-gpio";
12+
#address-cells = <1>;
13+
#size-cells = <0>;
14+
15+
sck-gpios = <&gpe 15 0>;
16+
mosi-gpios = <&gpe 17 0>;
17+
cs-gpios = <&gpe 16 0>;
18+
num-chipselects = <1>;
19+
20+
panel@0 {
21+
compatible = "abt,y030xx067a";
22+
reg = <0>;
23+
24+
spi-max-frequency = <15000000>;
25+
26+
reset-gpios = <&gpe 2 GPIO_ACTIVE_LOW>;
27+
28+
backlight = <&backlight>;
29+
power-supply = <&vcc>;
30+
31+
port {
32+
y030xx067a_input: endpoint {
33+
remote-endpoint = <&panel_output>;
34+
};
35+
};
36+
};
37+
};
38+
39+
rg280m-joystick {
40+
compatible = "adc-joystick";
41+
io-channels = <&adc INGENIC_ADC_TOUCH_YP>,
42+
<&adc INGENIC_ADC_TOUCH_XP>;
43+
#address-cells = <1>;
44+
#size-cells = <0>;
45+
46+
axis@0 {
47+
reg = <0>;
48+
linux,code = <ABS_X>;
49+
abs-range = <3000 200>;
50+
abs-fuzz = <4>;
51+
abs-flat = <200>;
52+
};
53+
54+
axis@1 {
55+
reg = <1>;
56+
linux,code = <ABS_Y>;
57+
abs-range = <3000 200>;
58+
abs-fuzz = <4>;
59+
abs-flat = <200>;
60+
};
61+
};
62+
};
63+
64+
&panel_output {
65+
remote-endpoint = <&y030xx067a_input>;
66+
};
67+
68+
&panel {
69+
status = "disabled";
70+
};
71+
72+
/* Make Frida panel port a dummy to avoid DTC complaints */
73+
&panel_input {
74+
remote-endpoint = <&panel_input>;
75+
};
76+
77+
&joystick {
78+
status = "disabled";
79+
};

arch/mips/boot/dts/ingenic/rg350.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@
351351
};
352352
};
353353

354-
joystick {
354+
joystick: joystick {
355355
compatible = "adc-joystick";
356356
io-channels = <&adc INGENIC_ADC_TOUCH_YP>,
357357
<&adc INGENIC_ADC_TOUCH_XP>,

0 commit comments

Comments
 (0)