1*5f62a964SEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2*5f62a964SEmmanuel Vadot 3*5f62a964SEmmanuel Vadot/dts-v1/; 4*5f62a964SEmmanuel Vadot 5*5f62a964SEmmanuel Vadot#include <dt-bindings/gpio/gpio.h> 6*5f62a964SEmmanuel Vadot#include <dt-bindings/input/linux-event-codes.h> 7*5f62a964SEmmanuel Vadot#include <dt-bindings/pinctrl/rockchip.h> 8*5f62a964SEmmanuel Vadot#include "rk3566-powkiddy-rk2023.dtsi" 9*5f62a964SEmmanuel Vadot 10*5f62a964SEmmanuel Vadot/ { 11*5f62a964SEmmanuel Vadot model = "Powkiddy RGB20SX"; 12*5f62a964SEmmanuel Vadot compatible = "powkiddy,rgb20sx", "rockchip,rk3566"; 13*5f62a964SEmmanuel Vadot 14*5f62a964SEmmanuel Vadot chosen: chosen { 15*5f62a964SEmmanuel Vadot stdout-path = "serial2:1500000n8"; 16*5f62a964SEmmanuel Vadot }; 17*5f62a964SEmmanuel Vadot 18*5f62a964SEmmanuel Vadot adc_keys: adc-keys { 19*5f62a964SEmmanuel Vadot compatible = "adc-keys"; 20*5f62a964SEmmanuel Vadot io-channels = <&saradc 0>; 21*5f62a964SEmmanuel Vadot io-channel-names = "buttons"; 22*5f62a964SEmmanuel Vadot keyup-threshold-microvolt = <1800000>; 23*5f62a964SEmmanuel Vadot poll-interval = <60>; 24*5f62a964SEmmanuel Vadot 25*5f62a964SEmmanuel Vadot /* 26*5f62a964SEmmanuel Vadot * Button is labelled as FN, but according to input 27*5f62a964SEmmanuel Vadot * guidelines it should be mode. 28*5f62a964SEmmanuel Vadot */ 29*5f62a964SEmmanuel Vadot button-mode { 30*5f62a964SEmmanuel Vadot label = "MODE"; 31*5f62a964SEmmanuel Vadot linux,code = <BTN_MODE>; 32*5f62a964SEmmanuel Vadot press-threshold-microvolt = <1750>; 33*5f62a964SEmmanuel Vadot }; 34*5f62a964SEmmanuel Vadot }; 35*5f62a964SEmmanuel Vadot}; 36*5f62a964SEmmanuel Vadot 37*5f62a964SEmmanuel Vadot&battery { 38*5f62a964SEmmanuel Vadot charge-full-design-microamp-hours = <5000000>; 39*5f62a964SEmmanuel Vadot}; 40*5f62a964SEmmanuel Vadot 41*5f62a964SEmmanuel Vadot&bluetooth { 42*5f62a964SEmmanuel Vadot compatible = "realtek,rtl8723ds-bt"; 43*5f62a964SEmmanuel Vadot}; 44*5f62a964SEmmanuel Vadot 45*5f62a964SEmmanuel Vadot&cru { 46*5f62a964SEmmanuel Vadot assigned-clocks = <&pmucru CLK_RTC_32K>, <&cru PLL_GPLL>, 47*5f62a964SEmmanuel Vadot <&pmucru PLL_PPLL>, <&cru PLL_VPLL>; 48*5f62a964SEmmanuel Vadot assigned-clock-rates = <32768>, <1200000000>, 49*5f62a964SEmmanuel Vadot <200000000>, <292500000>; 50*5f62a964SEmmanuel Vadot}; 51*5f62a964SEmmanuel Vadot 52*5f62a964SEmmanuel Vadot&dsi0 { 53*5f62a964SEmmanuel Vadot panel: panel@0 { 54*5f62a964SEmmanuel Vadot compatible = "powkiddy,rgb30-panel"; 55*5f62a964SEmmanuel Vadot reg = <0>; 56*5f62a964SEmmanuel Vadot backlight = <&backlight>; 57*5f62a964SEmmanuel Vadot pinctrl-names = "default"; 58*5f62a964SEmmanuel Vadot pinctrl-0 = <&lcd_rst>; 59*5f62a964SEmmanuel Vadot reset-gpios = <&gpio4 RK_PA0 GPIO_ACTIVE_LOW>; 60*5f62a964SEmmanuel Vadot vcc-supply = <&vcc3v3_lcd0_n>; 61*5f62a964SEmmanuel Vadot iovcc-supply = <&vcc3v3_lcd0_n>; 62*5f62a964SEmmanuel Vadot 63*5f62a964SEmmanuel Vadot port { 64*5f62a964SEmmanuel Vadot mipi_in_panel: endpoint { 65*5f62a964SEmmanuel Vadot remote-endpoint = <&mipi_out_panel>; 66*5f62a964SEmmanuel Vadot }; 67*5f62a964SEmmanuel Vadot }; 68*5f62a964SEmmanuel Vadot }; 69*5f62a964SEmmanuel Vadot}; 70*5f62a964SEmmanuel Vadot 71*5f62a964SEmmanuel Vadot&i2c0 { 72*5f62a964SEmmanuel Vadot vdd_cpu: regulator@1c { 73*5f62a964SEmmanuel Vadot compatible = "tcs,tcs4525"; 74*5f62a964SEmmanuel Vadot reg = <0x1c>; 75*5f62a964SEmmanuel Vadot fcs,suspend-voltage-selector = <1>; 76*5f62a964SEmmanuel Vadot regulator-min-microvolt = <712500>; 77*5f62a964SEmmanuel Vadot regulator-max-microvolt = <1390000>; 78*5f62a964SEmmanuel Vadot regulator-name = "vdd_cpu"; 79*5f62a964SEmmanuel Vadot regulator-ramp-delay = <2300>; 80*5f62a964SEmmanuel Vadot vin-supply = <&vcc_sys>; 81*5f62a964SEmmanuel Vadot regulator-state-mem { 82*5f62a964SEmmanuel Vadot regulator-off-in-suspend; 83*5f62a964SEmmanuel Vadot }; 84*5f62a964SEmmanuel Vadot }; 85*5f62a964SEmmanuel Vadot}; 86*5f62a964SEmmanuel Vadot 87*5f62a964SEmmanuel Vadot&uart2 { 88*5f62a964SEmmanuel Vadot status = "okay"; 89*5f62a964SEmmanuel Vadot}; 90