| /linux/drivers/nvmem/ |
| H A D | layouts.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * NVMEM layout bus handling 10 #include <linux/dma-mapping.h> 11 #include <linux/nvmem-consumer.h> 12 #include <linux/nvmem-provider.h> 31 struct nvmem_layout_driver *drv = to_nvmem_layout_driver(dev->driver); in nvmem_layout_bus_probe() 32 struct nvmem_layout *layout = to_nvmem_layout_device(dev); in nvmem_layout_bus_probe() local 34 if (!drv->probe || !drv->remove) in nvmem_layout_bus_probe() 35 return -EINVAL; in nvmem_layout_bus_probe() 37 return drv->probe(layout); in nvmem_layout_bus_probe() [all …]
|
| /linux/include/linux/ |
| H A D | nvmem-provider.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * nvmem framework provider. 6 * Copyright (C) 2013 Maxime Ripard <maxime.ripard@free-electrons.com> 36 #define NVMEM_DEVID_NONE (-1) 37 #define NVMEM_DEVID_AUTO (-2) 40 * struct nvmem_keepout - NVMEM register keepout range. 53 * struct nvmem_cell_info - NVMEM cell description 55 * @offset: Offset within the NVMEM device. 78 * struct nvmem_config - NVMEM device configuration 84 * @cells: Optional array of pre-defined NVMEM cells. [all …]
|
| /linux/Documentation/devicetree/bindings/nvmem/layouts/ |
| H A D | fixed-layout.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/nvmem/layouts/fixed-layout.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: NVMEM layout for fixed NVMEM cells 10 Many NVMEM devices have hardcoded cells layout (offset and size of defined 11 NVMEM content doesn't change). 13 This binding allows defining such NVMEM layout with its cells. It can be used 14 on top of any NVMEM device. 17 - Rafał Miłecki <rafal@milecki.pl> [all …]
|
| H A D | onie,tlv-layout.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/nvmem/layouts/onie,tlv-layout.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: NVMEM layout of the ONIE tlv table 10 - Miquel Raynal <miquel.raynal@bootlin.com> 14 infrastructure shall provide a non-volatile memory with a table whose the 26 const: onie,tlv-layout 28 product-name: 32 part-number: [all …]
|
| H A D | nvmem-layout.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/nvmem/layouts/nvmem-layout.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: NVMEM (Non Volatile Memory) layouts 10 - Srinivas Kandagatla <srinivas.kandagatla@linaro.org> 11 - Michael Walle <michael@walle.cc> 12 - Miquel Raynal <miquel.raynal@bootlin.com> 15 Most NVMEM layouts are static and thus do not require additional description 17 define and might require dynamic reading of the NVMEM device in order to [all …]
|
| H A D | kontron,sl28-vpd.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/nvmem/layouts/kontron,sl28-vpd.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: NVMEM layout of the Kontron SMARC-sAL28 vital product data 10 - Michael Walle <michael@walle.cc> 15 on-board ethernet devices are derived from this base MAC address by 22 const: kontron,sl28-vpd 24 serial-number: 30 base-mac-address: [all …]
|
| H A D | u-boot,env.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/nvmem/layouts/u-boot,env.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: U-Boot environment variables layout 10 U-Boot uses environment variables to store device parameters and 14 Data is stored using U-Boot specific formats (variant specific header and NUL 15 separated key-value pairs). 24 Variables can be defined as NVMEM device subnodes. 27 - Rafał Miłecki <rafal@milecki.pl> [all …]
|
| /linux/Documentation/devicetree/bindings/nvmem/ |
| H A D | nvmem.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/nvmem/nvmem.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: NVMEM (Non Volatile Memory) 10 - Srinivas Kandagatla <srinivas.kandagatla@linaro.org> 17 some data on NVMEM, for the OS to be able to retrieve these 23 "#address-cells": 26 "#size-cells": 29 read-only: [all …]
|
| H A D | xlnx,zynqmp-nvmem.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/nvmem/xlnx,zynqmp-nvmem.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 14 - Kalyani Akula <kalyani.akula@amd.com> 15 - Praveen Teja Kundanala <praveen.teja.kundanala@amd.com> 18 - $ref: nvmem.yaml# 22 const: xlnx,zynqmp-nvmem-fw 25 - compatible 30 - | [all …]
|
| H A D | nvmem-deprecated-cells.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/nvmem/nvmem-deprecated-cells.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: NVMEM old syntax for fixed cells 10 - Srinivas Kandagatla <srinivas.kandagatla@linaro.org> 13 Before introducing NVMEM layouts all NVMEM (fixed) cells were defined 14 as direct device subnodes. That syntax was replaced by "fixed-layout" 18 "@[0-9a-f]+(,[0-7])?$": 21 - $ref: layouts/fixed-cell.yaml [all …]
|
| /linux/drivers/nvmem/layouts/ |
| H A D | fixed-layout.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Authors: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> 8 #include <linux/nvmem-provider.h> 13 static int fixed_layout_add_cells(struct nvmem_layout *layout) in fixed_layout_add_cells() argument 18 np = of_nvmem_layout_get_container(layout->nvmem); in fixed_layout_add_cells() 20 return -ENOENT; in fixed_layout_add_cells() 22 ret = nvmem_add_cells_from_dt(layout->nvmem, np); in fixed_layout_add_cells() 28 static int fixed_layout_probe(struct nvmem_layout *layout) in fixed_layout_probe() argument 30 layout->add_cells = fixed_layout_add_cells; in fixed_layout_probe() 32 return nvmem_layout_register(layout); in fixed_layout_probe() [all …]
|
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0 9 menu "Layout Types" 12 tristate "Kontron sl28 VPD layout support" 15 Say Y here if you want to support the VPD layout of the Kontron 16 SMARC-sAL28 boards. 25 Type-Length-Value standard table. 30 tristate "U-Boot environment variables layout" 34 U-Boot stores its setup as environment variables. This driver adds 36 as NVMEM cells so they can be referenced by other drivers.
|
| /linux/Documentation/devicetree/bindings/mtd/partitions/ |
| H A D | ubi-volume.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/mtd/partitions/ubi-volume.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 14 - Daniel Golle <daniel@makrotopia.org> 27 nvmem-layout: 28 $ref: /schemas/nvmem/layouts/nvmem-layout.yaml# 30 This container may reference an NVMEM layout parser. 33 - required: 34 - volid [all …]
|
| H A D | linux,ubi.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 12 physical flash device and spreads the I/O load (i.e wear-leveling) 16 - Daniel Golle <daniel@makrotopia.org> 19 - $ref: partition.yaml# 30 "^ubi-volume-.*$": 31 $ref: /schemas/mtd/partitions/ubi-volume.yaml# 36 - compatible 41 - | [all …]
|
| /linux/arch/arm64/boot/dts/renesas/ |
| H A D | r8a779f4.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 3 * Device Tree Source for the R-Car S4-8 (R8A779F4) SoC 15 nvmem-layout { 16 compatible = "fixed-layout"; 17 #address-cells = <1>; 18 #size-cells = <1>; 27 nvmem-cells = <&ufs_tune>; 28 nvmem-cell-names = "calibration";
|
| /linux/arch/arm/boot/dts/ti/omap/ |
| H A D | am335x-bone-common.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com/ 9 cpu0-supply = <&dcdc2_reg>; 19 stdout-path = "serial0:115200n8"; 23 pinctrl-names = "default"; 24 pinctrl-0 = <&user_leds_s0>; 26 compatible = "gpio-leds"; 31 linux,default-trigger = "heartbeat"; 32 default-state = "off"; 38 linux,default-trigger = "mmc0"; [all …]
|
| /linux/arch/arm/boot/dts/qcom/ |
| H A D | qcom-ipq4018-ap120c-ac.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 3 #include "qcom-ipq4019.dtsi" 4 #include <dt-bindings/gpio/gpio.h> 5 #include <dt-bindings/input/input.h> 8 model = "ALFA Network AP120C-AC"; 9 compatible = "alfa-network,ap120c-ac", "qcom,ipq4018"; 16 stdout-path = "serial0:115200n8"; 20 compatible = "gpio-keys"; 22 key-reset { 31 i2c0_pins: i2c0-state { [all …]
|
| /linux/drivers/mtd/ubi/ |
| H A D | nvmem.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 /* UBI NVMEM provider */ 8 #include <linux/nvmem-provider.h> 10 /* List of all NVMEM devices */ 15 struct nvmem_device *nvmem; member 32 desc = ubi_open_volume(unv->ubi_num, unv->vol_id, UBI_READONLY); in ubi_nvmem_reg_read() 36 offs = from % unv->usable_leb_size; in ubi_nvmem_reg_read() 37 lnum = from / unv->usable_leb_size; in ubi_nvmem_reg_read() 39 to_read = unv->usable_leb_size - offs; in ubi_nvmem_reg_read() 50 bytes_left -= to_read; in ubi_nvmem_reg_read() [all …]
|
| /linux/arch/arm64/boot/dts/broadcom/bcmbca/ |
| H A D | bcm4908-asus-gt-ac5300.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 3 #include <dt-bindings/gpio/gpio.h> 4 #include <dt-bindings/input/input.h> 5 #include <dt-bindings/leds/common.h> 10 compatible = "asus,gt-ac5300", "brcm,bcm4908", "brcm,bcmbca"; 11 model = "Asus GT-AC5300"; 18 gpio-keys-polled { 19 compatible = "gpio-keys-polled"; 20 poll-interval = <100>; 22 key-wifi { [all …]
|
| /linux/arch/arm/boot/dts/broadcom/ |
| H A D | bcm53016-meraki-mr32.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 6 * Copyright (C) 2018-2020 Christian Lamparter <chunkeey@gmail.com> 9 /dts-v1/; 12 #include "bcm5301x-nand-cs0-bch8.dtsi" 13 #include <dt-bindings/leds/common.h> 33 compatible = "gpio-leds"; 39 panic-indicator; 49 compatible = "gpio-keys"; 51 button-restart { 58 pwm-leds { [all …]
|
| /linux/Documentation/driver-api/ |
| H A D | nvmem.rst | 1 .. SPDX-License-Identifier: GPL-2.0 4 NVMEM Subsystem 9 This document explains the NVMEM Framework along with the APIs provided, 14 *NVMEM* is the abbreviation for Non Volatile Memory layer. It is used to 18 Before this framework existed, NVMEM drivers like eeprom were stored in 20 register a sysfs file, allow in-kernel users to access the content of the 23 This was also a problem as far as other in-kernel users were involved, since 31 NVMEM Providers 34 NVMEM provider refers to an entity that implements methods to initialize, read 35 and write the non-volatile memory. [all …]
|
| /linux/arch/arm/boot/dts/aspeed/ |
| H A D | aspeed-bmc-asrock-spc621d8hm3.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 2 /dts-v1/; 4 #include "aspeed-g5.dtsi" 5 #include <dt-bindings/gpio/aspeed-gpio.h> 6 #include <dt-bindings/i2c/i2c.h> 7 #include <dt-bindings/interrupt-controller/irq.h> 8 #include <dt-bindings/leds/common.h> 12 compatible = "asrock,spc621d8hm3-bmc", "aspeed,ast2500"; 22 stdout-path = &uart5; 30 compatible = "gpio-leds"; [all …]
|
| /linux/arch/arm/boot/dts/nxp/imx/ |
| H A D | imx6qdl-mba6a.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright 2013-2021 TQ-Systems GmbH 6 * Author: Markus Niebel <Markus.Niebel@tq-group.com> 10 pinctrl-names = "default"; 11 pinctrl-0 = <&pinctrl_enet>, <&pinctrl_enet_fix>; 15 lm75: temperature-sensor@49 { 18 vs-supply = <®_mba6_3p3v>; 25 vcc-supply = <®_mba6_3p3v>; 27 nvmem-layout { 28 compatible = "fixed-layout"; [all …]
|
| H A D | imx6qdl-mba6b.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright 2013-2021 TQ-Systems GmbH 6 * Author: Markus Niebel <Markus.Niebel@tq-group.com> 10 pinctrl-names = "default"; 11 pinctrl-0 = <&pinctrl_enet>; 15 clock-frequency = <100000>; 16 pinctrl-names = "default", "gpio"; 17 pinctrl-0 = <&pinctrl_i2c1>; 18 pinctrl-1 = <&pinctrl_i2c1_recovery>; 19 scl-gpios = <&gpio5 27 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; [all …]
|
| /linux/arch/arm/boot/dts/microchip/ |
| H A D | at91-sama7g5ek.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * at91-sama7g5ek.dts - Device Tree file for SAMA7G5-EK board 11 /dts-v1/; 12 #include "sama7g5-pinfunc.h" 14 #include <dt-bindings/mfd/atmel-flexcom.h> 15 #include <dt-bindings/input/input.h> 16 #include <dt-bindings/pinctrl/at91.h> 17 #include <dt-bindings/sound/microchip,pdmc.h> 20 model = "Microchip SAMA7G5-EK"; 25 stdout-path = "serial0:115200n8"; [all …]
|