/openbmc/linux/Documentation/devicetree/bindings/gpio/ |
H A 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 …]
|
/openbmc/u-boot/drivers/spi/ |
H A D | mxc_spi.c | 1 // SPDX-License-Identifier: GPL-2.0+ 12 #include <asm/gpio.h> 13 #include <asm/arch/imx-regs.h> 15 #include <asm/mach-imx/spi.h> 27 __weak int board_spi_cs_gpio(unsigned bus, unsigned cs) in board_spi_cs_gpio() argument 29 return -1; in board_spi_cs_gpio() 48 int gpio; member 63 dm_gpio_set_value(&mxcs->ss, 1); in mxc_spi_cs_activate() 65 if (mxcs->gpio > 0) in mxc_spi_cs_activate() 66 gpio_set_value(mxcs->gpio, mxcs->ss_pol); in mxc_spi_cs_activate() [all …]
|
/openbmc/u-boot/doc/device-tree-bindings/spi/ |
H A D | soft-spi.txt | 3 The soft SPI bus implementation allows the use of GPIO pins to simulate a 4 SPI bus. No SPI host is required for this to work. The down-side is that the 10 compatible: "spi-gpio" 11 cs-gpios: GPIOs to use for SPI chip select (output) 12 gpio-sck: GPIO to use for SPI clock (output) 14 gpio-mosi: GPIO to use for SPI MOSI line (output) 15 gpio-miso: GPIO to use for SPI MISO line (input) 18 spi-delay-us: Number of microseconds of delay between each CS transition 20 The GPIOs should be specified as required by the GPIO controller referenced. 22 typically holds the GPIO number. [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/spi/ |
H A 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 …]
|
H A 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-9]|[1-9][0-9]+))?$" 22 "#address-cells": 25 "#size-cells": 28 cs-gpios: 32 increased automatically with max(cs-gpios, hardware chip selects). [all …]
|
H A 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 …]
|
H A 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 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 …]
|
/openbmc/linux/Documentation/devicetree/bindings/pinctrl/ |
H A 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 …]
|
/openbmc/u-boot/board/compulab/common/ |
H A D | omap3_smc911x.c | 1 // SPDX-License-Identifier: GPL-2.0+ 16 #include <asm/gpio.h> 30 static void cl_omap3_smc911x_setup_net_chip_gmpc(int cs, u32 base_addr) in cl_omap3_smc911x_setup_net_chip_gmpc() argument 35 &gpmc_cfg->cs[cs], base_addr, GPMC_SIZE_16M); in cl_omap3_smc911x_setup_net_chip_gmpc() 38 writew(readw(&ctrl_base->gpmc_nwe) | 0x0E00, &ctrl_base->gpmc_nwe); in cl_omap3_smc911x_setup_net_chip_gmpc() 41 writew(readw(&ctrl_base->gpmc_noe) | 0x0E00, &ctrl_base->gpmc_noe); in cl_omap3_smc911x_setup_net_chip_gmpc() 44 writew(readw(&ctrl_base->gpmc_nadv_ale) | 0x0E00, in cl_omap3_smc911x_setup_net_chip_gmpc() 45 &ctrl_base->gpmc_nadv_ale); in cl_omap3_smc911x_setup_net_chip_gmpc() 49 static int cl_omap3_smc911x_reset_net_chip(int gpio) in cl_omap3_smc911x_reset_net_chip() argument 53 if (!gpio_is_valid(gpio)) in cl_omap3_smc911x_reset_net_chip() [all …]
|
/openbmc/linux/arch/arm64/boot/dts/exynos/ |
H A D | exynosautov9-pinctrl.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 3 * Samsung's ExynosAutov9 SoC pin-mux and pin-config device tree source 7 * Samsung's ExynosAutov9 SoC pin-mux and pin-config options are listed as 11 #include "exynos-pinctrl.h" 14 gpa0: gpa0-gpio-bank { 15 gpio-controller; 16 #gpio-cells = <2>; 17 interrupt-controller; 18 #interrupt-cells = <2>; 19 interrupt-parent = <&gic>; [all …]
|
/openbmc/linux/drivers/mtd/nand/raw/atmel/ |
H A 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 …]
|
/openbmc/linux/drivers/gpio/ |
H A 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. 22 #include <linux/gpio/consumer.h> 23 #include <linux/gpio/machine.h> 26 #include "gpiolib-of.h" 29 * This is Linux-specific flags. By default controllers' and Linux' mapping 30 * match, but GPIO controllers are free to translate their own flags to 31 * Linux-specific in their .xlate callback. Though, 1:1 mapping is recommended. 44 * of_gpio_named_count() - Count GPIOs for a device [all …]
|
/openbmc/linux/arch/riscv/boot/dts/canaan/ |
H A 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 …]
|
H A 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 …]
|
H A 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 …]
|
H A 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 …]
|
/openbmc/linux/arch/arm/boot/dts/st/ |
H A D | stm32mp15xx-dhcor-drc-compact.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) 21 stdout-path = "serial0:115200n8"; 25 compatible = "gpio-leds"; 29 default-state = "off"; 35 default-state = "off"; 40 compatible = "regulator-fixed"; 41 regulator-name = "vio"; 42 regulator-min-microvolt = <3300000>; 43 regulator-max-microvolt = <3300000>; 44 gpio = <&gpioh 2 GPIO_ACTIVE_LOW>; [all …]
|
H A 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> 23 stdout-path = "serial0:115200n8"; 31 reserved-memory { 32 #address-cells = <1>; 33 #size-cells = <1>; [all …]
|
/openbmc/u-boot/arch/arm/dts/ |
H A D | keystone-k2l.dtsi | 13 #address-cells = <1>; 14 #size-cells = <0>; 16 interrupt-parent = <&gic>; 19 compatible = "arm,cortex-a15"; 25 compatible = "arm,cortex-a15"; 32 /include/ "keystone-k2l-clocks.dtsi" 36 current-speed = <115200>; 37 reg-shift = <2>; 38 reg-io-width = <4>; 46 current-speed = <115200>; [all …]
|
/openbmc/linux/arch/arm64/boot/dts/qcom/ |
H A D | sc7280-idp-ec-h1.dtsi | 1 // SPDX-License-Identifier: BSD-3-Clause 11 pinctrl-0 = <&qup_spi10_data_clk>, <&qup_spi10_cs_gpio_init_high>, <&qup_spi10_cs_gpio>; 12 cs-gpios = <&tlmm 43 GPIO_ACTIVE_LOW>; 15 compatible = "google,cros-ec-spi"; 17 interrupt-parent = <&tlmm>; 19 pinctrl-names = "default"; 20 pinctrl-0 = <&ap_ec_int_l>; 21 spi-max-frequency = <3000000>; 24 compatible = "google,cros-ec-pwm"; 25 #pwm-cells = <1>; [all …]
|
/openbmc/u-boot/arch/m68k/cpu/mcf5227x/ |
H A D | cpu_init.c | 1 // SPDX-License-Identifier: GPL-2.0+ 4 * (C) Copyright 2000-2003 7 * (C) Copyright 2004-2007, 2012 Freescale Semiconductor, Inc. 8 * TsiChung Liew (Tsi-Chung.Liew@freescale.com) 28 gpio_t *gpio = (gpio_t *) MMAP_GPIO; in cpu_init_f() local 36 out_be32(&pll->psr, 0x12); in cpu_init_f() 38 out_be32(&scm1->mpr, 0x77777777); in cpu_init_f() 39 out_be32(&scm1->pacra, 0); in cpu_init_f() 40 out_be32(&scm1->pacrb, 0); in cpu_init_f() 41 out_be32(&scm1->pacrc, 0); in cpu_init_f() [all …]
|
/openbmc/linux/arch/m68k/include/asm/ |
H A 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 …]
|
/openbmc/u-boot/drivers/video/ |
H A D | hitachi_tx18d42vm_lcd.c | 1 // SPDX-License-Identifier: GPL-2.0+ 10 #include <asm/gpio.h> 18 static void lcd_panel_spi_write(int cs, int clk, int mosi, in lcd_panel_spi_write() argument 23 gpio_direction_output(cs, 0); in lcd_panel_spi_write() 26 offset = (bits - 1) - i; in lcd_panel_spi_write() 32 gpio_direction_output(cs, 1); in lcd_panel_spi_write() 48 int i, cs, clk, mosi, ret = 0; in hitachi_tx18d42vm_init() local 50 cs = name_to_gpio(CONFIG_VIDEO_LCD_SPI_CS); in hitachi_tx18d42vm_init() 54 if (cs == -1 || clk == -1 || mosi == 1) { in hitachi_tx18d42vm_init() 55 printf("Error tx18d42vm spi gpio config is invalid\n"); in hitachi_tx18d42vm_init() [all …]
|
/openbmc/linux/arch/mips/boot/dts/cavium-octeon/ |
H A 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 …]
|
/openbmc/linux/arch/arm/boot/dts/microchip/ |
H A D | at91-sama5d3_eds.dts | 1 // SPDX-License-Identifier: GPL-2.0+ OR MIT 3 * at91-sama5d3_eds.dts - Device Tree file for the SAMA5D3 Ethernet 10 /dts-v1/; 15 compatible = "microchip,sama5d3-eds", "atmel,sama5d36", 19 stdout-path = "serial0:115200n8"; 22 gpio-keys { 23 compatible = "gpio-keys"; 25 pinctrl-names = "default"; 26 pinctrl-0 = <&pinctrl_key_gpio>; 28 button-3 { [all …]
|