xref: /openbmc/linux/Documentation/usb/iuu_phoenix.rst (revision 0898782247ae533d1f4e47a06bc5d4870931b284)
1*ecefae6dSMauro Carvalho Chehab=============================
2*ecefae6dSMauro Carvalho ChehabInfinity Usb Unlimited Readme
3*ecefae6dSMauro Carvalho Chehab=============================
4*ecefae6dSMauro Carvalho Chehab
5*ecefae6dSMauro Carvalho ChehabHi all,
6*ecefae6dSMauro Carvalho Chehab
7*ecefae6dSMauro Carvalho Chehab
8*ecefae6dSMauro Carvalho ChehabThis module provide a serial interface to use your
9*ecefae6dSMauro Carvalho ChehabIUU unit in phoenix mode. Loading this module will
10*ecefae6dSMauro Carvalho Chehabbring a ttyUSB[0-x] interface. This driver must be
11*ecefae6dSMauro Carvalho Chehabused by your favorite application to pilot the IUU
12*ecefae6dSMauro Carvalho Chehab
13*ecefae6dSMauro Carvalho ChehabThis driver is still in beta stage, so bugs can
14*ecefae6dSMauro Carvalho Chehaboccur and your system may freeze. As far I now,
15*ecefae6dSMauro Carvalho ChehabI never had any problem with it, but I'm not a real
16*ecefae6dSMauro Carvalho Chehabguru, so don't blame me if your system is unstable
17*ecefae6dSMauro Carvalho Chehab
18*ecefae6dSMauro Carvalho ChehabYou can plug more than one IUU. Every unit will
19*ecefae6dSMauro Carvalho Chehabhave his own device file(/dev/ttyUSB0,/dev/ttyUSB1,...)
20*ecefae6dSMauro Carvalho Chehab
21*ecefae6dSMauro Carvalho Chehab
22*ecefae6dSMauro Carvalho Chehab
23*ecefae6dSMauro Carvalho ChehabHow to tune the reader speed?
24*ecefae6dSMauro Carvalho Chehab=============================
25*ecefae6dSMauro Carvalho Chehab
26*ecefae6dSMauro Carvalho Chehab A few parameters can be used at load time
27*ecefae6dSMauro Carvalho Chehab To use parameters, just unload the module if it is
28*ecefae6dSMauro Carvalho Chehab already loaded and use modprobe iuu_phoenix param=value.
29*ecefae6dSMauro Carvalho Chehab In case of prebuilt module, use the command
30*ecefae6dSMauro Carvalho Chehab insmod iuu_phoenix param=value.
31*ecefae6dSMauro Carvalho Chehab
32*ecefae6dSMauro Carvalho Chehab Example::
33*ecefae6dSMauro Carvalho Chehab
34*ecefae6dSMauro Carvalho Chehab	modprobe iuu_phoenix clockmode=3
35*ecefae6dSMauro Carvalho Chehab
36*ecefae6dSMauro Carvalho Chehab The parameters are:
37*ecefae6dSMauro Carvalho Chehab
38*ecefae6dSMauro Carvalho Chehabclockmode:
39*ecefae6dSMauro Carvalho Chehab	1=3Mhz579,2=3Mhz680,3=6Mhz (int)
40*ecefae6dSMauro Carvalho Chehabboost:
41*ecefae6dSMauro Carvalho Chehab	overclock boost percent 100 to 500 (int)
42*ecefae6dSMauro Carvalho Chehabcdmode:
43*ecefae6dSMauro Carvalho Chehab	Card detect mode
44*ecefae6dSMauro Carvalho Chehab	0=none, 1=CD, 2=!CD, 3=DSR, 4=!DSR, 5=CTS, 6=!CTS, 7=RING, 8=!RING (int)
45*ecefae6dSMauro Carvalho Chehabxmas:
46*ecefae6dSMauro Carvalho Chehab	xmas color enabled or not (bool)
47*ecefae6dSMauro Carvalho Chehabdebug:
48*ecefae6dSMauro Carvalho Chehab	Debug enabled or not (bool)
49*ecefae6dSMauro Carvalho Chehab
50*ecefae6dSMauro Carvalho Chehab-  clockmode will provide 3 different base settings commonly adopted by
51*ecefae6dSMauro Carvalho Chehab   different software:
52*ecefae6dSMauro Carvalho Chehab
53*ecefae6dSMauro Carvalho Chehab	1. 3Mhz579
54*ecefae6dSMauro Carvalho Chehab	2. 3Mhz680
55*ecefae6dSMauro Carvalho Chehab	3. 6Mhz
56*ecefae6dSMauro Carvalho Chehab
57*ecefae6dSMauro Carvalho Chehab-  boost provide a way to overclock the reader ( my favorite :-)  )
58*ecefae6dSMauro Carvalho Chehab   For example to have best performance than a simple clockmode=3, try this::
59*ecefae6dSMauro Carvalho Chehab
60*ecefae6dSMauro Carvalho Chehab      modprobe boost=195
61*ecefae6dSMauro Carvalho Chehab
62*ecefae6dSMauro Carvalho Chehab   This will put the reader in a base of 3Mhz579 but boosted a 195 % !
63*ecefae6dSMauro Carvalho Chehab   the real clock will be now : 6979050 Hz ( 6Mhz979 ) and will increase
64*ecefae6dSMauro Carvalho Chehab   the speed to a score 10 to 20% better than the simple clockmode=3 !!!
65*ecefae6dSMauro Carvalho Chehab
66*ecefae6dSMauro Carvalho Chehab
67*ecefae6dSMauro Carvalho Chehab-  cdmode permit to setup the signal used to inform the userland ( ioctl answer )
68*ecefae6dSMauro Carvalho Chehab   if the card is present or not. Eight signals are possible.
69*ecefae6dSMauro Carvalho Chehab
70*ecefae6dSMauro Carvalho Chehab-  xmas is completely useless except for your eyes. This is one of my friend who was
71*ecefae6dSMauro Carvalho Chehab   so sad to have a nice device like the iuu without seeing all color range available.
72*ecefae6dSMauro Carvalho Chehab   So I have added this option to permit him to see a lot of color ( each activity change the color
73*ecefae6dSMauro Carvalho Chehab   and the frequency randomly )
74*ecefae6dSMauro Carvalho Chehab
75*ecefae6dSMauro Carvalho Chehab-  debug will produce a lot of debugging messages...
76*ecefae6dSMauro Carvalho Chehab
77*ecefae6dSMauro Carvalho Chehab
78*ecefae6dSMauro Carvalho ChehabLast notes
79*ecefae6dSMauro Carvalho Chehab==========
80*ecefae6dSMauro Carvalho Chehab
81*ecefae6dSMauro Carvalho Chehab Don't worry about the serial settings, the serial emulation
82*ecefae6dSMauro Carvalho Chehab is an abstraction, so use any speed or parity setting will
83*ecefae6dSMauro Carvalho Chehab work. ( This will not change anything ).Later I will perhaps
84*ecefae6dSMauro Carvalho Chehab use this settings to deduce de boost but is that feature
85*ecefae6dSMauro Carvalho Chehab really necessary ?
86*ecefae6dSMauro Carvalho Chehab The autodetect feature used is the serial CD. If that doesn't
87*ecefae6dSMauro Carvalho Chehab work for your software, disable detection mechanism in it.
88*ecefae6dSMauro Carvalho Chehab
89*ecefae6dSMauro Carvalho Chehab
90*ecefae6dSMauro Carvalho Chehab Have fun !
91*ecefae6dSMauro Carvalho Chehab
92*ecefae6dSMauro Carvalho Chehab Alain Degreffe
93*ecefae6dSMauro Carvalho Chehab
94*ecefae6dSMauro Carvalho Chehab eczema(at)ecze.com
95