summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2020-05-09 10:50:28 -0700
committerYe Li <ye.li@nxp.com>2020-05-11 02:20:02 -0700
commit6901ffb66e516a3e52d2120522dc1be18de5bafa (patch)
treeff63ece3f6ac2059835156e2dd2c911e0fc36fdd /arch/arm
parent05498bdd53c77c5d6ead68da82cd34afde0ba17a (diff)
MLK-23964-18 imx8mn_evk: Enable video splash screen on DDR4 and LPDDR4 EVK
Update board codes and DTS files to add display relevant nodes and configurations. Support two video links with MIPI DSI: 1. MIPI DSI to HDMI convertor, this is default 2. RM67191 panel Signed-off-by: Ye Li <ye.li@nxp.com>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/dts/imx8mn-ddr4-evk-u-boot.dtsi13
-rw-r--r--arch/arm/dts/imx8mn-ddr4-evk.dts41
-rw-r--r--arch/arm/dts/imx8mn-evk.dts41
-rw-r--r--arch/arm/dts/imx8mn.dtsi3
4 files changed, 93 insertions, 5 deletions
diff --git a/arch/arm/dts/imx8mn-ddr4-evk-u-boot.dtsi b/arch/arm/dts/imx8mn-ddr4-evk-u-boot.dtsi
index 18361dcd67..612fd24102 100644
--- a/arch/arm/dts/imx8mn-ddr4-evk-u-boot.dtsi
+++ b/arch/arm/dts/imx8mn-ddr4-evk-u-boot.dtsi
@@ -148,3 +148,16 @@
assigned-clocks = <&clk IMX8MN_CLK_QSPI>;
assigned-clock-parents = <&clk IMX8MN_SYS_PLL1_100M>;
};
+
+&lcdif {
+ enable_polarity_low;
+ /delete-property/ assigned-clocks;
+ /delete-property/ assigned-clock-parents;
+ /delete-property/ assigned-clock-rates;
+};
+
+&mipi_dsi {
+ /delete-property/ assigned-clocks;
+ /delete-property/ assigned-clock-parents;
+ /delete-property/ assigned-clock-rates;
+}; \ No newline at end of file
diff --git a/arch/arm/dts/imx8mn-ddr4-evk.dts b/arch/arm/dts/imx8mn-ddr4-evk.dts
index 6931b906d8..3469c21983 100644
--- a/arch/arm/dts/imx8mn-ddr4-evk.dts
+++ b/arch/arm/dts/imx8mn-ddr4-evk.dts
@@ -29,6 +29,32 @@
startup-delay-us = <100>;
off-on-delay-us = <12000>;
};
+
+ dsi_host: dsi-host {
+ compatible = "samsung,sec-mipi-dsi";
+ status = "okay";
+ };
+
+ rm67191_panel {
+ compatible = "raydium,rm67191";
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_mipi_dsi_en>;
+ reset-gpio = <&gpio1 8 GPIO_ACTIVE_LOW>;
+ dsi-lanes = <4>;
+ video-mode = <2>; /* 0: burst mode
+ * 1: non-burst mode with sync event
+ * 2: non-burst mode with sync pulse
+ */
+ panel-width-mm = <68>;
+ panel-height-mm = <121>;
+ status = "okay";
+
+ port {
+ rm67191_from_dsim: endpoint {
+ remote-endpoint = <&dsim_to_rm67191>;
+ };
+ };
+ };
};
&iomuxc {
@@ -248,7 +274,7 @@
adv_bridge: adv7535@3d {
compatible = "adi,adv7533";
reg = <0x3d>;
- adi,addr-cec = <0x3b>;
+ adi,addr-cec = <0x3c>;
adi,dsi-lanes = <4>;
status = "okay";
@@ -469,7 +495,13 @@
};
&lcdif {
+ display = <&display0>;
status = "okay";
+
+ display0: display@0 {
+ bits-per-pixel = <24>;
+ bus-width = <24>;
+ };
};
&mipi_dsi {
@@ -478,7 +510,12 @@
port@1 {
dsim_to_adv7535: endpoint {
remote-endpoint = <&adv7535_from_dsim>;
- attach-bridge;
+ };
+ };
+
+ port@2 {
+ dsim_to_rm67191: endpoint {
+ remote-endpoint = <&rm67191_from_dsim>;
};
};
};
diff --git a/arch/arm/dts/imx8mn-evk.dts b/arch/arm/dts/imx8mn-evk.dts
index 63db6821bc..617c273f06 100644
--- a/arch/arm/dts/imx8mn-evk.dts
+++ b/arch/arm/dts/imx8mn-evk.dts
@@ -29,6 +29,32 @@
startup-delay-us = <100>;
off-on-delay-us = <12000>;
};
+
+ dsi_host: dsi-host {
+ compatible = "samsung,sec-mipi-dsi";
+ status = "okay";
+ };
+
+ rm67191_panel {
+ compatible = "raydium,rm67191";
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_mipi_dsi_en>;
+ reset-gpio = <&gpio1 8 GPIO_ACTIVE_LOW>;
+ dsi-lanes = <4>;
+ video-mode = <2>; /* 0: burst mode
+ * 1: non-burst mode with sync event
+ * 2: non-burst mode with sync pulse
+ */
+ panel-width-mm = <68>;
+ panel-height-mm = <121>;
+ status = "okay";
+
+ port {
+ rm67191_from_dsim: endpoint {
+ remote-endpoint = <&dsim_to_rm67191>;
+ };
+ };
+ };
};
&iomuxc {
@@ -385,7 +411,7 @@
adv_bridge: adv7535@3d {
compatible = "adi,adv7533";
reg = <0x3d>;
- adi,addr-cec = <0x3b>;
+ adi,addr-cec = <0x3c>;
adi,dsi-lanes = <4>;
status = "okay";
@@ -493,7 +519,13 @@
};
&lcdif {
+ display = <&display0>;
status = "okay";
+
+ display0: display@0 {
+ bits-per-pixel = <24>;
+ bus-width = <24>;
+ };
};
&mipi_dsi {
@@ -502,7 +534,12 @@
port@1 {
dsim_to_adv7535: endpoint {
remote-endpoint = <&adv7535_from_dsim>;
- attach-bridge;
+ };
+ };
+
+ port@2 {
+ dsim_to_rm67191: endpoint {
+ remote-endpoint = <&rm67191_from_dsim>;
};
};
};
diff --git a/arch/arm/dts/imx8mn.dtsi b/arch/arm/dts/imx8mn.dtsi
index 832c068d06..f2b82d05c7 100644
--- a/arch/arm/dts/imx8mn.dtsi
+++ b/arch/arm/dts/imx8mn.dtsi
@@ -39,6 +39,7 @@
spi0 = &flexspi;
usb0 = &usbotg1;
usb1 = &usbotg2;
+ video0 = &lcdif;
};
cpus {
@@ -894,7 +895,7 @@
assigned-clock-parents = <&clk IMX8MN_VIDEO_PLL1_OUT>,
<&clk IMX8MN_SYS_PLL2_1000M>,
<&clk IMX8MN_SYS_PLL1_800M>;
- assigned-clock-rate = <594000000>,
+ assigned-clock-rates = <594000000>,
<500000000>,
<200000000>;
interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;