Home
last modified time | relevance | path

Searched +full:mtd +full:- +full:eeprom (Results 1 – 25 of 33) sorted by relevance

12

/linux/drivers/net/wireless/mediatek/mt76/
H A Deeprom.c1 // SPDX-License-Identifier: ISC
7 #include <linux/mtd/mtd.h>
8 #include <linux/mtd/partitions.h>
9 #include <linux/nvmem-consumer.h>
15 struct device_node *np = dev->dev->of_node; in mt76_get_of_eeprom_data()
19 data = of_get_property(np, "mediatek,eeprom-data", &size); in mt76_get_of_eeprom_data()
21 return -ENOENT; in mt76_get_of_eeprom_data()
24 return -EINVAL; in mt76_get_of_eeprom_data()
34 struct device_node *np = dev->dev->of_node; in mt76_get_of_data_from_mtd()
35 struct mtd_info *mtd; in mt76_get_of_data_from_mtd() local
[all …]
H A Dtestmode.h1 /* SPDX-License-Identifier: ISC */
13 * enum mt76_testmode_attr - testmode attributes inside NL80211_ATTR_TESTDATA
20 * @MT76_TM_ATTR_MTD_PART: mtd partition used for eeprom data (string)
21 * @MT76_TM_ATTR_MTD_OFFSET: offset of eeprom data within the partition (u32)
37 * @MT76_TM_ATTR_TX_POWER: per-antenna tx power array (nested, u8 attrs)
46 * @MT76_TM_ATTR_TX_IPG: tx inter-packet gap, in unit of us (u32)
92 MT76_TM_ATTR_MAX = NUM_MT76_TM_ATTRS - 1,
96 * enum mt76_testmode_state - statistics attributes
121 MT76_TM_STATS_ATTR_MAX = NUM_MT76_TM_STATS_ATTRS - 1,
126 * enum mt76_testmode_rx_attr - packet rx information
[all …]
/linux/Documentation/devicetree/bindings/net/wireless/
H A Dmediatek,mt76.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 # Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
4 ---
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
11 - Felix Fietkau <nbd@nbd.name>
12 - Lorenzo Bianconi <lorenzo@kernel.org>
13 - Ryder Lee <ryder.lee@mediatek.com>
25 - mediatek,mt76
26 - mediatek,mt7628-wmac
27 - mediatek,mt7622-wmac
[all …]
/linux/drivers/mtd/maps/
H A Dpismo.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * PISMO memory driver - http://www.pismoworld.org/
14 #include <linux/mtd/physmap.h>
15 #include <linux/mtd/plat-ram.h>
16 #include <linux/mtd/pismo.h>
52 struct i2c_client *client = to_i2c_client(pdev->dev.parent); in pismo_set_vpp()
55 pismo->vpp(pismo->vpp_data, on); in pismo_set_vpp()
72 .addr = client->addr, in pismo_eeprom_read()
76 .addr = client->addr, in pismo_eeprom_read()
83 ret = i2c_transfer(client->adapter, msg, ARRAY_SIZE(msg)); in pismo_eeprom_read()
[all …]
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
3 depends on MTD!=n
7 bool "Support non-linear mappings of flash chips"
21 with config options or at run-time.
79 bool "Baikal-T1 Boot ROMs OF-based physical memory map handling"
86 This provides some extra DT physmap parsing for the Baikal-T1
87 platforms, some detection and setting up ROMs-specific accessors.
90 bool "ARM Versatile OF-based physical memory map handling"
100 bool "Cortina Gemini OF-based physical memory map handling"
111 bool "Intel IXP4xx OF-based physical memory map handling"
[all …]
/linux/drivers/net/wireless/mediatek/mt7601u/
H A Deeprom.c1 // SPDX-License-Identifier: GPL-2.0-only
8 #include <linux/mtd/mtd.h>
9 #include <linux/mtd/partitions.h>
13 #include "eeprom.h"
47 return -ETIMEDOUT; in mt7601u_efuse_read()
51 /* Parts of eeprom not in the usage map (0x80-0xc0,0xf0) in mt7601u_efuse_read()
87 cnt_free = end - start + 1; in mt7601u_efuse_physical_size_check()
89 if (MT_EFUSE_USAGE_MAP_SIZE - cnt_free < 5) { in mt7601u_efuse_physical_size_check()
90 …dev_err(dev->dev, "Error: your device needs default EEPROM file and this driver doesn't support it… in mt7601u_efuse_physical_size_check()
91 return -EINVAL; in mt7601u_efuse_physical_size_check()
[all …]
/linux/drivers/net/ethernet/sfc/falcon/
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
10 This driver supports 10-gigabit Ethernet cards based on
14 will be called sfc-falcon.
16 bool "Solarflare SFC4000 MTD support"
17 depends on SFC_FALCON && MTD && !(SFC_FALCON=y && MTD=m)
20 This exposes the on-board flash and/or EEPROM as MTD devices
/linux/drivers/net/wireless/mediatek/mt76/mt76x0/
H A Deeprom.c1 // SPDX-License-Identifier: GPL-2.0-only
10 #include <linux/mtd/mtd.h>
11 #include <linux/mtd/partitions.h>
15 #include "eeprom.h"
37 cnt_free = end - start + 1; in mt76x0_efuse_physical_size_check()
39 if (MT_EFUSE_USAGE_MAP_SIZE - cnt_free < 5) { in mt76x0_efuse_physical_size_check()
40 dev_err(dev->mt76.dev, in mt76x0_efuse_physical_size_check()
41 "driver does not support default EEPROM\n"); in mt76x0_efuse_physical_size_check()
42 return -EINVAL; in mt76x0_efuse_physical_size_check()
54 dev_dbg(dev->mt76.dev, "2GHz %d 5GHz %d\n", in mt76x0_set_chip_cap()
[all …]
/linux/drivers/net/ethernet/sfc/siena/
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
9 This driver supports 10-gigabit Ethernet cards based on
13 will be called sfc-siena.
15 bool "Solarflare SFC9000-family MTD support"
16 depends on SFC_SIENA && MTD && !(SFC_SIENA=y && MTD=m)
19 This exposes the on-board flash and/or EEPROM as MTD devices
23 bool "Solarflare SFC9000-family hwmon support"
27 This exposes the on-board firmware-managed sensors as a
30 bool "Solarflare SFC9000-family SR-IOV support"
38 bool "Solarflare SFC9000-family MCDI logging support"
[all …]
/linux/drivers/net/ethernet/sfc/
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
20 tristate "Solarflare SFC9100/EF100-family support"
27 This driver supports 10/40-gigabit Ethernet cards based on
28 the Solarflare SFC9100-family controllers.
30 It also supports 10/25/40/100-gigabit Ethernet cards based
36 bool "Solarflare SFC9100-family MTD support"
37 depends on SFC && MTD && !(SFC=y && MTD=m)
40 This exposes the on-board flash and/or EEPROM as MTD devices
44 bool "Solarflare SFC9100-family hwmon support"
48 This exposes the on-board firmware-managed sensors as a
[all …]
/linux/arch/arm/boot/dts/broadcom/
H A Dbcm53016-meraki-mr32.dts1 // 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/devicetree/bindings/mtd/partitions/
H A Dlinux,ubi.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
4 $id: http://devicetree.org/schemas/mtd/partitions/linux,ubi.yaml#
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
[all …]
/linux/drivers/mtd/devices/
H A Dpmc551.c1 // SPDX-License-Identifier: GPL-2.0-only
15 * implements this PCI Ram device as an MTD (Memory Technology
49 * Most of the MTD code for this driver was originally written
50 * for the slram.o module in the MTD drivers package which
51 * allows the mapping of system memory into an MTD device.
93 #include <linux/mtd/mtd.h>
132 static int pmc551_point(struct mtd_info *mtd, loff_t from, size_t len,
135 static int pmc551_erase(struct mtd_info *mtd, struct erase_info *instr) in pmc551_erase() argument
137 struct mypriv *priv = mtd->priv; in pmc551_erase()
145 printk(KERN_DEBUG "pmc551_erase(pos:%ld, len:%ld)\n", (long)instr->addr, in pmc551_erase()
[all …]
/linux/arch/arm/boot/dts/nxp/imx/
H A Dimx27-phytec-phycore-som.dtsi1 // SPDX-License-Identifier: GPL-2.0-or-later
6 /dts-v1/;
11 compatible = "phytec,imx27-pcm038", "fsl,imx27";
18 reg_3v3: regulator-0 {
19 compatible = "regulator-fixed";
20 regulator-name = "3V3";
21 regulator-min-microvolt = <3300000>;
22 regulator-max-microvolt = <3300000>;
25 reg_5v0: regulator-1 {
26 compatible = "regulator-fixed";
[all …]
/linux/arch/powerpc/boot/dts/fsl/
H A Dmvme2500.dts1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Copyright 2014 Elettra-Sincrotrone Trieste S.C.p.A.
11 /include/ "p2020si-pre.dtsi"
43 eeprom@54 {
48 eeprom@52 {
53 eeprom@53 {
58 eeprom@50 {
66 fsl,espi-num-chipselects = <2>;
69 compatible = "atmel,at25df641", "jedec,spi-nor";
71 spi-max-frequency = <10000000>;
[all …]
/linux/arch/arm/boot/dts/marvell/
H A Dorion5x-lacie-ethernet-disk-mini-v2.dts1 // SPDX-License-Identifier: GPL-2.0-only
2 // Copyright (C) 2012 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 * TODO: add power-off support.
8 * TODO: add I2C EEPROM support.
11 /dts-v1/;
13 #include <dt-bindings/gpio/gpio.h>
14 #include <dt-bindings/input/input.h>
15 #include <dt-bindings/interrupt-controller/irq.h>
16 #include "orion5x-mv88f5182.dtsi"
20 compatible = "lacie,ethernet-disk-mini-v2", "marvell,orion5x-88f5182", "marvell,orion5x";
[all …]
H A Dorion5x-lacie-d2-network.dts1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2014 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 /dts-v1/;
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/input/input.h>
11 #include <dt-bindings/interrupt-controller/irq.h>
12 #include "orion5x-mv88f5182.dtsi"
16 compatible = "lacie,d2-network", "marvell,orion5x-88f5182", "marvell,orion5x";
25 stdout-path = &uart0;
34 gpio-keys {
[all …]
/linux/arch/powerpc/boot/dts/
H A Dpdm360ng.dts1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Copyright 2009 - 2010 DENX Software Engineering.
17 #address-cells = <1>;
18 #size-cells = <1>;
19 interrupt-parent = <&ipic>;
27 bank-width = <0x1>;
41 compatible = "amd,s29gl01gp", "cfi-flash";
44 #address-cells = <1>;
45 #size-cells = <1>;
46 bank-width = <4>;
[all …]
H A Dpcm032.dts1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * phyCORE-MPC5200B-IO (pcm032) board Device Tree Source
5 * Copyright (C) 2006-2009 Pengutronix
11 &gpt0 { fsl,has-wdt; };
12 &gpt2 { gpio-controller; };
13 &gpt3 { gpio-controller; };
14 &gpt4 { gpio-controller; };
15 &gpt5 { gpio-controller; };
16 &gpt6 { gpio-controller; };
17 &gpt7 { gpio-controller; };
[all …]
/linux/arch/mips/boot/dts/ralink/
H A Dgardena_smart_gateway_mt7688.dts1 // SPDX-License-Identifier: GPL-2.0
6 /dts-v1/;
10 #include <dt-bindings/gpio/gpio.h>
11 #include <dt-bindings/input/input.h>
14 compatible = "gardena,smart-gateway-mt7688", "ralink,mt7688a-soc",
15 "ralink,mt7628a-soc";
23 gpio-keys {
24 compatible = "gpio-keys";
26 pinctrl-names = "default";
27 pinctrl-0 = <&pinmux_gpio_gpio>; /* GPIO11 */
[all …]
/linux/arch/arm/boot/dts/ti/omap/
H A Dam335x-moxa-uc-2100-common.dtsi1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2018 MOXA Inc. - https://www.moxa.com/
13 vbat: vbat-regulator {
14 compatible = "regulator-fixed";
18 vmmcsd_fixed: vmmcsd-regulator {
19 compatible = "regulator-fixed";
20 regulator-name = "vmmcsd_fixed";
21 regulator-min-microvolt = <3300000>;
22 regulator-max-microvolt = <3300000>;
23 regulator-boot-on;
[all …]
H A Dam335x-moxa-uc-8100-common.dtsi1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2020 MOXA Inc. - https://www.moxa.com/
14 cpu0-supply = <&vdd1_reg>;
18 vbat: vbat-regulator {
19 compatible = "regulator-fixed";
23 vmmcsd_fixed: vmmcsd-regulator {
24 compatible = "regulator-fixed";
25 regulator-name = "vmmcsd_fixed";
26 regulator-min-microvolt = <3300000>;
27 regulator-max-microvolt = <3300000>;
[all …]
H A Dam335x-cm-t335.dts1 // SPDX-License-Identifier: GPL-2.0-only
3 * am335x-cm-t335.dts - Device Tree file for Compulab CM-T335
5 * Copyright (C) 2014 - 2015 CompuLab Ltd. - https://www.compulab.co.il/
8 /dts-v1/;
11 #include <dt-bindings/interrupt-controller/irq.h>
14 model = "CompuLab CM-T335";
15 compatible = "compulab,cm-t335", "ti,am33xx";
23 compatible = "gpio-leds";
24 pinctrl-names = "default";
25 pinctrl-0 = <&gpio_led_pins>;
[all …]
/linux/arch/sh/boards/mach-se/7724/
H A Dsetup.c1 // SPDX-License-Identifier: GPL-2.0
25 #include <linux/mtd/physmap.h>
35 #include <linux/dma-map-ops.h>
37 #include <mach-se/mach/se7724.h>
38 #include <media/drv-intf/renesas-ceu.h>
51 * ------------------------------------
55 * SW41 : abxx xxxx -> a = 0 : Analog monitor
73 * Please change J20, J21, J22 pin to 1-2 connection.
85 .id = -1,
117 /* MTD */
[all …]
/linux/arch/mips/alchemy/devboards/
H A Ddb1550.c1 // SPDX-License-Identifier: GPL-2.0
9 #include <linux/dma-mapping.h>
15 #include <linux/mtd/mtd.h>
16 #include <linux/mtd/platnand.h>
22 #include <asm/mach-au1x00/au1000.h>
23 #include <asm/mach-au1x00/gpio-au1000.h>
24 #include <asm/mach-au1x00/au1xxx_eth.h>
25 #include <asm/mach-au1x00/au1xxx_dbdma.h>
26 #include <asm/mach-au1x00/au1xxx_psc.h>
27 #include <asm/mach-au1x00/au1550_spi.h>
[all …]

12