Firefly开源社区

12
发表新贴

RK3399 TypeC-DP视频输出控制

17

积分

0

威望

0

贡献

游客

积分
17
发表于 2017-3-23 11:24:31     
请问RK3399如何控制通过TypeC-DP输出视频,相关驱动代码在什么位置,分辨率等显示参数在哪里设定,是否有相关的开发文档?
回复

使用道具 举报

106

积分

0

威望

0

贡献

技术小白

积分
106
发表于 2017-3-27 16:44:42     
官方好像說 TypeC-DP输出 原生就支持了.可是我用 Type-c 轉 DP+USB 3.0 試不出來.看串口是有些相關訊息出現的.
回复

使用道具 举报

17

积分

0

威望

0

贡献

游客

积分
17
发表于 2017-3-28 16:56:13     
richi 发表于 2017-3-27 16:44
官方好像說 TypeC-DP输出 原生就支持了.可是我用 Type-c 轉 DP+USB 3.0 試不出來.看串口是有些相關訊息出現 ...

这种情况下USB 3.0可以用吗?
回复

使用道具 举报

106

积分

0

威望

0

贡献

技术小白

积分
106
发表于 2017-3-28 23:19:41     
9527 发表于 2017-3-28 16:56
这种情况下USB 3.0可以用吗?

Type-C 插上去有以下訊息, USB3.0 插上去無反應:(Type-C hub 是調在 4-lane DP)

[ 1271.961912] fusb302 4-0022: CC connected in 0 as DFP
[ 1272.994810] fusb302 4-0022: PD disabled
[ 1272.997530] cdn-dp-fb fec00000.dp-fb: lanes count does not change: 0
[ 1273.016511] xhci-hcd xhci-hcd.2.auto: xHCI Host Controller
[ 1273.017085] xhci-hcd xhci-hcd.2.auto: new USB bus registered, assigned bus number 7
[ 1273.018667] xhci-hcd xhci-hcd.2.auto: hcc params 0x0220fe64 hci version 0x110 quirks 0x00030010
[ 1273.019500] xhci-hcd xhci-hcd.2.auto: irq 232, io mem 0xfe800000
[ 1273.020299] usb usb7: New USB device found, idVendor=1d6b, idProduct=0002
[ 1273.020931] usb usb7: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1273.021619] usb usb7: Product: xHCI Host Controller
[ 1273.022078] usb usb7: Manufacturer: Linux 4.4.16 xhci-hcd
[ 1273.022569] usb usb7: SerialNumber: xhci-hcd.2.auto
[ 1273.024447] hub 7-0:1.0: USB hub found
[ 1273.024877] hub 7-0:1.0: 1 port detected
[ 1273.025621] xhci-hcd xhci-hcd.2.auto: xHCI Host Controller
[ 1273.026146] xhci-hcd xhci-hcd.2.auto: new USB bus registered, assigned bus number 8
[ 1273.026904] usb usb8: We don't know the algorithms for LPM for this host, disabling LPM.
[ 1273.027742] usb usb8: New USB device found, idVendor=1d6b, idProduct=0003
[ 1273.027764] usb usb8: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1273.027778] usb usb8: Product: xHCI Host Controller
[ 1273.027791] usb usb8: Manufacturer: Linux 4.4.16 xhci-hcd
[ 1273.027803] usb usb8: SerialNumber: xhci-hcd.2.auto
[ 1273.031453] hub 8-0:1.0: USB hub found
[ 1273.031534] hub 8-0:1.0: 1 port detected
[ 1273.031958] rockchip-dwc3 usb@fe800000: USB HOST connected
[ 1273.336356] usb 7-1: new high-speed USB device number 2 using xhci-hcd
[ 1273.344539] usb 8-1: new SuperSpeed USB device number 2 using xhci-hcd
[ 1273.371237] usb 8-1: New USB device found, idVendor=0bda, idProduct=0412
[ 1273.371324] usb 8-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 1273.371353] usb 8-1: Product: 4-Port USB 3.0 Hub
[ 1273.371378] usb 8-1: Manufacturer: Generic
[ 1273.394647] usb 8-1: can't set config #1, error -71
[ 1273.399610] usb 8-1: USB disconnect, device number 2
[ 1274.276087] fusb302 4-0022: PD connected as DFP, supporting 5V
[ 1274.372601] fusb302 4-0022: DP config successful, pin_assignment 0x4
[ 1274.378974] xhci-hcd xhci-hcd.2.auto: remove, state 4
[ 1274.379046] usb usb8: USB disconnect, device number 1
[ 1274.395640] xhci-hcd xhci-hcd.2.auto: USB bus 8 deregistered
[ 1274.395707] xhci-hcd xhci-hcd.2.auto: remove, state 4
[ 1274.395760] usb usb7: USB disconnect, device number 1
[ 1274.408735] xhci-hcd xhci-hcd.2.auto: USB bus 7 deregistered
[ 1274.408814] rockchip-dwc3 usb@fe800000: USB unconnected
[ 1274.530867] fusb302 4-0022: attention, dp_status a
[ 1274.567196] cdn-dp-fb fec00000.dp-fb: lanes count does not change: 4
[ 1274.612875] fusb302 4-0022: attention, dp_status 8a
[ 1274.614471] cdn-dp-fb fec00000.dp-fb: lanes count does not change: 4
[ 1274.621435] fusb302 4-0022: attention, dp_status 18a
[ 1274.622973] cdn-dp-fb fec00000.dp-fb: lanes count does not change: 4
[ 1274.652885] hdmi output corlor mode is 1
[ 1274.652967] hdmi connect to lcdc1
[ 1274.652989] switch:en=1,lcdc_id=1,screen type=6,cur type=0
[ 1274.858471] rk322x-lcdc vop1: failed to get clk source
[ 1274.858508] rk322x-lcdc vop1: failed to get clk source
[ 1274.860912] rk322x-lcdc vop1: lcdc1: dclk:148500000>>fps:60
[ 1274.860940] rk322x-lcdc vop1: dsp lut table is null
[ 1274.860949] rk322x-lcdc vop1: cabc lut table is null
[ 1274.860958] rk322x-lcdc vop1: wakeup from standby!
[ 1274.860968] rk322x-lcdc vop1: wake up from standby!
[ 1274.906463] cdn-dp-fb fec00000.dp-fb: rate:20, lanes:4
[ 1274.908820] dwc3 fe800000.dwc3: dwc3 gadget stop timeout
[ 1274.908952] android_work: did not send uevent (0 0           (null))
[ 1274.927823] rk_iommu ff8f3f00.vopl-mmu: rockchip_iommu_attach_device: Attached new IOMMU with pgtable 0xe98d700
0
[ 1275.100578] fusb302 4-0022: attention, dp_status 18a
[ 1275.101207] cdn-dp-fb fec00000.dp-fb: lanes count does not change: 4
[ 1277.824359] phy phy-ff770000.syscon:usb2-phy@e450.6: charger = USB_SDP_CHARGER



回复

使用道具 举报

106

积分

0

威望

0

贡献

技术小白

积分
106
发表于 2017-3-28 23:27:05     
Type-C DP+USB3.0 hub 調到 2-lane DP, 終於有 DP, 讀出 USB3.0 了:

[ 1866.667744] fusb302 4-0022: connection has disconnected
[ 1866.700231] hdmi remove from lcdc1
[ 1866.700276] switch:en=0,lcdc_id=1,screen type=6,cur type=6
[ 1866.704689] hdmi switch = 1
[ 1866.737521] hdmi switch = 1
[ 1866.790061] hdmi switch = 1
[ 1866.824039] hdmi switch = 1
[ 1866.875587] hdmi switch = 1
[ 1866.906663] suspend_flag=1
[ 1866.956306] suspend_flag=1
[ 1866.976584] rk322x-lcdc vop1: no layer is used,go to standby!
[ 1866.977383] suspend_flag=1
[ 1910.708767] fusb302 4-0022: CC connected in 0 as DFP
[ 1911.755479] fusb302 4-0022: PD disabled
[ 1911.757780] cdn-dp-fb fec00000.dp-fb: lanes count does not change: 0
[ 1911.780420] xhci-hcd xhci-hcd.2.auto: xHCI Host Controller
[ 1911.780501] xhci-hcd xhci-hcd.2.auto: new USB bus registered, assigned bus number 7
[ 1911.782712] xhci-hcd xhci-hcd.2.auto: hcc params 0x0220fe64 hci version 0x110 quirks 0x00030010
[ 1911.783566] xhci-hcd xhci-hcd.2.auto: irq 232, io mem 0xfe800000
[ 1911.784423] usb usb7: New USB device found, idVendor=1d6b, idProduct=0002
[ 1911.785051] usb usb7: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1911.785711] usb usb7: Product: xHCI Host Controller
[ 1911.786183] usb usb7: Manufacturer: Linux 4.4.16 xhci-hcd
[ 1911.786220] usb usb7: SerialNumber: xhci-hcd.2.auto
[ 1911.788456] hub 7-0:1.0: USB hub found
[ 1911.788927] hub 7-0:1.0: 1 port detected
[ 1911.789816] xhci-hcd xhci-hcd.2.auto: xHCI Host Controller
[ 1911.790371] xhci-hcd xhci-hcd.2.auto: new USB bus registered, assigned bus number 8
[ 1911.791198] usb usb8: We don't know the algorithms for LPM for this host, disabling LPM.
[ 1911.792131] usb usb8: New USB device found, idVendor=1d6b, idProduct=0003
[ 1911.792279] usb usb8: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1911.792300] usb usb8: Product: xHCI Host Controller
[ 1911.792318] usb usb8: Manufacturer: Linux 4.4.16 xhci-hcd
[ 1911.792335] usb usb8: SerialNumber: xhci-hcd.2.auto
[ 1911.796368] hub 8-0:1.0: USB hub found
[ 1911.796481] hub 8-0:1.0: 1 port detected
[ 1911.797005] rockchip-dwc3 usb@fe800000: USB HOST connected
[ 1912.104291] usb 7-1: new high-speed USB device number 2 using xhci-hcd
[ 1913.025162] fusb302 4-0022: PD connected as DFP, supporting 5V
[ 1913.129140] fusb302 4-0022: DP config successful, pin_assignment 0x8
[ 1913.288688] fusb302 4-0022: attention, dp_status 1a
[ 1913.350227] fusb302 4-0022: attention, dp_status 9a
[ 1913.356644] fusb302 4-0022: attention, dp_status 19a
[ 1913.357279] cdn-dp-fb fec00000.dp-fb: lanes count does not change: 2
[ 1913.442640] hdmi output corlor mode is 1
[ 1913.442677] hdmi connect to lcdc1
[ 1913.442686] switch:en=1,lcdc_id=1,screen type=6,cur type=6
[ 1913.645511] vop_load_screen,clk_on = 0
[ 1913.645584] rk322x-lcdc vop1: lcdc1: dclk:148500000>>fps:60
[ 1913.645595] rk322x-lcdc vop1: dsp lut table is null
[ 1913.645603] rk322x-lcdc vop1: cabc lut table is null
[ 1913.645611] rk322x-lcdc vop1: wakeup from standby!
[ 1913.645695] rk322x-lcdc vop1: dsp lut table is null
[ 1913.645703] rk322x-lcdc vop1: cabc lut table is null
[ 1913.692932] usb 7-1: new high-speed USB device number 3 using xhci-hcd
[ 1913.695724] rk_iommu ff8f3f00.vopl-mmu: rockchip_iommu_attach_device: Attached new IOMMU with pgtable 0xe98d700
0
[ 1913.695739] rk322x-lcdc vop1: wake up from standby!
[ 1913.712503] usb 8-1: new SuperSpeed USB device number 2 using xhci-hcd
[ 1913.741126] usb 8-1: New USB device found, idVendor=0bda, idProduct=0412
[ 1913.741183] usb 8-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 1913.741202] usb 8-1: Product: 4-Port USB 3.0 Hub
[ 1913.741220] usb 8-1: Manufacturer: Generic
[ 1913.761338] hub 8-1:1.0: USB hub found
[ 1913.762157] hub 8-1:1.0: 2 ports detected
[ 1913.838597] usb 7-1: New USB device found, idVendor=0bda, idProduct=5412
[ 1913.839006] usb 7-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 1913.839031] usb 7-1: Product: 4-Port USB 2.0 Hub
[ 1913.839048] usb 7-1: Manufacturer: Generic
[ 1913.842933] cdn-dp-fb fec00000.dp-fb: rate:20, lanes:2
[ 1913.871448] hub 7-1:1.0: USB hub found
[ 1913.873195] hub 7-1:1.0: 2 ports detected
[ 1914.172239] usb 7-1.1: new full-speed USB device number 4 using xhci-hcd
[ 1914.261882] usb 7-1.1: New USB device found, idVendor=06c4, idProduct=c024
[ 1914.261951] usb 7-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=5
[ 1914.261975] usb 7-1.1: Product: USB-C DP Multiport Adapter
[ 1914.261995] usb 7-1.1: Manufacturer: BizLink Technology Inc.
[ 1914.262013] usb 7-1.1: SerialNumber: 101
[ 1914.818674] usb 8-1.2: new SuperSpeed USB device number 3 using xhci-hcd
[ 1914.837610] usb 8-1.2: New USB device found, idVendor=0781, idProduct=5581
[ 1914.837663] usb 8-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1914.837684] usb 8-1.2: Product: Ultra
[ 1914.837702] usb 8-1.2: Manufacturer: SanDisk
[ 1914.837720] usb 8-1.2: SerialNumber: 4C530001070126100400
[ 1914.849222] usb-storage 8-1.2:1.0: USB Mass Storage device detected
[ 1914.850847] scsi host0: usb-storage 8-1.2:1.0
[ 1915.854461] scsi 0:0:0:0: Direct-Access     SanDisk  Ultra            1.00 PQ: 0 ANSI: 6
[ 1915.857593] sd 0:0:0:0: [sda] 485228544 512-byte logical blocks: (248 GB/231 GiB)
[ 1915.857800] sd 0:0:0:0: Attached scsi generic sg0 type 0
[ 1915.860245] sd 0:0:0:0: [sda] Write Protect is off
[ 1915.860879] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 1915.874818]  sda: sda1
[ 1915.883899] sd 0:0:0:0: [sda] Attached SCSI removable disk
回复

使用道具 举报

106

积分

0

威望

0

贡献

技术小白

积分
106
发表于 2017-3-28 23:42:58     
接了兩個視頻輸出 一個 HDMI 1080P, 一個 Type-C DP 接 4k 屏, Display Output 兩個都只能最高分辨率 1920*1080 60Hz.
選了 display different content on double display, 還是只能顯示相同內容.
回复

使用道具 举报

17

积分

0

威望

0

贡献

游客

积分
17
发表于 2017-3-29 13:55:19     
你在哪里配置的display different content on double display?

这里有一篇RK3399双屏异显的文章,你可以参考一下
http://blog.csdn.net/dearsq/article/details/55049182
回复

使用道具 举报

106

积分

0

威望

0

贡献

技术小白

积分
106
发表于 2017-3-29 15:35:47     
9527 发表于 2017-3-29 13:55
你在哪里配置的display different content on double display?

这里有一篇RK3399双屏异显的文章,你可 ...

那是 eDP+MIPI 的雙屏雙顯, 有沒 HDMI+ Type-C DP 的雙屏雙顯?
回复

使用道具 举报

17

积分

0

威望

0

贡献

游客

积分
17
发表于 2017-3-29 16:58:34     
本帖最后由 9527 于 2017-3-29 17:21 编辑

&hdmi_rk_fb {
    rockchip,hdmi_video_source = <DISPLAY_SOURCE_LCDC1>;
};
&cdn_dp_fb {
        dp_vop_sel = <DISPLAY_SOURCE_LCDC1>;
};

如果HDMI和DP使用的是相同的显示数据源;

把rockchip,hdmi_video_source和dp_vop_sel 选择为不同的显示数据源。

&hdmi_rk_fb {

        rockchip,hdmi_video_source = <DISPLAY_SOURCE_LCDC0>;
};

&cdn_dp_fb {
        dp_vop_sel = <DISPLAY_SOURCE_LCDC1>;
};

如果HDMI和DP使用不同同的显示数据源,还是显示一样的话,那就看下LCDC0和LCDC1是不是没有真正的创建为异显的显示源。
回复

使用道具 举报

41

积分

0

威望

0

贡献

技术小白

积分
41
发表于 2019-6-15 11:55:13     
回复

使用道具 举报

返回列表
12
*滑块验证:
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表