| /kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/ |
| D | eeprom.c | 1 // SPDX-License-Identifier: ISC 7 #include <linux/mtd/mtd.h> 8 #include <linux/mtd/partitions.h> 16 struct device_node *np = dev->dev->of_node; in mt76_get_of_eeprom() 17 struct mtd_info *mtd; in mt76_get_of_eeprom() local 27 return -ENOENT; in mt76_get_of_eeprom() 29 list = of_get_property(np, "mediatek,mtd-eeprom", &size); in mt76_get_of_eeprom() 31 return -ENOENT; in mt76_get_of_eeprom() 35 return -ENOENT; in mt76_get_of_eeprom() 39 return -EINVAL; in mt76_get_of_eeprom() [all …]
|
| D | testmode.h | 1 /* SPDX-License-Identifier: ISC */ 9 * enum mt76_testmode_attr - testmode attributes inside NL80211_ATTR_TESTDATA 16 * @MT76_TM_ATTR_MTD_PART: mtd partition used for eeprom data (string) 17 * @MT76_TM_ATTR_MTD_OFFSET: offset of eeprom data within the partition (u32) 31 * @MT76_TM_ATTR_TX_POWER: per-antenna tx power array (nested, u8 attrs) 64 MT76_TM_ATTR_MAX = NUM_MT76_TM_ATTRS - 1, 68 * enum mt76_testmode_state - statistics attributes 93 MT76_TM_STATS_ATTR_MAX = NUM_MT76_TM_STATS_ATTRS - 1, 98 * enum mt76_testmode_rx_attr - packet rx information 115 MT76_TM_RX_ATTR_MAX = NUM_MT76_TM_RX_ATTRS - 1, [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/net/wireless/ |
| D | mediatek,mt76.txt | 11 - "mediatek,mt7628-wmac" for MT7628/MT7688 12 - "mediatek,mt7622-wmac" for MT7622 15 - reg: Address and length of the register set for the device. 16 - interrupts: Main device interrupt 19 - power-domains: phandle to the power domain that the WMAC is part of 20 - mediatek,infracfg: phandle to the infrastructure bus fabric syscon node 24 - ieee80211-freq-limit: See ieee80211.txt 25 - mediatek,mtd-eeprom: Specify a MTD partition + offset containing EEPROM data 26 - big-endian: if the radio eeprom partition is written in big-endian, specify 28 - mediatek,eeprom-merge-otp: Merge EEPROM data with OTP data. Can be used on [all …]
|
| /kernel/linux/linux-6.6/drivers/net/wireless/mediatek/mt76/ |
| D | eeprom.c | 1 // 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_epprom_from_mtd() 35 struct mtd_info *mtd; in mt76_get_of_epprom_from_mtd() local [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/net/wireless/ |
| D | mediatek,mt76.yaml | 1 # 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> 23 - $ref: ieee80211.yaml# 28 - mediatek,mt76 29 - mediatek,mt7628-wmac [all …]
|
| /kernel/linux/linux-6.6/drivers/mtd/maps/ |
| D | pismo.c | 1 // 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 …]
|
| D | Kconfig | 1 # 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 …]
|
| /kernel/linux/linux-5.10/drivers/mtd/maps/ |
| D | pismo.c | 1 // 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 …]
|
| D | Kconfig | 1 # 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 …]
|
| /kernel/linux/linux-6.6/drivers/net/wireless/mediatek/mt7601u/ |
| D | eeprom.c | 1 // 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 …]
|
| /kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt7601u/ |
| D | eeprom.c | 1 // 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 …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/sfc/falcon/ |
| D | Kconfig | 1 # 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
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/sfc/falcon/ |
| D | Kconfig | 1 # 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
|
| D | falcon.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright 2005-2006 Fen Systems Ltd. 5 * Copyright 2006-2013 Solarflare Communications Inc. 134 (*(u32 *)((efx)->stats_buffer.addr + XgDmaDone_offset)) 139 /* 48-bit stats are zero-padded to 64 on DMA */ \ 199 [0 ... BITS_TO_LONGS(FALCON_STAT_COUNT) - 1] = ~0UL, 216 #define SPI_STATUS_WPEN 0x80 /* Write-protect pin enabled */ 225 * Non-volatile memory layout 231 * 0-0x400 chip and board config (see struct falcon_nvconfig) 232 * 0x400-0x8000 unused (or may contain VPD if EEPROM not present) [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/sfc/siena/ |
| D | Kconfig | 1 # 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 …]
|
| /kernel/linux/linux-6.6/drivers/net/wireless/mediatek/mt76/mt76x0/ |
| D | eeprom.c | 1 // 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 …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/sfc/ |
| D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 20 tristate "Solarflare SFC9000/SFC9100/EF100-family support" 26 This driver supports 10/40-gigabit Ethernet cards based on 27 the Solarflare SFC9000-family and SFC9100-family controllers. 29 It also supports 10/25/40/100-gigabit Ethernet cards based 35 bool "Solarflare SFC9000/SFC9100-family MTD support" 36 depends on SFC && MTD && !(SFC=y && MTD=m) 39 This exposes the on-board flash and/or EEPROM as MTD devices 43 bool "Solarflare SFC9000/SFC9100-family hwmon support" 47 This exposes the on-board firmware-managed sensors as a [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/sfc/ |
| D | Kconfig | 1 # 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 …]
|
| /kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt76x0/ |
| D | eeprom.c | 1 // 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 …]
|
| /kernel/linux/linux-6.6/arch/arm/boot/dts/broadcom/ |
| 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 …]
|
| /kernel/linux/linux-5.10/arch/arm/boot/dts/ |
| 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"; 50 #address-cells = <1>; 51 #size-cells = <0>; [all …]
|
| /kernel/linux/linux-6.6/drivers/nvmem/ |
| D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 5 Support for NVMEM(Non Volatile Memory) devices like EEPROM, EFUSES... 37 calibration data required for the PCIe or the USB-C PHY. 40 be called nvmem-apple-efuses. 43 tristate "Broadcom On-Chip OTP Controller support" 52 will be called nvmem-bcm-ocotp. 72 will be called nvmem-imx-iim. 75 tristate "i.MX 6/7/8 On-Chip OTP Controller support" 79 This is a driver for the On-Chip OTP Controller (OCOTP) available on 80 i.MX6 SoCs, providing access to 4 Kbits of one-time programmable [all …]
|
| /kernel/linux/linux-6.6/drivers/mtd/devices/ |
| D | pmc551.c | 1 // 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 …]
|
| /kernel/linux/linux-5.10/drivers/mtd/devices/ |
| D | pmc551.c | 1 // 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 …]
|
| /kernel/linux/linux-5.10/arch/arm/mach-davinci/ |
| D | board-dm355-leopard.c | 4 * Based on board-dm355-evm.c 14 #include <linux/mtd/mtd.h> 15 #include <linux/mtd/partitions.h> 16 #include <linux/mtd/rawnand.h> 21 #include <linux/spi/eeprom.h> 22 #include <linux/platform_data/i2c-davinci.h> 23 #include <linux/platform_data/mmc-davinci.h> 24 #include <linux/platform_data/mtd-davinci.h> 25 #include <linux/platform_data/usb-davinci.h> 27 #include <asm/mach-types.h> [all …]
|