1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/linux-event-codes.h>
7 #include <dt-bindings/pinctrl/rockchip.h>
8 #include "rk3566-anbernic-rgxx3.dtsi"
12 compatible = "adc-joystick";
13 io-channels = <&adc_mux 0>,
17 pinctrl-0 = <&joy_mux_en>;
18 pinctrl-names = "default";
27 abs-range = <1023 15>;
35 abs-range = <15 1023>;
36 linux,code = <ABS_RX>;
43 abs-range = <15 1023>;
51 abs-range = <1023 15>;
52 linux,code = <ABS_RY>;
57 compatible = "io-channel-mux";
58 channels = "left_x", "right_x", "left_y", "right_y";
59 #io-channel-cells = <1>;
60 io-channels = <&saradc 3>;
61 io-channel-names = "parent";
62 mux-controls = <&gpio_mux>;
63 settle-time-us = <100>;
66 backlight: backlight {
67 compatible = "pwm-backlight";
68 power-supply = <&vcc_sys>;
69 pwms = <&pwm4 0 25000 0>;
72 gpio_mux: mux-controller {
73 compatible = "gpio-mux";
74 mux-gpios = <&gpio0 RK_PB6 GPIO_ACTIVE_LOW>,
75 <&gpio0 RK_PB7 GPIO_ACTIVE_LOW>;
76 #mux-control-cells = <0>;
81 assigned-clocks = <&pmucru CLK_RTC_32K>, <&cru PLL_GPLL>,
82 <&pmucru PLL_PPLL>, <&cru PLL_VPLL>;
83 assigned-clock-rates = <32768>, <1200000000>,
84 <200000000>, <241500000>;
99 dsi0_in_vp1: endpoint {
100 remote-endpoint = <&vp1_out_dsi0>;
106 mipi_out_panel: endpoint {
107 remote-endpoint = <&mipi_in_panel>;
113 compatible = "anbernic,rg353p-panel", "newvision,nv3051d";
115 backlight = <&backlight>;
116 pinctrl-names = "default";
117 pinctrl-0 = <&lcd_rst>;
118 reset-gpios = <&gpio4 RK_PA0 GPIO_ACTIVE_LOW>;
119 vdd-supply = <&vcc3v3_lcd0_n>;
122 mipi_in_panel: endpoint {
123 remote-endpoint = <&mipi_out_panel>;
131 gpios = <&gpio3 RK_PC2 GPIO_ACTIVE_LOW>;
133 linux,code = <BTN_EAST>;
137 gpios = <&gpio3 RK_PA6 GPIO_ACTIVE_LOW>;
139 linux,code = <BTN_DPAD_LEFT>;
143 gpios = <&gpio3 RK_PA5 GPIO_ACTIVE_LOW>;
144 label = "DPAD-RIGHT";
145 linux,code = <BTN_DPAD_RIGHT>;
149 gpios = <&gpio3 RK_PA1 GPIO_ACTIVE_LOW>;
151 linux,code = <BTN_THUMBL>;
155 gpios = <&gpio3 RK_PA2 GPIO_ACTIVE_LOW>;
157 linux,code = <BTN_THUMBR>;
161 gpios = <&gpio3 RK_PC1 GPIO_ACTIVE_LOW>;
163 linux,code = <BTN_WEST>;
168 /* This hardware is physically present but unused. */
170 compatible = "cellwise,cw2015";
180 <4 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>;
190 vp1_out_dsi0: endpoint@ROCKCHIP_VOP2_EP_MIPI0 {
191 reg = <ROCKCHIP_VOP2_EP_MIPI0>;
192 remote-endpoint = <&dsi0_in_vp1>;