NHD-2.4-240320CF-BSXV-F and MIPI
Hello, I need ton know how can I found parameters for my overlay in nrf connect like vcom gctrl lcm etc and know how I should structure the overlay because I created this and the build don't find the display, Iput :
CS in p1.12,
DC in 1.11,
Sclk in P1.15
Miso in P1.14
Mosi in P1.13
Led PWM in P1.09
I don't know how it work.
Here is my overlay:
/ {
chosen {
zephyr,display = &st7789;
};
};
&spi1 {
status = "okay";
cs-gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
pinctrl-0 = <&spi1_default>;
pinctrl-names = "default";
};
&pinctrl {
spi1_default: spi1_default {
group1 {
psels = <
NRF_PSEL(SPIM_SCK, 1, 15)
NRF_PSEL(SPIM_MOSI, 1, 13)
NRF_PSEL(SPIM_MISO, 1, 14)
>;
};
};
pwm0_default: pwm0_default {
group1 {
psels = <
NRF_PSEL(PWM_OUT0, 1, 9) /* PWM0_CH0 → P1.09 */
>;
};
};
};
/* PWM backlight on P1.09 */
&pwm0 {
status = "okay";
pinctrl-0 = <&pwm0_default>;
pinctrl-names = "default";
};
&{/} {
backlight_pwm: backlight_pwm {
compatible = "pwm-leds";
led_pwm {
pwms = <&pwm0 0 PWM_MSEC(1) PWM_POLARITY_NORMAL>;
};
};
};
/* Driver ST7789V with SPI1 */
mipi_dbi {
compatible = "zephyr,mipi-dbi-spi";
status = "okay";
reset-gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; /* RESET = P1.10 */
dc-gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>; /* DC = P1.11 */
spi-dev = <&spi1>;
#address-cells = <1>;
#size-cells = <0>;
st7789: st7789v@0 {
compatible = "sitronix,st7789v";
status = "okay";
reg = <0>;
mipi-mode = "MIPI_DBI_MODE_SPI_4WIRE";
mipi-max-frequency = <20000000>;
width = <320>;
height = <240>;
x-offset = <0>;
y-offset = <0>;
/*MIP parameters, maybe wrong values*/
vcom = <0x28>;
gctrl = <0x35>;
lcm = <0x2C>;
colmod = <0x65>;
mdac = <0xA8>;
gamma = <0x01>;
porch-param = [0C 0C 00 33 33];
cmd2en-param = [5A 69 02 00];
pwctrl1-param = [A4 A1];
pvgam-param = [d0 00 02 07 05 18 25 44 42 06 0e 12 14 17];
nvgam-param = [d0 00 02 07 05 18 25 54 47 0e 1c 17 1b 1e];
ram-param = [00 F0];
rgb-param = [00 02 14];
inversion-off;
};
};
Thank you for your reading
0
-
note : Im1 is on Vdd and Im0 on gnd so it's in 4 wire 8 bits mode
0 -
Hi,
Thank you for your inquiry. Please note that our NHD-2.4-240320CF-BSXV-F display supports only 3/4-wire SPI interfaces.
Could you please clarify what you are trying to achieve and which development board you are using to communicate with the display?
0
Please sign in to leave a comment.
Comments
2 comments