您尚未登录。

楼主 # 2021-12-07 17:25:32

Mr.Liu
会员
注册时间: 2020-09-21
已发帖子: 29
积分: 304.5

R3 F1C200S驱动ST7565 128*64

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

没有成功

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn