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/interface_type
88 Contact: Greg Kroah-Hartman <greg@kroah.com>
90 The type of a Greybus interface; "dummy", "unipro", "greybus",
93 What: /sys/bus/greybus/devices/N-M.I/power_now
96 Contact: Greg Kroah-Hartman <greg@kroah.com>
98 Power measurement of the interface in microwatts (uW)
100 What: /sys/bus/greybus/devices/N-M.I/product_id
103 Contact: Greg Kroah-Hartman <greg@kroah.com>
105 Product ID of a Greybus interface.
107 What: /sys/bus/greybus/devices/N-M.I/serial_number
110 Contact: Greg Kroah-Hartman <greg@kroah.com>
112 Serial Number of the Greybus interface, represented by a 64 bit
115 What: /sys/bus/greybus/devices/N-M.I/vendor_id
118 Contact: Greg Kroah-Hartman <greg@kroah.com>
120 Vendor ID of a Greybus interface.
122 What: /sys/bus/greybus/devices/N-M.I/voltage_now
125 Contact: Greg Kroah-Hartman <greg@kroah.com>
127 Voltage measurement of the interface in microvolts (uV)
129 What: /sys/bus/greybus/devices/N-M.I.ctrl
132 Contact: Greg Kroah-Hartman <greg@kroah.com>
134 Abstract control device for interface I that represents the
135 current mode of an enumerated Greybus interface.
137 What: /sys/bus/greybus/devices/N-M.I.ctrl/product_string
140 Contact: Greg Kroah-Hartman <greg@kroah.com>
142 Product ID string of a Greybus interface.
144 What: /sys/bus/greybus/devices/N-M.I.ctrl/vendor_string
147 Contact: Greg Kroah-Hartman <greg@kroah.com>
149 Vendor ID string of a Greybus interface.
151 What: /sys/bus/greybus/devices/N-M.I.B
154 Contact: Greg Kroah-Hartman <greg@kroah.com>
156 A bundle B on the Interface I, B is replaced by a 1-byte
157 number representing the bundle.
159 What: /sys/bus/greybus/devices/N-M.I.B/bundle_class
162 Contact: Greg Kroah-Hartman <greg@kroah.com>
164 The greybus class of the bundle B.
166 What: /sys/bus/greybus/devices/N-M.I.B/bundle_id
169 Contact: Greg Kroah-Hartman <greg@kroah.com>
171 The interface-unique id of the bundle B.
173 What: /sys/bus/greybus/devices/N-M.I.B/gpbX
176 Contact: Greg Kroah-Hartman <greg@kroah.com>
178 The General Purpose Bridged PHY device of the bundle B,
179 where X is a dynamically assigned 0-based id.
181 What: /sys/bus/greybus/devices/N-M.I.B/state
184 Contact: Greg Kroah-Hartman <greg@kroah.com>
186 A bundle has a state that is managed by the userspace
187 Endo process. This file allows that Endo to signal
188 other Android HALs that the state of the bundle has
189 changed to a specific value. When written to, any
190 process watching the file will be woken up, and the new
191 value can be read. It's a "poor-man's IPC", yes, but
192 simplifies the Android userspace code immensely.
194 What: /sys/bus/greybus/devices/N-svc
197 Contact: Greg Kroah-Hartman <greg@kroah.com>
199 The singleton SVC device of bus N.
201 What: /sys/bus/greybus/devices/N-svc/ap_intf_id
204 Contact: Greg Kroah-Hartman <greg@kroah.com>
206 The AP interface ID, a 1-byte non-zero integer which
207 defines the position of the AP module on the frame.
208 The interface positions are defined in the ARA
209 Module Developer Kit.
211 What: /sys/bus/greybus/devices/N-svc/endo_id
214 Contact: Greg Kroah-Hartman <greg@kroah.com>
216 The Endo ID, which is a 2-byte hexadecimal value
217 defined by the Endo layout scheme, documented in
218 the ARA Module Developer Kit.
220 What: /sys/bus/greybus/devices/N-svc/intf_eject
223 Contact: Greg Kroah-Hartman <greg@kroah.com>
225 Write the number of the interface that you wish to
226 forcibly eject from the system.
228 What: /sys/bus/greybus/devices/N-svc/version
231 Contact: Greg Kroah-Hartman <greg@kroah.com>
233 The version number of the firmware in the SVC device.
235 What: /sys/bus/greybus/devices/N-svc/watchdog
238 Contact: Greg Kroah-Hartman <greg@kroah.com>
240 If the SVC watchdog is enabled or not. Writing 0 to this
241 file will disable the watchdog, writing 1 will enable it.