-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bords: renesas: dts: Add overlay files to support LCDC
In order to avoid defining almost the same overlays for different sample codes and/or applications a common overlay file per display interface is defined under the boards dts folder. In doing so, an application/sample code will only have to define another overlay explicitly under application's board folder if more blocks are to be enabled. In either case, users should explicitly invoke the requested overfiles at 'west build' invokation by using the DTC_OVERLAY_FILE system variable. Signed-off-by: Ioannis Karachalios <[email protected]>
- Loading branch information
1 parent
39507e3
commit c97a6f4
Showing
3 changed files
with
63 additions
and
31 deletions.
There are no files selected for viewing
63 changes: 63 additions & 0 deletions
63
boards/renesas/da1469x_dk_pro/dts/da1469x_dk_pro_lcdc.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
/* | ||
* 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; | ||
}; | ||
|
||
lvgl_pointer { | ||
input = <&display_touch>; | ||
status = "okay"; | ||
swap-xy; | ||
}; | ||
}; | ||
|
||
&dma { | ||
status = "okay"; | ||
}; | ||
|
||
&i2c2 { | ||
clock-frequency = <400000>; | ||
|
||
display_touch: ft6206@38 { | ||
compatible = "focaltech,ft5336"; | ||
status = "okay"; | ||
reg = <0x38>; | ||
int-gpios = <&gpio0 31 GPIO_ACTIVE_LOW>; | ||
}; | ||
}; | ||
|
||
&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>; | ||
}; | ||
}; |
File renamed without changes.
31 changes: 0 additions & 31 deletions
31
samples/drivers/display/boards/da1469x_dk_pro_mipi_dbi.overlay
This file was deleted.
Oops, something went wrong.