Commit 4fd6d883 authored by Guido Gunther's avatar Guido Gunther Committed by Angus Ainslie (Purism)

librem5-devkit: dts: Enable imx-display-subsystem

This uses

 - our nwl mipi dsi controller driver
 - our mixel dphy driver
 - a forward port from NXPs dcss driver from our 4.18 tree
   (which we got from their 4.9/4.14 trees)
 - a forward port NXPs patches to the imx-display-subsystem driver
   from our 4.18 tree (which we got from their 4.9/4.14 trees)
parent 204566ab
......@@ -980,3 +980,72 @@
fsl,ext-reset-output;
status = "okay";
};
&dcss {
disp-dev = "mipi_disp";
clocks = <&clk IMX8MQ_CLK_DISP_APB_ROOT>,
<&clk IMX8MQ_CLK_DISP_AXI_ROOT>,
<&clk IMX8MQ_CLK_DISP_RTRM_ROOT>,
<&clk IMX8MQ_CLK_DC_PIXEL>,
<&clk IMX8MQ_CLK_DUMMY>,
<&clk IMX8MQ_CLK_DISP_DTRC>;
clock-names = "apb", "axi", "rtrm", "pix_div", "pix_out", "dtrc";
assigned-clocks = <&clk IMX8MQ_CLK_DC_PIXEL>,
<&clk IMX8MQ_CLK_DISP_AXI>,
<&clk IMX8MQ_CLK_DISP_RTRM>,
<&clk IMX8MQ_CLK_DISP_RTRM_ROOT>,
<&clk IMX8MQ_VIDEO_PLL1_BYPASS>;
assigned-clock-parents = <&clk IMX8MQ_VIDEO_PLL1_OUT>,
<&clk IMX8MQ_SYS1_PLL_800M>,
<&clk IMX8MQ_SYS1_PLL_800M>,
<&clk IMX8MQ_CLK_DISP_RTRM>,
<&clk IMX8MQ_VIDEO_PLL1>;
assigned-clock-rates = <75000000>,
<800000000>,
<400000000>,
<400000000>,
<0>;
status = "okay";
dcss_disp0: port@0 {
dcss_disp0_mipi_dsi: endpoint {
remote-endpoint = <&mipi_dsi_in>;
};
};
};
&dphy {
status = "okay";
};
&mipi_dsi {
status = "okay";
panel@0 {
compatible = "rocktech,jh057n00900";
reg = <0>;
backlight = <&backlight_dsi>;
reset-gpios = <&gpio3 13 GPIO_ACTIVE_LOW>;
port {
panel_in: endpoint {
remote-endpoint = <&mipi_dsi_out>;
};
};
};
ports {
port@0 {
mipi_dsi_in: endpoint {
remote-endpoint = <&dcss_disp0_mipi_dsi>;
};
};
port@1 {
mipi_dsi_out: endpoint {
remote-endpoint = <&panel_in>;
};
};
};
};
&imx_disp_sub {
ports = <&dcss_disp0>;
};
......@@ -942,6 +942,30 @@
interrupt-controller;
#interrupt-cells = <1>;
};
dcss: dcss@0x32e00000 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "nxp,imx8mq-dcss";
reg = <0x32e00000 0x30000>;
interrupts = <3>,
<4>,
<5>,
<6>,
<8>;
interrupt-names = "dpr_dc_ch0",
"dpr_dc_ch1",
"dpr_dc_ch2",
"ctx_ld",
"dtg_prg1";
interrupt-parent = <&irqsteer>;
status = "disabled";
};
};
imx_disp_sub: display-subsystem {
compatible = "fsl,imx-display-subsystem";
//ports = <&dcss_disp0>;
};
gpu: gpu@38000000 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment