Home
last modified time | relevance | path

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

123456

/kernel/linux/linux-5.10/drivers/nvmem/
Dcore.c54 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()
85 ret = nvmem->reg_write(nvmem->priv, offset, val, bytes); in nvmem_reg_write()
86 gpiod_set_value_cansleep(nvmem->wp_gpio, 1); in nvmem_reg_write()
108 struct nvmem_device *nvmem = to_nvmem_device(dev); in type_show() local
[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.
116 functions for QFPROM data to rest of the drivers via nvmem interface.
161 will be called nvmem-bcm-ocotp.
171 will be called nvmem-stm32-romem.
192 will be called nvmem-uniphier-efuse.
203 be called nvmem-vf610-ocotp.
[all …]
Dsunxi_sid.c117 struct nvmem_device *nvmem; in sunxi_sid_probe() local
155 nvmem = devm_nvmem_register(dev, nvmem_cfg); in sunxi_sid_probe()
156 if (IS_ERR(nvmem)) in sunxi_sid_probe()
157 return PTR_ERR(nvmem); in sunxi_sid_probe()
167 platform_set_drvdata(pdev, nvmem); in sunxi_sid_probe()
/kernel/linux/linux-5.10/include/linux/
Dnvmem-consumer.h73 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);
161 static inline void nvmem_device_put(struct nvmem_device *nvmem) in nvmem_device_put() argument
166 struct nvmem_device *nvmem) in devm_nvmem_device_put() argument
170 static inline ssize_t nvmem_device_cell_read(struct nvmem_device *nvmem, in nvmem_device_cell_read() argument
[all …]
Dnvmem-provider.h106 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
132 devm_nvmem_unregister(struct device *dev, struct nvmem_device *nvmem) in devm_nvmem_unregister() argument
/kernel/linux/linux-5.10/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";
Duniphier-efuse.txt11 bindings/nvmem/nvmem.txt
41 Are device nodes which consume nvmem data cells.
47 nvmem-cells = <&usb_mon>;
48 nvmem-cell-names = "usb_mon";
Dmtk-efuse.txt14 bindings/nvmem/nvmem.txt
31 Are device nodes which consume nvmem data cells.
37 nvmem-cells = <&thermal_calibration>;
38 nvmem-cell-names = "calibration";
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";
/kernel/linux/linux-5.10/drivers/soc/tegra/fuse/
Dfuse-tegra.c186 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()
226 nvmem.type = NVMEM_TYPE_OTP; in tegra_fuse_probe()
227 nvmem.read_only = true; in tegra_fuse_probe()
[all …]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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";
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/rtc/
Dnvmem.c42 struct nvmem_device *nvmem, size_t size) in rtc_nvram_register() argument
52 rtc->nvram->private = nvmem; in rtc_nvram_register()
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()
96 rtc_nvram_register(rtc, nvmem, nvmem_config->size); in rtc_nvmem_register()
/kernel/linux/linux-5.10/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";
/kernel/linux/linux-5.10/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
/kernel/linux/linux-5.10/drivers/soc/ti/
Dpm33xx.c277 struct nvmem_device *nvmem; in am33xx_pm_begin() local
280 nvmem = devm_nvmem_device_get(&omap_rtc->dev, in am33xx_pm_begin()
282 if (!IS_ERR(nvmem)) in am33xx_pm_begin()
283 nvmem_device_write(nvmem, RTC_SCRATCH_MAGIC_REG * 4, 4, in am33xx_pm_begin()
307 struct nvmem_device *nvmem; in am33xx_pm_end() local
309 nvmem = devm_nvmem_device_get(&omap_rtc->dev, "omap_rtc_scratch0"); in am33xx_pm_end()
310 if (IS_ERR(nvmem)) in am33xx_pm_end()
328 nvmem_device_write(nvmem, RTC_SCRATCH_MAGIC_REG * 4, 4, in am33xx_pm_end()
441 struct nvmem_device *nvmem; in am33xx_pm_rtc_setup() local
466 nvmem = devm_nvmem_device_get(&omap_rtc->dev, in am33xx_pm_rtc_setup()
[all …]
/kernel/linux/linux-5.10/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";
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/thermal/
Dmediatek-thermal.txt29 - nvmem-cells: A phandle to the calibration data provided by a nvmem device. If
31 - nvmem-cell-names: Should be "calibration-data"
46 nvmem-cells = <&thermal_calibration_data>;
47 nvmem-cell-names = "calibration-data";
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/display/mediatek/
Dmediatek,dsi.txt39 - nvmem-cells: A phandle to the calibration data provided by a nvmem device. If
41 - nvmem-cell-names: Should be "calibration-data"
53 nvmem-cells= <&mipi_tx_calibration>;
54 nvmem-cell-names = "calibration-data";

123456