您尚未登录。

楼主 #1 2019-08-03 19:34:32

danile
会员
注册时间: 2019-07-08
已发帖子: 76
积分: 54.5

荔枝派zero驱动st7789出现问题!波形完全不对?

0x01.硬件链接
-------------------------------------------------------------------------------
[st7789] [licheepi zero]
CK <--------------> SPI0_CLK
SI <--------------> SPI0_SI
SO <--------------> SPI0_SO
CS <--------------> SPI0_CS
DC <--------------> PE1
RST <--------------> PE20

0x02.增加驱动ST7789驱动
-------------------------------------------------------------------------------
make ARCH=arm menuconfig

CONFIG_FB_TFT=y
CONFIG_FB_TFT_ST7789V=y

0x03.删除sun8i-v3s.dtsi中的
chosen {
#address-cells = <1>;
#size-cells = <1>;
ranges;

simplefb_lcd:~~framebuffer@0{
compatible = "allwinner,simple-framebuffer",
"simple-framebuffer";
allwinner,pipeline = "de0-lcd0";
clocks = <&ccu CLK_BUS_TCON0>, <&display_clocks 0>,
<&display_clocks 6>, <&ccu CLK_TCON0>;
status = "disabled";
};~~
};

0x04.修改sun8i-v3s-licheepi-zero-dock.dts文件-------------------------------------------------------------------------------
#include "sun8i-v3s-licheepi-zero.dts"

#include <dt-bindings/input/input.h>

/ {
model = "Lichee Pi Zero with Dock";
compatible = "licheepi,licheepi-zero-dock", "licheepi,licheepi-zero",
"allwinner,sun8i-v3s";

aliases {
ethernet0 = &emac;
};

leds {
/ The LEDs use PG0~2 pins, which conflict with MMC1 /
status = "disbaled";
};

chosen {
/delete-node/ framebuffer@0;
};
};

&spi0 {
status = "okay";

panel@0 {
compatible = "sitronix,st7789v";
reg = <0>;
reset-gpios = <&pio 4 20 GPIO_ACTIVE_LOW>;
dc-gpios = <&pio 4 1 GPIO_ACTIVE_LOW>;
/backlight = <&pwm_bl>;/
spi-max-frequency = <50000000>;
/spi-cpol;/
/spi-cpha;/
buswidth = <8>;
rotate = <270>;
bgr;
fps = <30>;
/*
port {
panel_input: endpoint {
remote-endpoint = <&tcon0_out_panel>;
};
};
*/
};
};

离线

楼主 #3 2019-08-03 23:00:09

danile
会员
注册时间: 2019-07-08
已发帖子: 76
积分: 54.5

Re: 荔枝派zero驱动st7789出现问题!波形完全不对?

smartcar wrote:

波形是怎么样的

log 是怎样的

log好像没看到问题

离线

页脚

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

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


东莞哇酷科技有限公司开发