Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions arch/mips/boot/dts/ingenic/playgo.dts
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,12 @@
&panel_output {
remote-endpoint = <&frida_input>;
};

&gpio_keys {
button@19 {
label = "Menu button";
linux,code = <KEY_RIGHTCTRL>;
linux,can-disable;
gpios = <&gpe 8 GPIO_ACTIVE_LOW>;
};
};
126 changes: 126 additions & 0 deletions arch/mips/boot/dts/ingenic/pocketgo2.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
// SPDX-License-Identifier: GPL-2.0
/dts-v1/;

#include "gcw0.dts"

/ {
compatible = "wolsen,PocketGo2", "ingenic,jz4770";
model = "wolsen PocketGo2";

panel {
compatible = "frida,frd350h54004";

reset-gpios = <&gpe 2 GPIO_ACTIVE_LOW>;

backlight = <&backlight>;
power-supply = <&vcc>;

port {
frida_input: endpoint {
remote-endpoint = <&panel_output>;
};
};
};
};

&pins_lcd {
groups = "lcd-24bit";
};

&panel {
status = "disabled";
};

/* Make ABT panel port a dummy to avoid DTC complaints */
&panel_input {
remote-endpoint = <&panel_input>;
};

&panel_output {
remote-endpoint = <&frida_input>;
};

&btn6 {
label = "Button X";
};

&btn7 {
label = "Button Y";
};
&btn8 {
gpios = <&gpb 20 GPIO_ACTIVE_LOW>;
};

&btn9 {
gpios = <&gpe 26 GPIO_ACTIVE_LOW>;
};

&pmu {
charger = <&usb_conn>;
power-supplies = <&usb_conn>;
};

&usb_conn {
vbus-supply = <&vcc>;
};

&gpio_keys {
button@14 {
label = "L2 shoulder button";
linux,code = <KEY_PAGEUP>;
linux,can-disable;
gpios = <&gpd 31 GPIO_ACTIVE_LOW>;
};

button@15 {
label = "R2 shoulder button";
linux,code = <KEY_PAGEDOWN>;
linux,can-disable;
gpios = <&gpf 10 GPIO_ACTIVE_LOW>;
};

button@16 {
label = "Volume+ button";
linux,code = <KEY_VOLUMEUP>;
linux,can-disable;
gpios = <&gpd 19 GPIO_ACTIVE_LOW>;
};

button@17 {
label = "Volume- button";
linux,code = <KEY_VOLUMEDOWN>;
linux,can-disable;
gpios = <&gpe 13 GPIO_ACTIVE_LOW>;
};

button@18 {
label = "Menu button";
linux,code = <KEY_HOME>;
linux,can-disable;
gpios = <&gpe 8 GPIO_ACTIVE_LOW>;
};
};

&i2c4 {
status = "disabled";
};

&it6610 {
status = "disabled";
};

&dc_charger {
status = "disabled";
};

&i2c0 {
status = "disabled";
};

&radio {
status = "disabled";
};

&usb_vbus {
status = "disabled";
};