Home
last modified time | relevance | path

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

12345678910>>...12

/openbmc/linux/drivers/nvmem/
H A Dcore.c87 return nvmem->reg_read(nvmem->priv, offset, val, bytes); in __nvmem_reg_read()
381 nvmem->eeprom.size = nvmem->size; in nvmem_sysfs_setup_compat()
385 nvmem->eeprom.private = &nvmem->dev; in nvmem_sysfs_setup_compat()
469 cell->nvmem = nvmem; in nvmem_cell_info_to_nvmem_cell_entry_nodup()
898 nvmem = kzalloc(sizeof(*nvmem), GFP_KERNEL); in nvmem_register()
1215 if (WARN_ON(!nvmem || !*nvmem)) in devm_nvmem_device_match()
1552 struct nvmem_device *nvmem = cell->entry->nvmem; in nvmem_cell_put() local
1636 struct nvmem_device *nvmem = entry->nvmem; in nvmem_cell_read() local
1660 struct nvmem_device *nvmem = cell->nvmem; in nvmem_cell_prepare_write_buffer() local
1712 struct nvmem_device *nvmem = cell->nvmem; in __nvmem_cell_entry_write() local
[all …]
H A DMakefile12 nvmem-apple-efuses-y := apple-efuses.o
14 nvmem-bcm-ocotp-y := bcm-ocotp.o
18 nvmem-imx-iim-y := imx-iim.o
20 nvmem-imx-ocotp-y := imx-ocotp.o
22 nvmem-imx-ocotp-ele-y := imx-ocotp-ele.o
24 nvmem-imx-ocotp-scu-y := imx-ocotp-scu.o
28 nvmem-lan9662-otpc-y := lan9662-otpc.o
44 nvmem-mxs-ocotp-y := mxs-ocotp.o
54 nvmem-rmem-y := rmem.o
79 nvmem-vf610-ocotp-y := vf610-ocotp.o
[all …]
H A Du-boot-env.c26 struct nvmem_device *nvmem; member
94 struct nvmem_device *nvmem = priv->nvmem; in u_boot_env_add_cells() local
122 nvmem_add_one_cell(nvmem, &info); in u_boot_env_add_cells()
130 struct nvmem_device *nvmem = priv->nvmem; in u_boot_env_parse() local
145 dev_size = nvmem_dev_size(nvmem); in u_boot_env_parse()
153 bytes = nvmem_device_read(nvmem, 0, dev_size, buf); in u_boot_env_parse()
234 priv->nvmem = devm_nvmem_register(dev, &config); in u_boot_env_probe()
235 if (IS_ERR(priv->nvmem)) in u_boot_env_probe()
236 return PTR_ERR(priv->nvmem); in u_boot_env_probe()
/openbmc/linux/Documentation/devicetree/bindings/nvmem/
H A Dnvmem-consumer.yaml4 $id: http://devicetree.org/schemas/nvmem/nvmem-consumer.yaml#
15 nvmem:
18 List of phandle to the nvmem providers.
20 nvmem-cells:
25 nvmem-names:
27 Names for the each nvmem provider.
29 nvmem-cell-names:
31 Names for each nvmem-cells specified.
34 nvmem-names: [ nvmem ]
35 nvmem-cell-names: [ nvmem-cells ]
[all …]
H A 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";
/openbmc/linux/Documentation/devicetree/bindings/thermal/
H A Dsprd-thermal.yaml28 nvmem-cells:
31 Reference to nvmem nodes for the calibration data.
33 nvmem-cell-names:
58 nvmem-cells:
63 nvmem-cell-names:
68 - nvmem-cells
69 - nvmem-cell-names
78 - nvmem-cells
79 - nvmem-cell-names
101 nvmem-cells = <&thm0_sen0>;
[all …]
H A Dmediatek,lvts-thermal.yaml39 nvmem-cells:
45 nvmem-cell-names:
66 nvmem-cells:
69 nvmem-cell-names:
81 nvmem-cells:
84 nvmem-cell-names:
93 - nvmem-cells
94 - nvmem-cell-names
116 nvmem-cells = <&lvts_efuse_data1 &lvts_efuse_data2>;
117 nvmem-cell-names = "lvts-calib-data-1", "lvts-calib-data-2";
H A Dallwinner,sun8i-a83t-ths.yaml45 nvmem-cells:
49 nvmem-cell-names:
131 nvmem-cells = <&ths_calibration>;
132 nvmem-cell-names = "calibration";
144 nvmem-cells = <&ths_calibration>;
145 nvmem-cell-names = "calibration";
157 nvmem-cells = <&ths_calibration>;
158 nvmem-cell-names = "calibration";
/openbmc/linux/Documentation/devicetree/bindings/mtd/partitions/
H A Dnvmem-cells.yaml4 $id: http://devicetree.org/schemas/mtd/partitions/nvmem-cells.yaml#
10 Any partition containing the compatible "nvmem-cells" will register as a
11 nvmem provider.
12 Each direct subnodes represents a nvmem cell following the nvmem binding.
13 Nvmem binding to declare nvmem-cells can be found in:
14 Documentation/devicetree/bindings/nvmem/nvmem.yaml
21 - $ref: /schemas/nvmem/nvmem.yaml#
25 const: nvmem-cells
43 compatible = "nvmem-cells";
85 compatible = "nvmem-cells";
/openbmc/linux/include/linux/
H A Dnvmem-consumer.h72 void nvmem_device_put(struct nvmem_device *nvmem);
74 int nvmem_device_read(struct nvmem_device *nvmem, unsigned int offset,
78 ssize_t nvmem_device_cell_read(struct nvmem_device *nvmem,
80 int nvmem_device_cell_write(struct nvmem_device *nvmem,
83 const char *nvmem_dev_name(struct nvmem_device *nvmem);
84 size_t nvmem_dev_size(struct nvmem_device *nvmem);
175 static inline void nvmem_device_put(struct nvmem_device *nvmem) in nvmem_device_put() argument
180 struct nvmem_device *nvmem) in devm_nvmem_device_put() argument
198 static inline int nvmem_device_read(struct nvmem_device *nvmem, in nvmem_device_read() argument
205 static inline int nvmem_device_write(struct nvmem_device *nvmem, in nvmem_device_write() argument
[all …]
H A Dnvmem-provider.h177 int (*add_cells)(struct device *dev, struct nvmem_device *nvmem,
179 void (*fixup_cell_info)(struct nvmem_device *nvmem,
191 void nvmem_unregister(struct nvmem_device *nvmem);
199 int nvmem_add_one_cell(struct nvmem_device *nvmem,
207 const void *nvmem_layout_get_match_data(struct nvmem_device *nvmem,
217 static inline void nvmem_unregister(struct nvmem_device *nvmem) {} in nvmem_unregister() argument
227 static inline int nvmem_add_one_cell(struct nvmem_device *nvmem, in nvmem_add_one_cell() argument
241 nvmem_layout_get_match_data(struct nvmem_device *nvmem, in nvmem_layout_get_match_data() argument
/openbmc/linux/Documentation/devicetree/bindings/iio/adc/
H A Dsprd,sc2720-adc.yaml37 nvmem-cells: true
39 nvmem-cell-names: true
51 nvmem-cells:
53 nvmem-cell-names:
60 nvmem-cells:
62 nvmem-cell-names:
77 - nvmem-cells
78 - nvmem-cell-names
95 nvmem-cells = <&adc_big_scale>, <&adc_small_scale>;
96 nvmem-cell-names = "big_scale_calib", "small_scale_calib";
[all …]
/openbmc/linux/Documentation/devicetree/bindings/power/reset/
H A Dnvmem-reboot-mode.yaml4 $id: http://devicetree.org/schemas/power/reset/nvmem-reboot-mode.yaml#
19 const: nvmem-reboot-mode
21 nvmem-cells:
23 A phandle pointing to the nvmem-cells node where the vendor-specific
27 nvmem-cell-names:
38 - nvmem-cells
39 - nvmem-cell-names
46 compatible = "nvmem-reboot-mode";
47 nvmem-cells = <&reboot_reason>;
48 nvmem-cell-names = "reboot-mode";
/openbmc/linux/arch/arm64/boot/dts/freescale/
H A Dfsl-ls1028a-kontron-kbox-a-230-ls.dts59 nvmem-cells = <&base_mac_address 2>;
60 nvmem-cell-names = "mac-address";
65 nvmem-cells = <&base_mac_address 3>;
66 nvmem-cell-names = "mac-address";
87 nvmem-cells = <&base_mac_address 4>;
88 nvmem-cell-names = "mac-address";
97 nvmem-cells = <&base_mac_address 5>;
98 nvmem-cell-names = "mac-address";
107 nvmem-cells = <&base_mac_address 6>;
108 nvmem-cell-names = "mac-address";
[all …]
H A Dfsl-ls1028a-kontron-sl28-var2.dts39 nvmem-cells = <&base_mac_address 2>;
40 nvmem-cell-names = "mac-address";
45 nvmem-cells = <&base_mac_address 3>;
46 nvmem-cell-names = "mac-address";
59 nvmem-cells = <&base_mac_address 0>;
60 nvmem-cell-names = "mac-address";
69 nvmem-cells = <&base_mac_address 1>;
70 nvmem-cell-names = "mac-address";
/openbmc/linux/drivers/soc/tegra/fuse/
H A Dfuse-tegra.c119 struct nvmem_config nvmem; in tegra_fuse_probe() local
155 memset(&nvmem, 0, sizeof(nvmem)); in tegra_fuse_probe()
156 nvmem.dev = &pdev->dev; in tegra_fuse_probe()
157 nvmem.name = "fuse"; in tegra_fuse_probe()
158 nvmem.id = -1; in tegra_fuse_probe()
165 nvmem.read_only = true; in tegra_fuse_probe()
166 nvmem.root_only = false; in tegra_fuse_probe()
169 nvmem.word_size = 4; in tegra_fuse_probe()
170 nvmem.stride = 4; in tegra_fuse_probe()
171 nvmem.priv = fuse; in tegra_fuse_probe()
[all …]
/openbmc/linux/Documentation/devicetree/bindings/net/
H A Dsunplus,sp7021-emac.yaml62 nvmem-cells:
64 - description: nvmem cell address of MAC address
66 nvmem-cell-names:
67 description: names corresponding to the nvmem cells
75 - nvmem-cells
76 - nvmem-cell-names
117 nvmem-cells = <&mac_addr0>;
118 nvmem-cell-names = "mac-address";
125 nvmem-cells = <&mac_addr1>;
126 nvmem-cell-names = "mac-address";
H A 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";
/openbmc/linux/Documentation/devicetree/bindings/phy/
H A Dsunplus,sp7021-usb2-phy.yaml36 nvmem-cell-names:
37 description: names corresponding to the nvmem cells of disconnect voltage
40 nvmem-cells:
41 description: nvmem cell address of disconnect voltage
55 - nvmem-cell-names
56 - nvmem-cells
70 nvmem-cell-names = "disc_vol";
71 nvmem-cells = <&disc_vol>;
/openbmc/linux/Documentation/ABI/stable/
H A 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
/openbmc/linux/Documentation/devicetree/bindings/soc/imx/
H A Dimx8m-soc.yaml51 nvmem-cells:
53 description: Phandle to the SOC Unique ID provided by a nvmem node
55 nvmem-cell-names:
60 - nvmem-cells
61 - nvmem-cell-names
81 nvmem-cells = <&imx8mm_uid>;
82 nvmem-cell-names = "soc_unique_id";
/openbmc/linux/Documentation/driver-api/
H A Dnvmem.rst41 nvmem configuration to nvmem_register(), on success core would return a valid
62 Users of board files can define and register nvmem cells using the
130 void nvmem_device_put(struct nvmem_device *nvmem);
131 int nvmem_device_read(struct nvmem_device *nvmem, unsigned int offset,
133 int nvmem_device_write(struct nvmem_device *nvmem, unsigned int offset,
135 int nvmem_device_cell_read(struct nvmem_device *nvmem,
137 int nvmem_device_cell_write(struct nvmem_device *nvmem,
155 void nvmem_device_put(struct nvmem_device *nvmem);
170 /sys/bus/nvmem/devices/*/nvmem
174 hexdump /sys/bus/nvmem/devices/qfprom0/nvmem
[all …]
/openbmc/linux/drivers/nvmem/layouts/
H A Dsl28vpd.c56 static int sl28vpd_v1_check_crc(struct device *dev, struct nvmem_device *nvmem) in sl28vpd_v1_check_crc() argument
65 ret = nvmem_device_read(nvmem, 0, sizeof(data_v1), &data_v1); in sl28vpd_v1_check_crc()
83 static int sl28vpd_add_cells(struct device *dev, struct nvmem_device *nvmem, in sl28vpd_add_cells() argument
93 ret = nvmem_device_read(nvmem, 0, sizeof(hdr), &hdr); in sl28vpd_add_cells()
109 ret = sl28vpd_v1_check_crc(dev, nvmem); in sl28vpd_add_cells()
113 layout_np = of_nvmem_layout_get_container(nvmem); in sl28vpd_add_cells()
126 ret = nvmem_add_one_cell(nvmem, &info); in sl28vpd_add_cells()
/openbmc/linux/drivers/soc/ti/
H A 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()
306 struct nvmem_device *nvmem; in am33xx_pm_end() local
309 if (IS_ERR(nvmem)) 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()
467 if (!IS_ERR(nvmem)) { in am33xx_pm_rtc_setup()
468 nvmem_device_read(nvmem, RTC_SCRATCH_MAGIC_REG * 4, in am33xx_pm_rtc_setup()
473 nvmem_device_write(nvmem, RTC_SCRATCH_MAGIC_REG * 4, in am33xx_pm_rtc_setup()
[all …]
/openbmc/linux/drivers/rtc/
H A Dnvmem.c17 struct nvmem_device *nvmem; in devm_rtc_nvmem_register() local
25 nvmem = devm_nvmem_register(dev, nvmem_config); in devm_rtc_nvmem_register()
26 if (IS_ERR(nvmem)) in devm_rtc_nvmem_register()
29 return PTR_ERR_OR_ZERO(nvmem); in devm_rtc_nvmem_register()

12345678910>>...12