Hi @henrique.tx , I tried your suggestion to use drm panel driver without the port part, like here:
So the spi part in my devicetree is something like this:
&ecspi3 {
// Enable the SPI controller
status = "okay";
// needed to avoid dtc warning
#address-cells = <1>;
#size-cells = <0>;
mcp2515: can@0 {
compatible = "microchip,mcp2515";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_can_int>;
reg = <0>;
clocks = <&clk16m>;
interrupt-parent = <&gpio5>;
interrupts = <2 IRQ_TYPE_EDGE_FALLING>;
spi-max-frequency = <10000000>;
status = "disabled";
};
spidev0: spidev@0 {
compatible = "toradex,evalspi";
reg = <0>;
spi-max-frequency = <23000000>;
status = "disabled";
};
panel@0 {
compatible = "sitronix,st7789v";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_disp_gpio>;
reg = <0>;
reset-gpios = <&gpio4 23 1>;
dc-gpios = <&gpio7 2 0>;
spi-max-frequency = <15000000>;
power-supply = <®_module_5v>;
spi-cpol;
spi-cpha;
//bgr;
debug = <0x4000000>;
status = "okay";
};
};
but, unfortunately, the result is the same: I don’t have any fb0 interface under /dev.
When using the panel driver, have you ever checked the
/sys/class/drm
folder?
SCSFreedomX:/sys/class/drm# ls
version
SCSFreedomX:/sys/class/drm#
SCSFreedomX:/sys/class/drm# cat version
drm 1.1.0 20060810
SCSFreedomX:/sys/class/drm#
Thank you very much!
Valerio