summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/Documentation
diff options
context:
space:
mode:
authorJohan Hovold <johan@hovoldconsulting.com>2016-02-22 18:50:56 +0100
committerGreg Kroah-Hartman <gregkh@google.com>2016-02-25 16:23:01 -0800
commitc8733c513df38d5e5b3a19fe54be0f5821bfda2a (patch)
tree5fe4aca924e1eeced0858240daa28ac3077b367f /drivers/staging/greybus/Documentation
parentbd93d2a819c5e6081920f5dc775fc3361dbca5f7 (diff)
downloadlinux-c8733c513df38d5e5b3a19fe54be0f5821bfda2a.tar.bz2
greybus: Documentation/sysfs: make 1-5 a 2x2 module
Make example module 1-5 a 2x2 module by adding a second, dummy interface. This is both an example of how a 2x2 module would be represented and also suggests what a dummy interface may look like. A 2x2 module has two child interface devices and a num_interfaces value of two. In this example, the secondary interface 1-5.6, is a dummy interface and therefore lacks the normal identifying attributes (e.g. UniPro DDBL1 and Ara ids). We may eventually add an interface_type attribute to facilitate distinguishing various interface types (there may be more than two). In the following tree, the bundle attributes and child devices have been left out: greybus1/ ├── 1-2 │   ├── 1-2.2 │   │   ├── 1-2.2.1 │   │   ├── 1-2.2.2 │   │   ├── ddbl1_manufacturer_id │   │   ├── ddbl1_product_id │   │   ├── interface_id │   │   ├── product_id │   │   ├── serial_number │   │   ├── unique_id │   │   └── vendor_id │   ├── eject │   ├── module_id │   └── num_interfaces ├── 1-5 │   ├── 1-5.5 │   │   ├── 1-5.5.2 │   │   ├── ddbl1_manufacturer_id │   │   ├── ddbl1_product_id │   │   ├── interface_id │   │   ├── product_id │   │   ├── serial_number │   │   ├── unique_id │   │   └── vendor_id │   ├── 1-5.6 │   │   └── interface_id │   ├── eject │   ├── module_id │   └── num_interfaces └── 1-svc In this example there are two modules: 1-2 is a 1x2 module with one interface, and 1-5 is a 2x2 module with two interfaces of which the second (1-5.6) is a dummy interface. Signed-off-by: Johan Hovold <johan@hovoldconsulting.com> Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/Documentation')
-rw-r--r--drivers/staging/greybus/Documentation/sysfs/greybus1/1-5/1-5.6/interface_id1
-rw-r--r--drivers/staging/greybus/Documentation/sysfs/greybus1/1-5/num_interfaces2
2 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/greybus/Documentation/sysfs/greybus1/1-5/1-5.6/interface_id b/drivers/staging/greybus/Documentation/sysfs/greybus1/1-5/1-5.6/interface_id
new file mode 100644
index 000000000000..1e8b31496214
--- /dev/null
+++ b/drivers/staging/greybus/Documentation/sysfs/greybus1/1-5/1-5.6/interface_id
@@ -0,0 +1 @@
+6
diff --git a/drivers/staging/greybus/Documentation/sysfs/greybus1/1-5/num_interfaces b/drivers/staging/greybus/Documentation/sysfs/greybus1/1-5/num_interfaces
index d00491fd7e5b..0cfbf08886fc 100644
--- a/drivers/staging/greybus/Documentation/sysfs/greybus1/1-5/num_interfaces
+++ b/drivers/staging/greybus/Documentation/sysfs/greybus1/1-5/num_interfaces
@@ -1 +1 @@
-1
+2