Merge tag 'siox/for-6.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/ukleine...
[linux-2.6-microblaze.git] / arch / arm64 / boot / dts / rockchip / rk3566-powkiddy-rgb10max3.dts
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 RGB10MAX3";
12         compatible = "powkiddy,rgb10max3", "rockchip,rk3566";
13 };
14
15 &bluetooth {
16         compatible = "realtek,rtl8723ds-bt";
17 };
18
19 &cru {
20         assigned-clocks = <&pmucru CLK_RTC_32K>, <&cru PLL_GPLL>,
21                           <&pmucru PLL_PPLL>, <&cru PLL_VPLL>;
22         assigned-clock-rates = <32768>, <1200000000>,
23                                <200000000>, <126400000>;
24 };
25
26 &dsi0 {
27         panel: panel@0 {
28                 compatible = "powkiddy,rgb10max3-panel";
29                 reg = <0>;
30                 backlight = <&backlight>;
31                 iovcc-supply = <&vcc3v3_lcd0_n>;
32                 pinctrl-0 = <&lcd_rst>;
33                 pinctrl-names = "default";
34                 reset-gpios = <&gpio4 RK_PA0 GPIO_ACTIVE_LOW>;
35                 rotation = <270>;
36                 vcc-supply = <&vcc3v3_lcd0_n>;
37
38                 port {
39                         mipi_in_panel: endpoint {
40                                 remote-endpoint = <&mipi_out_panel>;
41                         };
42                 };
43         };
44 };
45
46 &green_led {
47         default-state = "on";
48         function = LED_FUNCTION_POWER;
49 };
50
51 &i2c0 {
52         vdd_cpu: regulator@40 {
53                 compatible = "fcs,fan53555";
54                 reg = <0x40>;
55                 fcs,suspend-voltage-selector = <1>;
56                 regulator-always-on;
57                 regulator-boot-on;
58                 regulator-min-microvolt = <712500>;
59                 regulator-max-microvolt = <1390000>;
60                 regulator-name = "vdd_cpu";
61                 regulator-ramp-delay = <2300>;
62                 vin-supply = <&vcc_sys>;
63                 regulator-state-mem {
64                         regulator-off-in-suspend;
65                 };
66         };
67 };
68
69 &leds {
70         amber_led: led-2 {
71                 color = <LED_COLOR_ID_AMBER>;
72                 function = LED_FUNCTION_CHARGING;
73                 max-brightness = <255>;
74                 pwms = <&pwm0 0 25000 0>;
75         };
76 };
77
78 &pwm0 {
79         pinctrl-0 = <&pwm0m1_pins>;
80         pinctrl-names = "default";
81         status = "okay";
82 };
83
84 &red_led {
85         default-state = "off";
86         function = LED_FUNCTION_STATUS;
87 };