Got it to work 🙂
I'm not exactly sure what fixed it but I'll probably figure it out once it breaks again.
this is my new overlay so others may find it useful.
/dts-v1/;
/plugin/;
/ {
compatible = "allwinner,sun4i-a10", "allwinner,sun7i-a20", "allwinner,sun8i-h3", "allwinner,sun50i-a64", "allwinner,sun50i-h5";
fragmen@0 {
target = <&pio>;
__overlay__ {
display_pins: display_pins {
pins = "PA3", "PA6";
function = "gpio_out";
};
};
};
fragment@1 {
target = <&spi0>;
__overlay__ {
/* needed to avoid dtc warning */
#address-cells = <1>;
#size-cells = <0>;
display: display@0 {
compatible = "adafruit,yx240qv29", "ilitek,ili9341";
reg = <0>;
pinctrl-names = "default";
pinctrl-0 = <&display_pins>;
spi-max-frequency = <16000000>;
rotation= <270>;
bgr;
fps = <10>;
buswidth = <8>;
height = <240>;
width = <320>;
reset-gpios = <&pio 0 6 0>; /* GPIOA 6 */
dc-gpios = <&pio 0 3 0>; /* GPIOA 3 */
debug = <3>;
};
};
};
__overrides__ {
rotation = <&display>, "rotation:0";
fps = <&display>, "fps:0";
debug = <&display>, "debug:0";
};
};