status = "okay";};2.1.2 使能显示接口组件 display-subsystem 注册会把所有打开的设备以组件的形式...
compatible = "rockchip,display-subsystem";/* 主驱动查找的ports * 指向两个VOP的port */ ports =...
有了以上背景,接下来我们便能更好的理解 DRM Subsystem 了。 + 二、DRM Subsystem In computing, the Direct Rendering Manager (DRM), a subsystem of the Linux kernel, interfaces with the GPUs of modern video cards. DRM exposes an API that user-space programs can use to send commands and data t...
这时就需要有一个统一管理的机制, 将所有设备统合起来, 按照一个统一的顺序加载, Display-subsystem正是用来解决这个问题的, 依赖于component的驱动, 通过这个驱动, 可以把所有的设备以组件的形式加在一起, 等所有的组件加载完毕后, 统一进行bind/unbind. + 代码路径drivers/base/component.c + 以下为rockchip dr...
如果对应到display-subsystem中的话,: struct component对应的就是显示子系统的各个功能单元,每个component都会和一个platform_device关联起来; struct aggregate_device对应的就是显示子系统; 为了更加形象的表示struct component、struct aggregate_device、struct component_match之间的关系,我们绘制了如下关系框图: ...
创建drm设备节点/dev/dri/card%d; 注册plane、crtc、encoder、connector这4个drm_mode_object; 回到顶部 一、显示子系统概述 显示子系统是Rockchip平台显示输出相关软硬件系统的统称,linux内核采用component框架来构建显示子系统,一个显示子系统由显示处理器(vop,video output processor)、接口控制器(mipi,lvds,hdmi、ed...
[1.747190] rockchip-drm display-subsystem: bound fdd90000.vop (ops vop2_component_ops) [1.747877] dwhdmi-rockchip fde80000.hdmi: registered ddc I2C bus driver [1.748022] rockchip-drm display-subsystem: bound fde80000.hdmi (ops dw_hdmi_rockchip_ops) ...
[ 29.371731] rockchip-drm display-subsystem: bound ff930000.vop (ops vop_component_ops [rockchipdrm]) [ 29.382206] rockchip-drm display-subsystem: bound ff940000.vop (ops vop_component_ops [rockchipdrm]) [ 29.392482] rockchip-lvds ff96c000.lvds: [drm:rockchip_lvds_bind [rockchipdrm]] ...
armsom@armsom:~$ ls /sys/class/drm/card0-DP-1/device dpms edid enabled modes power statussubsystem uevent enable 查看使能状态: armsom@armsom:~$ cat /sys/class/drm/card0-DP-1/enableddisabled status 查看连接状态: armsom@armsom:~$ cat /sys/class/drm/card0-DP-1/statusdisconnected ...
RK DRM Device Driver device tree display_subsystem: display-subsystem { compatible = "rockchip,display-subsystem"; ports = <&vopl_out>, <&vopb_out>; status = "disabled"; }; - compatible: Should be "rockchip,display-subsystem" - ports: Should contain a list of phandles pointing to dis...