/openbmc/linux/Documentation/devicetree/bindings/spi/ |
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# 7 title: SPI Controller Common Properties 10 - Mark Brown <broonie@kernel.org> 13 SPI busses can be described with a node for the SPI controller device 14 and a set of child nodes for each SPI slave on the bus. The system SPI 15 controller may be described for use in SPI master mode or in SPI slave mode, 20 pattern: "^spi(@.*|-([0-9]|[1-9][0-9]+))?$" [all …]
|
H A D | spi-peripheral-props.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/spi/spi-peripheral-props.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Peripheral-specific properties for a SPI bus. 10 Many SPI controllers need to add properties to peripheral devices. They could 11 be common properties like spi-max-frequency, spi-cpha, etc. or they could be 13 need to be defined in the peripheral node because they are per-peripheral and 19 - Mark Brown <broonie@kernel.org> 27 - minimum: 0 [all …]
|
H A D | icpdas-lp8841-spi-rtc.txt | 1 * ICP DAS LP-8841 SPI Controller for RTC 3 ICP DAS LP-8841 contains a DS-1302 RTC. RTC is connected to an IO 4 memory register, which acts as an SPI master device. 6 The device uses the standard MicroWire half-duplex transfer timing. 13 - #address-cells: should be 1 15 - #size-cells: should be 0 17 - compatible: should be "icpdas,lp8841-spi-rtc" 19 - reg: should provide IO memory address 21 Requirements to SPI slave nodes: 23 - There can be only one slave device. [all …]
|
/openbmc/u-boot/doc/device-tree-bindings/spi/ |
H A D | spi-bus.txt | 1 SPI (Serial Peripheral Interface) busses 3 SPI busses can be described with a node for the SPI master device 4 and a set of child nodes for each SPI slave on the bus. For this 5 discussion, it is assumed that the system's SPI controller is in 6 SPI master mode. This binding does not describe SPI controllers 9 The SPI master node requires the following properties: 10 - #address-cells - number of cells required to define a chip select 11 address on the SPI bus. 12 - #size-cells - should be zero. 13 - compatible - name of SPI bus controller following generic names [all …]
|
/openbmc/u-boot/arch/sandbox/include/asm/ |
H A D | spi.h | 2 * Simulate a SPI port and clients (see README.sandbox for details) 4 * Copyright (c) 2011-2013 The Chromium OS Authors. 8 * Licensed under the GPL-2 or later. 17 * The interface between the SPI bus and the SPI client. The bus will 19 * points. These should be enough for the client to emulate the SPI 27 /* The CS has been "activated" -- we won't worry about low/high */ 29 /* The CS has been "deactivated" -- we won't worry about low/high */ 31 /* The client is rx-ing bytes from the bus, so it should tx some */ 36 * Extract the bus/cs from the spi spec and return the start of the spi 37 * client spec. If the bus/cs are invalid for the current config, then [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/rtc/ |
H A D | epson,rx6110.txt | 4 The Epson RX6110 can be used with SPI or I2C busses. The kind of 8 -------- 11 - compatible: should be: "epson,rx6110" 12 - reg : the I2C address of the device for I2C 21 SPI mode 22 -------- 25 - compatible: should be: "epson,rx6110" 26 - reg: chip select number 27 - spi-cs-high: RX6110 needs chipselect high 28 - spi-cpha: RX6110 works with SPI shifted clock phase [all …]
|
H A D | nxp,rtc-2123.txt | 1 NXP PCF2123 SPI Real Time Clock 4 - compatible: should be: "nxp,pcf2123" 6 - reg: should be the SPI slave chipselect address 9 - spi-cs-high: PCF2123 needs chipselect high 16 spi-cs-high;
|
H A D | maxim-ds1302.txt | 1 * Maxim/Dallas Semiconductor DS-1302 RTC 5 The device uses the standard MicroWire half-duplex transfer timing. 12 - compatible : Should be "maxim,ds1302" 14 Required SPI properties: 16 - reg : Should be address of the device chip select within 19 - spi-max-frequency : DS-1302 has 500 kHz if powered at 2.2V, 22 - spi-3wire : The device has a shared signal IN/OUT line. 24 - spi-lsb-first : DS-1302 requires least significant bit first 27 - spi-cs-high: DS-1302 has active high chip select line. This is 32 spi@901c { [all …]
|
/openbmc/linux/arch/arm64/boot/dts/qcom/ |
H A D | sc7280-idp-ec-h1.dtsi | 1 // SPDX-License-Identifier: BSD-3-Clause 3 * sc7280 EC/H1 over SPI (common between IDP2 and CRD) 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"; [all …]
|
/openbmc/linux/drivers/gpio/ |
H A D | gpiolib-of.c | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * Copyright (c) 2007-2008 MontaVista Software, Inc. 26 #include "gpiolib-of.h" 29 * This is Linux-specific flags. By default controllers' and Linux' mapping 31 * Linux-specific in their .xlate callback. Though, 1:1 mapping is recommended. 44 * of_gpio_named_count() - Count GPIOs for a device 51 * -EINVAL for an incorrectly formed gpios property, or 52 * -ENOENT for a missing gpios property 66 return of_count_phandle_with_args(np, propname, "#gpio-cells"); in of_gpio_named_count() 70 * of_gpio_spi_cs_get_count() - special GPIO counting for SPI [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/gpio/ |
H A D | spear_spics.txt | 1 === ST Microelectronics SPEAr SPI CS Driver === 4 Cell spi controller through its system registers, which otherwise remains under 7 desired by some of the device protocols above spi which expect (multiple) 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 [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 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 29 * spi->controller->dev.driver_data ... points to spi_gpio->bitbang [all …]
|
H A D | spi-ppc4xx.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * SPI_PPC4XX SPI controller driver. 9 * Based in part on drivers/spi/spi_s3c24xx.c 17 * The PPC4xx SPI controller has no FIFO so each sent/received byte will 18 * generate an interrupt to the CPU. This can cause high CPU utilization. 20 * during SPI transfers by setting max_speed_hz via the device tree. 33 #include <linux/spi/spi.h> 34 #include <linux/spi/spi_bitbang.h> 38 #include <asm/dcr-regs.h> 40 /* bits in mode register - bit 0 is MSb */ [all …]
|
H A D | spi-bcmbca-hsspi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Broadcom BCMBCA High Speed SPI Controller driver 5 * Copyright 2000-2010 Broadcom Corporation 6 * Copyright 2012-2013 Jonas Gorski <jonas.gorski@gmail.com> 7 * Copyright 2019-2022 Broadcom Ltd 17 #include <linux/dma-mapping.h> 20 #include <linux/spi/spi.h> 23 #include <linux/spi/spi-mem.h> 99 #define HSSPI_BUS_NUM 1 /* 0 is legacy SPI */ 132 return sprintf(buf, "%d\n", bs->wait_mode); in wait_mode_show() [all …]
|
H A D | spi-bitbang.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * polling/bitbanging SPI master controller driver utilities 15 #include <linux/spi/spi.h> 16 #include <linux/spi/spi_bitbang.h> 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 [all …]
|
H A D | spi-bcm63xx-hsspi.c | 2 * Broadcom BCM63XX High Speed SPI Controller driver 4 * Copyright 2000-2010 Broadcom Corporation 5 * Copyright 2012-2013 Jonas Gorski <jonas.gorski@gmail.com> 17 #include <linux/dma-mapping.h> 20 #include <linux/spi/spi.h> 23 #include <linux/spi/spi-mem.h> 24 #include <linux/mtd/spi-nor.h> 105 #define HSSPI_BUS_NUM 1 /* 0 is legacy SPI */ 114 * mode. If not, falls back to use the dummy cs workaround mode but limit the 124 if (bs->xfer_mode == HSSPI_XFER_MODE_AUTO) \ [all …]
|
H A D | spi-rockchip.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Author: Addy Ke <addy.ke@rock-chips.com> 14 #include <linux/spi/spi.h> 18 #define DRIVER_NAME "rockchip-spi" 25 /* SPI register offsets */ 62 /* ss_n be high for half sclk_out cycles */ 64 /* ss_n be high for one sclk_out cycle */ 154 /* sclk_out: spi host internal logic in rk3x can support 50Mhz */ 158 * SPI_CTRLR1 is 16-bits, so we should support lengths of 0xffff + 1. However, 163 /* 2 for native cs, 2 for cs-gpio */ [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/mfd/ |
H A D | motorola-cpcap.txt | 4 - compatible : One or both of "motorola,cpcap" or "ste,6556002" 5 - reg : SPI chip select 6 - interrupts : The interrupt line the device is connected to 7 - interrupt-controller : Marks the device node as an interrupt controller 8 - #interrupt-cells : The number of cells to describe an IRQ, should be 2 9 - #address-cells : Child device offset number of cells, should be 1 10 - #size-cells : Child device size number of cells, should be 0 11 - spi-max-frequency : Typically set to 3000000 12 - spi-cs-high : SPI chip select direction 16 The sub-functions of CPCAP get their own node with their own compatible values, [all …]
|
/openbmc/u-boot/arch/arm/dts/ |
H A D | keystone-k2g.dtsi | 11 #include <dt-bindings/interrupt-controller/arm-gic.h> 15 #address-cells = <1>; 16 #size-cells = <1>; 17 interrupt-parent = <&gic>; 34 #address-cells = <1>; 35 #size-cells = <0>; 37 interrupt-parent = <&gic>; 40 compatible = "arm,cortex-a15"; 46 gic: interrupt-controller { 47 compatible = "arm,cortex-a15-gic"; [all …]
|
/openbmc/linux/include/linux/dma/ |
H A D | qcom-gpi-dma.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 10 * enum spi_transfer_cmd - spi transfer commands 19 * struct gpi_spi_config - spi config for peripheral 21 * @loopback_en: spi loopback enable when set 25 * @word_len: spi word length 28 * @cmd: spi cmd 29 * @fragmentation: keep CS asserted at end of sequence 30 * @cs: chip select toggle 42 u8 cs; member 55 * struct gpi_i2c_config - i2c config for peripheral [all …]
|
/openbmc/linux/arch/arm64/boot/dts/xilinx/ |
H A D | zynqmp-zc1751-xm016-dc2.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * dts file for Xilinx ZynqMP zc1751-xm016-dc2 5 * (C) Copyright 2015 - 2022, Xilinx, Inc. 6 * (C) Copyright 2022 - 2023, Advanced Micro Devices, Inc. 11 /dts-v1/; 14 #include "zynqmp-clk-ccf.dtsi" 15 #include <dt-bindings/gpio/gpio.h> 16 #include <dt-bindings/pinctrl/pinctrl-zynqmp.h> 19 model = "ZynqMP zc1751-xm016-dc2 RevA"; 20 compatible = "xlnx,zynqmp-zc1751", "xlnx,zynqmp"; [all …]
|
/openbmc/linux/arch/riscv/boot/dts/canaan/ |
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 …]
|
/openbmc/u-boot/drivers/spi/ |
H A D | spi-uclass.c | 1 // SPDX-License-Identifier: GPL-2.0+ 10 #include <spi.h> 11 #include <dm/device-internal.h> 12 #include <dm/uclass-internal.h> 26 if (ops->set_speed) in spi_set_speed_mode() 27 ret = ops->set_speed(bus, speed); in spi_set_speed_mode() 29 ret = -EINVAL; in spi_set_speed_mode() 35 if (ops->set_mode) in spi_set_speed_mode() 36 ret = ops->set_mode(bus, mode); in spi_set_speed_mode() 38 ret = -EINVAL; in spi_set_speed_mode() [all …]
|
/openbmc/u-boot/board/keymile/km_arm/ |
H A D | kwbimage.cfg | 1 # SPDX-License-Identifier: GPL-2.0+ 5 # Refer doc/README.kwbimage for more details about how-to configure 10 BOOT_FROM spi # Boot from SPI flash 13 # bit 3-0: MPPSel0 2, NF_IO[2] 14 # bit 7-4: MPPSel1 2, NF_IO[3] 15 # bit 12-8: MPPSel2 2, NF_IO[4] 16 # bit 15-12: MPPSel3 2, NF_IO[5] 17 # bit 19-16: MPPSel4 1, NF_IO[6] 18 # bit 23-20: MPPSel5 1, NF_IO[7] 19 # bit 27-24: MPPSel6 1, SYSRST_O [all …]
|
/openbmc/u-boot/board/LaCie/netspace_v2/ |
H A D | kwbimage.cfg | 1 # SPDX-License-Identifier: GPL-2.0+ 8 # Written-by: Prafulla Wadaskar <prafulla@marvell.com> 9 # Refer doc/README.kwbimage for more details about how-to configure 14 BOOT_FROM spi # Boot from SPI flash 19 # Configure RGMII-0 interface pad voltage to 1.8V 24 # bit13-0: 0xa00 (2560 DDR2 clks refresh rate) 25 # bit23-14: zero 28 # bit29-26: zero 29 # bit31-30: 01 37 # bit23-20: 5=recommended value for CL=5 and STARTBURST_DEL disabled bit31=0 [all …]
|