Home
last modified time | relevance | path

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

12345678910>>...13

/linux/drivers/nvmem/
A Dcore.c422 nvmem->eeprom.size = nvmem->size; in nvmem_sysfs_setup_compat()
426 nvmem->eeprom.private = &nvmem->dev; in nvmem_sysfs_setup_compat()
572 cell->nvmem = nvmem; in nvmem_cell_info_to_nvmem_cell_entry_nodup()
837 nvmem->fixup_dt_cell_info(nvmem, &info); in nvmem_add_cells_from_dt()
923 nvmem = kzalloc(sizeof(*nvmem), GFP_KERNEL); in nvmem_register()
1238 if (WARN_ON(!nvmem || !*nvmem)) in devm_nvmem_device_match()
1381 if (nvmem->layout && nvmem->layout->dev.driver) in nvmem_layout_module_put()
1691 struct nvmem_device *nvmem = entry->nvmem; in nvmem_cell_read() local
1715 struct nvmem_device *nvmem = cell->nvmem; in nvmem_cell_prepare_write_buffer() local
1767 struct nvmem_device *nvmem = cell->nvmem; in __nvmem_cell_entry_write() local
[all …]
A DMakefile14 nvmem-apple-efuses-y := apple-efuses.o
16 nvmem-bcm-ocotp-y := bcm-ocotp.o
20 nvmem-imx-iim-y := imx-iim.o
22 nvmem-imx-ocotp-y := imx-ocotp.o
24 nvmem-imx-ocotp-ele-y := imx-ocotp-ele.o
26 nvmem-imx-ocotp-scu-y := imx-ocotp-scu.o
30 nvmem-lan9662-otpc-y := lan9662-otpc.o
46 nvmem-mxs-ocotp-y := mxs-ocotp.o
56 nvmem-rmem-y := rmem.o
81 nvmem-vf610-ocotp-y := vf610-ocotp.o
[all …]
A Dlayouts.c79 static int nvmem_layout_create_device(struct nvmem_device *nvmem, in nvmem_layout_create_device() argument
91 layout->nvmem = nvmem; in nvmem_layout_create_device()
92 nvmem->layout = layout; in nvmem_layout_create_device()
97 dev->parent = &nvmem->dev; in nvmem_layout_create_device()
146 ret = nvmem_layout_create_device(nvmem, layout_dn); in nvmem_layout_bus_populate()
165 int nvmem_populate_layout(struct nvmem_device *nvmem) in nvmem_populate_layout() argument
170 layout_dn = of_nvmem_layout_get_container(nvmem); in nvmem_populate_layout()
176 ret = nvmem_layout_bus_populate(nvmem, layout_dn); in nvmem_populate_layout()
183 void nvmem_destroy_layout(struct nvmem_device *nvmem) in nvmem_destroy_layout() argument
187 if (!nvmem->layout) in nvmem_destroy_layout()
[all …]
A Dinternals.h26 void (*fixup_dt_cell_info)(struct nvmem_device *nvmem,
41 int nvmem_populate_layout(struct nvmem_device *nvmem);
42 void nvmem_destroy_layout(struct nvmem_device *nvmem);
51 static inline int nvmem_populate_layout(struct nvmem_device *nvmem) in nvmem_populate_layout() argument
56 static inline void nvmem_destroy_layout(struct nvmem_device *nvmem) { } in nvmem_destroy_layout() argument
/linux/Documentation/devicetree/bindings/nvmem/
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 …]
A Dxlnx,zynqmp-nvmem.yaml4 $id: http://devicetree.org/schemas/nvmem/xlnx,zynqmp-nvmem.yaml#
18 - $ref: nvmem.yaml#
22 const: xlnx,zynqmp-nvmem-fw
31 soc-nvmem {
32 compatible = "xlnx,zynqmp-nvmem-fw";
33 nvmem-layout {
/linux/Documentation/devicetree/bindings/thermal/
A Dsprd-thermal.yaml30 nvmem-cells:
35 nvmem-cell-names:
60 nvmem-cells:
65 nvmem-cell-names:
70 - nvmem-cells
71 - nvmem-cell-names
80 - nvmem-cells
81 - nvmem-cell-names
102 nvmem-cells = <&thm0_sen0>;
103 nvmem-cell-names = "sen_delta_cal";
[all …]
A Dmediatek,lvts-thermal.yaml43 nvmem-cells:
49 nvmem-cell-names:
72 nvmem-cells:
75 nvmem-cell-names:
88 nvmem-cells:
91 nvmem-cell-names:
100 - nvmem-cells
101 - nvmem-cell-names
122 nvmem-cells = <&lvts_efuse_data1 &lvts_efuse_data2>;
123 nvmem-cell-names = "lvts-calib-data-1", "lvts-calib-data-2";
/linux/Documentation/devicetree/bindings/mtd/partitions/
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#
22 - $ref: /schemas/nvmem/nvmem-deprecated-cells.yaml#
26 const: nvmem-cells
44 compatible = "nvmem-cells";
[all …]
/linux/Documentation/devicetree/bindings/iio/adc/
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 …]
/linux/Documentation/devicetree/bindings/power/reset/
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:
36 - nvmem-cells
37 - nvmem-cell-names
44 compatible = "nvmem-reboot-mode";
45 nvmem-cells = <&reboot_reason>;
46 nvmem-cell-names = "reboot-mode";
/linux/include/linux/
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);
181 static inline void nvmem_device_put(struct nvmem_device *nvmem) in nvmem_device_put() argument
186 struct nvmem_device *nvmem) in devm_nvmem_device_put() argument
204 static inline int nvmem_device_read(struct nvmem_device *nvmem, in nvmem_device_read() argument
211 static inline int nvmem_device_write(struct nvmem_device *nvmem, in nvmem_device_write() argument
[all …]
A Dnvmem-provider.h119 void (*fixup_dt_cell_info)(struct nvmem_device *nvmem,
175 struct nvmem_device *nvmem; member
188 void nvmem_unregister(struct nvmem_device *nvmem);
196 int nvmem_add_one_cell(struct nvmem_device *nvmem,
218 static inline void nvmem_unregister(struct nvmem_device *nvmem) {} in nvmem_unregister() argument
228 static inline int nvmem_add_one_cell(struct nvmem_device *nvmem, in nvmem_add_one_cell() argument
253 struct device_node *of_nvmem_layout_get_container(struct nvmem_device *nvmem);
257 static inline struct device_node *of_nvmem_layout_get_container(struct nvmem_device *nvmem) in of_nvmem_layout_get_container() argument
/linux/arch/arm64/boot/dts/freescale/
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 …]
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";
/linux/arch/arm/boot/dts/broadcom/
A Dbcm47094-asus-rt-ac3100.dts16 #nvmem-cell-cells = <1>;
22 nvmem-cells = <&et0macaddr 0>;
23 nvmem-cell-names = "mac-address";
27 nvmem-cells = <&et0macaddr 1>;
28 nvmem-cell-names = "mac-address";
32 nvmem-cells = <&et0macaddr 2>;
33 nvmem-cell-names = "mac-address";
/linux/drivers/soc/tegra/fuse/
A Dfuse-tegra.c143 struct nvmem_config nvmem; in tegra_fuse_probe() local
210 memset(&nvmem, 0, sizeof(nvmem)); in tegra_fuse_probe()
211 nvmem.dev = &pdev->dev; in tegra_fuse_probe()
212 nvmem.name = "fuse"; in tegra_fuse_probe()
213 nvmem.id = -1; in tegra_fuse_probe()
220 nvmem.read_only = true; in tegra_fuse_probe()
221 nvmem.root_only = false; in tegra_fuse_probe()
224 nvmem.word_size = 4; in tegra_fuse_probe()
225 nvmem.stride = 4; in tegra_fuse_probe()
226 nvmem.priv = fuse; in tegra_fuse_probe()
[all …]
/linux/Documentation/devicetree/bindings/net/
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";
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";
/linux/Documentation/devicetree/bindings/phy/
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>;
/linux/drivers/nvmem/layouts/
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()
85 struct nvmem_device *nvmem = layout->nvmem; in sl28vpd_add_cells() local
94 ret = nvmem_device_read(nvmem, 0, sizeof(hdr), &hdr); in sl28vpd_add_cells()
110 ret = sl28vpd_v1_check_crc(dev, nvmem); in sl28vpd_add_cells()
114 layout_np = of_nvmem_layout_get_container(nvmem); in sl28vpd_add_cells()
127 ret = nvmem_add_one_cell(nvmem, &info); in sl28vpd_add_cells()
/linux/Documentation/devicetree/bindings/soc/imx/
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";
/linux/Documentation/driver-api/
A Dnvmem.rst62 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
187 See Documentation/devicetree/bindings/nvmem/nvmem.txt
[all …]
/linux/drivers/soc/ti/
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()
430 struct nvmem_device *nvmem; in am33xx_pm_rtc_setup() local
455 nvmem = devm_nvmem_device_get(&omap_rtc->dev, in am33xx_pm_rtc_setup()
457 if (!IS_ERR(nvmem)) { in am33xx_pm_rtc_setup()
458 nvmem_device_read(nvmem, RTC_SCRATCH_MAGIC_REG * 4, in am33xx_pm_rtc_setup()
463 nvmem_device_write(nvmem, RTC_SCRATCH_MAGIC_REG * 4, in am33xx_pm_rtc_setup()
[all …]
/linux/Documentation/ABI/stable/
A Dsysfs-bus-nvmem1 What: /sys/bus/nvmem/devices/.../force_ro
18 What: /sys/bus/nvmem/devices/.../nvmem
24 Permissions for write to this file depends on the nvmem
31 hexdump /sys/bus/nvmem/devices/qfprom0/nvmem
41 What: /sys/bus/nvmem/devices/.../type

Completed in 52 milliseconds

12345678910>>...13