Skip to contentSkip to conversation

Add support for Allwinner (DVB/ATSC) Transport Stream Controller(s) (TSC)

PATCH In review thomas schorpp 3 participants 6 messages Aug 14, 2013 – Feb 4, 2016 2 messages not in the archive Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH v4 2/2 Add support for Allwinner (DVB/ATSC) Transport Stream Controller(s) (TSC)

OK, with the patched fex file and devices.c from
[linux-sunxi] [PATCH v2 1/1] [sunxi-boards/a20] Add support for Allwinner (DVB/ATSC) Transport Stream Controller(s) (TSC) [PATCH v2 1/1] [stage/sunxi-3.4] sw_nand: sunxi devices core using wrong MMIO region range, overlaps TSC/TSI register base address 0x01c04000 and the driver patches from this topic here

the driver basically loads and inits:

[  161.016837] [tsc-inf] tscdev_init: kmalloc memory, size: 0x212000
[  161.042378] [tsc-dbg] register_tsiomem: check_mem_region return: 0
[  161.055409] [tsc-dbg] register_tsiomem: devp->regsaddr: 0xf0104000
root@vdr2:~# cat /proc/iomem |grep -C 1 -i ts
01c03000-01c03fff : sw_nand
01c04000-01c04fff : ts regs
01c0a000-01c0afff : disp
root@vdr2:~# ls -l /dev/ts*
crw------- 1 root root 225, 0 Aug 14 19:10 /dev/tsc_dev

And ioctl() triggers the controller setup successfully.

root@vdr2:~# dd if=/dev/tsc_dev of=/dev/null bs=1K count=100 &
[ 1064.861178] [tsc-inf] tscdev_open: ahb_ts clk rate: 0x1
[ 1064.871506] [tsc-inf] tscdev_open: parent clock rate 384000000
[ 1064.881674] [tsc-inf] tscdev_open: clock rate 192000000
[ 1064.891079] [tsc-inf] tscdev_open: clock rate 192000000

Ready to build the Philips CU1216-MKIII TDA10023 DVB-C- Receiver "recycling" SMT extension board next days. Others are invited to build boards with their receiver modules and extend driver Kconfig for more receivers, too.

Next i2c and frontend driver integration, if someone can do that faster, pls don't wait for me and pls CC linux-media list.

dvb_core integration after the hardware and driver PIO tests success.

Thanks for all the great community support :-)

y
tom

#1 lore raw
Quoted 71 lines · Thomas Schorpp

OK, with the patched fex file and devices.c from

[linux-sunxi] [PATCH v2 1/1] [sunxi-boards/a20] Add support for Allwinner (DVB/ATSC) Transport Stream Controller(s) (TSC)

[PATCH v2 1/1] [stage/sunxi-3.4] sw_nand: sunxi devices core using wrong MMIO region range, overlaps TSC/TSI register base address 0x01c04000

and the driver patches from this topic here

the driver basically loads and inits:

[  161.016837] [tsc-inf] tscdev_init: kmalloc memory, size: 0x212000
[  161.042378] [tsc-dbg] register_tsiomem: check_mem_region return: 0
[  161.055409] [tsc-dbg] register_tsiomem: devp->regsaddr: 0xf0104000
root@vdr2:~# cat /proc/iomem |grep -C 1 -i ts

01c03000-01c03fff : sw_nand

01c04000-01c04fff : ts regs

01c0a000-01c0afff : disp

root@vdr2:~# ls -l /dev/ts*

crw------- 1 root root 225, 0 Aug 14 19:10 /dev/tsc_dev

And ioctl() triggers the controller setup successfully.

root@vdr2:~# dd if=/dev/tsc_dev of=/dev/null bs=1K count=100 &
[ 1064.861178] [tsc-inf] tscdev_open: ahb_ts clk rate: 0x1
[ 1064.871506] [tsc-inf] tscdev_open: parent clock rate 384000000
[ 1064.881674] [tsc-inf] tscdev_open: clock rate 192000000
[ 1064.891079] [tsc-inf] tscdev_open: clock rate 192000000

Ready to build the Philips CU1216-MKIII TDA10023 DVB-C- Receiver "recycling" SMT extension board next days.

Others are invited to build boards with their receiver modules and extend driver Kconfig for more receivers, too.

Next i2c and frontend driver integration, if someone can do that faster, pls don't wait for me and pls CC linux-media list.

dvb_core integration after the hardware and driver PIO tests success.

Quoted 7 lines

Thanks for all the great community support :-)

y

tom

Hi, I need some help. I am trying to take TS stream input through TS0 Allwinner A20 board by SMDT. I have the Fex file info as below.
[tsc_para]

tsc_used                 = 1
tsc_cla                  = port:PE00<2><default><default><default>
tsc_err                  = port:PE01<2><default><default><default>
tsc_sync                 = port:PE02<2><default><default><default>
tsc_dvld                 = port:PE03<2><default><default><default>
tsc_d0                   = port:PE04<2><default><default><default>
tsc_d1                   = port:PE05<2><default><default><default>
tsc_d2                   = port:PE06<2><default><default><default>
tsc_d3                   = port:PE07<2><default><default><default>
tsc_d4                   = port:PE08<2><default><default><default>
tsc_d5                   = port:PE09<2><default><default><default>
tsc_d6                   = port:PE10<2><default><default><default>
tsc_d7                   = port:PE11<2><default><default><default>

Now, with this I get some error when I load the tscdrv.ko. below are the errors

<6>[  775.488646] [tsc-inf] tscdev_init: kmalloc memory, size: 0x212000
<6>[  775.509833] [tsc-inf] request_tsc_pio: request tsc pio119 failed, maybe error
<6>[  775.509889] [tsc-inf] request_tsc_pio: request tsc pio120 failed, maybe error
<6>[  775.509934] [tsc-inf] request_tsc_pio: request tsc pio121 failed, maybe error
<6>[  775.509979] [tsc-inf] request_tsc_pio: request tsc pio122 failed, maybe error
<6>[  775.510023] [tsc-inf] request_tsc_pio: request tsc pio123 failed, maybe error
<6>[  775.510067] [tsc-inf] request_tsc_pio: request tsc pio124 failed, maybe error
<6>[  775.510112] [tsc-inf] request_tsc_pio: request tsc pio125 failed, maybe error
<6>[  775.510156] [tsc-inf] request_tsc_pio: request tsc pio126 failed, maybe error
<6>[  775.510200] [tsc-inf] request_tsc_pio: request tsc pio127 failed, maybe error
<6>[  775.510245] [tsc-inf] request_tsc_pio: request tsc pio128 failed, maybe error
<6>[  775.510289] [tsc-inf] request_tsc_pio: request tsc pio129 failed, maybe error
<6>[  775.510333] [tsc-inf] request_tsc_pio: request tsc pio130 failed, maybe error
<6>[  775.514859] [tsc-dbg] register_tsiomem: check_mem_region return: 0
<6>[  775.514991] [tsc-dbg] register_tsiomem: devp->regsaddr: 0xf0012000

am I missing something? Do I need to modify the fex file?

please forgive me if my questions are wrong. I am fairly new to android & Allwinner platform.

thanks a lot
Anuroop

#2 lore raw

Am 12.08.2014 um 08:25 schrieb [email protected]:

Quoted 12 lines · Thomas Schorpp
Quoted 11 lines

OK, with the patched fex file and devices.c from

[linux-sunxi] [PATCH v2 1/1] [sunxi-boards/a20] Add support for Allwinner (DVB/ATSC) Transport Stream Controller(s) (TSC)

[PATCH v2 1/1] [stage/sunxi-3.4] sw_nand: sunxi devices core using wrong MMIO region range, overlaps TSC/TSI register base address 0x01c04000

and the driver patches from this topic here

Quoted 4 lines
Quoted 1 line

the driver basically loads and inits:

please forgive me if my questions are wrong. I am fairly new to android & Allwinner platform.

1. The tscdrv.c code (my linux-sunxi port, too) is (c) AW proprietary, You need to contact AW support (+ for a complete TSC Manual).

2. I've suspended my TSC project until a complete A20 TSC manual is available or I get the time for register probe rev. engineering.

3. https://groups.google.com/forum/#!topic/android-porting/EMAG4RUlOjI

"Now we are planning to integrate a TV chip with this (DVB-T) . Allwinner has TS control block and a sample driver along with it."

Who is "we"?

I don't support Android OS platform, nor do "we" support closed source product developers from hidden proprietary products manufacturers usually not releasing derivated works of GPL'd code back to "us" or the android-porting project with their products, especially not for free. Please refer to the known consultant companies if Your company needs "help".

Please, tell Your Boss there's a big difference between "help" and valuable expensive engineering project consulting, thank You. Code maybe free under GPL (only the without warranty version) but consulting for it is not, and violating the GPL is breaking the law, worldwide.

This is the second request directly adressed to me off-list from a commercial company to work for free for them, I will drop any further to the JUNK Mail folder without notice.

Quoted 4 lines

thanks a lot
Anuroop

thanks A LOT :-//
y
tom

#3 lore raw
Quoted 86 lines · Thomas Schorpp

Am 12.08.2014 um 08:25 schrieb [email protected]:

Quoted 24 lines · Thomas Schorpp
Quoted 22 lines

OK, with the patched fex file and devices.c from

[linux-sunxi] [PATCH v2 1/1] [sunxi-boards/a20] Add support for Allwinner (DVB/ATSC) Transport Stream Controller(s) (TSC)

[PATCH v2 1/1] [stage/sunxi-3.4] sw_nand: sunxi devices core using wrong MMIO region range, overlaps TSC/TSI register base address 0x01c04000

and the driver patches from this topic here

Quoted 7 lines
Quoted 1 line

the driver basically loads and inits:

please forgive me if my questions are wrong. I am fairly new to android & Allwinner platform.

1. The tscdrv.c code (my linux-sunxi port, too) is (c) AW proprietary, You need to contact AW support (+ for a complete TSC Manual).

2. I've suspended my TSC project until a complete A20 TSC manual is available or I get the time for register probe rev. engineering.

3. https://groups.google.com/forum/#!topic/android-porting/EMAG4RUlOjI

"Now we are planning to integrate a TV chip with this (DVB-T) . Allwinner has TS control block and a sample driver along with it."

Who is "we"?

I don't support Android OS platform, nor do "we" support closed source product developers from hidden proprietary products manufacturers

usually not releasing derivated works of GPL'd code back to "us" or the android-porting project with their products,

especially not for free. Please refer to the known consultant companies if Your company needs "help".

Please, tell Your Boss there's a big difference between "help" and valuable expensive engineering project consulting, thank You.

Code maybe free under GPL (only the without warranty version) but consulting for it is not, and violating the GPL is breaking the law, worldwide.

This is the second request directly adressed to me off-list from a commercial company to work for free for them,

I will drop any further to the JUNK Mail folder without notice.

Quoted 7 lines

thanks a lot

Anuroop

Quoted 5 lines

thanks A LOT :-//

y

tom

I am sorry Tom. I was trying to build the AW TSC for SMDT. hope you forgive me for my mistakes.

-thanks
Anuroop

A message that is not in the archive (sent off-list or not yet received): [email protected]

#5 lore raw

Am 12.08.2014 um 14:21 schrieb Mihail Tommonen:>

Quoted 9 lines

Hi,

2. I've suspended my TSC project until a complete A20 TSC manual is

Quoted 2 lines

available or I get the time for register probe rev. engineering.

Have you seen this:
http://dl.linux-sunxi.org/A10/A10%20Transport%20Stream%20Controller%20V1.00%2020120917.pdf
I expect a20 tsc to be really similiart to a10.

Incomplete. Prove me wrong by getting a full TS without bypassing the TSC using the GPIO ports in other MUX mode directly, if possible (sig speed).

Quoted 5 lines

WBR

Miska

y
tom

A message that is not in the archive (sent off-list or not yet received): CA+C5N_r6Vm8O==F4-EDakMPDnzTVKW9aifDPiEtFCW=9UBkQ8Q@mail.gmail.com

#7 lore raw
Quoted 29 lines · 在 2014年8月12日星期二 UTC+8下午11:20:16,anuroop kamu写道:

Hi Miska, Thanks for that Doc

I am still not able to visualize it fully. if this Tsc driver works well, which buffer/fifo will the data be available?
Do I need to make a separate media player app to get this data? Or any default media player can play the video directly from /dev/tsc_dev (or /dev/video0) ?

I am trying to use the default AW TS driver for A20.

please correct me if my understanding is wrong.

thanks
Anuroop

On Tue, Aug 12, 2014 at 5:51 PM, Mihail Tommonen <[email protected]> wrote:

Hi,

2. I've suspended my TSC project until a complete A20 TSC manual is available or I get the time for register probe rev. engineering.

Quoted 7 lines

Have you seen this: http://dl.linux-sunxi.org/A10/A10%20Transport%20Stream%20Controller%20V1.00%2020120917.pdf

I expect a20 tsc to be really similiart to a10.

WBR

Miska

hi
you must have a tsdeviver like dibcom 3000 or anything,so you can done it.