/linux/drivers/nvmem/ |
A D | core.c | 373 nvmem->eeprom.size = nvmem->size; in nvmem_sysfs_setup_compat() 377 nvmem->eeprom.private = &nvmem->dev; in nvmem_sysfs_setup_compat() 461 cell->nvmem = nvmem; in nvmem_cell_info_to_nvmem_cell_entry_nodup() 706 cell->nvmem = nvmem; in nvmem_add_cells_from_of() 760 nvmem = kzalloc(sizeof(*nvmem), GFP_KERNEL); in nvmem_register() 1079 if (WARN_ON(!nvmem || !*nvmem)) in devm_nvmem_device_match() 1388 struct nvmem_device *nvmem = cell->entry->nvmem; in nvmem_cell_put() local 1447 rc = nvmem->cell_post_process(nvmem->priv, id, in __nvmem_cell_read() 1495 struct nvmem_device *nvmem = cell->nvmem; in nvmem_cell_prepare_write_buffer() local 1547 struct nvmem_device *nvmem = cell->nvmem; in __nvmem_cell_entry_write() local [all …]
|
A D | Makefile | 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 15 nvmem-imx-ocotp-y := imx-ocotp.o 17 nvmem-imx-ocotp-scu-y := imx-ocotp-scu.o 25 nvmem-mxs-ocotp-y := mxs-ocotp.o 27 nvmem-nintendo-otp-y := nintendo-otp.o 37 nvmem-rockchip-otp-y := rockchip-otp.o 45 nvmem-vf610-ocotp-y := vf610-ocotp.o 55 nvmem-sc27xx-efuse-y := sc27xx-efuse.o [all …]
|
A D | .built-in.a.cmd | 1 …nvmem/built-in.a := echo >/dev/null; rm -f drivers/nvmem/built-in.a; /usr/bin/ccache /home/test/wo…
|
/linux/Documentation/devicetree/bindings/nvmem/ |
A D | nvmem-consumer.yaml | 4 $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 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";
|
A D | rmem.yaml | 4 $id: http://devicetree.org/schemas/nvmem/rmem.yaml# 7 title: Reserved Memory Based nvmem Device 13 - $ref: "nvmem.yaml#" 20 - const: nvmem-rmem 41 compatible = "raspberrypi,bootloader-config", "nvmem-rmem";
|
A 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";
|
A 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";
|
A 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";
|
A 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/Documentation/devicetree/bindings/thermal/ |
A D | sprd-thermal.yaml | 28 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 …]
|
A D | allwinner,sun8i-a83t-ths.yaml | 45 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";
|
/linux/Documentation/devicetree/bindings/mtd/partitions/ |
A D | nvmem-cells.yaml | 4 $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 20 - $ref: /schemas/nvmem/nvmem.yaml# 24 const: nvmem-cells 42 compatible = "nvmem-cells"; 84 compatible = "nvmem-cells";
|
/linux/include/linux/ |
A D | nvmem-consumer.h | 77 void nvmem_device_put(struct nvmem_device *nvmem); 79 int nvmem_device_read(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 195 static inline int nvmem_device_cell_write(struct nvmem_device *nvmem, in nvmem_device_cell_write() argument 202 static inline int nvmem_device_read(struct nvmem_device *nvmem, in nvmem_device_read() argument 209 static inline int nvmem_device_write(struct nvmem_device *nvmem, in nvmem_device_write() argument [all …]
|
/linux/drivers/soc/tegra/fuse/ |
A 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() 230 nvmem.read_only = true; in tegra_fuse_probe() 231 nvmem.root_only = true; in tegra_fuse_probe() 234 nvmem.word_size = 4; in tegra_fuse_probe() 235 nvmem.stride = 4; in tegra_fuse_probe() 236 nvmem.priv = fuse; in tegra_fuse_probe() [all …]
|
/linux/Documentation/driver-api/ |
A D | nvmem.rst | 59 nvmem = nvmem_register(&econfig); 66 Users of board files can define and register nvmem cells using the 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, 139 int nvmem_device_cell_read(struct nvmem_device *nvmem, 141 int nvmem_device_cell_write(struct nvmem_device *nvmem, 159 void nvmem_device_put(struct nvmem_device *nvmem); 174 /sys/bus/nvmem/devices/*/nvmem 178 hexdump /sys/bus/nvmem/devices/qfprom0/nvmem [all …]
|
/linux/drivers/thunderbolt/ |
A 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/Documentation/devicetree/bindings/power/reset/ |
A 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/Documentation/devicetree/bindings/net/ |
A 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";
|
/linux/drivers/soc/ti/ |
A 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() 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 …]
|
/linux/Documentation/devicetree/bindings/soc/imx/ |
A D | imx8m-soc.yaml | 51 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/ABI/stable/ |
A 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/Documentation/devicetree/bindings/iio/adc/ |
A D | sprd,sc2720-adc.yaml | 36 nvmem-cells: 39 nvmem-cell-names: 50 - nvmem-cells 51 - nvmem-cell-names 68 nvmem-cells = <&adc_big_scale>, <&adc_small_scale>; 69 nvmem-cell-names = "big_scale_calib", "small_scale_calib";
|
/linux/Documentation/devicetree/bindings/opp/ |
A D | allwinner,sun50i-h6-operating-points.yaml | 18 sun50i-cpufreq-nvmem driver reads the efuse value from the SoC to 28 nvmem-cells: 30 A phandle pointing to a nvmem-cells node representing the efuse 33 the for nvmem-cells bindings 34 Documentation/devicetree/bindings/nvmem/nvmem.txt and also 41 - nvmem-cells 68 nvmem-cells = <&speedbin_efuse>;
|
/linux/drivers/rtc/ |
A 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()
|