/Linux-v5.15/Documentation/devicetree/bindings/gpio/ |
D | spear_spics.txt | 1 === ST Microelectronics SPEAr SPI CS Driver === 13 the control of this interface as gpio. 17 * compatible: should be defined as "st,spear-spics-gpio" 19 * st-spics,peripcfg-reg: peripheral configuration register offset 20 * st-spics,sw-enable-bit: bit offset to enable sw control 21 * st-spics,cs-value-bit: bit offset to drive chipselect low or high 22 * st-spics,cs-enable-mask: chip select number bit mask 23 * st-spics,cs-enable-shift: chip select number program offset 24 * gpio-controller: Marks the device node as gpio controller 25 * #gpio-cells: should be 1 and will mention chip select number [all …]
|
/Linux-v5.15/Documentation/devicetree/bindings/spi/ |
D | brcm,bcm2835-aux-spi.txt | 8 - compatible: Should be "brcm,bcm2835-aux-spi". 9 - reg: Should contain register location and length for the spi block 10 - interrupts: Should contain shared interrupt of the aux block 11 - clocks: The clock feeding the SPI controller - needs to 15 - cs-gpios: the cs-gpios (native cs is NOT supported) 16 see also spi-bus.txt 21 compatible = "brcm,bcm2835-aux-spi"; 25 #address-cells = <1>; 26 #size-cells = <0>; 27 cs-gpios = <&gpio 18>, <&gpio 17>, <&gpio 16>; [all …]
|
D | spi-controller.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/spi/spi-controller.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Mark Brown <broonie@kernel.org> 20 pattern: "^spi(@.*|-[0-9a-f])*$" 22 "#address-cells": 25 "#size-cells": 28 cs-gpios: 32 increased automatically with max(cs-gpios, hardware chip selects). [all …]
|
D | spi-davinci.txt | 4 Keystone 2 - https://www.ti.com/lit/ug/sprugp2a/sprugp2a.pdf 5 dm644x - https://www.ti.com/lit/ug/sprue32a/sprue32a.pdf 6 OMAP-L138/da830 - http://www.ti.com/lit/ug/spruh77a/spruh77a.pdf 9 - #address-cells: number of cells required to define a chip select 11 - #size-cells: should be zero. 12 - compatible: 13 - "ti,dm6441-spi" for SPI used similar to that on DM644x SoC family 14 - "ti,da830-spi" for SPI used similar to that on DA8xx SoC family 15 - "ti,keystone-spi" for SPI used similar to that on Keystone2 SoC 17 - reg: Offset and length of SPI controller register space [all …]
|
D | spi-gpio.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/spi/spi-gpio.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: SPI-GPIO devicetree bindings 10 - Rob Herring <robh@kernel.org> 13 This represents a group of 3-n GPIO lines used for bit-banged SPI on 14 dedicated GPIO lines. 17 - $ref: "/schemas/spi/spi-controller.yaml#" 21 const: spi-gpio [all …]
|
D | spi-mux.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/spi/spi-mux.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 16 MOSI /--------------------------------+--------+--------+--------\ 17 MISO |/------------------------------+|-------+|-------+|-------\| 18 SCL ||/----------------------------+||------+||------+||------\|| 20 +------------+ ||| ||| ||| ||| 21 | SoC ||| | +-+++-+ +-+++-+ +-+++-+ +-+++-+ 23 | +--+++-+ | CS-X +------+\ +--+--+ +--+--+ +--+--+ +--+--+ [all …]
|
/Linux-v5.15/Documentation/devicetree/bindings/pinctrl/ |
D | marvell,kirkwood-pinctrl.txt | 3 Please refer to marvell,mvebu-pinctrl.txt in this directory for common binding 7 - compatible: "marvell,88f6180-pinctrl", 8 "marvell,88f6190-pinctrl", "marvell,88f6192-pinctrl", 9 "marvell,88f6281-pinctrl", "marvell,88f6282-pinctrl", 10 "marvell,98dx4122-pinctrl", "marvell,98dx1135-pinctrl" 11 - reg: register specifier of MPP registers 14 It also support the 88f6281-based variant in the 98dx412x Bobcat SoCs. 24 mpp0 0 gpio, nand(io2), spi(cs) 28 mpp4 4 gpio, nand(io6), uart0(rxd), ptp(clk) 31 mpp7 7 gpo, pex(rsto), spi(cs), ptp(trig) [all …]
|
/Linux-v5.15/drivers/gpio/ |
D | gpiolib-of.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * OF helpers for the GPIO API 5 * Copyright (c) 2007-2008 MontaVista Software, Inc. 15 #include <linux/gpio/consumer.h> 21 #include <linux/gpio/machine.h> 24 #include "gpiolib-of.h" 27 * of_gpio_spi_cs_get_count() - special GPIO counting for SPI 29 * @con_id: Function within the GPIO consumer 31 * Some elder GPIO controllers need special quirks. Currently we handle 32 * the Freescale and PPC GPIO controller with bindings that doesn't use the [all …]
|
D | gpio-spear-spics.c | 13 #include <linux/gpio/driver.h> 24 * Provision is available on some SPEAr SoCs to control ARM PL022 spi cs 34 * struct spear_spics - represents spi chip select control 41 * @use_count: use count of a spi controller cs lines 57 /* gpio framework specific routines */ 60 return -ENXIO; in spics_get_value() 69 tmp = readl_relaxed(spics->base + spics->perip_cfg); in spics_set_value() 70 if (spics->last_off != offset) { in spics_set_value() 71 spics->last_off = offset; in spics_set_value() 72 tmp &= ~(spics->cs_enable_mask << spics->cs_enable_shift); in spics_set_value() [all …]
|
/Linux-v5.15/arch/mips/netlogic/xlr/ |
D | platform-flash.c | 28 #include <asm/netlogic/xlr/gpio.h> 72 .name = "physmap-flash", 88 int cs; member 99 FLASH_NAND_CLE(nand_priv.cs), cmd); in xlr_nand_ctrl() 102 FLASH_NAND_ALE(nand_priv.cs), cmd); in xlr_nand_ctrl() 125 .id = -1, 143 uint64_t flash_map_base, int cs, struct resource *res) in setup_flash_resource() argument 147 base = nlm_read_reg(flash_mmio, FLASH_CSBASE_ADDR(cs)); in setup_flash_resource() 148 mask = nlm_read_reg(flash_mmio, FLASH_CSADDR_MASK(cs)); in setup_flash_resource() 150 res->start = flash_map_base + ((unsigned long)base << 16); in setup_flash_resource() [all …]
|
/Linux-v5.15/drivers/mtd/nand/raw/atmel/ |
D | nand-controller.c | 1 // SPDX-License-Identifier: GPL-2.0 6 * Author: Boris Brezillon <boris.brezillon@free-electrons.com> 23 * Derived from Das U-Boot source code 24 * (u-boot-1.1.5/board/atmel/at91sam9263ek/nand.c) 38 * - atmel_nand_: all generic structures/functions 39 * - atmel_smc_nand_: all structures/functions specific to the SMC interface 41 * - atmel_hsmc_nand_: all structures/functions specific to the HSMC interface 43 * - atmel_nfc_: all structures/functions used to manipulate the NFC sub-block 45 * - <soc>_nand_: all SoC specific structures/functions 49 #include <linux/dma-mapping.h> [all …]
|
/Linux-v5.15/arch/riscv/boot/dts/canaan/ |
D | sipeed_maix_dock.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Copyright (C) 2019-20 Sean Anderson <seanga2@gmail.com> 7 /dts-v1/; 11 #include <dt-bindings/gpio/gpio.h> 12 #include <dt-bindings/input/input.h> 13 #include <dt-bindings/leds/common.h> 17 compatible = "sipeed,maix-dock-m1", "sipeed,maix-dock-m1w", 18 "canaan,kendryte-k210"; 22 stdout-path = "serial0:115200n8"; 25 gpio-leds { [all …]
|
D | canaan_kd233.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Copyright (C) 2019-20 Sean Anderson <seanga2@gmail.com> 7 /dts-v1/; 11 #include <dt-bindings/gpio/gpio.h> 12 #include <dt-bindings/input/input.h> 16 compatible = "canaan,kendryte-kd233", "canaan,kendryte-k210"; 20 stdout-path = "serial0:115200n8"; 23 gpio-leds { 24 compatible = "gpio-leds"; 35 gpio-keys { [all …]
|
D | sipeed_maix_bit.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Copyright (C) 2019-20 Sean Anderson <seanga2@gmail.com> 7 /dts-v1/; 11 #include <dt-bindings/gpio/gpio.h> 12 #include <dt-bindings/input/input.h> 13 #include <dt-bindings/leds/common.h> 17 compatible = "sipeed,maix-bit", "sipeed,maix-bitm", 18 "canaan,kendryte-k210"; 22 stdout-path = "serial0:115200n8"; 25 gpio-leds { [all …]
|
D | sipeed_maix_go.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Copyright (C) 2019-20 Sean Anderson <seanga2@gmail.com> 7 /dts-v1/; 11 #include <dt-bindings/gpio/gpio.h> 12 #include <dt-bindings/input/input.h> 13 #include <dt-bindings/leds/common.h> 17 compatible = "sipeed,maix-go", "canaan,kendryte-k210"; 21 stdout-path = "serial0:115200n8"; 24 gpio-leds { 25 compatible = "gpio-leds"; [all …]
|
D | sipeed_maixduino.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Copyright (C) 2019-20 Sean Anderson <seanga2@gmail.com> 7 /dts-v1/; 11 #include <dt-bindings/gpio/gpio.h> 12 #include <dt-bindings/input/input.h> 16 compatible = "sipeed,maixduino", "canaan,kendryte-k210"; 20 stdout-path = "serial0:115200n8"; 23 gpio-keys { 24 compatible = "gpio-keys"; 33 vcc_3v3: regulator-3v3 { [all …]
|
/Linux-v5.15/Documentation/devicetree/bindings/memory-controllers/ |
D | omap-gpmc.txt | 7 - compatible: Should be set to one of the following: 9 ti,omap2420-gpmc (omap2420) 10 ti,omap2430-gpmc (omap2430) 11 ti,omap3430-gpmc (omap3430 & omap3630) 12 ti,omap4430-gpmc (omap4430 & omap4460 & omap543x) 13 ti,am3352-gpmc (am335x devices) 15 - reg: A resource specifier for the register space 17 - ti,hwmods: Should be set to "ti,gpmc" until the DT transition is 19 - #address-cells: Must be set to 2 to allow memory address translation 20 - #size-cells: Must be set to 1 to allow CS address passing [all …]
|
/Linux-v5.15/arch/arm/boot/dts/ |
D | stm32mp15xx-dhcom-som.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) 3 * Copyright (C) 2019-2020 Marek Vasut <marex@denx.de> 6 #include "stm32mp15-pinctrl.dtsi" 7 #include "stm32mp15xxaa-pinctrl.dtsi" 8 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/mfd/st,stpmic1.h> 24 reserved-memory { 25 #address-cells = <1>; 26 #size-cells = <1>; 30 compatible = "shared-dma-pool"; [all …]
|
D | imx6qdl-rex.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only 8 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/input/input.h> 13 stdout-path = &uart1; 17 compatible = "simple-bus"; 18 #address-cells = <1>; 19 #size-cells = <0>; 22 compatible = "regulator-fixed"; 24 regulator-name = "3P3V"; 25 regulator-min-microvolt = <3300000>; [all …]
|
/Linux-v5.15/arch/m68k/include/asm/ |
D | m525xsim.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 5 * m525xsim.h -- ColdFire 525x System Integration Module support. 55 #define MCFSIM_CSAR0 (MCF_MBAR + 0x80) /* CS 0 Address reg */ 56 #define MCFSIM_CSMR0 (MCF_MBAR + 0x84) /* CS 0 Mask reg */ 57 #define MCFSIM_CSCR0 (MCF_MBAR + 0x8a) /* CS 0 Control reg */ 58 #define MCFSIM_CSAR1 (MCF_MBAR + 0x8c) /* CS 1 Address reg */ 59 #define MCFSIM_CSMR1 (MCF_MBAR + 0x90) /* CS 1 Mask reg */ 60 #define MCFSIM_CSCR1 (MCF_MBAR + 0x96) /* CS 1 Control reg */ 61 #define MCFSIM_CSAR2 (MCF_MBAR + 0x98) /* CS 2 Address reg */ 62 #define MCFSIM_CSMR2 (MCF_MBAR + 0x9c) /* CS 2 Mask reg */ [all …]
|
/Linux-v5.15/arch/arm64/boot/dts/qcom/ |
D | msm8916-pins.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2013-2015, The Linux Foundation. All rights reserved. 8 blsp1_uart1_default: blsp1-uart1-default { 13 drive-strength = <16>; 14 bias-disable; 17 blsp1_uart1_sleep: blsp1-uart1-sleep { 19 function = "gpio"; 21 drive-strength = <2>; 22 bias-pull-down; 25 blsp1_uart2_default: blsp1-uart2-default { [all …]
|
/Linux-v5.15/arch/mips/boot/dts/cavium-octeon/ |
D | octeon_3xxx.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 4 /dts-v1/; 7 compatible = "cavium,octeon-3860"; 8 #address-cells = <2>; 9 #size-cells = <2>; 10 interrupt-parent = <&ciu>; 13 compatible = "simple-bus"; 14 #address-cells = <2>; 15 #size-cells = <2>; 18 ciu: interrupt-controller@1070000000000 { [all …]
|
/Linux-v5.15/drivers/spi/ |
D | spi-gpio.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * SPI master driver using generic bitbanged GPIO 11 #include <linux/gpio/consumer.h> 26 * platform_device->driver_data ... points to spi_gpio 28 * spi->controller_state ... reserved for bitbang framework code 30 * spi->master->dev.driver_data ... points to spi_gpio->bitbang 41 /*----------------------------------------------------------------------*/ 44 * Because the overhead of going through four GPIO procedure calls 48 * - The slow generic way: set up platform_data to hold the GPIO 52 * - The quicker inlined way: only helps with platform GPIO code [all …]
|
D | spi-bcm2835aux.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * but only uses the gpio type chipselects 8 * Based on: spi-bcm2835.c 35 "time in us to run a transfer in polling mode - if zero no polling is used\n"); 115 snprintf(name, sizeof(name), "spi-bcm2835aux-%s", dname); in bcm2835aux_debugfs_create() 119 bs->debugfs_dir = dir; in bcm2835aux_debugfs_create() 123 &bs->count_transfer_polling); in bcm2835aux_debugfs_create() 125 &bs->count_transfer_irq); in bcm2835aux_debugfs_create() 127 &bs->count_transfer_irq_after_poll); in bcm2835aux_debugfs_create() 132 debugfs_remove_recursive(bs->debugfs_dir); in bcm2835aux_debugfs_remove() [all …]
|
D | spi-bitbang.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 21 /*----------------------------------------------------------------------*/ 24 * FIRST PART (OPTIONAL): word-at-a-time spi_transfer support. 25 * Use this for GPIO or shift-register level hardware APIs. 27 * spi_bitbang_cs is in spi_device->controller_state, which is unavailable 29 * used, though maybe they're called from controller-aware code. 31 * chipselect() and friends may use spi_device->controller_data and 35 * NOTE: SPI controller pins can often be used as GPIO pins instead, 65 unsigned bits = t->bits_per_word; in bitbang_txrx_8() 66 unsigned count = t->len; in bitbang_txrx_8() [all …]
|