Skip to content
Snippets Groups Projects
Commit b5e13aa4 authored by Gianfranco Mariotti's avatar Gianfranco Mariotti
Browse files

[D18] add LVDS FHD dual-channel video support

* enabled at u-boot: seco_config tool
* on CSB79REVB: panel AUO P215HVN01.0 + CV1235/750REVB
  (LVDS CN14: switch SW6 1-3 and 2-4 position OFF, jumper CN18
  position 2-3 and CN19 position 1-2)
parent 28ef53aa
No related branches found
No related tags found
1 merge request!101[i.MX8MP][D18] Upgrade hardware support
...@@ -25,6 +25,7 @@ dtbo-$(CONFIG_ARCH_MXC) += \ ...@@ -25,6 +25,7 @@ dtbo-$(CONFIG_ARCH_MXC) += \
seco-imx8qm-c43-hdmiin.dtbo\ seco-imx8qm-c43-hdmiin.dtbo\
seco-imx8qm-c43-lvds-sn65dsi86.dtbo\ seco-imx8qm-c43-lvds-sn65dsi86.dtbo\
seco-imx8mp-d18-hdmi.dtbo\ seco-imx8mp-d18-hdmi.dtbo\
seco-imx8mp-d18-lvds-fhd.dtbo\
seco-imx8mp-d18-audio-btsco.dtbo seco-imx8mp-d18-audio-btsco.dtbo
# seco-imx8qm-c26-dp.dtbo\ # seco-imx8qm-c26-dp.dtbo\
......
/*
* Copyright 2021 SECO
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#include <dt-bindings/gpio/gpio.h>
/dts-v1/;
/plugin/;
/ {
compatible = "fsl,imx8mp-evk", "seco,imx8mp-d18", "fsl,imx8mp";
/* __________________________________________________________________________
* | |
* | LVDS |
* |__________________________________________________________________________|
*/
fragment@0 {
target-path = "/";
__overlay__ {
panel_lvds: lvds_panel {
#address-cells = <1>;
#size-cells = <0>;
compatible = "nlt,nl192108ac18-02d";
status = "okay";
port {
panel_lvds_in: endpoint {
remote-endpoint = <&lvds_out>;
};
};
};
};
};
fragment@1 {
target = <&ldb>;
__overlay__ {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
fsl,dual-channel;
lvds-channel@0 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
/delete-node/ port@1;
port@1 {
reg = <1>;
#address-cells = <1>;
#size-cells = <0>;
lvds_out: endpoint {
remote-endpoint = <&panel_lvds_in>;
};
};
};
};
};
fragment@2 {
target = <&lcdif2>;
__overlay__ {
status = "okay";
};
};
fragment@3 {
target = <&ldb_phy>;
__overlay__ {
status = "okay";
};
};
fragment@4 {
target-path = "/";
__overlay__ {
reg_lcd0_vdd_en: regulator-lcd0-vdd-en {
compatible = "regulator-fixed";
regulator-name = "lcd0_vdd_en";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
gpio = <&gpio4 21 0>;
enable-active-high;
regulator-always-on;
regulator-boot-on;
status = "okay";
};
reg_lcd0_bkl_en: regulator-lcd0-bkl-en {
compatible = "regulator-fixed";
regulator-name = "lcd0_bkl_en";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
gpio = <&gpio1 6 0>;
enable-active-high;
regulator-always-on;
regulator-boot-on;
status = "okay";
};
};
};
fragment@5 {
target-path = "/";
__overlay__ {
lcd0_backlight {
compatible = "pwm-backlight";
pwms = <&pwm1 0 100000>;
status = "okay";
brightness-levels = <0 100>;
num-interpolated-steps = <100>;
default-brightness-level = <80>;
};
};
};
};
...@@ -730,6 +730,9 @@ ...@@ -730,6 +730,9 @@
/* GPIO expander 0x20 */ /* GPIO expander 0x20 */
MX8MP_IOMUXC_GPIO1_IO07__GPIO1_IO07 0x40000 MX8MP_IOMUXC_GPIO1_IO07__GPIO1_IO07 0x40000
/* LCD0 Enable */
MX8MP_IOMUXC_GPIO1_IO06__GPIO1_IO06 0x0 /* LCD0_BKLT_EN */
MX8MP_IOMUXC_SAI2_RXFS__GPIO4_IO21 0x0 /* LCD0_VDD_EN */
/* eCtrl */ /* eCtrl */
MX8MP_IOMUXC_SAI1_RXD0__GPIO4_IO02 0x0 MX8MP_IOMUXC_SAI1_RXD0__GPIO4_IO02 0x0
MX8MP_IOMUXC_GPIO1_IO00__GPIO1_IO00 0x0 MX8MP_IOMUXC_GPIO1_IO00__GPIO1_IO00 0x0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment