126 lines
2.3 KiB
Plaintext
126 lines
2.3 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 = <20>;
|
|
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>;
|
|
|
|
nvmem = <&eeprom0>;
|
|
nvmem-names = "eeprom";
|
|
|
|
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>;
|
|
|
|
nvmem = <&eeprom0>;
|
|
nvmem-names = "eeprom";
|
|
};
|
|
|
|
eeprom0: eeprom@51 {
|
|
compatible = "atmel,24c64";
|
|
reg = <0x51>;
|
|
label = "eeprom";
|
|
};
|
|
};
|
|
};
|
|
};
|