请教一下,香橙派one怎么驱动ST7789V,CPU为H3,系统是官方提供的ubuntu,内核版本为5.4.65。内核中有fb_st7789v.ko,搞了好久都驱动不了。设备树内容
/dts-v1/;
/plugin/;
/ {
compatible = "allwinner,sun8i-h3";
fragment@0 {
reg = <0>;
target = <&spi0>;
__overlay__ {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&spi0_pc_pins>; // 强制使用PC组引脚
#address-cells = <1>;
#size-cells = <0>;
st7789v: st7789v@0 {
compatible = "sitronix,st7789v";
reg = <0>;
spi-max-frequency = <32000000>;
dc-gpios = <&pio 2 4 0>; // PC4 (GPIO68)
reset-gpios = <&pio 3 14 0>; // PD14 (GPIO110)
debug = <1>;
};
};
};
fragment@1 {
reg = <1>;
target = <&pio>;
__overlay__ {
spi0_pc_pins: spi0-pc-pins {
pins = "PC2", "PC0", "PC3"; // SCLK(PC2), MOSI(PC0), CS0(PC3)
function = "spi0"; // 复用为SPI0功能
drive-strength = <10>;
bias-pull-up;
};
};
};
};
离线