| /Linux-v5.15/drivers/nvmem/ |
| D | core.c | 56 struct nvmem_device *nvmem; member 71 static int __nvmem_reg_read(struct nvmem_device *nvmem, unsigned int offset, in __nvmem_reg_read() argument 74 if (nvmem->reg_read) in __nvmem_reg_read() 75 return nvmem->reg_read(nvmem->priv, offset, val, bytes); in __nvmem_reg_read() 80 static int __nvmem_reg_write(struct nvmem_device *nvmem, unsigned int offset, in __nvmem_reg_write() argument 85 if (nvmem->reg_write) { in __nvmem_reg_write() 86 gpiod_set_value_cansleep(nvmem->wp_gpio, 0); in __nvmem_reg_write() 87 ret = nvmem->reg_write(nvmem->priv, offset, val, bytes); in __nvmem_reg_write() 88 gpiod_set_value_cansleep(nvmem->wp_gpio, 1); in __nvmem_reg_write() 95 static int nvmem_access_with_keepouts(struct nvmem_device *nvmem, in nvmem_access_with_keepouts() argument [all …]
|
| D | Makefile | 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 25 nvmem-mxs-ocotp-y := mxs-ocotp.o [all …]
|
| D | Kconfig | 15 bool "/sys/bus/nvmem/devices/*/nvmem (sysfs interface)" 22 read/write directly into nvmem. 33 will be called nvmem-imx-iim. 45 will be called nvmem-imx-ocotp. 97 will be called nvmem-mxs-ocotp. 120 will be called nvmem-nintendo-otp. 128 functions for QFPROM data to rest of the drivers via nvmem interface. 173 will be called nvmem-bcm-ocotp. 183 will be called nvmem-stm32-romem. 204 will be called nvmem-uniphier-efuse. [all …]
|
| D | sunxi_sid.c | 117 struct nvmem_device *nvmem; in sunxi_sid_probe() local 156 nvmem = devm_nvmem_register(dev, nvmem_cfg); in sunxi_sid_probe() 157 if (IS_ERR(nvmem)) in sunxi_sid_probe() 158 return PTR_ERR(nvmem); in sunxi_sid_probe() 168 platform_set_drvdata(pdev, nvmem); in sunxi_sid_probe()
|
| D | zynqmp_nvmem.c | 16 struct nvmem_device *nvmem; member 64 priv->nvmem = devm_nvmem_register(dev, &econfig); in zynqmp_nvmem_probe() 66 return PTR_ERR_OR_ZERO(priv->nvmem); in zynqmp_nvmem_probe()
|
| D | uniphier-efuse.c | 36 struct nvmem_device *nvmem; in uniphier_efuse_probe() local 56 nvmem = devm_nvmem_register(dev, &econfig); in uniphier_efuse_probe() 58 return PTR_ERR_OR_ZERO(nvmem); in uniphier_efuse_probe()
|
| /Linux-v5.15/include/linux/ |
| D | nvmem-consumer.h | 77 void nvmem_device_put(struct nvmem_device *nvmem); 78 void devm_nvmem_device_put(struct device *dev, struct nvmem_device *nvmem); 79 int nvmem_device_read(struct nvmem_device *nvmem, unsigned int offset, 81 int nvmem_device_write(struct nvmem_device *nvmem, unsigned int offset, 83 ssize_t nvmem_device_cell_read(struct nvmem_device *nvmem, 85 int nvmem_device_cell_write(struct nvmem_device *nvmem, 88 const char *nvmem_dev_name(struct nvmem_device *nvmem); 179 static inline void nvmem_device_put(struct nvmem_device *nvmem) in nvmem_device_put() argument 184 struct nvmem_device *nvmem) in devm_nvmem_device_put() argument 188 static inline ssize_t nvmem_device_cell_read(struct nvmem_device *nvmem, in nvmem_device_cell_read() argument [all …]
|
| D | nvmem-provider.h | 126 void nvmem_unregister(struct nvmem_device *nvmem); 131 int devm_nvmem_unregister(struct device *dev, struct nvmem_device *nvmem); 143 static inline void nvmem_unregister(struct nvmem_device *nvmem) {} in nvmem_unregister() argument 152 devm_nvmem_unregister(struct device *dev, struct nvmem_device *nvmem) in devm_nvmem_unregister() argument
|
| /Linux-v5.15/Documentation/devicetree/bindings/nvmem/ |
| 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 | 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";
|
| D | sc27xx-efuse.txt | 15 bindings/nvmem/nvmem.txt 44 Are device nodes which consume nvmem data cells. 50 nvmem-cells = <&thermal_calib>; 51 nvmem-cell-names = "calibration";
|
| D | mtk-efuse.txt | 16 bindings/nvmem/nvmem.txt 33 Are device nodes which consume nvmem data cells. 39 nvmem-cells = <&thermal_calibration>; 40 nvmem-cell-names = "calibration";
|
| /Linux-v5.15/drivers/soc/tegra/fuse/ |
| D | fuse-tegra.c | 187 struct nvmem_config nvmem; in tegra_fuse_probe() local 222 memset(&nvmem, 0, sizeof(nvmem)); in tegra_fuse_probe() 223 nvmem.dev = &pdev->dev; in tegra_fuse_probe() 224 nvmem.name = "fuse"; in tegra_fuse_probe() 225 nvmem.id = -1; in tegra_fuse_probe() 226 nvmem.owner = THIS_MODULE; in tegra_fuse_probe() 227 nvmem.cells = tegra_fuse_cells; in tegra_fuse_probe() 228 nvmem.ncells = ARRAY_SIZE(tegra_fuse_cells); in tegra_fuse_probe() 229 nvmem.type = NVMEM_TYPE_OTP; in tegra_fuse_probe() 230 nvmem.read_only = true; in tegra_fuse_probe() [all …]
|
| /Linux-v5.15/Documentation/devicetree/bindings/power/reset/ |
| D | nvmem-reboot-mode.txt | 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.15/drivers/thunderbolt/ |
| D | nvm.c | 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() 125 struct nvmem_device *nvmem; in tb_nvm_add_non_active() local 140 nvmem = nvmem_register(&config); in tb_nvm_add_non_active() 141 if (IS_ERR(nvmem)) in tb_nvm_add_non_active() 142 return PTR_ERR(nvmem); in tb_nvm_add_non_active() 144 nvm->non_active = nvmem; in tb_nvm_add_non_active()
|
| /Linux-v5.15/Documentation/driver-api/ |
| D | nvmem.rst | 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. 59 nvmem = nvmem_register(&econfig); 66 Users of board files can define and register nvmem cells using the 85 Additionally it is possible to create nvmem cell lookup entries and register 86 them with the nvmem framework from machine code as shown in the example below:: 118 `*nvmem_cell_get()` apis will get a reference to nvmem cell for a given id, 134 void nvmem_device_put(struct nvmem_device *nvmem); 135 int nvmem_device_read(struct nvmem_device *nvmem, unsigned int offset, 137 int nvmem_device_write(struct nvmem_device *nvmem, unsigned int offset, [all …]
|
| /Linux-v5.15/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.15/Documentation/ABI/stable/ |
| D | sysfs-bus-nvmem | 1 What: /sys/bus/nvmem/devices/.../nvmem 7 Permissions for write to this file depends on the nvmem 14 hexdump /sys/bus/nvmem/devices/qfprom0/nvmem
|
| /Linux-v5.15/drivers/soc/ti/ |
| D | pm33xx.c | 276 struct nvmem_device *nvmem; in am33xx_pm_begin() local 279 nvmem = devm_nvmem_device_get(&omap_rtc->dev, in am33xx_pm_begin() 281 if (!IS_ERR(nvmem)) in am33xx_pm_begin() 282 nvmem_device_write(nvmem, RTC_SCRATCH_MAGIC_REG * 4, 4, in am33xx_pm_begin() 306 struct nvmem_device *nvmem; in am33xx_pm_end() local 308 nvmem = devm_nvmem_device_get(&omap_rtc->dev, "omap_rtc_scratch0"); in am33xx_pm_end() 309 if (IS_ERR(nvmem)) in am33xx_pm_end() 327 nvmem_device_write(nvmem, RTC_SCRATCH_MAGIC_REG * 4, 4, in am33xx_pm_end() 440 struct nvmem_device *nvmem; in am33xx_pm_rtc_setup() local 465 nvmem = devm_nvmem_device_get(&omap_rtc->dev, in am33xx_pm_rtc_setup() [all …]
|
| /Linux-v5.15/drivers/rtc/ |
| D | nvmem.c | 17 struct nvmem_device *nvmem; in devm_rtc_nvmem_register() local 24 nvmem = devm_nvmem_register(dev, nvmem_config); in devm_rtc_nvmem_register() 25 if (IS_ERR(nvmem)) in devm_rtc_nvmem_register() 28 return PTR_ERR_OR_ZERO(nvmem); in devm_rtc_nvmem_register()
|
| /Linux-v5.15/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.15/drivers/soc/atmel/ |
| D | sfr.c | 46 struct nvmem_device *nvmem; in atmel_sfr_probe() local 64 nvmem = devm_nvmem_register(dev, &atmel_sfr_nvmem_config); in atmel_sfr_probe() 65 if (IS_ERR(nvmem)) { in atmel_sfr_probe() 67 return PTR_ERR(nvmem); in atmel_sfr_probe()
|
| /Linux-v5.15/Documentation/devicetree/bindings/thermal/ |
| D | mediatek-thermal.txt | 30 - nvmem-cells: A phandle to the calibration data provided by a nvmem device. If 32 - nvmem-cell-names: Should be "calibration-data" 47 nvmem-cells = <&thermal_calibration_data>; 48 nvmem-cell-names = "calibration-data";
|