/Zephyr-latest/dts/bindings/ethernet/ |
D | nxp,tja1103.yaml | 2 # SPDX-License-Identifier: Apache-2.0 15 int-gpios: 16 type: phandle-array 20 master-slave: 24 100BASE-T1 Specifies that either phy has to run in master / slave mode 25 Default selects the mode set by the pinstrapping on the hardware design. 27 - "default" 28 - "master" 29 - "slave"
|
/Zephyr-latest/drivers/spi/ |
D | Kconfig.stm32 | 3 # Copyright (c) 2015-2016 Intel Corporation 4 # SPDX-License-Identifier: Apache-2.0 27 Enable the SPI DMA mode for SPI instances 31 bool "STM32 Hardware Slave Select support" 34 Use Slave Select pin instead of software Slave Select. 42 transfer in slave mode".
|
D | Kconfig.renesas_ra | 4 # SPDX-License-Identifier: Apache-2.0 26 Enable the SPI DTC mode for SPI instances 29 bool "RA MCU SPI Hardware Slave Select support" 33 Use Slave Select pin instead of software Slave Select.
|
D | Kconfig.renesas_ra8 | 4 # SPDX-License-Identifier: Apache-2.0 27 Enable the SPI DTC mode for SPI instances 30 bool "RA MCU SPI B Hardware Slave Select support" 33 Use Slave Select pin instead of software Slave Select.
|
D | spi_b91.c | 4 * SPDX-License-Identifier: Apache-2.0 38 #define SPI_CFG(dev) ((struct spi_b91_cfg *) ((dev)->config)) 44 #define SPI_DATA(dev) ((struct spi_b91_data *) ((dev)->data)) 55 pin = config->cs_pin[i]; in spi_b91_hw_cs_disable() 59 if (config->peripheral_id == PSPI_MODULE) { in spi_b91_hw_cs_disable() 86 /* check for correct slave id */ in spi_b91_config_cs() 87 if (config->slave >= CHIP_SELECT_COUNT) { in spi_b91_config_cs() 88 LOG_ERR("Slave %d not supported (max. %d)", config->slave, CHIP_SELECT_COUNT - 1); in spi_b91_config_cs() 95 cs_pin = b91_config->cs_pin[cs_id]; in spi_b91_config_cs() 97 /* if cs pin is not defined for the selected slave, return error */ in spi_b91_config_cs() [all …]
|
D | Kconfig | 3 # Copyright (c) 2015-2016 Intel Corporation 4 # SPDX-License-Identifier: Apache-2.0 41 bool "Slave support [EXPERIMENTAL]" 44 Enables Driver SPI slave operations. Slave support depends 52 enables the possibility to select the line mode (single/dual/ 53 quad/octal), though none of these mode are really supported as 75 module-str = spi 78 # zephyr-keep-sorted-start 125 # zephyr-keep-sorted-stop
|
D | spi_nxp_s32.c | 2 * Copyright 2022-2024 NXP 4 * SPDX-License-Identifier: Apache-2.0 15 struct spi_context *ctx = &data->ctx; in spi_nxp_s32_last_packet() 17 if (ctx->tx_count <= 1U && ctx->rx_count <= 1U) { in spi_nxp_s32_last_packet() 18 if (!spi_context_tx_on(ctx) && (data->transfer_len == ctx->rx_len)) { in spi_nxp_s32_last_packet() 22 if (!spi_context_rx_on(ctx) && (data->transfer_len == ctx->tx_len)) { in spi_nxp_s32_last_packet() 26 if ((ctx->rx_len == ctx->tx_len) && (data->transfer_len == ctx->tx_len)) { in spi_nxp_s32_last_packet() 41 const struct spi_nxp_s32_config *config = dev->config; in spi_nxp_s32_transfer_next_packet() 42 struct spi_nxp_s32_data *data = dev->data; in spi_nxp_s32_transfer_next_packet() 49 data_cb = config->cb; in spi_nxp_s32_transfer_next_packet() [all …]
|
D | spi_xlnx_axi_quadspi.c | 4 * SPDX-License-Identifier: Apache-2.0 105 const struct xlnx_quadspi_config *config = dev->config; in xlnx_quadspi_read32() 107 return sys_read32(config->base + offset); in xlnx_quadspi_read32() 114 const struct xlnx_quadspi_config *config = dev->config; in xlnx_quadspi_write32() 116 sys_write32(value, config->base + offset); in xlnx_quadspi_write32() 121 const struct xlnx_quadspi_config *config = dev->config; in xlnx_quadspi_cs_control() 122 struct xlnx_quadspi_data *data = dev->data; in xlnx_quadspi_cs_control() 123 struct spi_context *ctx = &data->ctx; in xlnx_quadspi_cs_control() 124 uint32_t spissr = BIT_MASK(config->num_ss_bits); in xlnx_quadspi_cs_control() 127 /* Skip slave select assert/de-assert in slave mode */ in xlnx_quadspi_cs_control() [all …]
|
D | spi_litex_litespi.c | 4 * SPDX-License-Identifier: Apache-2.0 44 const struct spi_litex_dev_config *dev_config = dev->config; in spi_litex_set_frequency() 46 if (!dev_config->phy_clk_divisor_exists) { in spi_litex_set_frequency() 52 uint32_t divisor = DIV_ROUND_UP(sys_clock_hw_cycles_per_sec(), (2 * config->frequency)) - 1; in spi_litex_set_frequency() 54 litex_write32(divisor, dev_config->phy_clk_divisor_addr); in spi_litex_set_frequency() 61 struct spi_litex_data *dev_data = dev->data; in spi_config() 63 if (config->slave != 0) { in spi_config() 64 if (config->slave >= SPI_MAX_CS_SIZE) { in spi_config() 66 return -ENOTSUP; in spi_config() 70 if (config->operation & SPI_HALF_DUPLEX) { in spi_config() [all …]
|
/Zephyr-latest/drivers/i2c/ |
D | i2c_numaker.c | 4 * SPDX-License-Identifier: Apache-2.0 18 #include "i2c-priv.h" 22 /* i2c Master Mode Status */ 36 /* i2c Slave Mode Status */ 37 #define S_REPEAT_START_STOP 0xA0 /* Slave Transmit Repeat Start or Stop */ 38 #define S_TRAN_ADDR_ACK 0xA8 /* Slave Transmit Address ACK */ 39 #define S_TRAN_DATA_ACK 0xB8 /* Slave Transmit Data ACK */ 40 #define S_TRAN_DATA_NACK 0xC0 /* Slave Transmit Data NACK */ 41 #define S_TRAN_LAST_DATA_ACK 0xC8 /* Slave Transmit Last Data ACK */ 42 #define S_RECE_ADDR_ACK 0x60 /* Slave Receive Address ACK */ [all …]
|
D | i2c_lpc11u6x.h | 4 * SPDX-License-Identifier: Apache-2.0 60 volatile uint32_t addr0; /* Slave address 0 */ 64 volatile uint32_t mm_ctrl; /* Monitor mode control */ 65 volatile uint32_t addr[3]; /* Slave address {1,2,3} */ 67 volatile uint32_t mask[4]; /* Slave address mask */ 89 struct i2c_target_config *slave; member
|
D | i2c_rcar.c | 4 * SPDX-License-Identifier: Apache-2.0 20 #include "i2c-priv.h" 38 #define RCAR_I2C_ICSCR 0x00 /* Slave Control Register */ 40 #define RCAR_I2C_ICSIER 0x10 /* Slave IRQ Enable */ 42 #define RCAR_I2C_ICSSR 0x08 /* Slave Status */ 45 #define RCAR_I2C_ICSAR 0x1c /* Slave Address Register */ 81 return sys_read32(config->reg_addr + offs); in i2c_rcar_read() 87 sys_write32(value, config->reg_addr + offs); in i2c_rcar_write() 92 const struct i2c_rcar_cfg *config = dev->config; in i2c_rcar_isr() 93 struct i2c_rcar_data *data = dev->data; in i2c_rcar_isr() [all …]
|
D | i2c_lpc11u6x.c | 4 * SPDX-License-Identifier: Apache-2.0 15 #define DEV_BASE(dev) (((struct lpc11u6x_i2c_config *)(dev->config))->base) 23 clock_control_get_rate(clk_dev, (clock_control_subsys_t) cfg->clkid, in lpc11u6x_i2c_set_bus_speed() 27 cfg->base->sclh = div / 2; in lpc11u6x_i2c_set_bus_speed() 28 cfg->base->scll = div - (div / 2); in lpc11u6x_i2c_set_bus_speed() 34 const struct lpc11u6x_i2c_config *cfg = dev->config; in lpc11u6x_i2c_configure() 35 struct lpc11u6x_i2c_data *data = dev->data; in lpc11u6x_i2c_configure() 53 return -ENOTSUP; in lpc11u6x_i2c_configure() 55 return -EINVAL; in lpc11u6x_i2c_configure() 59 return -ENOTSUP; in lpc11u6x_i2c_configure() [all …]
|
/Zephyr-latest/dts/bindings/pwm/ |
D | st,stm32-pwm.yaml | 3 compatible: "st,stm32-pwm" 5 include: [pwm-controller.yaml, base.yaml, pinctrl-device.yaml] 8 pinctrl-0: 11 pinctrl-names: 14 four-channel-capture-support: 19 interrupt instead of slave-mode controller. This option can also 20 be used as alternative for timers that does not support slave mode. 22 "#pwm-cells": 26 - channel of the timer used for PWM 27 - period to set in ns [all …]
|
/Zephyr-latest/drivers/i2s/ |
D | Kconfig.sam_ssc | 4 # SPDX-License-Identifier: Apache-2.0 32 in master or slave mode. 43 in master or slave mode.
|
/Zephyr-latest/drivers/sensor/tdk/mpu9250/ |
D | ak8963.c | 4 * SPDX-License-Identifier: Apache-2.0 72 /* The sensor device returns 10^-9 Teslas after scaling. in ak8963_convert_magn() 80 return -EOVERFLOW; in ak8963_convert_magn() 85 val->val1 = scaled_val / 1000000; in ak8963_convert_magn() 86 val->val2 = scaled_val % 1000000; in ak8963_convert_magn() 96 const struct mpu9250_config *cfg = dev->config; in ak8963_execute_rw() 106 ret = i2c_reg_write_byte_dt(&cfg->i2c, in ak8963_execute_rw() 110 LOG_ERR("Failed to write i2c target slave address."); in ak8963_execute_rw() 115 ret = i2c_reg_write_byte_dt(&cfg->i2c, in ak8963_execute_rw() 119 LOG_ERR("Failed to write i2c target slave register."); in ak8963_execute_rw() [all …]
|
/Zephyr-latest/dts/bindings/spi/ |
D | raspberrypi,pico-spi-pio.yaml | 2 # SPDX-License-Identifier: Apache-2.0 6 compatible: "raspberrypi,pico-spi-pio" 8 include: ["spi-controller.yaml", "raspberrypi,pico-pio-device.yaml", "reset-device.yaml"] 11 clk-gpios: 12 type: phandle-array 17 mosi-gpios: 18 type: phandle-array 20 Output pin for Master Out Slave In. 22 miso-gpios: 23 type: phandle-array [all …]
|
D | nxp,s32-spi.yaml | 1 # Copyright 2022-2023 NXP 2 # SPDX-License-Identifier: Apache-2.0 6 compatible: "nxp,s32-spi" 8 include: [spi-controller.yaml, pinctrl-device.yaml] 17 num-cs: 26 pinctrl-0: 29 pinctrl-names: 32 slave: 35 Select if the SPI module is intended to be used in slave mode. 37 spi-sck-cs-delay: [all …]
|
/Zephyr-latest/doc/hardware/peripherals/ |
D | w1.rst | 3 1-Wire Bus 9 1-Wire is a low speed half-duplex serial bus using only a single wire plus 11 Similarly to I2C, 1-Wire uses a bidirectional open-collector data line, 13 exchanges with the slave devices. 14 The 1-Wire bus supports longer bus lines than I2C, while it reaches speeds of up 15 to 15.4 kbps in standard mode and up to 125 kbps in overdrive mode. 23 .. figure:: 1-Wire_bus_topology.drawio.svg 25 :alt: 1-Wire bus topology 27 A typical 1-Wire bus topology 30 .. _w1-master-api: [all …]
|
/Zephyr-latest/include/zephyr/dt-bindings/pinctrl/ |
D | nrf-pinctrl.h | 3 * SPDX-License-Identifier: Apache-2.0 10 * The whole nRF pin configuration information is encoded in a 32-bit bitfield 13 * - 31..24: Pin function. 14 * - 19-23: Reserved. 15 * - 18: Associated peripheral belongs to GD FAST ACTIVE1 (nRF54H only) 16 * - 17: Clockpin enable. 17 * - 16: Pin inversion mode. 18 * - 15: Pin low power mode. 19 * - 14..11: Pin output drive configuration. 20 * - 10..9: Pin pull configuration. [all …]
|
/Zephyr-latest/dts/bindings/led/ |
D | issi,is31fl3733.yaml | 2 # SPDX-License-Identifier: Apache-2.0 7 include: "i2c-device.yaml" 10 sdb-gpios: 11 type: phandle-array 17 current-limit: 23 formula: (840/R_ISET) * (current-limit/256). Defaults to max value 27 sync-mode: 31 - "none" 32 - "master" 33 - "slave" [all …]
|
/Zephyr-latest/dts/bindings/w1/ |
D | maxim,ds2477_85_common.yaml | 2 # SPDX-License-Identifier: Apache-2.0 4 # Common Properties for the DS2477 and DS2485 I2C 1-Wire masters: 6 include: [w1-master.yaml, i2c-device.yaml] 9 switching-threshold: 13 - "low" 14 - "medium" 15 - "high" 16 - "off" 18 Default Low-to-High Switching Threshold. 26 active-pull-threshold: [all …]
|
/Zephyr-latest/boards/snps/em_starterkit/ |
D | pmodmux.c | 4 * SPDX-License-Identifier: Apache-2.0 12 * 32-bits, offset 0x0, This register controls mapping of the peripheral device 16 /* 32-bits, offset 0x4 */ 20 * 32-bits, offset 0x8, SPI_MAP_CTRL[0] selects the mode of operation of the SPI 21 * Slave: Normal operation, SPI_MAP_CTRL[0]=0: SPI Slave is connected to Pmod1 22 * at connector J1. Loop-back mode, SPI_MAP_CTRL[0]=1: SPI Slave is connected to 27 * 32-bits, offset 0x8, This register controls the mapping of the UART signals 60 /* normal SPI mode */ 72 /* Pmod1[10:7] are connected to DW SPI Slave signals */ 135 * information -> Appendix: A Hardware Functional Description -> in pmod_mux_init() [all …]
|
/Zephyr-latest/drivers/serial/ |
D | uart_native_ptty_bottom.c | 5 * SPDX-License-Identifier: Apache-2.0 37 * @retval -1 If no character was available to read 38 * @retval -2 if the stdin is disconnected 47 return -2; in np_uart_stdin_poll_in_bottom() 50 int n = -1; in np_uart_stdin_poll_in_bottom() 62 return -1; in np_uart_stdin_poll_in_bottom() 63 } else if (ready == -1) { in np_uart_stdin_poll_in_bottom() 68 if ((n == -1) || (n == 0)) { in np_uart_stdin_poll_in_bottom() 69 return -1; in np_uart_stdin_poll_in_bottom() 76 * @brief Check if the output descriptor has something connected to the slave side [all …]
|
/Zephyr-latest/drivers/flash/ |
D | flash_ifx_cat1_qspi.c | 5 * SPDX-License-Identifier: Apache-2.0 67 /* The 8-bit command. 1 x I/O read command. */ 73 /* The 8-bit mode byte. This value is 0xFFFFFFFF when there is no mode present. */ 74 .mode = 0xFFFFFFFFU, 75 /* The width of the mode command transfer. */ 92 * https://iot-webserver.aus.cypress.com/projects/iot_release/ 93 * ASSETS/repo/mtb-pdl-cat1/develop/Latest/deploy/docs/ 107 /* Specifies the number of address bytes used by the memory slave device. */ 127 /* Specifies the command to read the QE-containing status register. */ 129 /* Specifies the command to read the WIP-containing status register. */ [all …]
|