导航

    全志在线开发者论坛

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

    求助,t113-i怎么添加两个tvd

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

      因为有两路tvin,所以想实现同显,但是只有一个video节点,想通过再创建一个tvd节点,但是创建完节点是有两个了,只是内核报错了,报了地址错误,两个节点都用不了了

      tvd: tvd@05c00000 {
      			compatible = "allwinner,sunxi-tvd";
      			reg = <0x0 0x05c00000 0x0 0x00010000>;/*tvd_top*/
      			interrupts = <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>;
      
      			clocks = <&ccu CLK_BUS_TVD_TOP>,
      			<&ccu CLK_MBUS_TVIN>;
      			clock-names = "clk_bus_tvd_top",
      			"clk_mbus_tvd";
      
      			resets = <&ccu RST_BUS_TVD_TOP>;
      			reset-names = "rst_bus_tvd_top";
      
      			tvd-number = <2>;
      			tvds = <&tvd0>,<&tvd1>;
      			status = "okay";
      		};
      
      		tvd0: tvd0@05c01000 {
      			compatible = "allwinner,sunxi-tvd0";
      			reg = <0x0 0x05c01000 0x0 0x00010000>;
      			interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>;
      
      			clocks = <&ccu CLK_TVD>,
      			<&ccu CLK_BUS_TVD>;
      			clock-names = "clk_tvd0","clk_bus_tvd0";
      
      			resets = <&ccu RST_BUS_TVD>;
      			reset-names = "rst_bus_tvd0";
      
      			assigned-clocks = <&ccu CLK_TVD>;
      			assigned-clock-parents = <&ccu CLK_PLL_VIDEO1>;
      
      			tvd_used = <1>;
      			tvd_if = <0>;
      			status = "okay";
      		};
      
      		tvd1: tvd1@05c02000 {
          		compatible = "allwinner,sunxi-tvd1";  /* 使用合适的 compatible,可能需要根据芯片手册调整 */
          		reg = <0x0 0x05c02000 0x0 0x00010000>;  /* TVD1 寄存器地址偏移 */
          		interrupts = <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>;  /* 建议使用不同的中断号,避免共享 */
          		clocks = <&ccu CLK_TVD>,<&ccu CLK_BUS_TVD>;
          		clock-names = "clk_tvd1", "clk_bus_tvd1";  /* 时钟名称需要与驱动匹配 */
      
          		resets = <&ccu RST_BUS_TVD>;
          		reset-names = "rst_bus_tvd1";
      
          		assigned-clocks = <&ccu CLK_TVD>;
          		assigned-clock-parents = <&ccu CLK_PLL_VIDEO0>;
          		
      			tvd_used = <1>;  /* 启用 TVD1 */
          		tvd_if = <0>;    /* 接口类型,根据实际连接调整 */
          		status = "okay";
      		};
      

      上面的tvd1是我自己加的,tvd0中断号一开始是和tvd一样的107,以为不能用同样中断号,所以改了,发现不是

      [   11.715487] random: udevd: uninitialized urandom read (16 bytes read)
      [   11.724095] random: udevd: uninitialized urandom read (16 bytes read)
      [   11.731365] random: udevd: uninitialized urandom read (16 bytes read)
      [   11.744576] udevd[1346]: specified group 'input' unknown
      [   11.751420] udevd[1346]: specified group 'kvm' unknown
      [   11.779471] udevd[1347]: starting eudev-3.2.7
      [   12.280101] 8<--- cut here ---
      [   12.283663] 8<--- cut here ---
      [   12.286475] Unable to handle kernel paging request at virtual address f08d004c
      [   12.309372] Unable to handle kernel paging request at virtual address f08d002c
      [   12.314831] pgd = (ptrval)
      [   12.321020] [f08d004c] *pgd=6f00a811, *pte=00000000, *ppte=00000000
      [   12.348229] Internal error: Oops: 7 [#1] PREEMPT SMP ARM
      [   12.350380] pgd = (ptrval)
      [   12.354154] Modules linked in: sunxi_ce
      [   12.354174] CPU: 1 PID: 1406 Comm: v4l_id Not tainted 5.4.61 #118
      [   12.354178] Hardware name: Generic DT based system
      [   12.354195] PC is at tvd_adc_config+0x5c/0x120
      [   12.354201] LR is at tvd_init+0x5c/0xac
      [   12.354207] pc : [<c060da14>]    lr : [<c060db34>]    psr: 600a0013
      [   12.354211] sp : ee7f7d94  ip : f08d0048  fp : c0b76bc2
      [   12.354216] r10: c09728f3  r9 : c0ec9a90  r8 : ee9e57c0
      [   12.354221] r7 : 00000000  r6 : c0ec99b0  r5 : 00000001  r4 : 00000000
      [   12.354226] r3 : f08d0044  r2 : 00000000  r1 : 00000001  r0 : f08d004c
      [   12.354233] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
      [   12.354239] Control: 10c5387d  Table: 6954006a  DAC: 00000051
      [   12.354245] Process v4l_id (pid: 1406, stack limit = 0x(ptrval))
      [   12.354251] Stack: (0xee7f7d94 to 0xee7f8000)
      [   12.354259] 7d80:                                              c060db34 ee9e5400 00000000
      [   12.368432] [f08d002c] *pgd=6f00a811, *pte=00000000, *ppte=00000000
      [   12.373640] 7da0: c0ec99b0 c060adb8 ee9e541c ee9e5400 00000000 c060ab38 ee9e5000 ee9e50f0
      [   12.373650] 7dc0: e9359c00 c0e04e48 e9359c00 00000005 00000000 c05cbc08 c0969ac8 00000000
      [   12.373660] 7de0: ee9e3780 ef383bd8 c0e04e48 c01dddd0 00000000 13bb2650 00000001 e9359c00
      [   12.373670] 7e00: 00000000 ef383bd8 c01ddc8c e9359c08 ee7f6000 c01d6b64 ee7f7eb8 00000000
      [   12.373680] 7e20: e9359c00 00000001 00000000 c01e7808 00000002 c0b55f2b 00000000 00000000
      [   12.373689] 7e40: ee7f7f70 00020000 00000000 c08dd390 00000041 eec02500 000041ed 00000004
      [   12.373699] 7e60: 00000000 ee7f6000 00000000 ef7b2e00 00000002 ef383bd8 ee82f210 eec1d7f8
      [   12.373709] 7e80: 0000008a 13bb2650 eeddf2a0 13bb2650 00000089 00000003 c0e04e48 ee7f7f70
      [   12.373719] 7ea0: 00000001 e931c000 ee7f6000 00000005 00000000 c01e7a60 ee82f210 eec1d7f8
      [   12.539697] 7ec0: 98499c93 00000006 e931c015 ef002600 00000000 eec1e558 ef383bd8 00000101
      [   12.548799] 7ee0: 00000002 00000054 00000000 00000000 00000000 ee7f7ef8 00000000 13bb2650
      [   12.557905] 7f00: effca4b4 00020000 00000cc0 ef002600 a00a0013 13bb2650 00000003 ee10b318
      [   12.567009] 7f20: 00000003 ee10b300 e931c000 00000000 00000003 00000002 ffffff9c 00020000
      [   12.576110] 7f40: ffffff9c 13bb2650 c0e04e48 00000003 ffffff9c be961f22 c0e04e48 c01d7a04
      [   12.585215] 7f60: 00000001 00000007 c0e0a5c8 b6de8718 00020000 10c50000 00000004 00000100
      [   12.594316] 7f80: 00000001 13bb2650 be961e24 00000000 00000000 00000005 c0101228 ee7f6000
      [   12.603411] 7fa0: 00000005 c0101000 be961e24 00000000 be961f22 00020000 00000000 00000000
      [   12.612512] 7fc0: be961e24 00000000 00000000 00000005 00000000 00000000 b6f26000 00000000
      [   12.621607] 7fe0: 00000005 be961c28 b6dee9b3 b6d7ca26 000a0030 be961f22 00000000 00000000
      [   12.630729] [<c060da14>] (tvd_adc_config) from [<c060db34>] (tvd_init+0x5c/0xac)
      [   12.638968] [<c060db34>] (tvd_init) from [<c060adb8>] (tvd_open+0x280/0x2e0)
      [   12.646816] [<c060adb8>] (tvd_open) from [<c05cbc08>] (v4l2_open+0x78/0xc8)
      [   12.654575] [<c05cbc08>] (v4l2_open) from [<c01dddd0>] (chrdev_open+0x144/0x188)
      [   12.662810] [<c01dddd0>] (chrdev_open) from [<c01d6b64>] (do_dentry_open+0x17c/0x32c)
      [   12.671521] [<c01d6b64>] (do_dentry_open) from [<c01e7808>] (path_openat+0x95c/0xb78)
      [   12.680238] [<c01e7808>] (path_openat) from [<c01e7a60>] (do_filp_open+0x3c/0x9c)
      [   12.688568] [<c01e7a60>] (do_filp_open) from [<c01d7a04>] (do_sys_open+0x6c/0x160)
      [   12.696994] [<c01d7a04>] (do_sys_open) from [<c0101000>] (ret_fast_syscall+0x0/0x54)
      [   12.705608] Exception stack(0xee7f7fa8 to 0xee7f7ff0)
      [   12.711228] 7fa0:                   be961e24 00000000 be961f22 00020000 00000000 00000000
      [   12.720330] 7fc0: be961e24 00000000 00000000 00000005 00000000 00000000 b6f26000 00000000
      [   12.729430] 7fe0: 00000005 be961c28 b6dee9b3 b6d7ca26
      [   12.735053] Code: 1283008c 1283c088 02833064 12833084 (e590e000) 
      [   12.741845] Internal error: Oops: 7 [#2] PREEMPT SMP ARM
      [   12.747777] Modules linked in: sunxi_ce
      [   12.752086] CPU: 0 PID: 1407 Comm: v4l_id Tainted: G      D           5.4.61 #118
      [   12.760446] Hardware name: Generic DT based system
      [   12.765825] PC is at tvd_adc_config+0x5c/0x120
      [   12.768734] ---[ end trace b54ad1055136f1c1 ]---
      [   12.770788] LR is at tvd_init+0x5c/0xac
      [   12.776771] udevd[1353]: 'v4l_id /dev/video3' [1406] terminated by signal 11 (Segmentation fault)
      [   12.780175] pc : [<c060da14>]    lr : [<c060db34>]    psr: 600a0013
      [   12.797004] sp : e9333d94  ip : f08d0028  fp : c0b76bc2
      [   12.802816] r10: c09728f3  r9 : c0ec9a90  r8 : ee9e5fc0
      [   12.808628] r7 : 00000000  r6 : c0ec99b0  r5 : 00000000  r4 : 00000000
      [   12.815889] r3 : f08d0024  r2 : 00000000  r1 : 00000001  r0 : f08d002c
      [   12.823149] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
      [   12.831088] Control: 10c5387d  Table: 694a006a  DAC: 00000051
      [   12.837478] Process v4l_id (pid: 1407, stack limit = 0x(ptrval))
      [   12.844162] Stack: (0xe9333d94 to 0xe9334000)
      [   12.849006] 3d80:                                              c060db34 ee9e5c00 00000000
      [   12.858110] 3da0: c0ec99b0 c060adb8 ee9e5c1c ee9e5c00 00000000 c060ab38 ee9e5800 ee9e58f0
      [   12.867213] 3dc0: ef041300 c0e04e48 ef041300 00000005 00000000 c05cbc08 c0969ac8 00000000
      [   12.876319] 3de0: ee9e3b00 ef383dc8 c0e04e48 c01dddd0 00000000 13bb2650 00000001 ef041300
      [   12.885415] 3e00: 00000000 ef383dc8 c01ddc8c ef041308 e9332000 c01d6b64 e9333eb8 00000000
      [   12.894520] 3e20: ef041300 00000001 00000000 c01e7808 00000002 ffeee03c 7cbe259f 00000000
      [   12.903618] 3e40: e9333f70 00020000 00000000 c01b4160 00000041 eec02500 000041ed 00000004
      [   12.912723] 3e60: 00000000 e9332000 00000000 c01929b4 00000002 ef383dc8 ee82f210 eec1ee40
      [   12.921828] 3e80: 00000091 00110000 eeddf2a0 13bb2650 c0b13e68 00000003 c0e04e48 e9333f70
      [   12.930933] 3ea0: 00000001 e9315000 e9332000 00000005 00000000 c01e7a60 ee82f210 eec1ee40
      [   12.940033] 3ec0: 59ecbd93 00000006 e9315015 ef002600 00000000 eec1e558 ef383dc8 00000101
      [   12.949133] 3ee0: 00000002 00000054 00000000 00000000 00000000 e9333ef8 00000000 13bb2650
      [   12.958237] 3f00: effca4f4 00020000 00000cc0 ef002600 a00a0013 13bb2650 00000003 ef054118
      [   12.967339] 3f20: 00000003 ef054100 e9315000 00000000 00000003 00000002 ffffff9c 00020000
      [   12.976440] 3f40: ffffff9c 13bb2650 c0e04e48 00000003 ffffff9c be845f22 c0e04e48 c01d7a04
      [   12.985543] 3f60: b6f3f000 00000007 c0e0a5c8 b6e01718 00020000 10c50000 00000004 00000100
      [   12.994641] 3f80: 00000001 13bb2650 be845e24 00000000 00000000 00000005 c0101228 e9332000
      [   13.003746] 3fa0: 00000005 c0101000 be845e24 00000000 be845f22 00020000 00000000 00000000
      [   13.012853] 3fc0: be845e24 00000000 00000000 00000005 00000000 00000000 b6f3f000 00000000
      [   13.021958] 3fe0: 00000005 be845c28 b6e079b3 b6d95a26 000a0030 be845f22 00000000 00000000
      [   13.031064] [<c060da14>] (tvd_adc_config) from [<c060db34>] (tvd_init+0x5c/0xac)
      [   13.039299] [<c060db34>] (tvd_init) from [<c060adb8>] (tvd_open+0x280/0x2e0)
      [   13.047144] [<c060adb8>] (tvd_open) from [<c05cbc08>] (v4l2_open+0x78/0xc8)
      [   13.054897] [<c05cbc08>] (v4l2_open) from [<c01dddd0>] (chrdev_open+0x144/0x188)
      [   13.063132] [<c01dddd0>] (chrdev_open) from [<c01d6b64>] (do_dentry_open+0x17c/0x32c)
      [   13.071849] [<c01d6b64>] (do_dentry_open) from [<c01e7808>] (path_openat+0x95c/0xb78)
      [   13.080562] [<c01e7808>] (path_openat) from [<c01e7a60>] (do_filp_open+0x3c/0x9c)
      [   13.088894] [<c01e7a60>] (do_filp_open) from [<c01d7a04>] (do_sys_open+0x6c/0x160)
      [   13.097321] [<c01d7a04>] (do_sys_open) from [<c0101000>] (ret_fast_syscall+0x0/0x54)
      [   13.105935] Exception stack(0xe9333fa8 to 0xe9333ff0)
      [   13.111559] 3fa0:                   be845e24 00000000 be845f22 00020000 00000000 00000000
      [   13.120661] 3fc0: be845e24 00000000 00000000 00000005 00000000 00000000 b6f3f000 00000000
      [   13.129760] 3fe0: 00000005 be845c28 b6e079b3 b6d95a26
      [   13.135384] Code: 1283008c 1283c088 02833064 12833084 (e590e000) 
      [   13.142704] ---[ end trace b54ad1055136f1c2 ]---
      [   13.148718] udevd[1355]: 'v4l_id /dev/video2' [1407] terminated by signal 11 (Segmentation fault)
      [   13.945409] random: crng init done
      [   13.949207] random: 2 urandom warning(s) missed due to ratelimiting
      done
      Initializing random number generator... done.
      

      上面就是报错部分,是不是不能再添加tvd节点了,还是我添加方式有问题?求大佬解答,万分感谢!

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

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

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