xref: /linux/Documentation/ABI/testing/sysfs-c2port (revision cdd38c5f1ce4398ec58fec95904b75824daab7b5)
1*4e17e1dbSRodolfo GiomettiWhat:		/sys/class/c2port/
2*4e17e1dbSRodolfo GiomettiDate:		October 2008
3*4e17e1dbSRodolfo GiomettiContact:	Rodolfo Giometti <giometti@linux.it>
4*4e17e1dbSRodolfo GiomettiDescription:
5*4e17e1dbSRodolfo Giometti		The /sys/class/c2port/ directory will contain files and
6*4e17e1dbSRodolfo Giometti		directories that will provide a unified interface to
7*4e17e1dbSRodolfo Giometti		the C2 port interface.
8*4e17e1dbSRodolfo Giometti
9*4e17e1dbSRodolfo GiomettiWhat:		/sys/class/c2port/c2portX
10*4e17e1dbSRodolfo GiomettiDate:		October 2008
11*4e17e1dbSRodolfo GiomettiContact:	Rodolfo Giometti <giometti@linux.it>
12*4e17e1dbSRodolfo GiomettiDescription:
13*4e17e1dbSRodolfo Giometti		The /sys/class/c2port/c2portX/ directory is related to X-th
14*4e17e1dbSRodolfo Giometti		C2 port into the system. Each directory will contain files to
15*4e17e1dbSRodolfo Giometti		manage and control its C2 port.
16*4e17e1dbSRodolfo Giometti
17*4e17e1dbSRodolfo GiomettiWhat:		/sys/class/c2port/c2portX/access
18*4e17e1dbSRodolfo GiomettiDate:		October 2008
19*4e17e1dbSRodolfo GiomettiContact:	Rodolfo Giometti <giometti@linux.it>
20*4e17e1dbSRodolfo GiomettiDescription:
21*4e17e1dbSRodolfo Giometti		The /sys/class/c2port/c2portX/access file enable the access
22*4e17e1dbSRodolfo Giometti		to the C2 port from the system. No commands can be sent
23*4e17e1dbSRodolfo Giometti		till this entry is set to 0.
24*4e17e1dbSRodolfo Giometti
25*4e17e1dbSRodolfo GiomettiWhat:		/sys/class/c2port/c2portX/dev_id
26*4e17e1dbSRodolfo GiomettiDate:		October 2008
27*4e17e1dbSRodolfo GiomettiContact:	Rodolfo Giometti <giometti@linux.it>
28*4e17e1dbSRodolfo GiomettiDescription:
29*4e17e1dbSRodolfo Giometti		The /sys/class/c2port/c2portX/dev_id file show the device ID
30*4e17e1dbSRodolfo Giometti		of the connected micro.
31*4e17e1dbSRodolfo Giometti
32*4e17e1dbSRodolfo GiomettiWhat:		/sys/class/c2port/c2portX/flash_access
33*4e17e1dbSRodolfo GiomettiDate:		October 2008
34*4e17e1dbSRodolfo GiomettiContact:	Rodolfo Giometti <giometti@linux.it>
35*4e17e1dbSRodolfo GiomettiDescription:
36*4e17e1dbSRodolfo Giometti		The /sys/class/c2port/c2portX/flash_access file enable the
37*4e17e1dbSRodolfo Giometti		access to the on-board flash of the connected micro.
38*4e17e1dbSRodolfo Giometti		No commands can be sent till this entry is set to 0.
39*4e17e1dbSRodolfo Giometti
40*4e17e1dbSRodolfo GiomettiWhat:		/sys/class/c2port/c2portX/flash_block_size
41*4e17e1dbSRodolfo GiomettiDate:		October 2008
42*4e17e1dbSRodolfo GiomettiContact:	Rodolfo Giometti <giometti@linux.it>
43*4e17e1dbSRodolfo GiomettiDescription:
44*4e17e1dbSRodolfo Giometti		The /sys/class/c2port/c2portX/flash_block_size file show
45*4e17e1dbSRodolfo Giometti		the on-board flash block size of the connected micro.
46*4e17e1dbSRodolfo Giometti
47*4e17e1dbSRodolfo GiomettiWhat:		/sys/class/c2port/c2portX/flash_blocks_num
48*4e17e1dbSRodolfo GiomettiDate:		October 2008
49*4e17e1dbSRodolfo GiomettiContact:	Rodolfo Giometti <giometti@linux.it>
50*4e17e1dbSRodolfo GiomettiDescription:
51*4e17e1dbSRodolfo Giometti		The /sys/class/c2port/c2portX/flash_blocks_num file show
52*4e17e1dbSRodolfo Giometti		the on-board flash blocks number of the connected micro.
53*4e17e1dbSRodolfo Giometti
54*4e17e1dbSRodolfo GiomettiWhat:		/sys/class/c2port/c2portX/flash_data
55*4e17e1dbSRodolfo GiomettiDate:		October 2008
56*4e17e1dbSRodolfo GiomettiContact:	Rodolfo Giometti <giometti@linux.it>
57*4e17e1dbSRodolfo GiomettiDescription:
58*4e17e1dbSRodolfo Giometti		The /sys/class/c2port/c2portX/flash_data file export
59*4e17e1dbSRodolfo Giometti		the content of the on-board flash of the connected micro.
60*4e17e1dbSRodolfo Giometti
61*4e17e1dbSRodolfo GiomettiWhat:		/sys/class/c2port/c2portX/flash_erase
62*4e17e1dbSRodolfo GiomettiDate:		October 2008
63*4e17e1dbSRodolfo GiomettiContact:	Rodolfo Giometti <giometti@linux.it>
64*4e17e1dbSRodolfo GiomettiDescription:
65*4e17e1dbSRodolfo Giometti		The /sys/class/c2port/c2portX/flash_erase file execute
66*4e17e1dbSRodolfo Giometti		the "erase" command on the on-board flash of the connected
67*4e17e1dbSRodolfo Giometti		micro.
68*4e17e1dbSRodolfo Giometti
69*4e17e1dbSRodolfo GiomettiWhat:		/sys/class/c2port/c2portX/reset
70*4e17e1dbSRodolfo GiomettiDate:		October 2008
71*4e17e1dbSRodolfo GiomettiContact:	Rodolfo Giometti <giometti@linux.it>
72*4e17e1dbSRodolfo GiomettiDescription:
73*4e17e1dbSRodolfo Giometti		The /sys/class/c2port/c2portX/reset file execute a "reset"
74*4e17e1dbSRodolfo Giometti		command on the connected micro.
75*4e17e1dbSRodolfo Giometti
76*4e17e1dbSRodolfo GiomettiWhat:		/sys/class/c2port/c2portX/rev_id
77*4e17e1dbSRodolfo GiomettiDate:		October 2008
78*4e17e1dbSRodolfo GiomettiContact:	Rodolfo Giometti <giometti@linux.it>
79*4e17e1dbSRodolfo GiomettiDescription:
80*4e17e1dbSRodolfo Giometti		The /sys/class/c2port/c2portX/rev_id file show the revision ID
81*4e17e1dbSRodolfo Giometti		of the connected micro.
82