Hi TulgaD,
I assume that all about electrical connection and power sequencing are OK.
I feel that panel-a drivers may be more suitable for your case.
Taking written above aside as far I see right here taking into account my TX1 experience:
- You need to turn on dc@54200000 turned off by default to make DSI work.
/ {
host1x {
dc@54200000 {
status = "okay";
};
dsi {
status = "okay";
...
- Make sure that your compatible
string compatible = "lg,wxga-7";
is matched with appropriate one in driver code.
In my version of kernel it should be p,wuxga-10-1
- Your DT does not have resolution description, timings and backlight.
My version of DT for another AOU DSI panels uses panel-a-1200-1920-8-0.c and looks like this:
/*
* arch/arm/boot/dts/panel-a-wuxga-7-0-aou.dtsi
*
* Copyright (c) 2016, Artec Europe Sarl. All rights reserved.
*
* 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.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#include <dt-bindings/display/tegra-dc.h>
#include <dt-bindings/display/tegra-panel.h>
/ {
host1x {
dc@54200000 {
status = "okay";
};
dsi {
status = "okay";
nvidia,dsi-controller-vs = <DSI_VS_1>;
panel-a-wuxga-7-0 {
status = "okay";
compatible = "a,wuxga-8-0";
nvidia,dsi-panel-reset = <TEGRA_DSI_ENABLE>;
nvidia,dsi-ulpm-not-support = <TEGRA_DSI_ENABLE>;
nvidia,dsi-dpd-pads = <DSIC_DPD_EN DSID_DPD_EN>;
nvidia,panel-rst-gpio = <&gpio TEGRA_GPIO(V, 2) 0>; /* PV2 */
nvidia,panel-bl-pwm-gpio = <&gpio TEGRA_GPIO(V, 0) 0>; /* PV0 */
nvidia,dsi-instance = <DSI_INSTANCE_0>;
nvidia,dsi-n-data-lanes = <4>;
nvidia,dsi-pixel-format = <TEGRA_DSI_PIXEL_FORMAT_24BIT_P>;
nvidia,dsi-refresh-rate = <60>;
nvidia,dsi-video-data-type = <TEGRA_DSI_VIDEO_TYPE_VIDEO_MODE>;
nvidia,dsi-video-clock-mode = <TEGRA_DSI_VIDEO_CLOCK_CONTINUOUS>;
nvidia,dsi-video-burst-mode = <TEGRA_DSI_VIDEO_NONE_BURST_MODE>;
nvidia,dsi-virtual-channel = <TEGRA_DSI_VIRTUAL_CHANNEL_0>;
nvidia,dsi-lp00-pre-panel-wakeup = <TEGRA_DSI_ENABLE>;
nvidia,dsi-init-cmd = <1 250>,
<0x0 0x15 0xfe 0x08 0x0>,
<0x0 0x15 0x03 0x40 0x0>,
<0x0 0x15 0x07 0x1a 0x0>,
<0x0 0x15 0xfe 0x00 0x0>,
<0x0 0x15 0x51 0xff 0x0>,
<TEGRA_DSI_DELAY_MS 20>,
<TEGRA_DSI_PACKET_CMD DSI_DCS_WRITE_0_PARAM DSI_DCS_EXIT_SLEEP_MODE 0x0 0x0>,
<TEGRA_DSI_DELAY_MS 200>,
<TEGRA_DSI_SEND_FRAME 1>,
<TEGRA_DSI_DELAY_MS 20>,
<TEGRA_DSI_PACKET_CMD DSI_DCS_WRITE_0_PARAM DSI_DCS_SET_DISPLAY_ON 0x0 0x0>,
<TEGRA_DSI_DELAY_MS 120>;
nvidia,dsi-n-init-cmd = <13>;
disp-default-out {
nvidia,out-type = <TEGRA_DC_OUT_DSI>;
nvidia,out-width = <68>;
nvidia,out-height = <121>;
nvidia,out-flags = <TEGRA_DC_OUT_CONTINUOUS_MODE>;
nvidia,out-parent-clk = "pll_d_out0";
nvidia,out-xres = <1080>;
nvidia,out-yres = <1920>;
};
display-timings {
1080x1920-32 {
clock-frequency = <131569920>;
hactive = <1080>;
vactive = <1920>;
hfront-porch = <32>;
hback-porch = <11>;
hsync-len = <5>;
vfront-porch = <12>;
vback-porch = <7>;
vsync-len = <5>;
nvidia,h-ref-to-sync = <1>;
nvidia,v-ref-to-sync = <1>;
};
};
};
};
};
It is important to have display-timings section.
My sample is AMOLED and does not have a backlight, but yours has.
-
Your datasheed does not have DSI registers init sequence, but DT has. Perhaps it is not right.
Actually you have to ask manufacturer to clarify the DSI init sequence.
-
I see first time a DSI panel without init sequence, but with I2C EDID. The drivers from the L4T does not have a I2C EDID support. Moreover, all the described registers are I2C ones. But there is nothing about DSI registers. So, datasheet is most strange I’ve ever seen.
Hope it helps.
Alex