/Linux-v5.10/drivers/nvmem/ |
D | core.c | 3 * nvmem framework core. 16 #include <linux/nvmem-consumer.h> 17 #include <linux/nvmem-provider.h> 54 struct nvmem_device *nvmem; member 69 static int nvmem_reg_read(struct nvmem_device *nvmem, unsigned int offset, in nvmem_reg_read() argument 72 if (nvmem->reg_read) in nvmem_reg_read() 73 return nvmem->reg_read(nvmem->priv, offset, val, bytes); in nvmem_reg_read() 78 static int nvmem_reg_write(struct nvmem_device *nvmem, unsigned int offset, in nvmem_reg_write() argument 83 if (nvmem->reg_write) { in nvmem_reg_write() 84 gpiod_set_value_cansleep(nvmem->wp_gpio, 0); in nvmem_reg_write() [all …]
|
D | Makefile | 3 # Makefile for nvmem drivers. 10 obj-$(CONFIG_NVMEM_BCM_OCOTP) += nvmem-bcm-ocotp.o 11 nvmem-bcm-ocotp-y := bcm-ocotp.o 12 obj-$(CONFIG_NVMEM_IMX_IIM) += nvmem-imx-iim.o 13 nvmem-imx-iim-y := imx-iim.o 14 obj-$(CONFIG_NVMEM_IMX_OCOTP) += nvmem-imx-ocotp.o 15 nvmem-imx-ocotp-y := imx-ocotp.o 16 obj-$(CONFIG_NVMEM_IMX_OCOTP_SCU) += nvmem-imx-ocotp-scu.o 17 nvmem-imx-ocotp-scu-y := imx-ocotp-scu.o 24 obj-$(CONFIG_NVMEM_MXS_OCOTP) += nvmem-mxs-ocotp.o [all …]
|
D | Kconfig | 2 menuconfig NVMEM config 3 bool "NVMEM Support" 5 Support for NVMEM(Non Volatile Memory) devices like EEPROM, EFUSES... 7 This framework is designed to provide a generic interface to NVMEM 12 if NVMEM 15 bool "/sys/bus/nvmem/devices/*/nvmem (sysfs interface)" 19 Say Y here to add a sysfs interface for NVMEM. 22 read/write directly into nvmem. 33 will be called nvmem-imx-iim. 45 will be called nvmem-imx-ocotp. [all …]
|
D | zynqmp_nvmem.c | 7 #include <linux/nvmem-provider.h> 16 struct nvmem_device *nvmem; member 37 .name = "zynqmp-nvmem", 45 { .compatible = "xlnx,zynqmp-nvmem-fw", }, 64 priv->nvmem = devm_nvmem_register(dev, &econfig); in zynqmp_nvmem_probe() 66 return PTR_ERR_OR_ZERO(priv->nvmem); in zynqmp_nvmem_probe() 72 .name = "zynqmp-nvmem", 80 MODULE_DESCRIPTION("ZynqMP NVMEM driver");
|
/Linux-v5.10/Documentation/driver-api/ |
D | nvmem.rst | 4 NVMEM Subsystem 9 This document explains the NVMEM Framework along with the APIs provided, 14 *NVMEM* is the abbreviation for Non Volatile Memory layer. It is used to 18 Before this framework existed, NVMEM drivers like eeprom were stored in 33 NVMEM Providers 36 NVMEM provider refers to an entity that implements methods to initialize, read 39 2. Registering/Unregistering the NVMEM provider 42 A NVMEM provider can register with NVMEM core by supplying relevant 43 nvmem configuration to nvmem_register(), on success core would return a valid 46 nvmem_unregister(nvmem) is used to unregister a previously registered provider. [all …]
|
/Linux-v5.10/Documentation/devicetree/bindings/nvmem/ |
D | nvmem-consumer.yaml | 4 $id: http://devicetree.org/schemas/nvmem/nvmem-consumer.yaml# 7 title: NVMEM (Non Volatile Memory) Consumer Device Tree Bindings 15 nvmem: 18 List of phandle to the nvmem providers. 20 nvmem-cells: 23 List of phandle to the nvmem data cells. 25 nvmem-names: 28 Names for the each nvmem provider. 30 nvmem-cell-names: 33 Names for each nvmem-cells specified. [all …]
|
D | xlnx,zynqmp-nvmem.txt | 2 = Zynq UltraScale+ MPSoC nvmem firmware driver binding = 8 - compatible: should be "xlnx,zynqmp-nvmem-fw" 12 bindings/nvmem/nvmem.txt 23 compatible = "xlnx,zynqmp-nvmem-fw"; 36 Are device nodes which consume nvmem data cells. 42 nvmem-cells = <&soc_revision>; 43 nvmem-cell-names = "soc_revision";
|
D | sprd-efuse.txt | 12 bindings/nvmem/nvmem.txt 30 Are device nodes which consume nvmem data cells. 37 nvmem-cells = <&thermal_calib>; 38 nvmem-cell-names = "calibration";
|
D | mtk-efuse.txt | 14 bindings/nvmem/nvmem.txt 31 Are device nodes which consume nvmem data cells. 37 nvmem-cells = <&thermal_calibration>; 38 nvmem-cell-names = "calibration";
|
D | amlogic-efuse.txt | 11 bindings/nvmem/nvmem.txt 40 Are device nodes which consume nvmem data cells. 46 nvmem-cells = <ð_mac>; 47 nvmem-cell-names = "eth_mac";
|
/Linux-v5.10/Documentation/devicetree/bindings/thermal/ |
D | sprd-thermal.yaml | 28 nvmem-cells: 31 Reference to nvmem nodes for the calibration data. 33 nvmem-cell-names: 58 nvmem-cells: 61 Reference to an nvmem node for the calibration data. 63 nvmem-cell-names: 68 - nvmem-cells 69 - nvmem-cell-names 78 - nvmem-cells 79 - nvmem-cell-names [all …]
|
D | allwinner,sun8i-a83t-ths.yaml | 47 nvmem-cells: 51 nvmem-cell-names: 133 nvmem-cells = <&ths_calibration>; 134 nvmem-cell-names = "calibration"; 146 nvmem-cells = <&ths_calibration>; 147 nvmem-cell-names = "calibration"; 159 nvmem-cells = <&ths_calibration>; 160 nvmem-cell-names = "calibration";
|
/Linux-v5.10/drivers/thunderbolt/ |
D | nvm.c | 46 * tb_nvm_add_active() - Adds active NVMem device to NVM 50 * NVMem device) 52 * Registers new active NVmem device for @nvm. The @reg_read is called 53 * directly from NVMem so it must handle possible concurrent access if 60 struct nvmem_device *nvmem; in tb_nvm_add_active() local 75 nvmem = nvmem_register(&config); in tb_nvm_add_active() 76 if (IS_ERR(nvmem)) in tb_nvm_add_active() 77 return PTR_ERR(nvmem); in tb_nvm_add_active() 79 nvm->active = nvmem; in tb_nvm_add_active() 110 * tb_nvm_add_non_active() - Adds non-active NVMem device to NVM [all …]
|
/Linux-v5.10/Documentation/devicetree/bindings/power/reset/ |
D | nvmem-reboot-mode.txt | 1 NVMEM reboot mode driver 4 and stores it in a NVMEM cell named "reboot-mode". Then the bootloader 9 - compatible: should be "nvmem-reboot-mode". 10 - nvmem-cells: A phandle to the reboot mode provided by a nvmem device. 11 - nvmem-cell-names: Should be "reboot-mode". 18 compatible = "nvmem-reboot-mode"; 19 nvmem-cells = <&reboot_mode>; 20 nvmem-cell-names = "reboot-mode";
|
/Linux-v5.10/include/linux/ |
D | nvmem-consumer.h | 3 * nvmem framework consumer. 34 * @cell_name: Name of the nvmem cell as defined in the name field of 69 /* direct nvmem device read/write interface */ 73 void nvmem_device_put(struct nvmem_device *nvmem); 74 void devm_nvmem_device_put(struct device *dev, struct nvmem_device *nvmem); 75 int nvmem_device_read(struct nvmem_device *nvmem, unsigned int offset, 77 int nvmem_device_write(struct nvmem_device *nvmem, unsigned int offset, 79 ssize_t nvmem_device_cell_read(struct nvmem_device *nvmem, 81 int nvmem_device_cell_write(struct nvmem_device *nvmem, 84 const char *nvmem_dev_name(struct nvmem_device *nvmem); [all …]
|
D | nvmem-provider.h | 3 * nvmem framework provider. 34 * struct nvmem_config - NVMEM device configuration 40 * @cells: Optional array of pre-defined NVMEM cells. 42 * @type: Type of the nvmem storage 54 * Note: A default "nvmem<id>" name will be assigned to the device if 85 * struct nvmem_cell_table - NVMEM cell definitions for given provider 93 * that don't can't access the nvmem provided structure but wish to register 106 void nvmem_unregister(struct nvmem_device *nvmem); 111 int devm_nvmem_unregister(struct device *dev, struct nvmem_device *nvmem); 123 static inline void nvmem_unregister(struct nvmem_device *nvmem) {} in nvmem_unregister() argument [all …]
|
/Linux-v5.10/drivers/rtc/ |
D | nvmem.c | 3 * RTC subsystem, nvmem interface 10 #include <linux/nvmem-consumer.h> 19 static const char nvram_warning[] = "Deprecated ABI, please use nvmem"; 42 struct nvmem_device *nvmem, size_t size) in rtc_nvram_register() argument 52 rtc->nvram->private = nvmem; in rtc_nvram_register() 78 * New ABI, uses nvmem 83 struct nvmem_device *nvmem; in rtc_nvmem_register() local 90 nvmem = devm_nvmem_register(rtc->dev.parent, nvmem_config); in rtc_nvmem_register() 91 if (IS_ERR(nvmem)) in rtc_nvmem_register() 92 return PTR_ERR(nvmem); in rtc_nvmem_register() [all …]
|
/Linux-v5.10/drivers/soc/tegra/fuse/ |
D | fuse-tegra.c | 11 #include <linux/nvmem-consumer.h> 12 #include <linux/nvmem-provider.h> 186 struct nvmem_config nvmem; in tegra_fuse_probe() local 219 memset(&nvmem, 0, sizeof(nvmem)); in tegra_fuse_probe() 220 nvmem.dev = &pdev->dev; in tegra_fuse_probe() 221 nvmem.name = "fuse"; in tegra_fuse_probe() 222 nvmem.id = -1; in tegra_fuse_probe() 223 nvmem.owner = THIS_MODULE; in tegra_fuse_probe() 224 nvmem.cells = tegra_fuse_cells; in tegra_fuse_probe() 225 nvmem.ncells = ARRAY_SIZE(tegra_fuse_cells); in tegra_fuse_probe() [all …]
|
/Linux-v5.10/Documentation/devicetree/bindings/net/ |
D | nixge.txt | 15 - nvmem-cells: Phandle of nvmem cell containing the MAC address 16 - nvmem-cell-names: Should be "address" 31 nvmem-cells = <ð1_addr>; 32 nvmem-cell-names = "address"; 54 nvmem-cells = <ð1_addr>; 55 nvmem-cell-names = "address"; 70 nvmem-cells = <ð1_addr>; 71 nvmem-cell-names = "address";
|
D | ti-bluetooth.txt | 43 - nvmem-cells: phandle to nvmem data cell that contains a 6 byte BD address 45 - nvmem-cell-names: "bd-address" (required when nvmem-cells is specified) 57 nvmem-cells = <&bd_address>; 58 nvmem-cell-names = "bd-address";
|
/Linux-v5.10/Documentation/ABI/stable/ |
D | sysfs-bus-nvmem | 1 What: /sys/bus/nvmem/devices/.../nvmem 6 This file allows user to read/write the raw NVMEM contents. 7 Permissions for write to this file depends on the nvmem 14 hexdump /sys/bus/nvmem/devices/qfprom0/nvmem
|
/Linux-v5.10/Documentation/devicetree/bindings/iio/adc/ |
D | sprd,sc2720-adc.yaml | 36 nvmem-cells: 39 nvmem-cell-names: 50 - nvmem-cells 51 - nvmem-cell-names 68 nvmem-cells = <&adc_big_scale>, <&adc_small_scale>; 69 nvmem-cell-names = "big_scale_calib", "small_scale_calib";
|
/Linux-v5.10/Documentation/devicetree/bindings/opp/ |
D | allwinner,sun50i-h6-operating-points.yaml | 18 sun50i-cpufreq-nvmem driver reads the efuse value from the SoC to 25 nvmem-cells: 27 A phandle pointing to a nvmem-cells node representing the efuse 30 the for nvmem-cells bindings 31 Documentation/devicetree/bindings/nvmem/nvmem.txt and also 38 - nvmem-cells 64 nvmem-cells = <&speedbin_efuse>;
|
/Linux-v5.10/Documentation/devicetree/bindings/watchdog/ |
D | zii,rave-sp-wdt.txt | 18 - wdt-timeout: Two byte nvmem cell specified as per 19 Documentation/devicetree/bindings/nvmem/nvmem.txt 35 nvmem-cells = <&wdt_timeout>; 36 nvmem-cell-names = "wdt-timeout";
|
/Linux-v5.10/Documentation/devicetree/bindings/clock/ |
D | qcom,gcc-apq8064.yaml | 37 nvmem-cells: 47 nvmem-cell-names: 67 - nvmem-cells 68 - nvmem-cell-names 78 nvmem-cells = <&tsens_calib>, <&tsens_backup>; 79 nvmem-cell-names = "calib", "calib_backup";
|