parse error: expected number or parenthesized expression in overlay file when trying to build

I am getting a parse error: expected number or parenthesized expression in an overlay file when trying to build:

devicetree error: /Users/.../zswatch_nrf5340_cpuapp_3.overlay:123 (column 25): parse error: expected number or parenthesized expression

line 123 is the pixel-format line in the overlay:

gc9a01: gc9a01a_lcd@0 {
compatible = "galaxycore,gc9x01x";
reg = <0>;
spi-max-frequency = <100000000>;
cmd-data-gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
reset-gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
pixel-format = <PANEL_PIXEL_FORMAT_RGB_565>;
width = <240>;
height = <240>;
};
I see the PANEL_PIXEL_FORMAT_RGB_565 setting in panel.h, what would cause it not to be referencable? Is there something else I need to do to ensure it is included in the build?

I cherry picked the gc9x01x, which was great (see (+) Is GC9X01X display driver in Zephyr 3.6 available if I am using nRF Connect 2.6? - Nordic Q&A - Nordic DevZone - Nordic DevZone (nordicsemi.com)) which could mean there is something I'm missing like another change which was made between the releases, but I don't think that's likely. It would have to be an addtion to the panel.h I think and that seems unlikely.

I tried adding #include <zephyr/dt-bindings/display/panel.h> to main.c, but that didn't change the outcome.

Related