导航

    全志在线开发者论坛

    • 注册
    • 登录
    • 搜索
    • 版块
    • 话题
    • 在线文档
    • 社区主页

    全志T3怎样配置LVDS接口液晶屏

    Linux
    3
    3
    1577
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • X
      xubaoguo002 LV 2 最后由 编辑

      使用的是主线代码,内核版本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>;
      				};
      			};
      		};
      	};
      
      1 条回复 最后回复 回复 引用 分享 0
      • U
        uuuuid LV 6 最后由 编辑

        建议用官方tina SDK

        1 条回复 最后回复 回复 引用 分享 0
        • WhycanService
          WhycanService LV 8 最后由 WhycanService 编辑

          主线使用的是drm驱动,建议参考kernel的doc

          https://www.kernel.org/doc/html/latest/

          1 条回复 最后回复 回复 引用 分享 0
          • 1 / 1
          • First post
            Last post

          Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

          行为准则 | 用户协议 | 隐私权政策