全志T3怎样配置LVDS接口液晶屏
-
使用的是主线代码,内核版本5.18,设备树用的sun8i-r40-bananapi-m2-ultra.dts,不清楚该怎样配置。求教一下哪位大佬配置过LVDS相关的设备树参数。对下面这部分内容很少迷糊啊
tcon_top: tcon-top@1c70000 { compatible = "allwinner,sun8i-r40-tcon-top"; reg = <0x01c70000 0x1000>; clocks = <&ccu CLK_BUS_TCON_TOP>, <&ccu CLK_TCON_TV0>, <&ccu CLK_TVE0>, <&ccu CLK_TCON_TV1>, <&ccu CLK_TVE1>, <&ccu CLK_DSI_DPHY>; clock-names = "bus", "tcon-tv0", "tve0", "tcon-tv1", "tve1", "dsi"; clock-output-names = "tcon-top-tv0", "tcon-top-tv1", "tcon-top-dsi"; resets = <&ccu RST_BUS_TCON_TOP>; #clock-cells = <1>; ports { #address-cells = <1>; #size-cells = <0>; tcon_top_mixer0_in: port@0 { reg = <0>; tcon_top_mixer0_in_mixer0: endpoint { remote-endpoint = <&mixer0_out_tcon_top>; }; }; tcon_top_mixer0_out: port@1 { #address-cells = <1>; #size-cells = <0>; reg = <1>; tcon_top_mixer0_out_tcon_lcd0: endpoint@0 { reg = <0>; }; tcon_top_mixer0_out_tcon_lcd1: endpoint@1 { reg = <1>; }; tcon_top_mixer0_out_tcon_tv0: endpoint@2 { reg = <2>; remote-endpoint = <&tcon_tv0_in_tcon_top_mixer0>; }; tcon_top_mixer0_out_tcon_tv1: endpoint@3 { reg = <3>; remote-endpoint = <&tcon_tv1_in_tcon_top_mixer0>; }; }; tcon_top_mixer1_in: port@2 { #address-cells = <1>; #size-cells = <0>; reg = <2>; tcon_top_mixer1_in_mixer1: endpoint@1 { reg = <1>; remote-endpoint = <&mixer1_out_tcon_top>; }; }; tcon_top_mixer1_out: port@3 { #address-cells = <1>; #size-cells = <0>; reg = <3>; tcon_top_mixer1_out_tcon_lcd0: endpoint@0 { reg = <0>; }; tcon_top_mixer1_out_tcon_lcd1: endpoint@1 { reg = <1>; }; tcon_top_mixer1_out_tcon_tv0: endpoint@2 { reg = <2>; remote-endpoint = <&tcon_tv0_in_tcon_top_mixer1>; }; tcon_top_mixer1_out_tcon_tv1: endpoint@3 { reg = <3>; remote-endpoint = <&tcon_tv1_in_tcon_top_mixer1>; }; }; tcon_top_hdmi_in: port@4 { #address-cells = <1>; #size-cells = <0>; reg = <4>; tcon_top_hdmi_in_tcon_tv0: endpoint@0 { reg = <0>; remote-endpoint = <&tcon_tv0_out_tcon_top>; }; tcon_top_hdmi_in_tcon_tv1: endpoint@1 { reg = <1>; remote-endpoint = <&tcon_tv1_out_tcon_top>; }; }; tcon_top_hdmi_out: port@5 { reg = <5>; tcon_top_hdmi_out_hdmi: endpoint { remote-endpoint = <&hdmi_in_tcon_top>; }; }; }; }; tcon_tv0: lcd-controller@1c73000 { compatible = "allwinner,sun8i-r40-tcon-tv"; reg = <0x01c73000 0x1000>; interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>; clocks = <&ccu CLK_BUS_TCON_TV0>, <&tcon_top CLK_TCON_TOP_TV0>; clock-names = "ahb", "tcon-ch0"; resets = <&ccu RST_BUS_TCON_TV0>, <&ccu RST_BUS_LVDS>; reset-names = "lcd", "lvds"; clock-output-names = "tcon0-pixel-clock"; status = "disabled"; ports { #address-cells = <1>; #size-cells = <0>; tcon_tv0_in: port@0 { #address-cells = <1>; #size-cells = <0>; reg = <0>; tcon_tv0_in_tcon_top_mixer0: endpoint@0 { reg = <0>; remote-endpoint = <&tcon_top_mixer0_out_tcon_tv0>; }; tcon_tv0_in_tcon_top_mixer1: endpoint@1 { reg = <1>; remote-endpoint = <&tcon_top_mixer1_out_tcon_tv0>; }; }; tcon_tv0_out: port@1 { #address-cells = <1>; #size-cells = <0>; reg = <1>; tcon_tv0_out_tcon_top: endpoint@1 { reg = <1>; remote-endpoint = <&tcon_top_hdmi_in_tcon_tv0>; }; }; }; };
-
建议用官方tina SDK
-
主线使用的是drm驱动,建议参考kernel的doc
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号