Home
last modified time | relevance | path

Searched full:cpol (Results 1 – 25 of 43) sorted by relevance

12

/Zephyr-latest/tests/drivers/spi/spi_controller_peripheral/
DKconfig9 0: CPOL 0 (Active high), CPHA 0 (leading)
10 1: CPOL 0 (Active high), CPHA 1 (trailing)
11 2: CPOL 1 (Active low), CPHA 0 (leading)
12 3: CPOL 1 (Active low), CPHA 1 (trailing)
DREADME.txt3 In each test, both instances get identical configuration (CPOL, CPHA, bitrate, etc.).
/Zephyr-latest/dts/bindings/wifi/
Dnordic,nrf70-qspi.yaml37 The driver using this property must also use `cpol`.
39 qspi-cpol:
42 Set to indicate that the clock leading edge is falling (CPOL=1).
/Zephyr-latest/boards/shields/x_nucleo_wb05kn1/
Dx_nucleo_wb05kn1_spi.overlay21 spi-cpol; /* CPOL=1 */
/Zephyr-latest/dts/bindings/sdhc/
Dzephyr,sdhc-spi-slot.yaml16 spi-clock-mode-cpol:
26 on the clock's polarity. When mode-cpol is set and this option as well,
/Zephyr-latest/dts/bindings/mtd/
Dnordic,qspi-nor.yaml86 For this driver using this property requires also using cpol.
88 cpol:
91 Set to indicate clock leading edge is falling (CPOL=1).
/Zephyr-latest/dts/bindings/mspi/
Dmspi-device.yaml71 MSPI_CPP_MODE_0: CPOL=0, CPHA=0
72 MSPI_CPP_MODE_1: CPOL=0, CPHA=1
73 MSPI_CPP_MODE_2: CPOL=1, CPHA=0
74 MSPI_CPP_MODE_3: CPOL=1, CPHA=1
/Zephyr-latest/samples/subsys/fs/fs_sample/boards/
Dnucleo_f429zi.overlay18 spi-clock-mode-cpol;
/Zephyr-latest/drivers/spi/
Dspi_sedi.c42 uint32_t word_size, cpol, cpha, loopback; in spi_sedi_configure() local
52 /* CPOL and CPHA */ in spi_sedi_configure()
53 cpol = SPI_MODE_GET(config->operation) & SPI_MODE_CPOL; in spi_sedi_configure()
56 if ((cpol == 0) && (cpha == 0)) { in spi_sedi_configure()
59 } else if ((cpol == 0) && (cpha == 1U)) { in spi_sedi_configure()
62 } else if ((cpol == 1) && (cpha == 0U)) { in spi_sedi_configure()
Dspi_xec_qmspi.c93 * SPI signalling mode: CPOL and CPHA
94 * CPOL = 0 is clock idles low, 1 is clock idle high
100 * Mode CPOL CPHA
105 * MEC1501 has three controls, CPOL, CPHA for output and CPHA for input.
107 * Mode 0: CPOL=0 CHPA=0 (CHPA_MISO=0 and CHPA_MOSI=0)
108 * Mode 3: CPOL=1 CHPA=1 (CHPA_MISO=1 and CHPA_MOSI=1)
111 * Mode 0: CPOL=0 CHPA=0 (CHPA_MISO=1 and CHPA_MOSI=0)
112 * Mode 3: CPOL=1 CHPA=1 (CHPA_MISO=0 and CHPA_MOSI=1)
Dspi_numaker.c42 * CPOL/CPHA = 0/0 --> SPI_MODE_0
43 * CPOL/CPHA = 0/1 --> SPI_MODE_1
44 * CPOL/CPHA = 1/0 --> SPI_MODE_2
45 * CPOL/CPHA = 1/1 --> SPI_MODE_3
Dspi_xec_qmspi_ldma.c216 * SPI signalling mode: CPOL and CPHA
217 * CPOL = 0 is clock idles low, 1 is clock idle high
223 * Mode CPOL CPHA
228 * QMSPI has three controls, CPOL, CPHA for output and CPHA for input.
230 * Mode 0: CPOL=0 CHPA=0 (CHPA_MISO=0 and CHPA_MOSI=0)
231 * Mode 3: CPOL=1 CHPA=1 (CHPA_MISO=1 and CHPA_MOSI=1)
234 * Mode 0: CPOL=0 CHPA=0 (CHPA_MISO=1 and CHPA_MOSI=0)
235 * Mode 3: CPOL=1 CHPA=1 (CHPA_MISO=0 and CHPA_MOSI=1)
244 0x03u, /* CPOL=1, CPHA_MOSI=1, CPHA_MISO=0 */
246 0x07u, /* CPOL=1, CPHA_MOSI=1, CPHA_MISO=1 */
Dspi_rpi_pico_pio.c205 uint32_t cpol = 0; in spi_pico_pio_configure() local
260 cpol = 1; in spi_pico_pio_configure()
272 if ((cpol != 0) || (cpha != 0)) { in spi_pico_pio_configure()
358 if ((cpol == 0) && (cpha == 0)) { in spi_pico_pio_configure()
363 } else if ((cpol == 1) && (cpha == 1)) { in spi_pico_pio_configure()
369 LOG_ERR("Not supported: cpol=%d, cpha=%d\n", cpol, cpha); in spi_pico_pio_configure()
405 pio_sm_set_pins_with_mask(data->pio, data->pio_sm, (cpol << clk->pin), in spi_pico_pio_configure()
Dspi_xmc4xxx.c196 bool CPOL = SPI_MODE_GET(settings) & SPI_MODE_CPOL; in spi_xmc4xxx_configure() local
236 if (!CPOL && !CPHA) { in spi_xmc4xxx_configure()
238 } else if (!CPOL && CPHA) { in spi_xmc4xxx_configure()
240 } else if (CPOL && !CPHA) { in spi_xmc4xxx_configure()
242 } else if (CPOL && CPHA) { in spi_xmc4xxx_configure()
Dspi_npcx_spip.c107 * Set CPOL and CPHA. in spi_npcx_spip_configure()
108 * The following is how to map npcx spip control register to CPOL and CPHA in spi_npcx_spip_configure()
109 * CPOL CPHA | SCIDL SCM in spi_npcx_spip_configure()
Dspi_grlib_spimctrl.c79 LOG_ERR("Only supports CPOL=CPHA=0"); in spi_config()
Dspi_litex.c94 LOG_ERR("Only supports CPOL=CPHA=0"); in spi_config()
Dspi_litex_litespi.c103 LOG_ERR("Only supports CPOL=CPHA=0"); in spi_config()
Dspi_sifive.c55 /* If CPOL is set, then SCK idles at logical 1 */ in spi_config()
Dspi_max32.c109 int cpol = (SPI_MODE_GET(config->operation) & SPI_MODE_CPOL) ? 1 : 0; in spi_configure() local
112 if (cpol && cpha) { in spi_configure()
116 } else if (cpol) { in spi_configure()
/Zephyr-latest/soc/microchip/mec/
DKconfig200 input/output data phases. Bits[0:2] are CPOL:CPHA_MOSI:CPHA_MISO. Refer
203 Setting this field to 0 selects mode 0, CPOL=0, CPHA_MOSI=0, CPHA_MISO=0
204 Setting this filed to 7 selects mode 3, CPOL=1, CPHA_MOSI=1, CPHA_MISO=1
/Zephyr-latest/dts/bindings/mipi-dbi/
Dmipi-dbi-spi-device.yaml21 mipi-cpol:
/Zephyr-latest/dts/bindings/spi/
Dspi-device.yaml43 spi-cpol:
/Zephyr-latest/boards/segger/ip_k66f/
Dip_k66f.dts142 spi-cpol;
/Zephyr-latest/drivers/flash/
Dnrf_qspi_nor.c146 /* 0 for MODE0 (CPOL=0, CPHA=0), 1 for MODE3 (CPOL=1, CPHA=1). */
147 #define INST_0_SPI_MODE DT_INST_PROP(0, cpol)
148 BUILD_ASSERT(DT_INST_PROP(0, cpol) == DT_INST_PROP(0, cpha),
149 "Invalid combination of \"cpol\" and \"cpha\" properties.");

12