/linux/arch/arm64/boot/dts/freescale/ |
H A D | fsl-ls1043a-rdb.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * Device Tree Include file for Freescale Layerscape-1043A family SoC. 5 * Copyright 2014-2015 Freescale Semiconductor, Inc. 11 /dts-v1/; 12 #include "fsl-ls1043a.dtsi" 16 compatible = "fsl,ls1043a-rdb", "fsl,ls1043a"; 26 stdout-path = "serial0:115200n8"; 36 shunt-resistor = <1000>; 67 #address-cells = <2>; 68 #size-cells = <1>; [all …]
|
/linux/Documentation/devicetree/bindings/pwm/ |
H A D | nxp,mc33xs2410.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: High-side switch MC33XS2410 10 - Dimitri Fedrau <dima.fedrau@gmail.com> 13 - $ref: pwm.yaml# 14 - $ref: /schemas/spi/spi-peripheral-props.yaml# 23 spi-max-frequency: 26 spi-cpha: true 28 spi-cs-setup-delay-ns: [all …]
|
/linux/Documentation/devicetree/bindings/spi/ |
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-cs-high, etc. or they could 12 be controller specific like delay in clock or data lines, etc. These 14 per-peripheral and there can be multiple peripherals attached to a 20 - Mark Brown <broonie@kernel.org> [all …]
|
H A D | fsl,dspi.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/spi/fsl,dspi.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Frank Li <Frank.Li@nxp.com> 15 - enum: 16 - fsl,vf610-dspi 17 - fsl,ls1021a-v1.0-dspi 18 - fsl,ls1012a-dspi 19 - fsl,ls1028a-dspi [all …]
|
/linux/drivers/spi/ |
H A D | spi-bitbang.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Polling/bitbanging SPI host controller controller driver utilities 10 #include <linux/delay.h> 16 #include <linux/spi/spi.h> 17 #include <linux/spi/spi_bitbang.h> 22 /*----------------------------------------------------------------------*/ 25 * FIRST PART (OPTIONAL): word-at-a-time spi_transfer support. 26 * Use this for GPIO or shift-register level hardware APIs. 28 * spi_bitbang_cs is in spi_device->controller_state, which is unavailable 29 * to glue code. These bitbang setup() and cleanup() routines are always [all …]
|
H A D | spi-dw-core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Designware SPI core controller driver (refer pxa2xx_spi.c) 10 #include <linux/dma-mapping.h> 15 #include <linux/delay.h> 17 #include <linux/spi/spi.h> 18 #include <linux/spi/spi-mem.h> 23 #include "spi-dw.h" 32 u32 rx_sample_dly; /* RX sample delay */ 66 snprintf(name, 32, "dw_spi%d", dws->host->bus_num); in dw_spi_debugfs_init() 67 dws->debugfs = debugfs_create_dir(name, NULL); in dw_spi_debugfs_init() [all …]
|
H A D | spi.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 2 // SPI init/core code 9 #include <linux/clk/clk-conf.h> 10 #include <linux/delay.h> 13 #include <linux/dma-mapping.h> 34 #include <linux/spi/offload/types.h> 35 #include <linux/spi/spi.h> 36 #include <linux/spi/spi-mem.h> 40 #include <trace/events/spi.h> 50 struct spi_device *spi = to_spi_device(dev); in spidev_release() local [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 */ 67 /* ss_n to sclk_out delay */ 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, 195 bool cs_inactive; /* spi target transmission stop when cs inactive */ 196 bool cs_high_supported; /* native CS supports active-high polarity */ [all …]
|
H A D | spi-cadence-quadspi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 // Copyright Altera Corporation (C) 2012-2014. All rights reserved. 6 // Copyright Intel Corporation (C) 2019-2020. All rights reserved. 7 // Copyright (C) 2020 Texas Instruments Incorporated - http://www.ti.com 11 #include <linux/delay.h> 12 #include <linux/dma-mapping.h> 16 #include <linux/firmware/xlnx-zynqmp.h> 29 #include <linux/spi/spi.h> 30 #include <linux/spi/spi-mem.h> 33 #define CQSPI_NAME "cadence-qspi" [all …]
|
H A D | spi-fsl-dspi.c | 1 // SPDX-License-Identifier: GPL-2.0+ 4 // Copyright 2020-2025 NXP 10 #include <linux/delay.h> 12 #include <linux/dma-mapping.h> 20 #include <linux/spi/spi.h> 21 #include <linux/spi/spi-fsl-dspi.h> 23 #define DRIVER_NAME "fsl-dspi" 107 #define SPI_FRAME_BITS(bits) SPI_CTAR_FMSZ((bits) - 1) 108 #define SPI_FRAME_EBITS(bits) SPI_CTARE_FMSZE(((bits) - 1) >> 4) 147 /* Has A-011218 DMA erratum */ [all …]
|
H A D | spi-loopback-test.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * linux/drivers/spi/spi-loopback-test.c 12 #include <linux/delay.h> 21 #include <linux/spi/spi.h> 23 #include "spi-test.h" 28 MODULE_PARM_DESC(simulate_only, "if not 0 do not execute the spi message"); 30 /* dump spi messages */ 37 /* the device is jumpered for loopback - enabling some rx_buf tests */ 54 "if set Chip Select (CS) will not be used"); 57 static int run_only_iter_len = -1; [all …]
|
/linux/arch/arm64/boot/dts/apple/ |
H A D | t8103-j293.dts | 1 // SPDX-License-Identifier: GPL-2.0+ OR MIT 3 * Apple MacBook Pro (13-inch, M1, 2020) 5 * target-type: J293 10 /dts-v1/; 13 #include "t8103-jxxx.dtsi" 14 #include <dt-bindings/leds/common.h> 17 compatible = "apple,j293", "apple,t8103", "apple,arm-platform"; 18 model = "Apple MacBook Pro (13-inch, M1, 2020)"; 22 * blobs and other device-specific properties 28 led-controller { [all …]
|
H A D | t8112-j493.dts | 1 // SPDX-License-Identifier: GPL-2.0+ OR MIT 3 * Apple MacBook Pro (13-inch, M1, 2022) 5 * target-type: J493 10 /dts-v1/; 13 #include "t8112-jxxx.dtsi" 14 #include <dt-bindings/leds/common.h> 17 compatible = "apple,j493", "apple,t8112", "apple,arm-platform"; 18 model = "Apple MacBook Pro (13-inch, M2, 2022)"; 22 * blobs and other device-specific properties 30 led-controller { [all …]
|
/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>; 45 regulator-always-on; [all …]
|
/linux/arch/arm/boot/dts/microchip/ |
H A D | at91-sam9x60ek.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * at91-sam9x60ek.dts - Device Tree file for Microchip SAM9X60-EK board 9 /dts-v1/; 11 #include <dt-bindings/input/input.h> 14 model = "Microchip SAM9X60-EK"; 24 stdout-path = "serial0:115200n8"; 29 clock-frequency = <32768>; 33 clock-frequency = <24000000>; 37 gpio-keys { 38 compatible = "gpio-keys"; [all …]
|
H A D | at91-sama5d2_icp.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * at91-sama5d2_icp.dts - Device Tree file for SAMA5D2-ICP board 11 /dts-v1/; 13 #include "sama5d2-pinfunc.h" 14 #include <dt-bindings/gpio/gpio.h> 15 #include <dt-bindings/input/input.h> 16 #include <dt-bindings/mfd/atmel-flexcom.h> 19 model = "Microchip SAMA5D2-ICP"; 20 compatible = "microchip,sama5d2-icp", "atmel,sama5d27", "atmel,sama5d2", "atmel,sama5"; 32 stdout-path = "serial0:115200n8"; [all …]
|
/linux/arch/arm64/boot/dts/amlogic/ |
H A D | meson-libretech-cottonwood.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 7 #include <dt-bindings/clock/g12a-clkc.h> 8 #include <dt-bindings/input/input.h> 9 #include <dt-bindings/leds/common.h> 10 #include <dt-bindings/gpio/gpio.h> 11 #include <dt-bindings/gpio/meson-g12a-gpio.h> 12 #include <dt-bindings/sound/meson-g12a-toacodec.h> 13 #include <dt-bindings/sound/meson-g12a-tohdmitx.h> 28 stdout-path = "serial0:115200n8"; 31 dioo2133: audio-amplifier-0 { [all …]
|
/linux/drivers/iio/imu/ |
H A D | smi240.c | 1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 7 #include <linux/delay.h> 11 #include <linux/spi/spi.h> 165 } while (--i >= 0); in smi240_crc3() 189 struct spi_device *spi = context; in smi240_regmap_spi_read() local 190 struct iio_dev *indio_dev = dev_get_drvdata(&spi->dev); in smi240_regmap_spi_read() 194 return -EINVAL; in smi240_regmap_spi_read() 197 request |= FIELD_PREP(SMI240_WRITE_CAP_BIT_MASK, iio_priv_data->capture); in smi240_regmap_spi_read() 201 iio_priv_data->spi_buf = cpu_to_be32(request); in smi240_regmap_spi_read() 205 * SPI protocol, where the slave interface responds to in smi240_regmap_spi_read() [all …]
|
/linux/drivers/iio/adc/ |
H A D | ad7606.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * AD7606 SPI ADC driver 9 #include <linux/delay.h> 115 .name = "ad7605-4", 124 .name = "ad7606-8", 135 .name = "ad7606-6", 147 .name = "ad7606-4", 249 if (st->gpio_reset) { in ad7606_reset() 250 gpiod_set_value(st->gpio_reset, 1); in ad7606_reset() 251 ndelay(100); /* t_reset >= 100ns */ in ad7606_reset() [all …]
|
/linux/arch/arm/common/ |
H A D | locomo.c | 1 // SPDX-License-Identifier: GPL-2.0-only 18 #include <linux/delay.h> 46 /* DAC setup and hold times (expressed in us) */ 53 #define DAC_DATA_SETUP_TIME 1 /* 250 ns */ 54 #define DAC_DATA_HOLD_TIME 1 /* 300 ns */ 55 #define DAC_LOW_SETUP_TIME 1 /* 300 ns */ 56 #define DAC_HIGH_SETUP_TIME 1 /* 1000 ns */ 81 /* All the locomo devices. If offset is non-zero, the mapbase for the 90 .name = "locomo-keyboard", 97 .name = "locomo-frontlight", [all …]
|
/linux/drivers/scsi/aic7xxx/ |
H A D | aic7xxx_core.c | 4 * Copyright (c) 1994-2002 Justin T. Gibbs. 5 * Copyright (c) 2000-2002 Adaptec Inc. 19 * 3. Neither the names of the above-listed copyright holders nor the names 78 { DPARERR, "Data-path Parity Error" }, 87 { P_DATAOUT, NOP, "in Data-out phase" }, 88 { P_DATAIN, INITIATOR_ERROR, "in Data-in phase" }, 89 { P_DATAOUT_DT, NOP, "in DT Data-out phase" }, 90 { P_DATAIN_DT, INITIATOR_ERROR, "in DT Data-in phase" }, 92 { P_MESGOUT, NOP, "in Message-out phase" }, 94 { P_MESGIN, MSG_PARITY_ERROR, "in Message-in phase" }, [all …]
|