diff options
author | Bhuvanchandra DV <bhuvanchandra.dv@toradex.com> | 2016-03-30 01:20:43 +0530 |
---|---|---|
committer | Stefan Agner <stefan.agner@toradex.com> | 2016-03-29 22:57:03 -0700 |
commit | 88c66ffd8ed6cd50e436ce0d5830cd27f93259a2 (patch) | |
tree | 77738ca8d8167a23f38dd5fbc9c29f2da9529a3e /Documentation | |
parent | b84a7643279332aca39d4be85d47c0734802c91e (diff) |
spi core: Add new sysfs 'num_chipselect' fileColibri_VF_LinuxImageV2.6Beta1_20160331
Add new sysfs 'num_chipselect' file to expose the maximum number
of chipselects a SPI master can support.
This allows to create a script in user space which automatically
creates a new spidev instance for every chipselect on a bus.
Signed-off-by: Bhuvanchandra DV <bhuvanchandra.dv@toradex.com>
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/spi/spi-summary | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Documentation/spi/spi-summary b/Documentation/spi/spi-summary index d1824b399b2d..b4d15e409cfe 100644 --- a/Documentation/spi/spi-summary +++ b/Documentation/spi/spi-summary @@ -181,6 +181,9 @@ shows up in sysfs in several locations: controller managing bus "B". All spiB.* devices share one physical SPI bus segment, with SCLK, MOSI, and MISO. + /sys/class/spi_master/spiB/num_chipselect ... exposes the maximum + number of chipselects a SPI master can support. + Note that the actual location of the controller's class state depends on whether you enabled CONFIG_SYSFS_DEPRECATED or not. At this time, the only class-specific state is the bus number ("B" in "spiB"), so |