Skip to content

Commit ff6820f

Browse files
committed
drivers: display: features for ILI9341 driver
Replaced display-controller.yaml with lcd-controller.yaml Deleted pixel format property, replacing it with the property on lcd-controller.yaml. Replace ILI9XXX RGB macro with PANEL RGB macro. Also, added condition to verify pixel format is RGB565, BRG565 or RGB888, otherwise it will show error Replaced <zephyr/dt-bindings/display/ili9xxx.h> with <zephyr/dt-bindings/display/panel.h> and ILI9XXX_PIXEL with PANEL_PIXEL in all Devicetrees and files that contained both elements. Added documentation for doc/releases/migration-guide-4.4.rst in reference with the changes on the ili9xxx driver. Fixed some script sintax Signed-off-by: Nicolas Moreno <[email protected]>
1 parent c73f512 commit ff6820f

File tree

18 files changed

+53
-47
lines changed

18 files changed

+53
-47
lines changed

boards/m5stack/m5stack_core2/m5stack_core2_procpu.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#include "m5stack_core2-pinctrl.dtsi"
1010
#include "grove_connectors.dtsi"
1111
#include "m5stack_mbus_connectors.dtsi"
12-
#include <zephyr/dt-bindings/display/ili9xxx.h>
12+
#include <zephyr/dt-bindings/display/panel.h>
1313
#include <zephyr/dt-bindings/regulator/axp192.h>
1414
#include <espressif/partitions_0x1000_amp.dtsi>
1515

@@ -68,7 +68,7 @@
6868
mipi-max-frequency = <30000000>;
6969
reg = <0>;
7070
vin-supply = <&lcd_bg>;
71-
pixel-format = <ILI9XXX_PIXEL_FORMAT_RGB565>;
71+
pixel-format = <PANEL_PIXEL_FORMAT_RGB565>;
7272
display-inversion;
7373
width = <320>;
7474
height = <240>;

boards/m5stack/m5stack_cores3/m5stack_cores3_procpu_common.dtsi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
#include <espressif/esp32s3/esp32s3_wroom_n16r8.dtsi>
88
#include <espressif/partitions_0x0_amp.dtsi>
9-
#include <zephyr/dt-bindings/display/ili9xxx.h>
9+
#include <zephyr/dt-bindings/display/panel.h>
1010
#include "m5stack_cores3-pinctrl.dtsi"
1111
#include "m5stack_mbus_connectors.dtsi"
1212
#include "grove_connectors.dtsi"
@@ -56,7 +56,7 @@
5656
mipi-max-frequency = <30000000>;
5757
reg = <0>;
5858
vin-supply = <&vcc_bl>;
59-
pixel-format = <ILI9XXX_PIXEL_FORMAT_RGB565>;
59+
pixel-format = <PANEL_PIXEL_FORMAT_RGB565>;
6060
display-inversion;
6161
width = <320>;
6262
height = <240>;

boards/m5stack/m5stack_fire/m5stack_fire_procpu.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include "m5stack_fire-pinctrl.dtsi"
1111
#include "grove_connectors.dtsi"
1212
#include "m5stack_mbus_connectors.dtsi"
13-
#include <zephyr/dt-bindings/display/ili9xxx.h>
13+
#include <zephyr/dt-bindings/display/panel.h>
1414
#include <espressif/partitions_0x1000_amp.dtsi>
1515
#include <zephyr/dt-bindings/input/input-event-codes.h>
1616

@@ -95,7 +95,7 @@
9595
compatible = "ilitek,ili9342c";
9696
mipi-max-frequency = <30000000>;
9797
reg = <0>;
98-
pixel-format = <ILI9XXX_PIXEL_FORMAT_RGB565>;
98+
pixel-format = <PANEL_PIXEL_FORMAT_RGB565>;
9999
display-inversion;
100100
width = <320>;
101101
height = <240>;

boards/renesas/da14695_dk_usb/dts/da14695_dk_usb_mipi_dbi.overlay

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7-
#include <zephyr/dt-bindings/display/ili9xxx.h>
7+
#include <zephyr/dt-bindings/display/panel.h>
88
#include <zephyr/dt-bindings/gpio/gpio.h>
99

1010
/ {
@@ -52,7 +52,7 @@
5252
reg = <0>;
5353
width = <240>;
5454
height = <320>;
55-
pixel-format = <ILI9XXX_PIXEL_FORMAT_RGB565>;
55+
pixel-format = <PANEL_PIXEL_FORMAT_RGB565>;
5656
rotation = <0>;
5757
};
5858
};

boards/renesas/da1469x_dk_pro/dts/da1469x_dk_pro_mipi_dbi.overlay

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7-
#include <zephyr/dt-bindings/display/ili9xxx.h>
7+
#include <zephyr/dt-bindings/display/panel.h>
88
#include <zephyr/dt-bindings/gpio/gpio.h>
99

1010
/ {
@@ -52,7 +52,7 @@
5252
reg = <0>;
5353
width = <240>;
5454
height = <320>;
55-
pixel-format = <ILI9XXX_PIXEL_FORMAT_RGB565>;
55+
pixel-format = <PANEL_PIXEL_FORMAT_RGB565>;
5656
rotation = <0>;
5757
};
5858
};

boards/seeed/wio_terminal/wio_terminal.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#include "wio_terminal-pinctrl.dtsi"
99
#include "grove_connectors.dtsi"
1010
#include "raspberrypi_40pins_connector.dtsi"
11-
#include <zephyr/dt-bindings/display/ili9xxx.h>
11+
#include <zephyr/dt-bindings/display/panel.h>
1212
#include <zephyr/dt-bindings/input/input-event-codes.h>
1313

1414
/ {
@@ -148,7 +148,7 @@
148148
compatible = "ilitek,ili9341";
149149
mipi-max-frequency = <24000000>;
150150
reg = <0>;
151-
pixel-format = <ILI9XXX_PIXEL_FORMAT_RGB565>;
151+
pixel-format = <PANEL_PIXEL_FORMAT_RGB565>;
152152
rotation = <270>;
153153
width = <320>;
154154
height = <240>;

boards/shields/adafruit_2_8_tft_touch_v2/boards/rd_rw612_bga.overlay

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*/
66

77
#include <zephyr/dt-bindings/spi/spi.h>
8+
#include <zephyr/dt-bindings/display/panel.h>
89

910
/ {
1011
chosen {
@@ -44,7 +45,7 @@
4445
reg = <0>;
4546
width = <320>;
4647
height = <240>;
47-
pixel-format = <ILI9XXX_PIXEL_FORMAT_RGB888>;
48+
pixel-format = <PANEL_PIXEL_FORMAT_RGB888>;
4849
rotation = <90>;
4950
frmctr1 = [00 18];
5051
pwctrl1 = [23 00];

boards/shields/adafruit_2_8_tft_touch_v2/dts/adafruit_2_8_tft_touch_v2.dtsi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7-
#include <zephyr/dt-bindings/display/ili9xxx.h>
7+
#include <zephyr/dt-bindings/display/panel.h>
88
#include <zephyr/dt-bindings/gpio/arduino-header-r3.h>
99

1010
/ {
@@ -35,7 +35,7 @@
3535
reg = <0>;
3636
width = <320>;
3737
height = <240>;
38-
pixel-format = <ILI9XXX_PIXEL_FORMAT_RGB888>;
38+
pixel-format = <PANEL_PIXEL_FORMAT_RGB888>;
3939
rotation = <90>;
4040
frmctr1 = [00 18];
4141
pwctrl1 = [23 00];

boards/shields/buydisplay_2_8_tft_touch_arduino/buydisplay_2_8_tft_touch_arduino.overlay

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7-
#include <zephyr/dt-bindings/display/ili9xxx.h>
7+
#include <zephyr/dt-bindings/display/panel.h>
88
#include <zephyr/dt-bindings/gpio/arduino-header-r3.h>
99

1010
/ {
@@ -36,7 +36,7 @@
3636
reg = <0>;
3737
width = <240>;
3838
height = <320>;
39-
pixel-format = <ILI9XXX_PIXEL_FORMAT_RGB565>;
39+
pixel-format = <PANEL_PIXEL_FORMAT_RGB565>;
4040
rotation = <0>;
4141
frmctr1 = [00 18];
4242
pwctrl1 = [23 00];

boards/shields/buydisplay_3_5_tft_touch_arduino/buydisplay_3_5_tft_touch_arduino.overlay

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7-
#include <zephyr/dt-bindings/display/ili9xxx.h>
7+
#include <zephyr/dt-bindings/display/panel.h>
88
#include <zephyr/dt-bindings/gpio/arduino-header-r3.h>
99

1010
/ {
@@ -34,7 +34,7 @@
3434
compatible = "ilitek,ili9488";
3535
mipi-max-frequency = <25000000>;
3636
reg = <0>;
37-
pixel-format = <ILI9XXX_PIXEL_FORMAT_RGB888>;
37+
pixel-format = <PANEL_PIXEL_FORMAT_RGB888>;
3838
width = <320>;
3939
height = <480>;
4040
rotation = <0>;

0 commit comments

Comments
 (0)