Tool/software: Linux
Hello,
I am using an ST7789V based LCD with the BeagleBone Black. I'm using an Arago platform with the 4.9.59 Kernel from the TI-SDK 4.02.
The ST7789V requires configuration over SPI before it will accept RGB signals from the Sitara.
I have the ST7789V kernel driver built and loaded. It reports:
[ 10.776839] fb_st7789v: module is from the staging directory, the quality is unknown, you have been warned.
[ 10.952039] fb_st7789v spi1.0: buswidth is not set
[ 11.089247] fb_st7789v: probe of spi1.0 failed with error -22
However, it should be using SPI0 on the BeagleBone's P9 Connector. My device tree looks like this:
&am33xx_pinmux {
spi0_pins: spi0_pins {
pinctrl-single,pins = <
0x150 (PIN_INPUT_PULLUP | MUX_MODE0) /* P9.22, spi0_sclk */
0x154 (PIN_INPUT_PULLUP | MUX_MODE0) /* P9.21, spi0_d0 (miso) */
0x158 (PIN_OUTPUT_PULLUP | MUX_MODE0) /* P9.18, spi0_d1 (mosi) */
0x15c (PIN_OUTPUT_PULLUP | MUX_MODE0) /* P9.17, spi0_cs0 */
>;
};
};
&spi0 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&spi0_pins>;
panel@0 {
compatible = "sitronix,st7789v";
reg = <0>;
reset-gpios = <&gpio1 28 GPIO_ACTIVE_LOW>;
spi-max-frequency = <100000>;
spi-cpol;
spi-cpha;
};
};
That largely comes from the documentation here:
github.com/.../sitronix,st7789v.txt
I've tried rapidly loading and unloading the fb_st7789v driver and see no traffic on the SPI0 pins using a scope.
Why is the kernel looking at SPI1.0 instead of SPI0.0 ?
Thanks,
Matt