forked from Minki/linux
4a851d714e
Systems have a line for restting the remote CFAM. This is not part of the FSI master, but is associated with it, so it makes sense to include it in the master driver. This exposes a sysfs interface to reset the cfam, abstracting away the direction and polarity of the GPIO, as well as the timing of the reset pulse. Userspace will be blocked until the reset pulse is finished. The reset is hard coded to be in the range of (900, 1000) us. It was observed with a scope to regularly be just over 1ms. If the device tree property is not preset the driver will silently continue. Reviewed-by: Andrew Jeffery <andrew@aj.id.au> Link: https://lore.kernel.org/r/20200728025527.174503-6-joel@jms.id.au Signed-off-by: Joel Stanley <joel@jms.id.au>
47 lines
1.6 KiB
Plaintext
47 lines
1.6 KiB
Plaintext
What: /sys/bus/platform/devices/../fsi-master/fsi0/rescan
|
|
Date: May 2017
|
|
KernelVersion: 4.12
|
|
Contact: linux-fsi@lists.ozlabs.org
|
|
Description:
|
|
Initiates a FSI master scan for all connected slave devices
|
|
on its links.
|
|
|
|
What: /sys/bus/platform/devices/../fsi-master/fsi0/break
|
|
Date: May 2017
|
|
KernelVersion: 4.12
|
|
Contact: linux-fsi@lists.ozlabs.org
|
|
Description:
|
|
Sends an FSI BREAK command on a master's communication
|
|
link to any connnected slaves. A BREAK resets connected
|
|
device's logic and preps it to receive further commands
|
|
from the master.
|
|
|
|
What: /sys/bus/platform/devices/../fsi-master/fsi0/slave@00:00/term
|
|
Date: May 2017
|
|
KernelVersion: 4.12
|
|
Contact: linux-fsi@lists.ozlabs.org
|
|
Description:
|
|
Sends an FSI terminate command from the master to its
|
|
connected slave. A terminate resets the slave's state machines
|
|
that control access to the internally connected engines. In
|
|
addition the slave freezes its internal error register for
|
|
debugging purposes. This command is also needed to abort any
|
|
ongoing operation in case of an expired 'Master Time Out'
|
|
timer.
|
|
|
|
What: /sys/bus/platform/devices/../fsi-master/fsi0/slave@00:00/raw
|
|
Date: May 2017
|
|
KernelVersion: 4.12
|
|
Contact: linux-fsi@lists.ozlabs.org
|
|
Description:
|
|
Provides a means of reading/writing a 32 bit value from/to a
|
|
specified FSI bus address.
|
|
|
|
What: /sys/bus/platform/devices/../cfam_reset
|
|
Date: Sept 2020
|
|
KernelVersion: 5.10
|
|
Contact: linux-fsi@lists.ozlabs.org
|
|
Description:
|
|
Provides a means of resetting the cfam that is attached to the
|
|
FSI device.
|