Debian Codegraph @

arch/arm64/boot/dts/renesas/r8a779g3-sparrow-hawk-rpi-display-2.dtsi

raw
1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 /*
3 * Device Tree Overlay for the RPi Display 2 MIPI DSI panel connected
4 * to J4:DSI on R-Car V4H ES3.0 Sparrow Hawk board
5 *
6 * Copyright (C) 2025 Marek Vasut <[email protected]>
7 */
8
9 /dts-v1/;
10 /plugin/;
11
12 #include <dt-bindings/gpio/gpio.h>
13
14 &{/} {
15 display_bl: backlight {
16 compatible = "pwm-backlight";
17 pwms = <&mcu 0 255 0>;
18 };
19
20 reg_display: regulator-display {
21 compatible = "regulator-fixed";
22 regulator-name = "rpi-display";
23 regulator-min-microvolt = <5000000>;
24 regulator-max-microvolt = <5000000>;
25 };
26
27 reg_dsi_touch: regulator-dsi-touch {
28 compatible = "regulator-fixed";
29 gpio = <&mcu 1 GPIO_ACTIVE_HIGH>;
30 regulator-name = "rpi-touch";
31 regulator-min-microvolt = <3300000>;
32 regulator-max-microvolt = <3300000>;
33 startup-delay-us = <50000>;
34 enable-active-high;
35 };
36 };
37
38 &i2c0_mux3 {
39 #address-cells = <1>;
40 #size-cells = <0>;
41
42 mcu: gpio@45 {
43 compatible = "raspberrypi,touchscreen-panel-regulator-v2";
44 reg = <0x45>;
45 gpio-controller;
46 #gpio-cells = <2>;
47 #pwm-cells = <3>;
48 };
49
50 touchscreen@5d {
51 compatible = "goodix,gt911";
52 reg = <0x5d>;
53 AVDD28-supply = <&reg_dsi_touch>;
54 touchscreen-size-x = <720>;
55 touchscreen-size-y = <1280>;
56 };
57 };
58
59 &dsi0 {
60 #address-cells = <1>;
61 #size-cells = <0>;
62 status = "okay";
63
64 ports {
65 #address-cells = <1>;
66 #size-cells = <0>;
67
68 port@1 {
69 reg = <1>;
70
71 dsi0_out: endpoint {
72 remote-endpoint = <&panel_in>;
73 data-lanes = <1 2>;
74 };
75 };
76 };
77
78 panel: panel@0 {
79 reg = <0>;
80 backlight = <&display_bl>;
81 power-supply = <&reg_display>;
82 reset-gpios = <&mcu 0 GPIO_ACTIVE_LOW>;
83
84 port {
85 panel_in: endpoint {
86 remote-endpoint = <&dsi0_out>;
87 };
88 };
89 };
90 };