/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) 25 mpp1 1 gpo, nand(io3), spi(mosi) 26 mpp2 2 gpo, nand(io4), spi(sck) [all …]
|
H A D | pinctrl-mcp23s08.txt | 2 8-/16-bit I/O expander with serial interface (I2C/SPI) 5 - compatible : Should be 6 - "mcp,mcp23s08" (DEPRECATED) for 8 GPIO SPI version 7 - "mcp,mcp23s17" (DEPRECATED) for 16 GPIO SPI version 8 - "mcp,mcp23008" (DEPRECATED) for 8 GPIO I2C version or 9 - "mcp,mcp23017" (DEPRECATED) for 16 GPIO I2C version of the chip 11 - "microchip,mcp23s08" for 8 GPIO SPI version 12 - "microchip,mcp23s17" for 16 GPIO SPI version 13 - "microchip,mcp23s18" for 16 GPIO SPI version 14 - "microchip,mcp23008" for 8 GPIO I2C version or [all …]
|
/openbmc/u-boot/doc/device-tree-bindings/spi/ |
H A D | soft-spi.txt | 1 Soft SPI 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 5 performance will typically be much lower than a real SPI bus. 7 The soft SPI node requires the following properties: 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) [all …]
|
/openbmc/linux/drivers/gpio/ |
H A D | gpio-pisosr.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2015-2023 Texas Instruments Incorporated - https://www.ti.com/ 10 #include <linux/gpio/consumer.h> 11 #include <linux/gpio/driver.h> 14 #include <linux/spi/spi.h> 19 * struct pisosr_gpio - GPIO driver data 20 * @chip: GPIO controller chip 21 * @spi: SPI device pointer 24 * @load_gpio: GPIO pin used to load input into device 29 struct spi_device *spi; member [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/spi/ |
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 …]
|
H A D | brcm,bcm2835-aux-spi.txt | 3 The BCM2835 contains two forms of SPI master controller, one known simply as 4 SPI0, and the other known as the "Universal SPI Master"; part of the 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>; [all …]
|
/openbmc/linux/drivers/pinctrl/ |
H A D | pinctrl-xway.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * linux/drivers/pinctrl/pinmux-xway.c 4 * based on linux/drivers/pinctrl/pinmux-pxa910.c 11 #include <linux/gpio/driver.h> 21 #include "pinctrl-lantiq.h" 110 /* --------- ase related code --------- */ 115 MFP_XWAY(GPIO0, GPIO, EXIN, MII, TDM), 116 MFP_XWAY(GPIO1, GPIO, STP, DFE, EBU), 117 MFP_XWAY(GPIO2, GPIO, STP, DFE, EPHY), 118 MFP_XWAY(GPIO3, GPIO, STP, EPHY, EBU), [all …]
|
/openbmc/openbmc/meta-facebook/meta-tiogapass/recipes-phosphor/flash/phosphor-software-manager/ |
H A D | bios-update | 3 set -e 5 POWER_CMD="/usr/sbin/power-util mb" 7 GPIO=389 15 SPI_DEV="1e630000.spi" 16 SPI_PATH="/sys/bus/platform/drivers/aspeed-smc" 20 echo "switch bios GPIO to bmc" 21 if [ ! -d /sys/class/gpio/gpio$GPIO ]; then 22 cd /sys/class/gpio 23 echo $GPIO > "export" 24 cd gpio$GPIO [all …]
|
/openbmc/openbmc/meta-facebook/meta-harma/recipes-phosphor/flash/phosphor-software-manager/ |
H A D | bios-update | 3 # shellcheck source=meta-facebook/recipes-fb/obmc_functions/files/fb-common-functions 4 source /usr/libexec/fb-common-functions 5 # shellcheck source=meta-facebook/meta-harma/recipes-phosphor/state/phosphor-state-manager/power-cmd 6 source /usr/libexec/phosphor-state-manager/power-cmd 10 # SPI Get Link name 11 SPI_DEV=$(find /sys/bus/spi/devices/ -type l -exec sh -c 'readlink "$1" | grep -q "1e631000.spi" &&… 12 SPI_PATH="/sys/bus/spi/drivers/spi-nor" 16 echo "switch bios GPIO to bmc" 17 # bmc-spi-mux-select-0: 1:BMC / 0:CPU 18 set_gpio bmc-spi-mux-select-0 1 [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/display/panel/ |
H A D | samsung,lms397kf04.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 13 - Linus Walleij <linus.walleij@linaro.org> 16 - $ref: panel-common.yaml# 17 - $ref: /schemas/spi/spi-peripheral-props.yaml# 25 reset-gpios: true 27 vci-supply: 31 vccio-supply: 37 spi-cpha: true [all …]
|
H A D | samsung,s6d27a1.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 13 - Markuss Broks <markuss.broks@gmail.com> 16 - $ref: panel-common.yaml# 17 - $ref: /schemas/spi/spi-peripheral-props.yaml# 32 reset-gpios: true 34 vci-supply: 38 vccio-supply: 44 spi-cpha: true [all …]
|
H A D | samsung,lms380kf01.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 14 - Linus Walleij <linus.walleij@linaro.org> 17 - $ref: panel-common.yaml# 18 - $ref: /schemas/spi/spi-peripheral-props.yaml# 33 reset-gpios: true 35 vci-supply: 39 vccio-supply: 45 spi-cpha: true [all …]
|
/openbmc/u-boot/board/renesas/sh7752evb/ |
H A D | sh7752evb.c | 1 // SPDX-License-Identifier: GPL-2.0+ 12 #include <spi.h> 24 struct gpio_regs *gpio = GPIO_BASE; in init_gpio() local 27 /* GPIO */ in init_gpio() 28 writew(0x0000, &gpio->pacr); /* GETHER */ in init_gpio() 29 writew(0x0001, &gpio->pbcr); /* INTC */ in init_gpio() 30 writew(0x0000, &gpio->pccr); /* PWMU, INTC */ in init_gpio() 31 writew(0xeaff, &gpio->pecr); /* GPIO */ in init_gpio() 32 writew(0x0000, &gpio->pfcr); /* WDT */ in init_gpio() 33 writew(0x0000, &gpio->phcr); /* SPI1 */ in init_gpio() [all …]
|
/openbmc/u-boot/board/renesas/sh7753evb/ |
H A D | sh7753evb.c | 1 // SPDX-License-Identifier: GPL-2.0+ 12 #include <spi.h> 24 struct gpio_regs *gpio = GPIO_BASE; in init_gpio() local 27 /* GPIO */ in init_gpio() 28 writew(0x0000, &gpio->pacr); /* GETHER */ in init_gpio() 29 writew(0x0001, &gpio->pbcr); /* INTC */ in init_gpio() 30 writew(0x0000, &gpio->pccr); /* PWMU, INTC */ in init_gpio() 31 writew(0x0000, &gpio->pdcr); /* SPI0 */ in init_gpio() 32 writew(0xeaff, &gpio->pecr); /* GPIO */ in init_gpio() 33 writew(0x0000, &gpio->pfcr); /* WDT */ in init_gpio() [all …]
|
/openbmc/openbmc/meta-ampere/meta-mitchell/recipes-ampere/platform/ampere-utils/ |
H A D | ampere_flash_bios.sh | 8 # $device_sellect : 1 - Host Main SPI Nor 9 # 2 - Host Second SPI Nor 14 # BMC_GPIOW6_SPI0_PROGRAM_SEL (GPIO 182): 1 => BMC owns SPI bus for upgrading 15 # 0 => HOST owns SPI bus for upgrading 17 # BMC_GPIOW7_SPI0_BACKUP_SEL (GPIO 183) : 1 => to switch SPI_CS0_L to primary SPI Nor device 18 # 0 => to switch SPI_CS0_L to second SPI Nor device 26 HOST_MTD=$(< /proc/mtd grep "pnor" | sed -n 's/^\(.*\):.*/\1/p') 27 if [ -n "$HOST_MTD" ]; 29 echo 1e630000.spi > /sys/bus/platform/drivers/spi-aspeed-smc/unbind 32 echo 1e630000.spi > /sys/bus/platform/drivers/spi-aspeed-smc/bind [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/net/nfc/ |
H A D | marvell,nci.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Krzysztof Kozlowski <krzk@kernel.org> 15 - marvell,nfc-i2c 16 - marvell,nfc-spi 17 - marvell,nfc-uart 19 hci-muxed: 30 reset-n-io: 31 $ref: /schemas/types.yaml#/definitions/phandle-array [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/mmc/ |
H A D | mmc-spi-slot.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/mmc/mmc-spi-slot.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: MMC/SD/SDIO slot directly connected to a SPI bus 10 - Ulf Hansson <ulf.hansson@linaro.org> 13 - $ref: mmc-controller.yaml 14 - $ref: /schemas/spi/spi-peripheral-props.yaml 17 The extra properties used by an mmc connected via SPI. 21 const: mmc-spi-slot [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/gpio/ |
H A D | gpio-pisosr.txt | 1 Generic Parallel-in/Serial-out Shift Register GPIO Driver 3 This binding describes generic parallel-in/serial-out shift register 5 SN74165 serial-out shift registers and the SN65HVS88x series of 9 - compatible : Should be "pisosr-gpio". 10 - gpio-controller : Marks the device node as a GPIO controller. 11 - #gpio-cells : Should be two. For consumer use see gpio.txt. 14 - ngpios : Number of used GPIO lines (0..n-1), default is 8. 15 - load-gpios : GPIO pin specifier attached to load enable, this 19 For other required and optional properties of SPI slave 20 nodes please refer to ../spi/spi-bus.txt. [all …]
|
/openbmc/linux/drivers/spi/ |
H A D | spi-gpio.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * SPI host driver using generic bitbanged GPIO 11 #include <linux/gpio/consumer.h> 14 #include <linux/spi/spi.h> 15 #include <linux/spi/spi_bitbang.h> 16 #include <linux/spi/spi_gpio.h> 20 * This bitbanging SPI host driver should help make systems usable 21 * when a native hardware SPI engine is not available, perhaps because 25 * platform_device->driver_data ... points to spi_gpio 27 * spi->controller_state ... reserved for bitbang framework code [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/net/wireless/ |
H A D | silabs,wfx.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Jérôme Pouiller <jerome.pouiller@silabs.com> 16 https://www.silabs.com/documents/public/data-sheets/wf200-datasheet.pdf 18 The WF200 can be connected via SPI or via SDIO. 25 It is recommended to declare a mmc-pwrseq on SDIO host above WFx. Without 26 it, you may encounter issues during reboot. The mmc-pwrseq should be 27 compatible with mmc-pwrseq-simple. Please consult 28 Documentation/devicetree/bindings/mmc/mmc-pwrseq-simple.yaml for more [all …]
|
/openbmc/openbmc/meta-ampere/meta-jefferson/recipes-ampere/platform/ampere-utils/ |
H A D | ampere_flash_bios.sh | 8 # $device_sellect : 1 - Host Main SPI Nor 9 # 2 - Host Second SPI Nor 14 # BMC_GPIOW6_SPI0_PROGRAM_SEL (GPIO 182): 1 => BMC owns SPI bus for upgrading 15 # 0 => HOST owns SPI bus for upgrading 17 # BMC_GPIOW7_SPI0_BACKUP_SEL (GPIO 183) : 0 => to switch SPI0_CS0_FL1_L to secondary SPI Nor d… 18 # 1 => to switch SPI0_CS0_FL0_L to primary SPI Nor dev… 25 HOST_MTD=$(< /proc/mtd grep "pnor" | sed -n 's/^\(.*\):.*/\1/p') 26 if [ -n "$HOST_MTD" ]; 28 echo 1e630000.spi > /sys/bus/platform/drivers/spi-aspeed-smc/unbind 31 echo 1e630000.spi > /sys/bus/platform/drivers/spi-aspeed-smc/bind [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/sound/ |
H A D | renesas,idt821034.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Herve Codina <herve.codina@bootlin.com> 16 The time-slots used by the codec must be set and so, the properties 17 'dai-tdm-slot-num', 'dai-tdm-slot-width', 'dai-tdm-slot-tx-mask' and 18 'dai-tdm-slot-rx-mask' must be present in the ALSA sound card node for 19 sub-nodes that involve the codec. The codec uses one 8bit time-slot per 21 'dai-tdm-tdm-slot-with' must be set to 8. 26 - $ref: /schemas/spi/spi-peripheral-props.yaml# [all …]
|
H A D | infineon,peb2466.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Herve Codina <herve.codina@bootlin.com> 13 The Infineon PEB2466 codec is a programmable DSP-based four channels codec 16 The time-slots used by the codec must be set and so, the properties 17 'dai-tdm-slot-num', 'dai-tdm-slot-width', 'dai-tdm-slot-tx-mask' and 18 'dai-tdm-slot-rx-mask' must be present in the sound card node for sub-nodes 19 that involve the codec. The codec uses one 8bit time-slot per channel. 20 'dai-tdm-tdm-slot-with' must be set to 8. [all …]
|
/openbmc/linux/drivers/video/fbdev/omap2/omapfb/displays/ |
H A D | panel-lgphilips-lb035q02.c | 1 // SPDX-License-Identifier: GPL-2.0-only 12 #include <linux/spi/spi.h> 14 #include <linux/gpio/consumer.h> 43 struct spi_device *spi; member 54 static int lb035q02_write_reg(struct spi_device *spi, u8 reg, u16 val) in lb035q02_write_reg() argument 82 return spi_sync(spi, &msg); in lb035q02_write_reg() 85 static void init_lb035q02_panel(struct spi_device *spi) in init_lb035q02_panel() argument 88 lb035q02_write_reg(spi, 0x01, 0x6300); in init_lb035q02_panel() 89 lb035q02_write_reg(spi, 0x02, 0x0200); in init_lb035q02_panel() 90 lb035q02_write_reg(spi, 0x03, 0x0177); in init_lb035q02_panel() [all …]
|
/openbmc/linux/Documentation/driver-api/gpio/ |
H A D | drivers-on-gpio.rst | 2 Subsystem drivers using GPIO 5 Note that standard kernel drivers exist for common GPIO tasks and will provide 6 the right in-kernel and userspace APIs/ABIs for the job, and that these 10 - leds-gpio: drivers/leds/leds-gpio.c will handle LEDs connected to GPIO 13 - ledtrig-gpio: drivers/leds/trigger/ledtrig-gpio.c will provide a LED trigger, 14 i.e. a LED will turn on/off in response to a GPIO line going high or low 15 (and that LED may in turn use the leds-gpio as per above). 17 - gpio-keys: drivers/input/keyboard/gpio_keys.c is used when your GPIO line 20 - gpio-keys-polled: drivers/input/keyboard/gpio_keys_polled.c is used when your 21 GPIO line cannot generate interrupts, so it needs to be periodically polled [all …]
|