2024-07-05 08:48:52 +01:00
|
|
|
What: /sys/bus/nvmem/devices/.../force_ro
|
|
|
|
Date: June 2024
|
|
|
|
KernelVersion: 6.11
|
|
|
|
Contact: Marek Vasut <marex@denx.de>
|
|
|
|
Description:
|
|
|
|
This read/write attribute allows users to set read-write
|
|
|
|
devices as read-only and back to read-write from userspace.
|
|
|
|
This can be used to unlock and relock write-protection of
|
|
|
|
devices which are generally locked, except during sporadic
|
|
|
|
programming operation.
|
|
|
|
Read returns '0' or '1' for read-write or read-only modes
|
|
|
|
respectively.
|
|
|
|
Write parses one of 'YyTt1NnFf0', or [oO][NnFf] for "on"
|
|
|
|
and "off", i.e. what kstrbool() supports.
|
|
|
|
Note: This file is only present if CONFIG_NVMEM_SYSFS
|
|
|
|
is enabled.
|
|
|
|
|
2017-07-26 12:09:02 +02:00
|
|
|
What: /sys/bus/nvmem/devices/.../nvmem
|
|
|
|
Date: July 2015
|
2024-07-05 08:48:49 +01:00
|
|
|
KernelVersion: 4.2
|
2017-07-26 12:09:02 +02:00
|
|
|
Contact: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
|
|
|
|
Description:
|
|
|
|
This file allows user to read/write the raw NVMEM contents.
|
|
|
|
Permissions for write to this file depends on the nvmem
|
|
|
|
provider configuration.
|
2019-04-16 10:59:24 +01:00
|
|
|
Note: This file is only present if CONFIG_NVMEM_SYSFS
|
|
|
|
is enabled
|
2017-07-26 12:09:02 +02:00
|
|
|
|
2020-10-30 08:40:38 +01:00
|
|
|
ex::
|
2017-07-26 12:09:02 +02:00
|
|
|
|
2020-10-30 08:40:38 +01:00
|
|
|
hexdump /sys/bus/nvmem/devices/qfprom0/nvmem
|
|
|
|
|
|
|
|
0000000 0000 0000 0000 0000 0000 0000 0000 0000
|
|
|
|
*
|
|
|
|
00000a0 db10 2240 0000 e000 0c00 0c00 0000 0c00
|
|
|
|
0000000 0000 0000 0000 0000 0000 0000 0000 0000
|
|
|
|
...
|
|
|
|
*
|
|
|
|
0001000
|
2024-07-05 08:48:50 +01:00
|
|
|
|
|
|
|
What: /sys/bus/nvmem/devices/.../type
|
|
|
|
Date: November 2018
|
|
|
|
KernelVersion: 5.0
|
|
|
|
Contact: Alexandre Belloni <alexandre.belloni@bootlin.com>
|
|
|
|
Description:
|
|
|
|
This read-only attribute allows user to read the NVMEM
|
|
|
|
device type. Supported types are "Unknown", "EEPROM",
|
|
|
|
"OTP", "Battery backed", "FRAM".
|
|
|
|
Note: This file is only present if CONFIG_NVMEM_SYSFS
|
|
|
|
is enabled.
|