/Linux-v6.1/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-v6.1/drivers/gpio/ |
D | gpio-brcmstb.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 // Copyright (C) 2015-2017 Broadcom 26 #define GIO_BANK_OFF(bank, off) (((bank) * GIO_BANK_SIZE) + (off * sizeof(u32))) argument 27 #define GIO_ODEN(bank) GIO_BANK_OFF(bank, GIO_REG_ODEN) argument 28 #define GIO_DATA(bank) GIO_BANK_OFF(bank, GIO_REG_DATA) argument 29 #define GIO_IODIR(bank) GIO_BANK_OFF(bank, GIO_REG_IODIR) argument 30 #define GIO_EC(bank) GIO_BANK_OFF(bank, GIO_REG_EC) argument 31 #define GIO_EI(bank) GIO_BANK_OFF(bank, GIO_REG_EI) argument 32 #define GIO_MASK(bank) GIO_BANK_OFF(bank, GIO_REG_MASK) argument 33 #define GIO_LEVEL(bank) GIO_BANK_OFF(bank, GIO_REG_LEVEL) 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> 74 u32 width; member 77 void (*set_dataout)(struct gpio_bank *bank, unsigned gpio, int enable); 83 #define BANK_USED(bank) (bank->mod_usage || bank->irq_usage) argument 108 static void omap_set_gpio_direction(struct gpio_bank *bank, int gpio, in omap_set_gpio_direction() argument 111 bank->context.oe = omap_gpio_rmw(bank->base + bank->regs->direction, in omap_set_gpio_direction() 117 static void omap_set_gpio_dataout_reg(struct gpio_bank *bank, unsigned offset, in omap_set_gpio_dataout_reg() argument [all …]
|
/Linux-v6.1/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 …]
|
/Linux-v6.1/Documentation/devicetree/bindings/mtd/ |
D | mtd-physmap.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/mtd/mtd-physmap.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: CFI or JEDEC memory-mapped NOR flash, MTD-RAM (NVRAM...) 10 - Rob Herring <robh@kernel.org> 19 - items: 20 - enum: 21 - amd,s29gl01gp 22 - amd,s29gl032a [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 | 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-v6.1/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-v6.1/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": 34 Reflects the memory layout with four integer values per bank. Format: 35 <bank-number> 0 <parent address of bank> <size> [all …]
|
/Linux-v6.1/drivers/pinctrl/renesas/ |
D | sh_pfc.h | 1 /* SPDX-License-Identifier: GPL-2.0 12 #include <linux/pinctrl/pinconf-generic.h> 109 u16 nr_enum_ids; /* for variable width regs only */ 121 * Describe a config register consisting of several fields of the same width 122 * - name: Register name (unused, for documentation purposes only) 123 * - r: Physical register address 124 * - r_width: Width of the register (in bits) 125 * - f_width: Width of the fixed-width register fields (in bits) 126 * - ids: For each register field (from left to right, i.e. MSB to LSB), 140 * - name: Register name (unused, for documentation purposes only) [all …]
|
/Linux-v6.1/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-v6.1/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-v6.1/drivers/edac/ |
D | synopsys_edac.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * Copyright (C) 2012 - 2014 Xilinx, Inc. 142 /* DDR Control Register width definitions */ 267 * struct ecc_error_info - ECC error log information. 270 * @bank: Bank number. 273 * @bankgrpnr: Bank group number. 279 u32 bank; member 287 * struct synps_ecc_status - ECC status information to report. 301 * struct synps_edac_priv - DDR memory controller private instance data. 311 * @bank_shift: Bit shifts for bank 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 …]
|
D | ppc4xx_edac.c | 1 // SPDX-License-Identifier: GPL-2.0-only 30 * - Support for registered- and non-registered DDR1 and DDR2 memory. 31 * - 32-bit or 16-bit memory interface with optional ECC. 35 * - 4-bit SEC/DED 36 * - Aligned-nibble error detect 37 * - Bypass mode 39 * - Two (2) memory banks/ranks. 40 * - Up to 1 GiB per bank/rank in 32-bit mode and up to 512 MiB per 41 * bank/rank in 16-bit mode. 45 * - 64-bit or 32-bit memory interface with optional ECC. [all …]
|
/Linux-v6.1/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> 36 * fsl_lbc_addr - convert the base address 37 * @addr_base: base address of the memory bank 46 struct device_node *np = fsl_lbc_ctrl_dev->dev->of_node; in fsl_lbc_addr() 57 * fsl_lbc_find - find Localbus bank 58 * @addr_base: base address of the memory bank 62 * function returns bank number (starting with 0), otherwise it returns 70 if (!fsl_lbc_ctrl_dev || !fsl_lbc_ctrl_dev->regs) in fsl_lbc_find() [all …]
|
/Linux-v6.1/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-v6.1/drivers/pinctrl/ |
D | pinctrl-microchip-sgpio.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 136 addr->port = pin / priv->bitcount; in sgpio_pin_to_addr() 137 addr->bit = pin % priv->bitcount; in sgpio_pin_to_addr() 142 return bit + port * priv->bitcount; in sgpio_addr_to_pin() 147 return (priv->properties->regoff[rno] + off) * in sgpio_get_addr() 148 regmap_get_reg_stride(priv->regs); in sgpio_get_addr() 157 ret = regmap_read(priv->regs, addr, &val); in sgpio_readl() 169 ret = regmap_write(priv->regs, addr, val); in sgpio_writel() 179 ret = regmap_update_bits(priv->regs, addr, clear | set, set); in sgpio_clrsetbits() 185 int width = priv->bitcount - 1; in sgpio_configure_bitstream() local [all …]
|
/Linux-v6.1/Documentation/devicetree/bindings/memory-controllers/ddr/ |
D | jedec,lpddr2.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/memory-controllers/ddr/jedec,lpddr2.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: LPDDR2 SDRAM compliant to JEDEC JESD209-2 10 - Krzysztof Kozlowski <krzk@kernel.org> 15 - items: 16 - enum: 17 - elpida,ECB240ABACN 18 - elpida,B8132B2PB-6D-F [all …]
|
D | jedec,lpddr3-timings.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/memory-controllers/ddr/jedec,lpddr3-timings.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: LPDDR3 SDRAM AC timing parameters for a given speed-bin 10 - Krzysztof Kozlowski <krzk@kernel.org> 14 const: jedec,lpddr3-timings 19 Maximum DDR clock frequency for the speed-bin, in Hz. 20 Property is deprecated, use max-freq. 23 max-freq: [all …]
|
D | jedec,lpddr3.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/memory-controllers/ddr/jedec,lpddr3.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: LPDDR3 SDRAM compliant to JEDEC JESD209-3 10 - Krzysztof Kozlowski <krzk@kernel.org> 15 - enum: 16 - samsung,K3QF2F20DB 17 - const: jedec,lpddr3 19 '#address-cells': [all …]
|
/Linux-v6.1/drivers/pinctrl/meson/ |
D | pinctrl-meson-axg-pmx.c | 2 * Second generation of pinmux driver for Amlogic Meson-AXG SoC. 10 * SPDX-License-Identifier: (GPL-2.0+ or MIT) 15 * Meson-AXG SoC and later series, which use 4-width continuous 26 #include "pinctrl-meson.h" 27 #include "pinctrl-meson-axg-pmx.h" 31 struct meson_pmx_bank **bank) in meson_axg_pmx_get_bank() argument 34 struct meson_axg_pmx_data *pmx = pc->data->pmx_data; in meson_axg_pmx_get_bank() 36 for (i = 0; i < pmx->num_pmx_banks; i++) in meson_axg_pmx_get_bank() 37 if (pin >= pmx->pmx_banks[i].first && in meson_axg_pmx_get_bank() 38 pin <= pmx->pmx_banks[i].last) { in meson_axg_pmx_get_bank() [all …]
|