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/power_state
103 Contact: Greg Kroah-Hartman <greg@kroah.com>
105 This file reflects the power state of a Greybus interface. If
106 the value read from it is "on", then power is currently
107 supplied to the interface. Otherwise it will read "off" and
108 power is currently not supplied to the interface.
110 If the value read is "off", then writing "on" (or '1', 'y',
111 'Y') to this file will enable power to the interface and an
112 attempt to boot and possibly enumerate it will be made. Note
113 that on errors, the interface will again be powered down.
115 If the value read is "on", then writing "off" (or '0', 'n',
116 'N') to this file will power down the interface.
118 What: /sys/bus/greybus/devices/N-M.I/product_id
121 Contact: Greg Kroah-Hartman <greg@kroah.com>
123 Product ID of a Greybus interface.
125 What: /sys/bus/greybus/devices/N-M.I/serial_number
128 Contact: Greg Kroah-Hartman <greg@kroah.com>
130 Serial Number of the Greybus interface, represented by a 64 bit
133 What: /sys/bus/greybus/devices/N-M.I/vendor_id
136 Contact: Greg Kroah-Hartman <greg@kroah.com>
138 Vendor ID of a Greybus interface.
140 What: /sys/bus/greybus/devices/N-M.I/voltage_now
143 Contact: Greg Kroah-Hartman <greg@kroah.com>
145 Voltage measurement of the interface in microvolts (uV)
147 What: /sys/bus/greybus/devices/N-M.I.ctrl
150 Contact: Greg Kroah-Hartman <greg@kroah.com>
152 Abstract control device for interface I that represents the
153 current mode of an enumerated Greybus interface.
155 What: /sys/bus/greybus/devices/N-M.I.ctrl/product_string
158 Contact: Greg Kroah-Hartman <greg@kroah.com>
160 Product ID string of a Greybus interface.
162 What: /sys/bus/greybus/devices/N-M.I.ctrl/vendor_string
165 Contact: Greg Kroah-Hartman <greg@kroah.com>
167 Vendor ID string of a Greybus interface.
169 What: /sys/bus/greybus/devices/N-M.I.B
172 Contact: Greg Kroah-Hartman <greg@kroah.com>
174 A bundle B on the Interface I, B is replaced by a 1-byte
175 number representing the bundle.
177 What: /sys/bus/greybus/devices/N-M.I.B/bundle_class
180 Contact: Greg Kroah-Hartman <greg@kroah.com>
182 The greybus class of the bundle B.
184 What: /sys/bus/greybus/devices/N-M.I.B/bundle_id
187 Contact: Greg Kroah-Hartman <greg@kroah.com>
189 The interface-unique id of the bundle B.
191 What: /sys/bus/greybus/devices/N-M.I.B/gpbX
194 Contact: Greg Kroah-Hartman <greg@kroah.com>
196 The General Purpose Bridged PHY device of the bundle B,
197 where X is a dynamically assigned 0-based id.
199 What: /sys/bus/greybus/devices/N-M.I.B/state
202 Contact: Greg Kroah-Hartman <greg@kroah.com>
204 A bundle has a state that is managed by the userspace
205 Endo process. This file allows that Endo to signal
206 other Android HALs that the state of the bundle has
207 changed to a specific value. When written to, any
208 process watching the file will be woken up, and the new
209 value can be read. It's a "poor-man's IPC", yes, but
210 simplifies the Android userspace code immensely.
212 What: /sys/bus/greybus/devices/N-svc
215 Contact: Greg Kroah-Hartman <greg@kroah.com>
217 The singleton SVC device of bus N.
219 What: /sys/bus/greybus/devices/N-svc/ap_intf_id
222 Contact: Greg Kroah-Hartman <greg@kroah.com>
224 The AP interface ID, a 1-byte non-zero integer which
225 defines the position of the AP module on the frame.
226 The interface positions are defined in the GMP
227 Module Developer Kit.
229 What: /sys/bus/greybus/devices/N-svc/endo_id
232 Contact: Greg Kroah-Hartman <greg@kroah.com>
234 The Endo ID, which is a 2-byte hexadecimal value
235 defined by the Endo layout scheme, documented in
236 the GMP Module Developer Kit.
238 What: /sys/bus/greybus/devices/N-svc/intf_eject
241 Contact: Greg Kroah-Hartman <greg@kroah.com>
243 Write the number of the interface that you wish to
244 forcibly eject from the system.
246 What: /sys/bus/greybus/devices/N-svc/version
249 Contact: Greg Kroah-Hartman <greg@kroah.com>
251 The version number of the firmware in the SVC device.
253 What: /sys/bus/greybus/devices/N-svc/watchdog
256 Contact: Greg Kroah-Hartman <greg@kroah.com>
258 If the SVC watchdog is enabled or not. Writing 0 to this
259 file will disable the watchdog, writing 1 will enable it.
261 What: /sys/bus/greybus/devices/N-svc/watchdog_action
264 Contact: Greg Kroah-Hartman <greg@kroah.com>
266 This attribute indicates the action to be performed upon SVC
269 The action can be one of the "reset" or "panic". Writing either
270 one of the "reset" or "panic" will change the behavior of SVC
271 watchdog bite. Default value is "reset".
273 "reset" means the UniPro subsystem is to be reset.
275 "panic" means SVC watchdog bite will cause kernel to panic.