Home
last modified time | relevance | path

Searched +full:spi +full:- +full:cpol (Results 1 – 25 of 156) sorted by relevance

1234567

/OK3568_Linux_fs/kernel/drivers/spi/
H A Dspi-bitbang-txrx.h1 /* SPDX-License-Identifier: GPL-2.0 */
4 * simple SPI master driver. Two do polled word-at-a-time I/O:
6 * - GPIO/parport bitbangers. Provide chipselect() and txrx_word[](),
7 * expanding the per-word routines from the inline templates below.
9 * - Drivers for controllers resembling bare shift registers. Provide
15 * - Drivers leveraging smarter hardware, with fifos or DMA; or for half
36 * A non-inlined routine would call bitbang_txrx_*() routines. The
47 bitbang_txrx_be_cpha0(struct spi_device *spi, in bitbang_txrx_be_cpha0() argument
48 unsigned nsecs, unsigned cpol, unsigned flags, in bitbang_txrx_be_cpha0() argument
51 /* if (cpol == 0) this is SPI_MODE_0; else this is SPI_MODE_2 */ in bitbang_txrx_be_cpha0()
[all …]
H A Dspi-lp8841-rtc.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * SPI master driver for ICP DAS LP-8841 RTC
11 * Copyright (C) 2003 - 2007 Paul Mundt
19 #include <linux/spi/spi.h>
30 * REVISIT If there is support for SPI_3WIRE and SPI_LSB_FIRST in SPI
31 * GPIO driver, this SPI driver can be replaced by a simple GPIO driver
44 data->state |= SPI_LP8841_RTC_CLK; in setsck()
46 data->state &= ~SPI_LP8841_RTC_CLK; in setsck()
47 writeb(data->state, data->iomem); in setsck()
54 data->state |= SPI_LP8841_RTC_MOSI; in setmosi()
[all …]
H A Dspi-cavium.c9 #include <linux/spi/spi.h>
14 #include "spi-cavium.h"
24 mpi_sts.u64 = readq(p->register_base + OCTEON_SPI_STS(p)); in octeon_spi_wait_ready()
33 struct spi_device *spi = msg->spi; in octeon_spi_do_transfer() local
38 bool cpha, cpol; in octeon_spi_do_transfer() local
44 mode = spi->mode; in octeon_spi_do_transfer()
46 cpol = mode & SPI_CPOL; in octeon_spi_do_transfer()
48 clkdiv = p->sys_freq / (2 * xfer->speed_hz); in octeon_spi_do_transfer()
56 mpi_cfg.s.idlelo = cpha != cpol; in octeon_spi_do_transfer()
60 if (spi->chip_select < 4) in octeon_spi_do_transfer()
[all …]
/OK3568_Linux_fs/kernel/arch/arm64/boot/dts/freescale/
H A Dfsl-ls1028a-qds.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
11 /dts-v1/;
13 #include "fsl-ls1028a.dtsi"
17 compatible = "fsl,ls1028a-qds", "fsl,ls1028a";
29 stdout-path = "serial0:115200n8";
37 sys_mclk: clock-mclk {
38 compatible = "fixed-clock";
39 #clock-cells = <0>;
40 clock-frequency = <25000000>;
43 reg_1p8v: regulator-1p8v {
[all …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/iio/adc/
H A Dmicrochip,mcp3201.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Oskar Andero <oskar.andero@gmail.com>
18 - microchip,mcp3001
19 - microchip,mcp3002
20 - microchip,mcp3004
21 - microchip,mcp3008
22 - microchip,mcp3201
23 - microchip,mcp3202
[all …]
H A Dadi,ad7768-1.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/iio/adc/adi,ad7768-1.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Analog Devices AD7768-1 ADC device driver
10 - Michael Hennerich <michael.hennerich@analog.com>
14 https://www.analog.com/media/en/technical-documentation/data-sheets/ad7768-1.pdf
18 const: adi,ad7768-1
26 clock-names:
32 vref-supply:
[all …]
H A Dadi,ad7192.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
4 ---
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
11 - Michael Hennerich <michael.hennerich@analog.com>
16 https://www.analog.com/media/en/technical-documentation/data-sheets/AD7192.pdf
21 - adi,ad7190
22 - adi,ad7192
23 - adi,ad7193
24 - adi,ad7195
29 spi-cpol: true
[all …]
H A Dti-adc084s021.txt4 - compatible : Must be "ti,adc084s021"
5 - reg : SPI chip select number for the device
6 - vref-supply : The regulator supply for ADC reference voltage
7 - spi-cpol : Per spi-bus bindings
8 - spi-cpha : Per spi-bus bindings
9 - spi-max-frequency : Per spi-bus bindings
15 vref-supply = <&adc_vref>;
16 spi-cpol;
17 spi-cpha;
18 spi-max-frequency = <16000000>;
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/iio/resolver/
H A Dad2s90.txt1 Analog Devices AD2S90 Resolver-to-Digital Converter
6 - compatible: should be "adi,ad2s90"
7 - reg: SPI chip select number for the device
8 - spi-max-frequency: set maximum clock frequency, must be 830000
9 - spi-cpol and spi-cpha:
10 Either SPI mode (0,0) or (1,1) must be used, so specify none or both of
11 spi-cpha, spi-cpol.
14 Documentation/devicetree/bindings/spi/spi-bus.txt
20 implemented in the spi code, to satisfy it, SCLK's period should be at most
21 2 * 600ns, so the max frequency should be 1 / (2 * 6e-7), which gives
[all …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/iio/dac/
H A Dti-dac082s085.txt1 Texas Instruments 8/10/12-bit 2/4-channel DAC driver
4 - compatible: Must be one of:
11 - reg: Chip select number.
12 - spi-cpha, spi-cpol: SPI mode (0,1) or (1,0) must be used, so specify
13 either spi-cpha or spi-cpol (but not both).
14 - vref-supply: Phandle to the external reference voltage supply.
16 For other required and optional properties of SPI slave nodes please refer to
17 ../../spi/spi-bus.txt.
20 vref_2v5_reg: regulator-vref {
21 compatible = "regulator-fixed";
[all …]
/OK3568_Linux_fs/u-boot/arch/arm/dts/
H A Dfsl-ls2080a-qds.dts4 * Copyright 2013-2015 Freescale Semiconductor, Inc.
6 * SPDX-License-Identifier: GPL-2.0+
9 /dts-v1/;
11 #include "fsl-ls2080a.dtsi"
15 compatible = "fsl,ls2080a-qds", "fsl,ls2080a";
24 bus-num = <0>;
28 #address-cells = <1>;
29 #size-cells = <1>;
30 compatible = "spi-flash";
31 spi-max-frequency = <3000000>;
[all …]
H A Dfsl-ls1046a-qds.dtsi2 * Device Tree Include file for Freescale Layerscape-1046A family SoC.
13 /include/ "fsl-ls1046a.dtsi"
24 bus-num = <0>;
28 #address-cells = <1>;
29 #size-cells = <1>;
30 compatible = "spi-flash";
31 spi-max-frequency = <1000000>; /* input clock */
32 spi-cpol;
33 spi-cpha;
38 #address-cells = <1>;
[all …]
H A Dfsl-ls1043a-qds.dtsi2 * Device Tree Include file for Freescale Layerscape-1043A family SoC.
13 /include/ "fsl-ls1043a.dtsi"
24 bus-num = <0>;
28 #address-cells = <1>;
29 #size-cells = <1>;
30 compatible = "spi-flash";
31 spi-max-frequency = <1000000>; /* input clock */
32 spi-cpol;
33 spi-cpha;
38 #address-cells = <1>;
[all …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/iio/gyroscope/
H A Dadi,adxrs290.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
4 ---
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
8 title: Analog Devices ADXRS290 Dual-Axis MEMS Gyroscope
11 - Nishant Malpani <nish.malpani25@gmail.com>
14 Bindings for the Analog Devices ADXRS290 dual-axis MEMS gyroscope device.
15 https://www.analog.com/media/en/technical-documentation/data-sheets/ADXRS290.pdf
24 spi-max-frequency:
27 spi-cpol: true
29 spi-cpha: true
[all …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/mtd/
H A Dnxp-spifi.txt1 * NXP SPI Flash Interface (SPIFI)
3 NXP SPIFI is a specialized SPI interface for serial Flash devices.
4 It supports one Flash device with 1-, 2- and 4-bits width in SPI
10 - compatible : Should be "nxp,lpc1773-spifi"
11 - reg : the first contains the register location and length,
13 - reg-names: Should contain the reg names "spifi" and "flash"
14 - interrupts : Should contain the interrupt for the device
15 - clocks : The clocks needed by the SPIFI controller
16 - clock-names : Should contain the clock names "spifi" and "reg"
19 - resets : phandle + reset specifier
[all …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/net/
H A Dqca,qca7000.txt3 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 …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/spi/
H A Dqcom,spi-qup.txt1 Qualcomm Universal Peripheral (QUP) Serial Peripheral Interface (SPI)
4 and an input FIFO) for serial peripheral interface (SPI) mini-core.
6 SPI in master mode supports up to 50MHz, up to four chip selects, programmable
10 - compatible: Should contain:
11 "qcom,spi-qup-v1.1.1" for 8660, 8960 and 8064.
12 "qcom,spi-qup-v2.1.1" for 8974 and later
13 "qcom,spi-qup-v2.2.1" for 8974 v2 and later.
15 - reg: Should contain base register location and length
16 - interrupts: Interrupt number used by this controller
18 - clocks: Should contain the core clock and the AHB clock.
[all …]
/OK3568_Linux_fs/u-boot/drivers/spi/
H A Dsoft_spi_legacy.c8 * SPDX-License-Identifier: GPL-2.0+
12 #include <spi.h>
16 /*-----------------------------------------------------------------------
40 /*-----------------------------------------------------------------------
59 ss->mode = mode; in spi_setup_slave()
63 return &ss->slave; in spi_setup_slave()
81 * Make sure the SPI clock is in idle state as defined for in spi_claim_bus()
84 if (ss->mode & SPI_CPOL) in spi_claim_bus()
97 /*-----------------------------------------------------------------------
98 * SPI transfer
[all …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/iio/imu/
H A Dadi,adis16475.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Nuno Sá <nuno.sa@analog.com>
14 https://www.analog.com/media/en/technical-documentation/data-sheets/ADIS16475.pdf
19 - adi,adis16475-1
20 - adi,adis16475-2
21 - adi,adis16475-3
22 - adi,adis16477-1
23 - adi,adis16477-2
[all …]
H A Dadi,adis16460.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Dragos Bogdan <dragos.bogdan@analog.com>
14 https://www.analog.com/media/en/technical-documentation/data-sheets/ADIS16460.pdf
19 - adi,adis16460
24 spi-cpha: true
26 spi-cpol: true
28 spi-max-frequency: true
34 - compatible
[all …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/rtc/
H A Depson,rx6110.txt4 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 …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/bus/
H A Dmoxtet.txt1 Turris Mox module status and configuration bus (over SPI)
4 - compatible : Should be "cznic,moxtet"
5 - #address-cells : Has to be 1
6 - #size-cells : Has to be 0
7 - spi-cpol : Required inverted clock polarity
8 - spi-cpha : Required shifted clock phase
9 - interrupts : Must contain reference to the shared interrupt line
10 - interrupt-controller : Required
11 - #interrupt-cells : Has to be 1
13 For other required and optional properties of SPI slave nodes please refer to
[all …]
/OK3568_Linux_fs/kernel/arch/arm64/boot/dts/broadcom/northstar2/
H A Dns2-svk.dts33 /dts-v1/;
39 compatible = "brcm,ns2-svk", "brcm,ns2";
49 stdout-path = "serial0:115200n8";
113 spi-max-frequency = <5000000>;
114 spi-cpha;
115 spi-cpol;
118 pl022,slave-tx-disable = <0>;
119 pl022,com-mode = <0>;
120 pl022,rx-level-trig = <1>;
121 pl022,tx-level-trig = <1>;
[all …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/net/ieee802154/
H A Dca8210.txt4 - compatible: Should be "cascoda,ca8210"
5 - reg: Controlling chip select
6 - spi-max-frequency: Maximum clock speed, should be *less than*
8 - spi-cpol: Requires inverted clock polarity
9 - reset-gpio: GPIO attached to reset
10 - irq-gpio: GPIO attached to IRQ
12 - extclock-enable: Include for the ca8210 to route its 16MHz clock
14 - extclock-freq: Frequency in Hz of the external clock
15 - extclock-gpio: GPIO of the ca8210 to output the clock on
21 spi-max-frequency = <3000000>;
[all …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/iio/accel/
H A Dadi,adxl345.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Analog Devices ADXL345/ADXL375 3-Axis Digital Accelerometers
10 - Michael Hennerich <michael.hennerich@analog.com>
13 Analog Devices ADXL345/ADXL375 3-Axis Digital Accelerometers that supports
14 both I2C & SPI interfaces.
16 https://www.analog.com/en/products/sensors-mems/accelerometers/adxl375.html
21 - items:
22 - const: adi,adxl346
[all …]

1234567