1 What: /sys/bus/greybus/devices/greybusN
4 Contact: Greg Kroah-Hartman <greg@kroah.com>
6 The "root" greybus device for the Greybus device tree, or bus,
7 where N is a dynamically assigned 1-based id.
9 What: /sys/bus/greybus/devices/greybusN/bus_id
12 Contact: Greg Kroah-Hartman <greg@kroah.com>
14 The ID of the "root" greybus device, or bus.
16 What: /sys/bus/greybus/devices/N-M
19 Contact: Greg Kroah-Hartman <greg@kroah.com>
21 A Module M on the bus N, where M is the 1-byte interface
22 ID of the module's primary interface.
24 What: /sys/bus/greybus/devices/N-M/eject
27 Contact: Greg Kroah-Hartman <greg@kroah.com>
29 Writing a non-zero argument to this attibute disables the
30 module's interfaces before physically ejecting it.
32 What: /sys/bus/greybus/devices/N-M/module_id
35 Contact: Greg Kroah-Hartman <greg@kroah.com>
37 The ID of a Greybus module, corresponding to the ID of its
40 What: /sys/bus/greybus/devices/N-M/num_interfaces
43 Contact: Greg Kroah-Hartman <greg@kroah.com>
45 The number of interfaces of a module.
47 What: /sys/bus/greybus/devices/N-M.I
50 Contact: Greg Kroah-Hartman <greg@kroah.com>
52 An Interface I on the bus N and module N-M, where I is the
55 What: /sys/bus/greybus/devices/N-M.I/current_now
58 Contact: Greg Kroah-Hartman <greg@kroah.com>
60 Current measurement of the interface in microamps (uA)
62 What: /sys/bus/greybus/devices/N-M.I/ddbl1_manufacturer_id
65 Contact: Greg Kroah-Hartman <greg@kroah.com>
67 Unipro Device Descriptor Block Level 1 manufacturer ID for the
70 What: /sys/bus/greybus/devices/N-M.I/ddbl1_product_id
73 Contact: Greg Kroah-Hartman <greg@kroah.com>
75 Unipro Device Descriptor Block Level 1 product ID for the
78 What: /sys/bus/greybus/devices/N-M.I/interface_id
81 Contact: Greg Kroah-Hartman <greg@kroah.com>
83 The ID of a Greybus interface.
85 What: /sys/bus/greybus/devices/N-M.I/power_now
88 Contact: Greg Kroah-Hartman <greg@kroah.com>
90 Power measurement of the interface in microwatts (uW)
92 What: /sys/bus/greybus/devices/N-M.I/product_id
95 Contact: Greg Kroah-Hartman <greg@kroah.com>
97 Product ID of a Greybus interface.
99 What: /sys/bus/greybus/devices/N-M.I/serial_number
102 Contact: Greg Kroah-Hartman <greg@kroah.com>
104 Serial Number of the Greybus interface, represented by a 64 bit
107 What: /sys/bus/greybus/devices/N-M.I/vendor_id
110 Contact: Greg Kroah-Hartman <greg@kroah.com>
112 Vendor ID of a Greybus interface.
114 What: /sys/bus/greybus/devices/N-M.I/voltage_now
117 Contact: Greg Kroah-Hartman <greg@kroah.com>
119 Voltage measurement of the interface in microvolts (uV)
121 What: /sys/bus/greybus/devices/N-M.I.ctrl
124 Contact: Greg Kroah-Hartman <greg@kroah.com>
126 Abstract control device for interface I that represents the
127 current mode of an enumerated Greybus interface.
129 What: /sys/bus/greybus/devices/N-M.I.ctrl/product_string
132 Contact: Greg Kroah-Hartman <greg@kroah.com>
134 Product ID string of a Greybus interface.
136 What: /sys/bus/greybus/devices/N-M.I.ctrl/vendor_string
139 Contact: Greg Kroah-Hartman <greg@kroah.com>
141 Vendor ID string of a Greybus interface.
143 What: /sys/bus/greybus/devices/N-M.I.B
146 Contact: Greg Kroah-Hartman <greg@kroah.com>
148 A bundle B on the Interface I, B is replaced by a 1-byte
149 number representing the bundle.
151 What: /sys/bus/greybus/devices/N-M.I.B/bundle_class
154 Contact: Greg Kroah-Hartman <greg@kroah.com>
156 The greybus class of the bundle B.
158 What: /sys/bus/greybus/devices/N-M.I.B/bundle_id
161 Contact: Greg Kroah-Hartman <greg@kroah.com>
163 The interface-unique id of the bundle B.
165 What: /sys/bus/greybus/devices/N-M.I.B/gpbX
168 Contact: Greg Kroah-Hartman <greg@kroah.com>
170 The General Purpose Bridged PHY device of the bundle B,
171 where X is a dynamically assigned 0-based id.
173 What: /sys/bus/greybus/devices/N-M.I.B/state
176 Contact: Greg Kroah-Hartman <greg@kroah.com>
178 A bundle has a state that is managed by the userspace
179 Endo process. This file allows that Endo to signal
180 other Android HALs that the state of the bundle has
181 changed to a specific value. When written to, any
182 process watching the file will be woken up, and the new
183 value can be read. It's a "poor-man's IPC", yes, but
184 simplifies the Android userspace code immensely.
186 What: /sys/bus/greybus/devices/N-svc
189 Contact: Greg Kroah-Hartman <greg@kroah.com>
191 The singleton SVC device of bus N.
193 What: /sys/bus/greybus/devices/N-svc/ap_intf_id
196 Contact: Greg Kroah-Hartman <greg@kroah.com>
198 The AP interface ID, a 1-byte non-zero integer which
199 defines the position of the AP module on the frame.
200 The interface positions are defined in the ARA
201 Module Developer Kit.
203 What: /sys/bus/greybus/devices/N-svc/endo_id
206 Contact: Greg Kroah-Hartman <greg@kroah.com>
208 The Endo ID, which is a 2-byte hexadecimal value
209 defined by the Endo layout scheme, documented in
210 the ARA Module Developer Kit.
212 What: /sys/bus/greybus/devices/N-svc/intf_eject
215 Contact: Greg Kroah-Hartman <greg@kroah.com>
217 Write the number of the interface that you wish to
218 forcibly eject from the system.
220 What: /sys/bus/greybus/devices/N-svc/version
223 Contact: Greg Kroah-Hartman <greg@kroah.com>
225 The version number of the firmware in the SVC device.
227 What: /sys/bus/greybus/devices/N-svc/watchdog
230 Contact: Greg Kroah-Hartman <greg@kroah.com>
232 If the SVC watchdog is enabled or not. Writing 0 to this
233 file will disable the watchdog, writing 1 will enable it.