Skip to content

Commit

Permalink
samples: drivers: display: Add support for Smartbond Pro DevKit.
Browse files Browse the repository at this point in the history
Add overlay file to support the pro devkit. To build the sample
code, one should explicitly select the overlay file at
'west build' invokation via the DTC_OVERLAY_FILE system variable.

Signed-off-by: Ioannis Karachalios <[email protected]>
  • Loading branch information
ioannis-karachalios committed Mar 6, 2024
1 parent c00cf7d commit 89afeb9
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions samples/drivers/display/boards/da1469x_dk_pro_lcdc.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
/*
* Copyright (c) 2023 Renesas Electronics Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/

#include <zephyr/dt-bindings/gpio/gpio.h>
#include <zephyr/dt-bindings/display/panel.h>

/ {
chosen {
zephyr,display = &display;
};
};

&dma {
status = "okay";
};

&display {
disp-gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>;
status = "okay";
width = <480>;
height = <272>;
pixel-format = <PANEL_PIXEL_FORMAT_RGB_565>;

/*
* Panel settings for the NHD-4.3-480272EF-ASXP-CTP
* display panel model which integrates the SC7283
* driver IC.
*/
display-timings {
compatible = "zephyr,panel-timing";
hsync-len = <2>;
hfront-porch = <2>;
hback-porch = <3>;
vsync-len = <2>;
vfront-porch = <2>;
vback-porch = <2>;
hsync-active = <0>;
vsync-active = <0>;
de-active = <1>;
pixelclk-active = <1>;
clock-frequency = <12000000>;
};
};

0 comments on commit 89afeb9

Please sign in to comment.