Open main menu

DAVE Developer's Wiki β

Changes

DESK-MX8M-L/Peripherals/LVDS

139 bytes added, 14:01, 13 February 2023
Device tree configuration
Here below an example of device tree modification on standard DAVE's kit for the ORCA SOM:
From <code>imx8mp-mito8mplus-cb1001cb1008.dts</code>
<pre>
reg_lvds_en: regulator-lvds-en regulator_lcd_3V3_en {
compatible = "regulator-fixed";
regulator-name = "lvds_enable";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_lvds_enablepinctrl_lcd_3v3_enable>; gpio = <&gpio4 31 gpio1 6 GPIO_ACTIVE_HIGH>;
enable-active-high;
regulator-boot-on;
regulator-always-on;
};
... ... panel0reg_vccbkl_en: lvds0_panel regulator_lcd_5V_en { compatible = "avic,tm070ddh03regulator-fixed"; regulator-name = "vddbkl_enable"; pinctrl-names = "default"; powerpinctrl-supply 0 = <&reg_lvds_enpinctrl_lcd_5v_enable>; gpio = <&gpio1 8 GPIO_ACTIVE_HIGH>; enable-active-high; regulator-boot-on; regulator-always-on; };};......&i2c6 { clock-frequency = <100000>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_i2c6>; status = "okay";
backlight = <&lvds_backlight>; lvds_bridge: lvds-to-hdmi-bridge@4c { pinctrl-names compatible = "defaultite,it6263"; pinctrl-0 reg = <&pinctrl_panel_enable0x4c>; enablereset-gpios = <&gpio4 1 GPIO_ACTIVE_HIGH>, <&gpio4 2 GPIO_ACTIVE_HIGHgpio1 9 GPIO_ACTIVE_LOW>; status = "okay";
port {
panel_lvds_init6263_in: endpoint { remote-endpoint = <&lvds_outlvds0_out>;
};
};
};
};
...
...
 
&lcdif2 {
status = "okay";
};
...
...
lvds-channel@0 {
fsl,data-mapping = "spwgjeida";
fsl,data-width = <24>;
status = "okay";
reg = <1>;
lvds_outlvds0_out: endpoint { remote-endpoint = <&panel_lvds_init6263_in>;
};
};
};
};
......
&ldb_phy {
status = "okay";
...
&iomuxc {
...... pinctrl_panel_enablepinctrl_lcd_3v3_enable: panelgrp { fsl,pins = < MX8MP_IOMUXC_SAI1_RXC__GPIO4_IO01 0x19 MX8MP_IOMUXC_SAI1_RXD0__GPIO4_IO02 0x19 >; };  pinctrl_lvds_enable: lvds_en lcd_3v3_en {
fsl,pins = <
MX8MP_IOMUXC_SAI3_TXFS__GPIO4_IO31 MX8MP_IOMUXC_GPIO1_IO06__GPIO1_IO06 0x19
>;
};
pinctrl_vddbkl_enable: vddbkl_en {
fsl,pins = <
MX8MP_IOMUXC_GPIO1_IO08__GPIO1_IO08 0x19
>;
};
pinctrl_bkl_enablepinctrl_lcd_5v_enable: bkl_en lcd_5v_en {
fsl,pins = <
MX8MP_IOMUXC_GPIO1_IO09__GPIO1_IO09 MX8MP_IOMUXC_GPIO1_IO08__GPIO1_IO08 0x19
>;
};
dave_user
424
edits