Skip to content
Snippets Groups Projects
Commit fc455f70 authored by Niccolò Rosadi's avatar Niccolò Rosadi
Browse files

[C61][DTO][EDP] sn65dsi86 fix edp signals timings and order

- now the backlight correctly start after the bridge
- the correct sequence is:
  1) VCC_LCD_EN (pca6416_20 5)
  2) iMX8_LVDS_BKL_ON (gpio4 4)
  3) VCC_BKL_EN (pca6416_20 9)

- also remove some edp_bridge parameters not present in the seco-sn65dsi86 driver
parent db056021
1 merge request!292[C61][DTO][EDP] sn65dsi86: fix bridge settings
......@@ -38,11 +38,8 @@
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
gpio = <&gpio4 4 GPIO_ACTIVE_HIGH>;
off-on-delay = <20000>;
startup-delay-us = <1000>;
startup-delay-us = <300000>;
enable-active-high;
regulator-boot-on;
regulator-always-on;
};
reg_panel_on: panelon {
......@@ -61,7 +58,7 @@
fragment@backlight {
target-path = "/";
__overlay__ {
backlight@0 {
backlight_edp: backlight_edp {
compatible = "pwm-backlight";
pwms = <&pwm1 0 5000000 0>; // 200Hz
......@@ -69,7 +66,8 @@
num-interpolated-steps = <100>;
default-brightness-level = <80>;
enable-gpios = <&pca6416_20 9 GPIO_ACTIVE_HIGH>;
enable-gpios = <&pca6416_20 9 GPIO_ACTIVE_HIGH>; //VCC_BKL_EN
power-supply = <&reg_bkl_on>;
};
};
};
......@@ -79,6 +77,8 @@
__overlay__ {
panel_edp: edp_panel {
compatible = "seco-boe,ev156fhm", "panel-dpi";
backlight = <&backlight_edp>;
#address-cells = <1>;
#size-cells = <0>;
no-hpd;
......@@ -147,18 +147,9 @@
reg = <0x2d>;
#address-cells = <1>;
#size-cells = <0>;
pd-gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>;
bkl-gpios = <&pca6416_20 5 GPIO_ACTIVE_HIGH>;
vcc-supply = <&reg_bkl_on>;
dsi,max-lanes = <4>;
dsi,max-rate = <2500>;
pd-gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>; // LVDS-eDP0_BRG_EN
lcd-gpios = <&pca6416_20 5 GPIO_ACTIVE_HIGH>; // VCC_LCD_EN
dsi,mode-flags = <(MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_SYNC_PULSE | MIPI_DSI_MODE_LPM)>;
bkl_on_off_delay_range_us = <0 6000>;
lcd_on_off_delay_range_us = <0 200000>;
edp_irq-gpios = <&gpio4 27 IRQ_TYPE_EDGE_FALLING>;
read-dp-rate-from-panel;
enable-hpd;
si-result = <0xb0 0x41>,
<0xb1 0x72>,
......
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