162 lines
3.8 KiB
Plaintext
162 lines
3.8 KiB
Plaintext
/dts-v1/;
|
|
/plugin/;
|
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
#include <dt-bindings/pinctrl/rockchip.h>
|
|
#include <dt-bindings/display/drm_mipi_dsi.h>
|
|
#include <dt-bindings/interrupt-controller/irq.h>
|
|
|
|
/ {
|
|
fragment@0 {
|
|
target = <&mipi_dcphy0>;
|
|
|
|
__overlay__ {
|
|
status = "okay";
|
|
};
|
|
};
|
|
|
|
fragment@1 {
|
|
target = <&route_dsi0>;
|
|
|
|
__overlay__ {
|
|
status = "okay";
|
|
connect = <&vp2_out_dsi0>;
|
|
};
|
|
};
|
|
|
|
fragment@2 {
|
|
target = <&dsi0_in_vp2>;
|
|
|
|
__overlay__ {
|
|
status = "okay";
|
|
};
|
|
};
|
|
|
|
|
|
fragment@3 {
|
|
target = <&dsi0>;
|
|
|
|
__overlay__ {
|
|
status = "okay";
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
dsi0_panel: panel@0 {
|
|
status = "okay";
|
|
compatible = "simple-panel-dsi";
|
|
reg = <0>;
|
|
backlight = <&backlight_dsi0>;
|
|
power-supply = <&mipi_dsi0_power>;
|
|
reset-gpios = <&gpio1 RK_PA4 GPIO_ACTIVE_LOW>;
|
|
|
|
enable-delay-ms = <35>;
|
|
prepare-delay-ms = <6>;
|
|
reset-delay-ms = <10>;
|
|
init-delay-ms = <50>;
|
|
unprepare-delay-ms = <0>;
|
|
disable-delay-ms = <20>;
|
|
|
|
size,width = <74>;
|
|
size,height = <133>;
|
|
|
|
dsi,flags = <(MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST | MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_EOT_PACKET)>;
|
|
dsi,format = <MIPI_DSI_FMT_RGB888>;
|
|
dsi,lanes = <4>;
|
|
|
|
panel-init-sequence = [
|
|
39 00 04 B9 FF 83 99
|
|
15 00 02 D2 77
|
|
39 00 10 B1 02 04 74 94 01 32 33 11 11 AB 4D 56 73 02 02
|
|
39 00 10 B2 00 80 80 AE 05 07 5A 11 00 00 10 1E 70 03 D4
|
|
15 00 02 36 02
|
|
39 00 2D B4 00 FF 02 C0 02 C0 00 00 08 00 04 06 00 32 04 0A 08 21 03 01 00 0F B8 8B 02 C0 02 C0 00 00 08 00 04 06 00 32 04 0A 08 01 00 0F B8 01
|
|
39 05 22 D3 00 00 00 00 00 00 06 00 00 10 04 00 04 00 00 00 00 00 00 00 00 00 00 01 00 05 05 07 00 00 00 05 40
|
|
39 05 21 D5 18 18 19 19 18 18 21 20 01 00 07 06 05 04 03 02 18 18 18 18 18 18 2F 2F 30 30 31 31 18 18 18 18
|
|
39 05 21 D6 18 18 19 19 40 40 20 21 06 07 00 01 02 03 04 05 40 40 40 40 40 40 2F 2F 30 30 31 31 40 40 40 40
|
|
39 00 11 D8 A2 AA 02 A0 A2 A8 02 A0 B0 00 00 00 B0 00 00 00
|
|
15 00 02 BD 01
|
|
39 00 11 D8 B0 00 00 00 B0 00 00 00 E2 AA 03 F0 E2 AA 03 F0
|
|
15 00 02 BD 02
|
|
39 00 09 D8 E2 AA 03 F0 E2 AA 03 F0
|
|
15 00 02 BD 00
|
|
39 00 03 B6 8D 8D
|
|
39 05 37 E0 00 0E 19 13 2E 39 48 44 4D 57 5F 66 6C 76 7F 85 8A 95 9A A4 9B AB B0 5C 58 64 77 00 0E 19 13 2E 39 48 44 4D 57 5F 66 6C 76 7F 85 8A 95 9A A4 9B AB B0 5C 58 64 77
|
|
05 C8 01 11
|
|
05 C8 01 29
|
|
];
|
|
|
|
panel-exit-sequence = [
|
|
05 78 01 28
|
|
05 00 01 10
|
|
];
|
|
|
|
disp0_timings0: display-timings {
|
|
native-mode = <&dsi0_timing0>;
|
|
dsi0_timing0: timing0 {
|
|
clock-frequency = <131376000>;
|
|
hactive = <1080>;
|
|
vactive = <1920>;
|
|
hsync-len = <10>;
|
|
hback-porch = <20>;
|
|
hfront-porch = <10>;
|
|
vsync-len = <5>;
|
|
vback-porch = <20>;
|
|
vfront-porch = <10>;
|
|
hsync-active = <0>;
|
|
vsync-active = <0>;
|
|
de-active = <0>;
|
|
pixelclk-active = <0>;
|
|
};
|
|
};
|
|
|
|
ports {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
port@0 {
|
|
reg = <0>;
|
|
panel_in_dsi0: endpoint {
|
|
remote-endpoint = <&dsi0_out_panel>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
ports {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
port@1 {
|
|
reg = <1>;
|
|
dsi0_out_panel: endpoint {
|
|
remote-endpoint = <&panel_in_dsi0>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
fragment@4 {
|
|
target = <&i2c1>;
|
|
|
|
__overlay__ {
|
|
status = "okay";
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&i2c1m2_xfer>;
|
|
|
|
gt911_dsi0: gt911@5d {
|
|
status = "okay";
|
|
compatible = "goodix,gt911";
|
|
reg = <0x5d>;
|
|
interrupt-parent = <&gpio1>;
|
|
interrupts = <RK_PB3 IRQ_TYPE_LEVEL_LOW>;
|
|
reset-gpios = <&gpio1 RK_PB4 GPIO_ACTIVE_LOW>;
|
|
irq-gpios = <&gpio1 RK_PB3 GPIO_ACTIVE_HIGH>;
|
|
touchscreen-inverted-x = <1>;
|
|
touchscreen-inverted-y = <1>;
|
|
};
|
|
};
|
|
};
|
|
};
|