Other Parts Discussed in Thread: AM62P5
Tool/software:
Hi
I am using SK AM62P-LP with PSDK 09.02.01.09
I want to use custom display which is a single link lvds
I changed the display accordingly
am62p5-sk.dts in u-boot
panel_lvds: panel-lvds {
bootph-pre-ram;
compatible = "simple-panel";
status= "okay";
width-mm = <155>;
height-mm = <86>;
data-mapping = "vesa-24";
panel-timings {
bootph-pre-ram;
clock-frequency = <51200>;
hactive = <1920>;
vactive = <600>;
hback-porch = <160>;
hfront-porch = <160>;
vback-porch = <23>;
vfront-porch = <12>;
hsync-len = <0>;
vsync-len = <0>;
de-active = <1>;
};
port@0 {
//dual-lvds-odd-pixels;
lcd_in0: endpoint {
remote-endpoint = <&oldi_out0>;
};
};
/*port@1 {
dual-lvds-even-pixels;
lcd_in1: endpoint {
remote-endpoint = <&oldi_out1>;
};
};*/
};
I got the splash screen visible with this
In kernel panel.c
static const struct drm_display_mode microtips_mf_101hiebcaf0_mode = {
.clock = 51200,
.hdisplay = 1920,
.hsync_start = 1920 + 160,
.hsync_end = 1920 + 160 + 160,
.htotal = 1920 + 32 + 52 + 0,
.vdisplay = 600,
.vsync_start = 600 + 23,
.vsync_end = 600 + 23 + 12,
.vtotal = 600 + 23 + 12 + 0,
};
static const struct panel_desc microtips_mf_101hiebcaf0 = {
.modes = µtips_mf_101hiebcaf0_mode,
.bpc = 6,
.num_modes = 1,
.size = {
.width = 155,
.height = 86,
},
.delay = {
.prepare = 50,
.disable = 50,
},
.bus_flags = DRM_BUS_FLAG_DE_HIGH,
.bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
.connector_type = DRM_MODE_CONNECTOR_LVDS,
};
and in display dts i edited
// SPDX-License-Identifier: GPL-2.0
/**
* Microtips integrated OLDI panel (MF-101HIEBCAF0) and touch DT overlay for AM62P5-SK
*
* Panel datasheet: https://simplespec.microtipsusa.com/uploads/spec/datasheetFile/2588/13-101HIEBCAF0-S_V1.1_20221104.pdf
*
* Copyright (C) 2023 Texas Instruments Incorporated - http://www.ti.com/
*/
/dts-v1/;
/plugin/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
&{/} {
display {
compatible = "microtips,mf-101hiebcaf0";
/*
* Note that the OLDI TX 0 transmits the odd set of pixels
* while the OLDI TX 1 transmits the even set. This is a
* fixed configuration in the IP integration and is not
* changeable. The properties, "dual-lvds-odd-pixels" and
* "dual-lvds-even-pixels" have been used to merely
* identify if a Dual Link configuration is required.
* Swapping them will not make any difference.
*/
port@0 {
//dual-lvds-odd-pixels;
lcd_in0: endpoint {
remote-endpoint = <&oldi_out0>;
};
};
/*port@1 {
dual-lvds-even-pixels;
lcd_in1: endpoint {
remote-endpoint = <&oldi_out1>;
};
};*/
};
};
&dss0 {
status = "okay";
};
&dss0_ports {
#address-cells = <1>;
#size-cells = <0>;
/* VP1: LVDS Output (OLDI TX 0) */
port@0 {
reg = <0>;
oldi_out0: endpoint {
remote-endpoint = <&lcd_in0>;
};
};
/* VP1: LVDS Output (OLDI TX 1) */
/*port@2 {
reg = <2>;
oldi_out1: endpoint {
remote-endpoint = <&lcd_in1>;
};
};*/
};
&main_i2c0 {
#address-cells = <1>;
#size-cells = <0>;
touchscreen@41 {
compatible = "ilitek,ili251x";
reg = <0x41>;
interrupt-parent = <&exp1>;
interrupts = <0 IRQ_TYPE_EDGE_FALLING>;
reset-gpios = <&exp2 20 GPIO_ACTIVE_LOW>;
};
};
But I am not getting the display after splash screen
root@am62pxx-evm:~# dmesg | grep tidss
[ 6.242308] Modules linked in: panel_simple(+) display_connector(+) hci_uart btqca dwc3_am62 rtc_ti_k3 k3_j72xx_bandgap btbcm bluetooth ecdh_generic ecc rfkill ti_k3_r5_remoteproc tps6598x ili210x(+) virtio_rpmsg_bus crc_ccitt typec rpmsg_ns sii902x rti_wdt wave5 j721e_csi2rx videobuf2_dma_contig v4l2_mem2mem videobuf2_memops snd_soc_davinci_mcasp videobuf2_v4l2 v4l2_async videobuf2_common snd_soc_ti_udma snd_soc_tlv320aic3x_i2c snd_soc_tlv320aic3x sa2ul cdns_dphy_rx videodev snd_soc_ti_edma snd_soc_ti_sdma tidss drm_dma_helper drm_kms_helper mc syscopyarea sysfillrect sysimgblt fb_sys_fops fuse drm drm_panel_orientation_quirks ipv6
[ 6.621572] [drm] Initialized tidss 1.0.0 20180215 for 30200000.dss on minor 0
[ 6.650020] tidss 30200000.dss: [drm] Cannot find any crtc or sizes
[ 6.659980] tidss 30200000.dss: [drm] Cannot find any crtc or sizes
[ 6.673152] tidss 30200000.dss: [drm] Cannot find any crtc or sizes
root@am62pxx-evm:~# kmsprint
Connector 0 (40) LVDS-1 (connected)
Encoder 0 (39) LVDS
Connector 1 (50) HDMI-A-1 (disconnected)
Encoder 1 (49) NONE
what to do ?