/linux-5.10/drivers/pinctrl/tegra/ |
D | pinctrl-tegra.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (c) 2011-2012, NVIDIA CORPORATION. All rights reserved. 10 * Copyright (C) 2009-2011 ST-Ericsson AB 25 #include "../pinctrl-utils.h" 26 #include "pinctrl-tegra.h" 28 static inline u32 pmx_readl(struct tegra_pmx *pmx, u32 bank, u32 reg) in pmx_readl() argument 30 return readl(pmx->regs[bank] + reg); in pmx_readl() 33 static inline void pmx_writel(struct tegra_pmx *pmx, u32 val, u32 bank, u32 reg) in pmx_writel() argument 35 writel_relaxed(val, pmx->regs[bank] + reg); in pmx_writel() 37 pmx_readl(pmx, bank, reg); in pmx_writel() [all …]
|
D | pinctrl-tegra.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 44 /* argument: Integer, range is HW-dependant */ 46 /* argument: Integer, range is HW-dependant */ 48 /* argument: Integer, range is HW-dependant */ 50 /* argument: Integer, range is HW-dependant */ 52 /* argument: Integer, range is HW-dependant */ 72 * struct tegra_function - Tegra pinctrl mux function 84 * struct tegra_pingroup - Tegra pin group 92 * @mux_bank: Mux register bank. 94 * @pupd_reg: Pull-up/down register offset. [all …]
|
/linux-5.10/Documentation/devicetree/bindings/mtd/ |
D | mtd-physmap.txt | 1 CFI or JEDEC memory-mapped NOR flash, MTD-RAM (NVRAM...) 6 - compatible : should contain the specific model of mtd chip(s) 7 used, if known, followed by either "cfi-flash", "jedec-flash", 8 "mtd-ram" or "mtd-rom". 9 - reg : Address range(s) of the mtd chip(s) 11 non-identical chips can be described in one node. 12 - bank-width : Width (in bytes) of the bank. Equal to the 13 device width times the number of interleaved chips. 14 - device-width : (optional) Width of a single mtd chip. If 15 omitted, assumed to be equal to 'bank-width'. [all …]
|
D | fsmc-nand.txt | 5 - compatible : "st,spear600-fsmc-nand", "stericsson,fsmc-nand" 6 - reg : Address range of the mtd chip 7 - reg-names: Should contain the reg names "fsmc_regs", "nand_data", "nand_addr" and "nand_cmd" 10 - bank-width : Width (in bytes) of the device. If not present, the width 12 - nand-skip-bbtscan: Indicates the BBT scanning should be skipped 13 - timings: array of 6 bytes for NAND timings. The meanings of these bytes 20 kept in Hi-Z (tristate) after the start of a write access. 32 - bank: default NAND bank to use (0-3 are valid, 0 is the default). 33 - nand-ecc-mode : see nand-controller.yaml 34 - nand-ecc-strength : see nand-controller.yaml [all …]
|
D | intel,ixp4xx-flash.txt | 4 specific big-endian or mixed-endian memory access pattern. 7 - compatible : must be "intel,ixp4xx-flash", "cfi-flash"; 8 - reg : memory address for the flash chip 9 - bank-width : width in bytes of flash interface, should be <2> 11 For the rest of the properties, see mtd-physmap.txt. 13 The device tree may optionally contain sub-nodes describing partitions of the 19 compatible = "intel,ixp4xx-flash", "cfi-flash"; 21 bank-width = <2>;
|
D | cortina,gemini-flash.txt | 7 - compatible : must be "cortina,gemini-flash", "cfi-flash"; 8 - reg : memory address for the flash chip 9 - syscon : must be a phandle to the system controller 10 - bank-width : width in bytes of flash interface, should be <2> 12 For the rest of the properties, see mtd-physmap.txt. 14 The device tree may optionally contain sub-nodes describing partitions of the 20 compatible = "cortina,gemini-flash", "cfi-flash"; 23 bank-width = <2>;
|
D | arm-versatile.txt | 11 - compatible : must be "arm,versatile-flash", "cfi-flash"; 12 - reg : memory address for the flash chip 13 - bank-width : width in bytes of flash interface. 15 For the rest of the properties, see mtd-physmap.txt. 17 The device tree may optionally contain sub-nodes describing partitions of the 23 compatible = "arm,versatile-flash", "cfi-flash"; 25 bank-width = <4>;
|
D | orion-nand.txt | 4 - compatible : "marvell,orion-nand". 5 - reg : Base physical address of the NAND and length of memory mapped 9 - cle : Address line number connected to CLE. Default is 0 10 - ale : Address line number connected to ALE. Default is 1 11 - bank-width : Width in bytes of the device. Default is 1 12 - chip-delay : Chip dependent delay for transferring data from array to read 15 The device tree may optionally contain sub-nodes describing partitions of the 21 #address-cells = <1>; 22 #size-cells = <1>; 25 bank-width = <1>; [all …]
|
/linux-5.10/drivers/gpio/ |
D | gpio-brcmstb.c | 2 * Copyright (C) 2015-2017 Broadcom 36 #define GIO_BANK_OFF(bank, off) (((bank) * GIO_BANK_SIZE) + (off * sizeof(u32))) argument 37 #define GIO_ODEN(bank) GIO_BANK_OFF(bank, GIO_REG_ODEN) argument 38 #define GIO_DATA(bank) GIO_BANK_OFF(bank, GIO_REG_DATA) argument 39 #define GIO_IODIR(bank) GIO_BANK_OFF(bank, GIO_REG_IODIR) argument 40 #define GIO_EC(bank) GIO_BANK_OFF(bank, GIO_REG_EC) argument 41 #define GIO_EI(bank) GIO_BANK_OFF(bank, GIO_REG_EI) argument 42 #define GIO_MASK(bank) GIO_BANK_OFF(bank, GIO_REG_MASK) argument 43 #define GIO_LEVEL(bank) GIO_BANK_OFF(bank, GIO_REG_LEVEL) argument 44 #define GIO_STAT(bank) GIO_BANK_OFF(bank, GIO_REG_STAT) argument [all …]
|
D | gpio-omap.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2003-2005 Nokia Corporation 9 * Added OMAP4 support - Santosh Shilimkar <santosh.shilimkar@ti.com> 27 #include <linux/platform_data/gpio-omap.h> 73 u32 width; member 76 void (*set_dataout)(struct gpio_bank *bank, unsigned gpio, int enable); 82 #define BANK_USED(bank) (bank->mod_usage || bank->irq_usage) argument 107 static void omap_set_gpio_direction(struct gpio_bank *bank, int gpio, in omap_set_gpio_direction() argument 110 bank->context.oe = omap_gpio_rmw(bank->base + bank->regs->direction, in omap_set_gpio_direction() 116 static void omap_set_gpio_dataout_reg(struct gpio_bank *bank, unsigned offset, in omap_set_gpio_dataout_reg() argument [all …]
|
/linux-5.10/arch/powerpc/boot/dts/ |
D | media5200.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 12 &gpt0 { fsl,has-wdt; }; 24 stdout-path = &console; 29 timebase-frequency = <33000000>; // 33 MHz, these were configured by U-Boot 30 bus-frequency = <132000000>; // 132 MHz 31 clock-frequency = <396000000>; // 396 MHz 40 bus-frequency = <132000000>;// 132 MHz 64 compatible = "fsl,mpc5200b-psc-uart","fsl,mpc5200-psc-uart"; 68 phy-handle = <&phy0>; 72 phy0: ethernet-phy@0 { [all …]
|
D | pdm360ng.dts | 1 // 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 …]
|
D | pcm032.dts | 1 // 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 …]
|
D | sbc8548.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 11 /dts-v1/; 13 /include/ "sbc8548-pre.dtsi" 17 #address-cells = <2>; 18 #size-cells = <1>; 19 compatible = "simple-bus"; 21 interrupt-parent = <&mpic>; 31 #address-cells = <1>; 32 #size-cells = <1>; 33 compatible = "intel,JS28F640", "cfi-flash"; [all …]
|
/linux-5.10/drivers/memory/samsung/ |
D | exynos-srom.c | 1 // SPDX-License-Identifier: GPL-2.0 6 // Exynos - SROM Controller support 17 #include "exynos-srom.h" 70 u32 bank, width, pmc = 0; in exynos_srom_configure_bank() local 74 if (of_property_read_u32(np, "reg", &bank)) in exynos_srom_configure_bank() 75 return -EINVAL; in exynos_srom_configure_bank() 76 if (of_property_read_u32(np, "reg-io-width", &width)) in exynos_srom_configure_bank() 77 width = 1; in exynos_srom_configure_bank() 78 if (of_property_read_bool(np, "samsung,srom-page-mode")) in exynos_srom_configure_bank() 80 if (of_property_read_u32_array(np, "samsung,srom-timing", timing, in exynos_srom_configure_bank() [all …]
|
/linux-5.10/Documentation/devicetree/bindings/memory-controllers/ |
D | exynos-srom.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/memory-controllers/exynos-srom.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Krzysztof Kozlowski <krzk@kernel.org> 19 - const: samsung,exynos4210-srom 24 "#address-cells": 27 "#size-cells": 32 Reflects the memory layout with four integer values per bank. Format: 33 <bank-number> 0 <parent address of bank> <size> [all …]
|
/linux-5.10/arch/arm/boot/dts/ |
D | omap-zoom-common.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 6 #include "omap-gpmc-smsc911x.dtsi" 20 bank-width = <2>; 21 reg-shift = <1>; 22 reg-io-width = <1>; 23 interrupt-parent = <&gpio4>; 25 clock-frequency = <1843200>; 26 current-speed = <115200>; 27 gpmc,mux-add-data = <0>; 28 gpmc,device-width = <1>; [all …]
|
/linux-5.10/Documentation/devicetree/bindings/net/ |
D | gpmc-eth.txt | 4 General-Purpose Memory Controller can be used to connect Pseudo-SRAM devices 12 Documentation/devicetree/bindings/memory-controllers/omap-gpmc.txt 18 Child nodes need to specify the GPMC bus address width using the "bank-width" 20 specify the I/O registers address width. Even when the GPMC has a maximum 16-bit 21 address width, it supports devices with 32-bit word registers. 23 OMAP2+ board, "bank-width = <2>;" and "reg-io-width = <4>;". 26 - bank-width: Address width of the device in bytes. GPMC supports 8-bit 27 and 16-bit devices and so must be either 1 or 2 bytes. 28 - compatible: Compatible string property for the ethernet child device. 29 - gpmc,cs-on-ns: Chip-select assertion time [all …]
|
/linux-5.10/drivers/clk/qcom/ |
D | clk-rcg.c | 1 // SPDX-License-Identifier: GPL-2.0-only 10 #include <linux/clk-provider.h> 15 #include "clk-rcg.h" 20 ns >>= s->src_sel_shift; in ns_to_src() 30 mask <<= s->src_sel_shift; in src_to_ns() 33 ns |= src << s->src_sel_shift; in src_to_ns() 44 ret = regmap_read(rcg->clkr.regmap, rcg->ns_reg, &ns); in clk_rcg_get_parent() 47 ns = ns_to_src(&rcg->s, ns); in clk_rcg_get_parent() 49 if (ns == rcg->s.parent_map[i].cfg) in clk_rcg_get_parent() 58 static int reg_to_bank(struct clk_dyn_rcg *rcg, u32 bank) in reg_to_bank() argument [all …]
|
/linux-5.10/drivers/pinctrl/renesas/ |
D | sh_pfc.h | 1 /* SPDX-License-Identifier: GPL-2.0 12 #include <linux/pinctrl/pinconf-generic.h> 119 u16 nr_enum_ids; /* for variable width regs only */ 131 * Describe a config register consisting of several fields of the same width 132 * - name: Register name (unused, for documentation purposes only) 133 * - r: Physical register address 134 * - r_width: Width of the register (in bits) 135 * - f_width: Width of the fixed-width register fields (in bits) 136 * - ids: For each register field (from left to right, i.e. MSB to LSB), 151 * - name: Register name (unused, for documentation purposes only) [all …]
|
/linux-5.10/drivers/edac/ |
D | synopsys_edac.c | 5 * Copyright (C) 2012 - 2014 Xilinx, Inc. 154 /* DDR Control Register width definitions */ 270 * struct ecc_error_info - ECC error log information. 273 * @bank: Bank number. 276 * @bankgrpnr: Bank group number. 282 u32 bank; member 290 * struct synps_ecc_status - ECC status information to report. 304 * struct synps_edac_priv - DDR memory controller private instance data. 314 * @bank_shift: Bit shifts for bank bit. 315 * @bankgrp_shift: Bit shifts for bank group bit. [all …]
|
D | armada_xp_edac.c | 1 // SPDX-License-Identifier: GPL-2.0 10 #include <asm/hardware/cache-l2x0.h> 11 #include <asm/hardware/cache-aurora-l2.h> 73 /* width in bytes */ 74 unsigned int width; member 75 /* bank interleaving */ 83 uint8_t cs, uint8_t bank, uint16_t row, in axp_mc_calc_address() argument 86 if (drvdata->width == 8) { in axp_mc_calc_address() 88 if (drvdata->cs_addr_sel[cs]) in axp_mc_calc_address() 89 /* bank interleaved */ in axp_mc_calc_address() [all …]
|
/linux-5.10/arch/powerpc/sysdev/ |
D | fsl_lbc.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright © 2007-2008 MontaVista Software, Inc. 10 * Author: Roy Zang <tie-fei.zang@freescale.com> 35 * fsl_lbc_addr - convert the base address 36 * @addr_base: base address of the memory bank 45 struct device_node *np = fsl_lbc_ctrl_dev->dev->of_node; in fsl_lbc_addr() 56 * fsl_lbc_find - find Localbus bank 57 * @addr_base: base address of the memory bank 61 * function returns bank number (starting with 0), otherwise it returns 69 if (!fsl_lbc_ctrl_dev || !fsl_lbc_ctrl_dev->regs) in fsl_lbc_find() [all …]
|
/linux-5.10/drivers/memory/ |
D | jz4780-nemc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * Author: Alex Smith <alex@alex-smith.me.uk> 21 #include <linux/jz4780-nemc.h> 23 #define NEMC_SMCRn(n) (0x14 + (((n) - 1) * 4)) 43 #define NEMC_NFCSR_NFEn(n) BIT(((n) - 1) << 1) 44 #define NEMC_NFCSR_NFCEn(n) BIT((((n) - 1) << 1) + 1) 45 #define NEMC_NFCSR_TNFEn(n) BIT(16 + (n) - 1) 62 * jz4780_nemc_num_banks() - count the number of banks referenced by a device 66 * child device. Unique here means that a device that references the same bank 72 unsigned int bank, count = 0; in jz4780_nemc_num_banks() local [all …]
|
/linux-5.10/arch/arm64/boot/dts/amlogic/ |
D | meson-gxbb-nanopi-k2.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 /dts-v1/; 8 #include "meson-gxbb.dtsi" 9 #include <dt-bindings/gpio/gpio.h> 12 compatible = "friendlyarm,nanopi-k2", "amlogic,meson-gxbb"; 21 stdout-path = "serial0:115200n8"; 30 compatible = "gpio-leds"; 32 led-stat { 33 label = "nanopi-k2:blue:stat"; 35 default-state = "on"; [all …]
|