1/* 2 * Copyright (c) 2023 Renesas Electronics Corporation 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #include <zephyr/dt-bindings/display/ili9xxx.h> 8 #include <zephyr/dt-bindings/gpio/gpio.h> 9 10/ { 11 chosen { 12 zephyr,display = &ili9340; 13 zephyr,touch = &display_touch; 14 }; 15 16 lvgl_pointer { 17 input = <&display_touch>; 18 status = "okay"; 19 swap-xy; 20 invert-x; 21 invert-y; 22 }; 23}; 24 25&i2c2 { 26 clock-frequency = <400000>; 27 status = "okay"; 28 29 display_touch: ft6206@38 { 30 compatible = "focaltech,ft5336"; 31 status = "okay"; 32 reg = <0x38>; 33 int-gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; 34 }; 35}; 36 37&lcdc { 38 compatible = "renesas,smartbond-mipi-dbi"; 39 status = "okay"; 40 reset-gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; 41 pinctrl-0 = <&mipi_dbi_default>; 42 pinctrl-1 = <&mipi_dbi_read>; 43 pinctrl-2 = <&mipi_dbi_sleep>; 44 pinctrl-names = "default", "read", "sleep"; 45 #address-cells = <1>; 46 #size-cells = <0>; 47 48 ili9340: ili9340@0 { 49 compatible = "ilitek,ili9340"; 50 mipi-max-frequency = <48000000>; 51 status = "okay"; 52 reg = <0>; 53 width = <240>; 54 height = <320>; 55 pixel-format = <ILI9XXX_PIXEL_FORMAT_RGB565>; 56 rotation = <0>; 57 }; 58}; 59