Tool/software:
Hello, I'm trying to enable simple-framebuffer in falcon mode. Im using sdk 10.00.07.04.
I have modified the k3-am62p5-sk.dts as following for the framebuffer
framebuffer0: framebuffer@0 {
compatible = "simple-framebuffer";
power-domains = <&k3_pds 186 TI_SCI_PD_EXCLUSIVE>,
<&k3_pds 243 TI_SCI_PD_EXCLUSIVE>, /* OLDI0 */
<&k3_pds 244 TI_SCI_PD_EXCLUSIVE>; /* OLDI1 */
clocks = <&k3_clks 186 6>,
<&dss0_vp1_clk>,
<&k3_clks 186 2>;
display = <&dss0>;
reg = <0x00 0xff700000 0x00 0x008ca000>;
width = <1920>;
height = <1200>;
stride = <(1920 * 4)>;
format = "x8r8g8b8";
status="okay";
};
};
And also added memory region for framebuffer
reserved_memory: reserved-memory {
#address-cells = <2>;
#size-cells = <2>;
ranges;
linux,cma {
compatible = "shared-dma-pool";
reusable;
size = <0x00 0x24000000>;
linux,cma-default;
};
rtos_ipc_memory_region: rtos-ipc-memory@9b500000 {
compatible = "shared-dma-pool";
reg = <0x00 0x9b500000 0x00 0x00300000>;
no-map;
};
mcu_r5fss0_core0_dma_memory_region: mcu-r5fss-dma-memory-region@9b800000 {
compatible = "shared-dma-pool";
reg = <0x00 0x9b800000 0x00 0x00100000>;
no-map;
};
mcu_r5fss0_core0_memory_region: mcu-r5fss-memory-region@9b900000 {
compatible = "shared-dma-pool";
reg = <0x00 0x9b900000 0x00 0x00f00000>;
no-map;
};
wkup_r5fss0_core0_dma_memory_region: r5f-dma-memory@9c800000 {
compatible = "shared-dma-pool";
reg = <0x00 0x9c800000 0x00 0x00100000>;
no-map;
};
wkup_r5fss0_core0_memory_region: r5f-memory@9c900000 {
compatible = "shared-dma-pool";
reg = <0x00 0x9c900000 0x00 0x01e00000>;
no-map;
};
secure_tfa_ddr: tfa@9e780000 {
reg = <0x00 0x9e780000 0x00 0x80000>;
no-map;
};
secure_ddr: optee@9e800000 {
reg = <0x00 0x9e800000 0x00 0x01800000>; /* for OP-TEE */
no-map;
};
framebuffer_reserved: framebuffer@ff700000 {
reg = <0x00 0xff700000 0x00 0x008ca000>;
no-map;
};
};
Anyway its not working, I can see that there is fb0 in /dev but when i try to launch psplash nothing is displayed when using /dev/fb0 but its working on /dev/fb1 (tidss fb).
This is part of the dmesg
:~# dmesg | grep buffer [ 0.000000] OF: reserved mem: 0x00000000ff700000..0x00000000fffc9fff (9000 KiB) nomap non-reusable framebuffer@ff700000 [ 0.197636] simple-framebuffer ff700000.framebuffer: framebuffer at 0xff700000, 0x8ca000 bytes [ 0.197648] simple-framebuffer ff700000.framebuffer: format=x8r8g8b8, mode=1920x1200x32, linelength=7680 [ 0.198030] Console: switching to colour frame buffer device 240x75 [ 0.207418] simple-framebuffer ff700000.framebuffer: fb0: simplefb registered! [ 2.361275] tidss 30200000.dss: [drm] fb1: tidssdrmfb frame buffer device
Is there anything I'm missing? The dmesg logs for simple-framebuffer seems the same between the falcon mode build and the u-boot build.
To build the kernel im using default configs:
I just adjusted the ti_early_display with the following
#CONFIG_FRAMEBUFFER_CONSOLE=n
Thanks