Debian Codegraph @

scripts/dtc/include-prefixes/arm64/rockchip/rk3399-rockpro64-screen.dtso

raw
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 /*
3 * Copyright (c) 2017 Fuzhou Rockchip Electronics Co., Ltd.
4 * Copyright (c) 2025 Peter Robinson <[email protected]>
5 */
6
7 /dts-v1/;
8 /plugin/;
9
10 #include <dt-bindings/gpio/gpio.h>
11 #include <dt-bindings/interrupt-controller/irq.h>
12 #include <dt-bindings/pinctrl/rockchip.h>
13
14 &{/} {
15 avdd: regulator-avdd {
16 compatible = "regulator-fixed";
17 regulator-name = "avdd";
18 regulator-min-microvolt = <11000000>;
19 regulator-max-microvolt = <11000000>;
20 vin-supply = <&vcc3v3_s0>;
21 };
22
23 backlight: backlight {
24 compatible = "pwm-backlight";
25 brightness-levels = <0 4 8 16 32 64 128 255>;
26 default-brightness-level = <5>;
27 pwms = <&pwm0 0 1000000 0>;
28 status = "okay";
29 };
30 };
31
32 &i2c4 {
33 #address-cells = <1>;
34 #size-cells = <0>;
35
36 touch: touchscreen@5d {
37 compatible = "goodix,gt911";
38 reg = <0x5d>;
39 interrupt-parent = <&gpio4>;
40 interrupts = <RK_PD5 IRQ_TYPE_EDGE_FALLING>;
41 AVDD28-supply = <&vcc3v0_touch>;
42 VDDIO-supply = <&vcc3v0_touch>;
43 irq-gpios = <&gpio4 RK_PD5 GPIO_ACTIVE_HIGH>;
44 reset-gpios = <&gpio4 RK_PD6 GPIO_ACTIVE_HIGH>;
45 status = "okay";
46 };
47 };
48
49 &mipi_dsi {
50 clock-master;
51 #address-cells = <1>;
52 #size-cells = <0>;
53 status = "okay";
54
55 mipi_panel: panel@0 {
56 compatible = "feiyang,fy07024di26a30d";
57 reg = <0>;
58 avdd-supply = <&avdd>;
59 backlight = <&backlight>;
60 dvdd-supply = <&vcc3v3_s0>;
61
62 port {
63 mipi_in_panel: endpoint {
64 remote-endpoint = <&mipi_out_panel>;
65 };
66 };
67 };
68 };
69
70 &mipi_out {
71 mipi_out_panel: endpoint {
72 remote-endpoint = <&mipi_in_panel>;
73 };
74 };
75
76 &pwm0 {
77 status = "okay";
78 };