Home
last modified time | relevance | path

Searched refs:nvmem (Results 1 – 25 of 135) sorted by relevance

123456

/Linux-v5.15/drivers/nvmem/
Dcore.c56 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 …]
DMakefile10 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 …]
DKconfig15 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 …]
Dsunxi_sid.c117 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()
Dzynqmp_nvmem.c16 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()
Duniphier-efuse.c36 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/
Dnvmem-consumer.h77 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 …]
Dnvmem-provider.h126 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/
Dxlnx,zynqmp-nvmem.txt2 = 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";
Dsprd-efuse.txt12 bindings/nvmem/nvmem.txt
30 Are device nodes which consume nvmem data cells.
37 nvmem-cells = <&thermal_calib>;
38 nvmem-cell-names = "calibration";
Damlogic-efuse.txt11 bindings/nvmem/nvmem.txt
40 Are device nodes which consume nvmem data cells.
46 nvmem-cells = <&eth_mac>;
47 nvmem-cell-names = "eth_mac";
Dsc27xx-efuse.txt15 bindings/nvmem/nvmem.txt
44 Are device nodes which consume nvmem data cells.
50 nvmem-cells = <&thermal_calib>;
51 nvmem-cell-names = "calibration";
Dmtk-efuse.txt16 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/
Dfuse-tegra.c187 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/
Dnvmem-reboot-mode.txt9 - 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/
Dnvm.c60 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/
Dnvmem.rst43 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/
Dnixge.txt15 - nvmem-cells: Phandle of nvmem cell containing the MAC address
16 - nvmem-cell-names: Should be "address"
31 nvmem-cells = <&eth1_addr>;
32 nvmem-cell-names = "address";
54 nvmem-cells = <&eth1_addr>;
55 nvmem-cell-names = "address";
70 nvmem-cells = <&eth1_addr>;
71 nvmem-cell-names = "address";
Dti-bluetooth.txt43 - 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/
Dsysfs-bus-nvmem1 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/
Dpm33xx.c276 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/
Dnvmem.c17 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/
Dzii,rave-sp-wdt.txt18 - 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/
Dsfr.c46 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/
Dmediatek-thermal.txt30 - 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";

123456