/openbmc/linux/drivers/net/dsa/microchip/ |
H A D | ksz_spi.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Microchip ksz series register access through SPI 15 #include <linux/spi/spi.h> 40 static int ksz_spi_probe(struct spi_device *spi) in ksz_spi_probe() argument 44 struct device *ddev = &spi->dev; in ksz_spi_probe() 49 dev = ksz_switch_alloc(&spi->dev, spi); in ksz_spi_probe() 51 return -ENOMEM; in ksz_spi_probe() 55 return -EINVAL; in ksz_spi_probe() 57 if (chip->chip_id == KSZ8830_CHIP_ID) in ksz_spi_probe() 59 else if (chip->chip_id == KSZ8795_CHIP_ID || in ksz_spi_probe() [all …]
|
/openbmc/linux/arch/arm64/boot/dts/freescale/ |
H A D | fsl-ls1028a-qds.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 11 /dts-v1/; 13 #include "fsl-ls1028a.dtsi" 17 compatible = "fsl,ls1028a-qds", "fsl,ls1028a"; 32 stdout-path = "serial0:115200n8"; 40 sys_mclk: clock-mclk { 41 compatible = "fixed-clock"; 42 #clock-cells = <0>; 43 clock-frequency = <25000000>; 46 reg_1p8v: regulator-1p8v { [all …]
|
H A D | fsl-ls1088a-qds.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 11 /dts-v1/; 13 #include "fsl-ls1088a.dtsi" 17 compatible = "fsl,ls1088a-qds", "fsl,ls1088a"; 21 bus-num = <0>; 25 #address-cells = <1>; 26 #size-cells = <1>; 27 compatible = "jedec,spi-nor"; 29 spi-max-frequency = <1000000>; 33 #address-cells = <1>; [all …]
|
H A D | fsl-ls1012a-qds.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 8 /dts-v1/; 10 #include "fsl-ls1012a.dtsi" 14 compatible = "fsl,ls1012a-qds", "fsl,ls1012a"; 21 sys_mclk: clock-mclk { 22 compatible = "fixed-clock"; 23 #clock-cells = <0>; 24 clock-frequency = <24576000>; 27 reg_3p3v: regulator-3p3v { 28 compatible = "regulator-fixed"; [all …]
|
/openbmc/linux/drivers/iio/accel/ |
H A D | st_accel_spi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright 2012-2013 STMicroelectronics Inc. 13 #include <linux/spi/spi.h> 21 * For new single-chip sensors use <device_name> as compatible string. 22 * For old single-chip devices keep <device_name>-accel to maintain 27 /* An older compatible */ 28 .compatible = "st,lis302dl-spi", 32 .compatible = "st,lis3lv02dl-accel", 36 .compatible = "st,lis3dh-accel", 40 .compatible = "st,lsm330d-accel", [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/spi/ |
H A D | snps,dw-apb-ssi.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 3 --- 4 $id: http://devicetree.org/schemas/spi/snps,dw-apb-ssi.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Mark Brown <broonie@kernel.org> 13 - $ref: spi-controller.yaml# 14 - if: 16 compatible: 19 - mscc,ocelot-spi 20 - mscc,jaguar2-spi [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# 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 | aspeed,ast2600-fmc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/spi/aspeed,ast2600-fmc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Chin-Ting Kuo <chin-ting_kuo@aspeedtech.com> 11 - Cédric Le Goater <clg@kaod.org> 15 SPI) of the AST2400, AST2500 and AST2600 SOCs. 18 - $ref: spi-controller.yaml# 21 compatible: 23 - aspeed,ast2600-fmc [all …]
|
H A D | brcm,spi-bcm-qspi.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/spi/brcm,spi-bcm-qspi.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Broadcom SPI controller 10 - Kamal Dasu <kdasu.kdev@gmail.com> 11 - Rafał Miłecki <rafal@milecki.pl> 14 The Broadcom SPI controller is a SPI master found on various SOCs, including 15 BRCMSTB (BCM7XXX), Cygnus, NSP and NS2. The Broadcom Master SPI hw IP consists 17 MSPI : SPI master controller can read and write to a SPI slave device [all …]
|
H A D | amlogic,meson6-spifc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 4 --- 5 $id: http://devicetree.org/schemas/spi/amlogic,meson6-spifc.yaml# 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 8 title: Amlogic Meson SPI Flash Controller 11 - Neil Armstrong <neil.armstrong@linaro.org> 14 - $ref: spi-controller.yaml# 17 The Meson SPIFC is a controller optimized for communication with SPI 18 NOR memories, without DMA support and a 64-byte unified transmit / 22 compatible: [all …]
|
/openbmc/linux/drivers/iio/gyro/ |
H A D | st_gyro_spi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright 2012-2013 STMicroelectronics Inc. 13 #include <linux/spi/spi.h> 21 * For new single-chip sensors use <device_name> as compatible string. 22 * For old single-chip devices keep <device_name>-gyro to maintain 27 .compatible = "st,l3g4200d-gyro", 31 .compatible = "st,lsm330d-gyro", 35 .compatible = "st,lsm330dl-gyro", 39 .compatible = "st,lsm330dlc-gyro", 43 .compatible = "st,l3gd20-gyro", [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/mfd/ |
H A D | google,cros-ec.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/mfd/google,cros-ec.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Benson Leung <bleung@chromium.org> 11 - Guenter Roeck <groeck@chromium.org> 16 The EC can be connected through various interfaces (I2C, SPI, and others) 17 and the compatible string specifies which interface is being used. 20 compatible: 22 - description: [all …]
|
/openbmc/u-boot/arch/arm/dts/ |
H A D | fsl-ls1043a-qds.dtsi | 1 // SPDX-License-Identifier: GPL-2.0+ OR X11 3 * Device Tree Include file for Freescale Layerscape-1043A family SoC. 10 /include/ "fsl-ls1043a.dtsi" 21 bus-num = <0>; 25 #address-cells = <1>; 26 #size-cells = <1>; 27 compatible = "spi-flash"; 28 spi-max-frequency = <1000000>; /* input clock */ 29 spi-cpol; 30 spi-cpha; [all …]
|
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 …]
|
H A D | fsl-ls2080a-qds.dts | 1 // SPDX-License-Identifier: GPL-2.0+ OR X11 5 * Copyright 2013-2015 Freescale Semiconductor, Inc. 8 /dts-v1/; 10 #include "fsl-ls2080a.dtsi" 14 compatible = "fsl,ls2080a-qds", "fsl,ls2080a"; 23 bus-num = <0>; 27 #address-cells = <1>; 28 #size-cells = <1>; 29 compatible = "spi-flash"; 30 spi-max-frequency = <3000000>; [all …]
|
/openbmc/linux/drivers/iio/imu/st_lsm6dsx/ |
H A D | st_lsm6dsx_spi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * STMicroelectronics st_lsm6dsx spi driver 13 #include <linux/spi/spi.h> 24 static int st_lsm6dsx_spi_probe(struct spi_device *spi) in st_lsm6dsx_spi_probe() argument 26 const struct spi_device_id *id = spi_get_device_id(spi); in st_lsm6dsx_spi_probe() 27 int hw_id = id->driver_data; in st_lsm6dsx_spi_probe() 30 regmap = devm_regmap_init_spi(spi, &st_lsm6dsx_spi_regmap_config); in st_lsm6dsx_spi_probe() 32 dev_err(&spi->dev, "Failed to register spi regmap %ld\n", PTR_ERR(regmap)); in st_lsm6dsx_spi_probe() 36 return st_lsm6dsx_probe(&spi->dev, spi->irq, hw_id, regmap); in st_lsm6dsx_spi_probe() 41 .compatible = "st,lsm6ds3", [all …]
|
/openbmc/linux/drivers/iio/pressure/ |
H A D | st_pressure_spi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 13 #include <linux/spi/spi.h> 21 * For new single-chip sensors use <device_name> as compatible string. 22 * For old single-chip devices keep <device_name>-press to maintain 27 .compatible = "st,lps001wp-press", 31 .compatible = "st,lps25h-press", 35 .compatible = "st,lps331ap-press", 39 .compatible = "st,lps22hb-press", 43 .compatible = "st,lps33hw", 47 .compatible = "st,lps35hw", [all …]
|
H A D | bmp280-spi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * SPI interface for the BMP280 driver 5 * Inspired by the older BMP085 driver drivers/misc/bmp085-spi.c 8 #include <linux/spi/spi.h> 18 struct spi_device *spi = to_spi_device(dev); in bmp280_regmap_spi_write() local 23 * The SPI register address (= full register address without bit 7) and in bmp280_regmap_spi_write() 28 return spi_write_then_read(spi, buf, 2, NULL, 0); in bmp280_regmap_spi_write() 35 struct spi_device *spi = to_spi_device(dev); in bmp280_regmap_spi_read() local 37 return spi_write_then_read(spi, reg, reg_size, val, val_size); in bmp280_regmap_spi_read() 47 static int bmp280_spi_probe(struct spi_device *spi) in bmp280_spi_probe() argument [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> 13 compatible: 15 - marvell,nfc-i2c 16 - marvell,nfc-spi 17 - marvell,nfc-uart 19 hci-muxed: 30 reset-n-io: [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/net/ |
H A D | qca,qca7000.txt | 3 The QCA7000 is a serial-to-powerline bridge with a host interface which could 4 be configured either as SPI or UART slave. This configuration is done by 7 (a) Ethernet over SPI 9 In order to use the QCA7000 as SPI device it must be defined as a child of a 10 SPI master in the device tree. 13 - compatible : Should be "qca,qca7000" 14 - reg : Should specify the SPI chip select 15 - interrupts : The first cell should specify the index of the source 18 - spi-cpha : Must be set 19 - spi-cpol : Must be set [all …]
|
/openbmc/linux/drivers/iio/magnetometer/ |
H A D | st_magn_spi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright 2012-2013 STMicroelectronics Inc. 13 #include <linux/spi/spi.h> 21 * For new single-chip sensors use <device_name> as compatible string. 22 * For old single-chip devices keep <device_name>-magn to maintain 24 * For multi-chip devices, use <device_name>-magn to distinguish which 29 .compatible = "st,lis3mdl-magn", 33 .compatible = "st,lsm303agr-magn", 37 .compatible = "st,lis2mdl", 41 .compatible = "st,lsm9ds1-magn", [all …]
|
/openbmc/linux/drivers/iio/imu/inv_mpu6050/ |
H A D | inv_mpu_spi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 #include <linux/spi/spi.h> 23 if (st->reg->i2c_if) { in inv_mpu_i2c_disable() 24 ret = regmap_write(st->map, st->reg->i2c_if, in inv_mpu_i2c_disable() 27 st->chip_config.user_ctrl |= INV_MPU6050_BIT_I2C_IF_DIS; in inv_mpu_i2c_disable() 28 ret = regmap_write(st->map, st->reg->user_ctrl, in inv_mpu_i2c_disable() 29 st->chip_config.user_ctrl); in inv_mpu_i2c_disable() 35 static int inv_mpu_probe(struct spi_device *spi) in inv_mpu_probe() argument 43 if ((spi_id = spi_get_device_id(spi))) { in inv_mpu_probe() 44 chip_type = (enum inv_devices)spi_id->driver_data; in inv_mpu_probe() [all …]
|
/openbmc/linux/arch/arm/boot/dts/aspeed/ |
H A D | ibm-power11-quad.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-or-later 125 #address-cells = <2>; 126 #size-cells = <0>; 128 bus-frequency = <100000000>; 129 cfam-reset-gpios = <&gpio0 ASPEED_GPIO(Q, 0) GPIO_ACTIVE_HIGH>; 133 #address-cells = <1>; 134 #size-cells = <1>; 135 chip-id = <0>; 138 compatible = "ibm,p9-scom"; 143 compatible = "ibm,i2c-fsi"; [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/linux/drivers/mfd/ |
H A D | stmpe-spi.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * ST Microelectronics MFD: stmpe's spi client specific driver 10 #include <linux/spi/spi.h> 22 struct spi_device *spi = stmpe->client; in spi_reg_read() local 23 int status = spi_w8r16(spi, reg | READ_CMD); in spi_reg_read() 30 struct spi_device *spi = stmpe->client; in spi_reg_write() local 33 return spi_write(spi, (const u8 *)&cmd, 2); in spi_reg_write() 55 for (i = length; i > 0; i--, reg++) { in spi_block_write() 56 ret = spi_reg_write(stmpe, reg, *(values + i - 1)); in spi_block_write() 66 struct spi_device *spi = stmpe->client; in spi_init() local [all …]
|