Debian Codegraph @

scripts/dtc/include-prefixes/arm64/rockchip/rk3566-powkiddy-rgb20sx.dts

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