I'm attempting to add support for a custom ili9341 display to a project running on a the uBlox Nora dev kit. I'm currently using VS Code with nRF Connect SDK1.9.1. My question is about how to add the correct Devicetree entries so Zephyr selects and uses the ili9341 drivers. I have the ble_peripheral_lbs example built and running properly in VSCode. I'm looking at the LVGL example in zephyr\samples\subsys\display\lvgl and attempting to do it that way. For simplification I'm adding the changes directly project dts file. I'll break the changes out into overlay files later.
I've started adding an entry in the DTS file for the display (Clearly many properties are missing.):
xyz_display: xyz_display { compatible = "ilitek,ili9341"; label = "XYZ_DISPLAY"; height = <240>; width = <320>; };
I've also updated the chosen section with a display entry:
chosen { zephyr,sram = &sram0_image; zephyr,flash = &flash0; zephyr,code-partition = &slot0_partition; zephyr,sram-secure-partition = &sram0_s; zephyr,sram-non-secure-partition = &sram0_ns; zephyr,display = &xyz_display; };
display_dev = DEVICE_DT_GET(DT_CHOSEN(zephyr_display));
- How to specify the SPI port used by the display to the LVGL library. Is that done right in the DTS file? (I have an entry in the DTS file for the desired SPI port tested and working.)