1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2
3/dts-v1/;
4
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"
9
10/ {
11	backlight: backlight {
12		compatible = "pwm-backlight";
13		power-supply = <&vcc_sys>;
14		pwms = <&pwm4 0 25000 0>;
15	};
16};
17
18&cru {
19	assigned-clocks = <&cru PLL_GPLL>, <&pmucru PLL_PPLL>, <&cru PLL_VPLL>;
20	assigned-clock-rates = <1200000000>, <200000000>, <241500000>;
21};
22
23&gpio_keys_control {
24	button-a {
25		gpios = <&gpio3 RK_PC2 GPIO_ACTIVE_LOW>;
26		label = "EAST";
27		linux,code = <BTN_EAST>;
28	};
29
30	button-left {
31		gpios = <&gpio3 RK_PA6 GPIO_ACTIVE_LOW>;
32		label = "DPAD-LEFT";
33		linux,code = <BTN_DPAD_LEFT>;
34	};
35
36	button-right {
37		gpios = <&gpio3 RK_PA5 GPIO_ACTIVE_LOW>;
38		label = "DPAD-RIGHT";
39		linux,code = <BTN_DPAD_RIGHT>;
40	};
41
42	button-y {
43		gpios = <&gpio3 RK_PC1 GPIO_ACTIVE_LOW>;
44		label = "WEST";
45		linux,code = <BTN_WEST>;
46	};
47};
48
49&i2c0 {
50	/* This hardware is physically present but unused. */
51	power-monitor@62 {
52		compatible = "cellwise,cw2015";
53		reg = <0x62>;
54		status = "disabled";
55	};
56};
57
58&pwm4 {
59	status = "okay";
60};
61