1 What: /sys/bus/greybus/devices/greybusN
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
14 The ID of the "root" greybus device, or bus.
16 What: /sys/bus/greybus/devices/N-M
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
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
37 The ID of a Greybus module, corresponding to the ID of its
40 What: /sys/bus/greybus/devices/N-M/num_interfaces
45 The number of interfaces of a module.
47 What: /sys/bus/greybus/devices/N-M.I
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
60 Current measurement of the interface in microamps (uA)
62 What: /sys/bus/greybus/devices/N-M.I/ddbl1_manufacturer_id
67 Unipro Device Descriptor Block Level 1 manufacturer ID for the
70 What: /sys/bus/greybus/devices/N-M.I/ddbl1_product_id
75 Unipro Device Descriptor Block Level 1 product ID for the
78 What: /sys/bus/greybus/devices/N-M.I/interface_id
83 The ID of a Greybus interface.
85 What: /sys/bus/greybus/devices/N-M.I/interface_type
90 The type of a Greybus interface; "dummy", "unipro", "greybus",
93 What: /sys/bus/greybus/devices/N-M.I/power_now
98 Power measurement of the interface in microwatts (uW)
100 What: /sys/bus/greybus/devices/N-M.I/power_state
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
123 Product ID of a Greybus interface.
125 What: /sys/bus/greybus/devices/N-M.I/serial_number
130 Serial Number of the Greybus interface, represented by a 64 bit
133 What: /sys/bus/greybus/devices/N-M.I/vendor_id
138 Vendor ID of a Greybus interface.
140 What: /sys/bus/greybus/devices/N-M.I/voltage_now
145 Voltage measurement of the interface in microvolts (uV)
147 What: /sys/bus/greybus/devices/N-M.I.ctrl
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
160 Product ID string of a Greybus interface.
162 What: /sys/bus/greybus/devices/N-M.I.ctrl/vendor_string
167 Vendor ID string of a Greybus interface.
169 What: /sys/bus/greybus/devices/N-M.I.B
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
182 The greybus class of the bundle B.
184 What: /sys/bus/greybus/devices/N-M.I.B/bundle_id
189 The interface-unique id of the bundle B.
191 What: /sys/bus/greybus/devices/N-M.I.B/gpbX
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
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
217 The singleton SVC device of bus N.
219 What: /sys/bus/greybus/devices/N-svc/ap_intf_id
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
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
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
251 The version number of the firmware in the SVC device.
253 What: /sys/bus/greybus/devices/N-svc/watchdog
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
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.