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 = <&pmucru CLK_RTC_32K>, <&cru PLL_GPLL>, 20 <&pmucru PLL_PPLL>, <&cru PLL_VPLL>; 21 assigned-clock-rates = <32768>, <1200000000>, 22 <200000000>, <241500000>; 23}; 24 25&gpio_keys_control { 26 button-a { 27 gpios = <&gpio3 RK_PC2 GPIO_ACTIVE_LOW>; 28 label = "EAST"; 29 linux,code = <BTN_EAST>; 30 }; 31 32 button-left { 33 gpios = <&gpio3 RK_PA6 GPIO_ACTIVE_LOW>; 34 label = "DPAD-LEFT"; 35 linux,code = <BTN_DPAD_LEFT>; 36 }; 37 38 button-right { 39 gpios = <&gpio3 RK_PA5 GPIO_ACTIVE_LOW>; 40 label = "DPAD-RIGHT"; 41 linux,code = <BTN_DPAD_RIGHT>; 42 }; 43 44 button-y { 45 gpios = <&gpio3 RK_PC1 GPIO_ACTIVE_LOW>; 46 label = "WEST"; 47 linux,code = <BTN_WEST>; 48 }; 49}; 50 51&i2c0 { 52 /* This hardware is physically present but unused. */ 53 power-monitor@62 { 54 compatible = "cellwise,cw2015"; 55 reg = <0x62>; 56 status = "disabled"; 57 }; 58}; 59 60&pwm4 { 61 status = "okay"; 62}; 63