xref: /linux/Documentation/ABI/testing/sysfs-nvmem-cells (revision 79790b6818e96c58fe2bffee1b418c16e64e7b80)
1What:		/sys/bus/nvmem/devices/.../cells/<cell-name>
2Date:		May 2023
3KernelVersion:	6.5
4Contact:	Miquel Raynal <miquel.raynal@bootlin.com>
5Description:
6		The "cells" folder contains one file per cell exposed by the
7		NVMEM device. The name of the file is: "<name>@<byte>,<bit>",
8		with <name> being the cell name and <where> its location in
9		the NVMEM device, in hexadecimal bytes and bits (without the
10		'0x' prefix, to mimic device tree node names). The length of
11		the file is the size of the cell (when known). The content of
12		the file is the binary content of the cell (may sometimes be
13		ASCII, likely without trailing character).
14		Note: This file is only present if CONFIG_NVMEM_SYSFS
15		is enabled.
16
17		Example::
18
19		  hexdump -C /sys/bus/nvmem/devices/1-00563/cells/product-name@d,0
20		  00000000  54 4e 34 38 4d 2d 50 2d  44 4e         |TN48M-P-DN|
21		  0000000a
22