Skip to content

Commit e66025a

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 <[email protected]>
1 parent 1db2aa6 commit e66025a

File tree

2 files changed

+80
-1
lines changed

2 files changed

+80
-1
lines changed

arch/mips/boot/dts/ingenic/rg280m.dts

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+
40+
&panel_output {
41+
remote-endpoint = <&y030xx067a_input>;
42+
};
43+
44+
&panel {
45+
status = "disabled";
46+
};
47+
48+
/* Make Frida panel port a dummy to avoid DTC complaints */
49+
&panel_input {
50+
remote-endpoint = <&panel_input>;
51+
};
52+
53+
&joystick {
54+
status = "disabled";
55+
};
56+
57+
rg280m-joystick {
58+
compatible = "adc-joystick";
59+
io-channels = <&adc INGENIC_ADC_TOUCH_YP>,
60+
<&adc INGENIC_ADC_TOUCH_XP>;
61+
#address-cells = <1>;
62+
#size-cells = <0>;
63+
64+
axis@0 {
65+
reg = <0>;
66+
linux,code = <ABS_X>;
67+
abs-range = <3000 200>;
68+
abs-fuzz = <4>;
69+
abs-flat = <200>;
70+
};
71+
72+
axis@1 {
73+
reg = <1>;
74+
linux,code = <ABS_Y>;
75+
abs-range = <3000 200>;
76+
abs-fuzz = <4>;
77+
abs-flat = <200>;
78+
};
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)