brintos

brintos / linux-shallow public Read only

0
0
Text · 1.6 KiB · 0ae8cb0 Raw
51 lines · plain
1What:		/sys/bus/nvmem/devices/.../force_ro2Date:		June 20243KernelVersion:	6.114Contact:	Marek Vasut <marex@denx.de>5Description:6		This read/write attribute allows users to set read-write7		devices as read-only and back to read-write from userspace.8		This can be used to unlock and relock write-protection of9		devices which are generally locked, except during sporadic10		programming operation.11		Read returns '0' or '1' for read-write or read-only modes12		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_SYSFS16		is enabled.17 18What:		/sys/bus/nvmem/devices/.../nvmem19Date:		July 201520KernelVersion:	4.221Contact:	Srinivas Kandagatla <srinivas.kandagatla@linaro.org>22Description:23		This file allows user to read/write the raw NVMEM contents.24		Permissions for write to this file depends on the nvmem25		provider configuration.26		Note: This file is only present if CONFIG_NVMEM_SYSFS27		is enabled28 29		ex::30 31		  hexdump /sys/bus/nvmem/devices/qfprom0/nvmem32 33		  0000000 0000 0000 0000 0000 0000 0000 0000 000034		  *35		  00000a0 db10 2240 0000 e000 0c00 0c00 0000 0c0036		  0000000 0000 0000 0000 0000 0000 0000 0000 000037		  ...38		  *39		  000100040 41What:		/sys/bus/nvmem/devices/.../type42Date:		November 201843KernelVersion:	5.044Contact:	Alexandre Belloni <alexandre.belloni@bootlin.com>45Description:46		This read-only attribute allows user to read the NVMEM47		device type. Supported types are "Unknown", "EEPROM",48		"OTP", "Battery backed", "FRAM".49		Note: This file is only present if CONFIG_NVMEM_SYSFS50		is enabled.51