TI AM335x BeagleBone Black LCD驱动移植
程序员文章站
2022-07-14 09:31:01
...
1.内核编译选项
2.设备树
/ {
model = "TI AM335x BeagleBone Black";
compatible = "ti,am335x-bone-black", "ti,am335x-bone", "ti,am33xx";
panel {
compatible = "ti,tilcdc,panel";
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&lcd_pins_s0>;
panel-info {
ac-bias = <255>;
ac-bias-intrpt = <0>;
dma-burst-sz = <16>;
bpp = <32>;
fdd = <0x80>;
sync-edge = <0>;
sync-ctrl = <1>;
raster-order = <0>;
fifo-th = <0>;
};
display-timings {
1280x800p60 {
clock-frequency = <68000000>;
hactive = <1280>;
vactive = <800>;
hfront-porch = <64>;
hback-porch = <5>;
hsync-len = <47>;
vback-porch = <2>;
vfront-porch = <13>;
vsync-len = <2>;
hsync-active = <1>;
vsync-active = <1>;
};
};
};
&lcdc {
status = "okay";
blue-and-red-wiring = "crossed";
};
lcd_pins_s0: lcd_pins_s0 {
pinctrl-single,pins = <
AM33XX_IOPAD(0x820, PIN_OUTPUT | MUX_MODE1)
AM33XX_IOPAD(0x824, PIN_OUTPUT | MUX_MODE1)
AM33XX_IOPAD(0x828, PIN_OUTPUT | MUX_MODE1)
AM33XX_IOPAD(0x82c, PIN_OUTPUT | MUX_MODE1)
AM33XX_IOPAD(0x830, PIN_OUTPUT | MUX_MODE1)
AM33XX_IOPAD(0x834, PIN_OUTPUT | MUX_MODE1)
AM33XX_IOPAD(0x838, PIN_OUTPUT | MUX_MODE1)
AM33XX_IOPAD(0x83c, PIN_OUTPUT | MUX_MODE1)
AM33XX_IOPAD(0x8a0, PIN_OUTPUT | MUX_MODE0)
AM33XX_IOPAD(0x8a4, PIN_OUTPUT | MUX_MODE0) AM33XX_IOPAD(0x8a8, PIN_OUTPUT | MUX_MODE0)
AM33XX_IOPAD(0x8ac, PIN_OUTPUT | MUX_MODE0)
AM33XX_IOPAD(0x8b0, PIN_OUTPUT | MUX_MODE0)
AM33XX_IOPAD(0x8b4, PIN_OUTPUT | MUX_MODE0)
AM33XX_IOPAD(0x8b8, PIN_OUTPUT | MUX_MODE0)
AM33XX_IOPAD(0x8bc, PIN_OUTPUT | MUX_MODE0)
AM33XX_IOPAD(0x8c0, PIN_OUTPUT | MUX_MODE0)
AM33XX_IOPAD(0x8c4, PIN_OUTPUT | MUX_MODE0)
AM33XX_IOPAD(0x8c8, PIN_OUTPUT | MUX_MODE0)
AM33XX_IOPAD(0x8cc, PIN_OUTPUT | MUX_MODE0)
AM33XX_IOPAD(0x8d0, PIN_OUTPUT | MUX_MODE0)
AM33XX_IOPAD(0x8d4, PIN_OUTPUT | MUX_MODE0)
AM33XX_IOPAD(0x8d8, PIN_OUTPUT | MUX_MODE0) AM33XX_IOPAD(0x8dc, PIN_OUTPUT | MUX_MODE0)
AM33XX_IOPAD(0x8e0, PIN_OUTPUT | MUX_MODE0)
AM33XX_IOPAD(0x8e4, PIN_OUTPUT | MUX_MODE0)
AM33XX_IOPAD(0x8e8, PIN_OUTPUT | MUX_MODE0)
AM33XX_IOPAD(0x8ec, PIN_OUTPUT | MUX_MODE0)
>;
};
注意:这是lvds信号的屏幕,TI官方默认的是hdmi的屏幕,需要注释掉。
上一篇: 安装oh-my-zsh美化终端