Deicetree增加了
&spi1 {
st7565@0 {
status = "okay";
compatible = "sitronix,st7565";
reg = <0>;
spi-max-frequency =<15000000>; //SPI时钟32M
rotate =<0>; //屏幕旋转90度
bgr;
fps =<10>; //刷新10帧率
buswidth =<8>; //总线宽度8
reset-gpios=<&pio 3 18 GPIO_ACTIVE_LOW>; //GPIOD18
dc-gpios =<&pio 3 19 GPIO_ACTIVE_LOW>; //GPIOD19
debug =<0>; //不开启调试
};
};
同时也增加了SPI 节点
spi1: spi@1c06000 {
compatible = "allwinner,suniv-f1c100s-spi",
"allwinner,sun8i-h3-spi";
reg = <0x01c06000 0x1000>;
interrupts = <11>;
clocks = <&ccu CLK_BUS_SPI1>, <&ccu CLK_BUS_SPI1>;
clock-names = "ahb", "mod";
resets = <&ccu RST_BUS_SPI1>;
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
bias-pull-up;
pinctrl-names = "default";
pinctrl-0 = <&spi1_pins>;
};
同时在IO节点中申明引脚定义
spi1_pins: spi1-pins {
pins = "PE7", "PE8", "PE9", "PE10";
function = "spi1";
bias-pull-up;
};
设备驱动里没有
找到<*> Generic FB driver for TFT LCD displays
增加了st7565驱动
原码来自于 https://github.com/zanaster/fbtft/blob/master/fb_st7565.c
编译后
INSTALL drivers/staging/fbtft/fb_st7565.ko
INSTALL drivers/staging/fbtft/fbtft.ko
没有成功
离线
开机log有没有输出注册fb信息?dev目录下看看有没有fb设备
离线