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

[D18] add LVDS WVGA single-channel(CHA) video support

* enabled at u-boot: seco_config tool
* connected on LVDS channel 0
* on CSB79REVB: panel Innolux NE070NB-04F + CV1408/750
  (LVDS CN14: switch SW6 2-4 position OFF, jumper CN18
  position 1-2 and CN19 position 2-3)
parent ee15bd4e
No related merge requests found
......@@ -40,6 +40,7 @@ dtbo-$(CONFIG_ARCH_MXC) += \
seco-imx8mp-d18-hdmi.dtbo\
seco-imx8mp-d18-edp.dtbo\
seco-imx8mp-d18-lvds-fhd.dtbo\
seco-imx8mp-d18-lvds-wvga-ne070nb04f.dtbo\
seco-imx8mp-d18-lvds-wvga-umsh8596md.dtbo\
seco-imx8mp-d18-ov5640-csi0-revA.dtbo\
seco-imx8mp-d18-ov5640-csi1-revA.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>
#include <dt-bindings/display/media-bus-format.h>
#include <dt-bindings/display/drm-mode-connector.h>
/dts-v1/;
/plugin/;
/ {
compatible = "fsl,imx8mp-evk", "seco,imx8mp-d18", "fsl,imx8mp";
/* __________________________________________________________________________
* | |
* | LVDS |
* |__________________________________________________________________________|
*/
fragment@0 {
target-path = "/";
__overlay__ {
lcd0_panel: lcd0_panel {
compatible = "seco-innolux,ne070nb-04f", "panel-dpi";
backlight = <&lcd0_backlight>;
power-supply = <&reg_lcd0_vdd_en>;
width-mm = <154>;
height-mm = <86>;
prepare-ms = <100>;
enable-ms = <400>;
disable-ms = <100>;
unprepare-ms = <100>;
bpc = <8>;
bus-format = <DT_MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA>;
connector-type = <DT_DRM_MODE_CONNECTOR_LVDS>;
status = "okay";
panel-timing {
clock-frequency = <49500000>;
hactive = <800>;
vactive = <480>;
hback-porch = <1>;
hsync-len = <45>;
hfront-porch = <200>;
vback-porch = <22>;
vsync-len = <2>;
vfront-porch = <9>;
hsync-active = <0>;
vsync-active = <0>;
de-active = <1>;
pixelclk-active = <1>;
};
port {
lcd0_panel_in: endpoint {
remote-endpoint = <&lcd0_out>;
};
};
};
};
};
fragment@1 {
target = <&ldb>;
__overlay__ {
status = "okay";
lvds-channel@0 {
status = "okay";
port@1 {
reg = <1>;
lcd0_out: endpoint {
remote-endpoint = <&lcd0_panel_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;
};
};
};
fragment@5 {
target-path = "/";
__overlay__ {
lcd0_backlight: lcd0_backlight {
compatible = "pwm-backlight";
pwms = <&pwm1 0 100000 0>;
enable-gpios= <&gpio1 6 GPIO_ACTIVE_HIGH>;
status = "okay";
brightness-levels = <0 100>;
num-interpolated-steps = <100>;
default-brightness-level = <60>;
};
};
};
};
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