sysfs-bus-nvmem 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. What: /sys/bus/nvmem/devices/.../force_ro
  2. Date: June 2024
  3. KernelVersion: 6.11
  4. Contact: Marek Vasut <marex@denx.de>
  5. Description:
  6. This read/write attribute allows users to set read-write
  7. devices as read-only and back to read-write from userspace.
  8. This can be used to unlock and relock write-protection of
  9. devices which are generally locked, except during sporadic
  10. programming operation.
  11. Read returns '0' or '1' for read-write or read-only modes
  12. respectively.
  13. Write parses one of 'YyTt1NnFf0', or [oO][NnFf] for "on"
  14. and "off", i.e. what kstrtobool() supports.
  15. Note: This file is only present if CONFIG_NVMEM_SYSFS
  16. is enabled.
  17. What: /sys/bus/nvmem/devices/.../nvmem
  18. Date: July 2015
  19. KernelVersion: 4.2
  20. Contact: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
  21. Description:
  22. This file allows user to read/write the raw NVMEM contents.
  23. Permissions for write to this file depends on the nvmem
  24. provider configuration.
  25. Note: This file is only present if CONFIG_NVMEM_SYSFS
  26. is enabled
  27. ex::
  28. hexdump /sys/bus/nvmem/devices/qfprom0/nvmem
  29. 0000000 0000 0000 0000 0000 0000 0000 0000 0000
  30. *
  31. 00000a0 db10 2240 0000 e000 0c00 0c00 0000 0c00
  32. 0000000 0000 0000 0000 0000 0000 0000 0000 0000
  33. ...
  34. *
  35. 0001000
  36. What: /sys/bus/nvmem/devices/.../type
  37. Date: November 2018
  38. KernelVersion: 5.0
  39. Contact: Alexandre Belloni <alexandre.belloni@bootlin.com>
  40. Description:
  41. This read-only attribute allows user to read the NVMEM
  42. device type. Supported types are "Unknown", "EEPROM",
  43. "OTP", "Battery backed", "FRAM".
  44. Note: This file is only present if CONFIG_NVMEM_SYSFS
  45. is enabled.