Home
last modified time | relevance | path

Searched +full:ready +full:- +full:high +full:- +full:drive (Results 1 – 22 of 22) sorted by relevance

/Zephyr-latest/dts/bindings/mfd/
Dnordic,npm6001.yaml2 # SPDX-License-Identifier: Apache-2.0
8 include: i2c-device.yaml
14 nordic,ready-high-drive:
16 description: Set drive strength to high for READY pin.
18 nordic,nint-high-drive:
20 description: Set drive strength to high for NINT pin.
22 nordic,sda-high-drive:
24 description: Set drive strength to high for SDA pin.
26 nordic,buck-mode0-input-type:
30 description: Input type for BUCK_MODE0 pin. Defaults IC boot-time value.
[all …]
/Zephyr-latest/tests/drivers/gpio/gpio_nrf/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
9 #include <zephyr/dt-bindings/gpio/nordic-nrf-gpio.h>
20 * Nordic Semiconductor specific pin drive configurations
28 zassert_true(device_is_ready(port), "GPIO dev is not ready"); in ZTEST()
33 "Failed to configure the pin as an P-P output with drive: NRF_GPIO_DRIVE_S0H1, err=%d", in ZTEST()
39 "Failed to configure the pin as an P-P output with drive: NRF_GPIO_DRIVE_H0S1, err=%d", in ZTEST()
45 "Failed to configure the pin as an P-P output with drive: NRF_GPIO_DRIVE_H0H1, err=%d", in ZTEST()
51 "Failed to configure the pin as an O-D output with drive: NRF_GPIO_DRIVE_H0S1, err=%d", in ZTEST()
57 "Failed to configure the pin as an O-S output with drive: NRF_GPIO_DRIVE_S0H1, err=%d", in ZTEST()
71 zassert_true(device_is_ready(port), "GPIO dev is not ready"); in ZTEST()
[all …]
/Zephyr-latest/drivers/input/
Dinput_npcx_kbd.c5 * SPDX-License-Identifier: Apache-2.0
34 /* Keyboard scan input (KSI) wake-up irq */
36 /* Size of keyboard inputs-wui mapping array */
59 const struct npcx_kbd_config *const config = dev->config; in npcx_kbd_set_detect_mode()
60 const struct input_kbd_matrix_common_config *common = &config->common; in npcx_kbd_set_detect_mode()
63 for (int i = 0; i < common->row_size; i++) { in npcx_kbd_set_detect_mode()
64 npcx_miwu_irq_get_and_clear_pending(&config->wui_maps[i]); in npcx_kbd_set_detect_mode()
67 irq_enable(config->irq); in npcx_kbd_set_detect_mode()
69 irq_disable(config->irq); in npcx_kbd_set_detect_mode()
75 const struct npcx_kbd_config *config = dev->config; in npcx_kbd_drive_column()
[all …]
Dinput_ite_it8801_kbd.c4 * SPDX-License-Identifier: Apache-2.0
56 const struct kbd_it8801_config *config = dev->config; in kbd_it8801_drive_column()
61 /* Tri-state all outputs. KSO[22:11, 6:0] output high */ in kbd_it8801_drive_column()
67 /* Selected KSO[22:11, 6:0] output low, all others KSO output high */ in kbd_it8801_drive_column()
68 kso_val = config->kso_mapping[col]; in kbd_it8801_drive_column()
71 ret = i2c_reg_write_byte_dt(&config->i2c_dev, config->reg_ksomcr, kso_val); in kbd_it8801_drive_column()
73 LOG_ERR("Failed to drive column (ret %d)", ret); in kbd_it8801_drive_column()
80 const struct kbd_it8801_config *const config = dev->config; in kbd_it8801_read_row()
84 ret = i2c_reg_read_byte_dt(&config->i2c_dev, config->reg_ksidr, &value); in kbd_it8801_read_row()
89 /* Bits are active-low, so invert returned levels */ in kbd_it8801_read_row()
[all …]
/Zephyr-latest/dts/bindings/gpio/
Dadi,max14906-gpio.yaml3 # SPDX-License-Identifier: Apache-2.0
7 compatible: "adi,max14906-gpio"
10 "#gpio-cells":
17 drdy-gpios:
19 High-Side Open-Drain Output. READY is passive low when the internal
22 type: phandle-array
23 fault-gpios:
27 type: phandle-array
28 sync-gpios:
31 type: phandle-array
[all …]
Dadi,max14916-gpio.yaml3 # SPDX-License-Identifier: Apache-2.0
7 compatible: "adi,max14916-gpio"
10 "#gpio-cells":
17 drdy-gpios:
19 High-Side Open-Drain Output. READY is passive low when the internal
22 type: phandle-array
23 fault-gpios:
27 type: phandle-array
28 sync-gpios:
31 type: phandle-array
[all …]
/Zephyr-latest/doc/services/input/
Dgpio-kbd.rst1 .. _gpio-kbd:
6 The :dtcompatible:`gpio-kbd-matrix` driver supports a large variety of keyboard
21 .. figure:: no-diodes.svg
30 .. code-block:: devicetree
32 kbd-matrix {
33 compatible = "gpio-kbd-matrix";
34 row-gpios = <&gpio0 0 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>,
37 col-gpios = <&gpio0 3 GPIO_ACTIVE_LOW>,
46 GPIOs for columns that are not currently selected are configured in high
49 time can be tweaked by changing the ``settle-time-us`` property.
[all …]
/Zephyr-latest/include/zephyr/sd/
Dsd_spec.h2 * Copyright 2022-2023 NXP
4 * SPDX-License-Identifier: Apache-2.0
69 * to inform the SD card the next command is an application-specific one.
87 /* Bits 0-2 reserved */
99 /* Bits 17-18 reserved */
184 #define SD_SPI_CMD_BODY_SIZE (SD_SPI_CMD_SIZE - 1)
271 /** VDD 2.7-2.8 */
273 /** VDD 2.8-2.9 */
275 /** VDD 2.9-3.0 */
277 /** VDD 3.0-3.1 */
[all …]
/Zephyr-latest/subsys/sd/
Dsd_ops.c4 * SPDX-License-Identifier: Apache-2.0
27 if (!card->host_props.is_spi) { in sdmmc_read_status()
28 cmd.arg = (card->relative_addr << 16U); in sdmmc_read_status()
34 ret = sdhc_request(card->sdhc, &cmd, NULL); in sdmmc_read_status()
38 if (card->host_props.is_spi) { in sdmmc_read_status()
42 return -EACCES; in sdmmc_read_status()
46 return -EINVAL; in sdmmc_read_status()
50 return -EIO; in sdmmc_read_status()
61 return -EBUSY; in sdmmc_read_status()
64 /* Waits for SD card to be ready for data. Returns 0 if card is ready */
[all …]
/Zephyr-latest/drivers/i2c/
Di2c_mchp_xec_v2.c5 * SPDX-License-Identifier: Apache-2.0
25 #include "i2c-priv.h"
112 * i2c_baud_clk_period/bus_clk_period - 2 = (low_period + hi_period)
113 * bus_clk_reg (16MHz/100KHz -2) = 0x4F + 0x4F
114 * (16MHz/400KHz -2) = 0x0F + 0x17
115 * (16MHz/1MHz -2) = 0x05 + 0x09
144 (const struct i2c_xec_config *const) (dev->config); in i2c_ctl_wr()
146 (struct i2c_xec_data *const) (dev->data); in i2c_ctl_wr()
147 struct i2c_smb_regs *regs = (struct i2c_smb_regs *)cfg->base_addr; in i2c_ctl_wr()
149 data->i2c_ctrl = ctrl; in i2c_ctl_wr()
[all …]
Di2c_npcx_controller.c4 * SPDX-License-Identifier: Apache-2.0
15 * support for a two-wire SMBus/I2C synchronous serial interface. The following
21 * +<----------------+<----------------------+
23 * +------+ +------------+ | +------- ----+ | +------- -------+ |
24 * +->| IDLE |-->| WAIT_START |--->| WRITE_FIFO |-+--->| WRITE_SUSPEND |--+
25 * | +------+ +------------+ +------------+ Yes +---------------+ |
27 * | +-----------+ |
28 * +--------------------------------------------| WAIT_STOP |<------------+
29 * STOP is completed +-----------+ Issue STOP
35 * +<-----------------+<---------------------+
[all …]
/Zephyr-latest/drivers/sensor/apds9960/
Dapds9960.c5 *SPDX-License-Identifier: Apache-2.0
31 apds9960_setup_int(drv_data->dev->config, false); in apds9960_handle_cb()
34 k_work_submit(&drv_data->work); in apds9960_handle_cb()
36 k_sem_give(&drv_data->data_sem); in apds9960_handle_cb()
52 const struct apds9960_config *config = dev->config; in apds9960_sample_fetch()
53 struct apds9960_data *data = dev->data; in apds9960_sample_fetch()
58 return -ENOTSUP; in apds9960_sample_fetch()
69 if (i2c_reg_update_byte_dt(&config->i2c, in apds9960_sample_fetch()
72 return -EIO; in apds9960_sample_fetch()
75 k_sem_take(&data->data_sem, K_FOREVER); in apds9960_sample_fetch()
[all …]
/Zephyr-latest/drivers/ethernet/
Ddsa_ksz8xxx.c4 * SPDX-License-Identifier: Apache-2.0
45 #define PRV_DATA(ctx) ((struct ksz8xxx_data *const)(ctx)->prv_data)
66 spi_write_dt(&pdev->spi, &tx); in dsa_ksz8xxx_write_reg()
98 if (!spi_transceive_dt(&pdev->spi, &tx, &rx)) { in dsa_ksz8xxx_read_reg()
139 * Wait for SPI of KSZ8794 being fully operational - up to 10 ms in dsa_ksz8xxx_probe()
142 tmp != KSZ8XXX_CHIP_ID0_ID_DEFAULT && timeout > 0; timeout--) { in dsa_ksz8xxx_probe()
149 return -ENODEV; in dsa_ksz8xxx_probe()
163 return -ENODEV; in dsa_ksz8xxx_probe()
176 * According to KSZ8794 manual - write to static mac address table in dsa_ksz8xxx_write_static_mac_table()
234 * According to KSZ8794 manual - read from static mac address table in dsa_ksz8xxx_read_static_mac_table()
[all …]
/Zephyr-latest/samples/shields/npm6001_ek/src/
Dmain.c3 * SPDX-License-Identifier: Apache-2.0
12 #include <zephyr/dt-bindings/gpio/nordic-npm6001-gpio.h>
13 #include <zephyr/dt-bindings/regulator/npm6001.h>
50 printk("nPM6001 GPIO device not ready\n"); in main()
55 printk("nPM6001 Watchdog device not ready\n"); in main()
62 printk("nPM6001 %s regulator device not ready\n", in main()
94 return -ENODEV; in cmd_regulator_voltages()
119 return -ENODEV; in cmd_regulator_enable()
141 return -ENODEV; in cmd_regulator_disable()
162 return -ENODEV; in cmd_regulator_set()
[all …]
/Zephyr-latest/include/zephyr/drivers/
Dgpio.h2 * Copyright (c) 2019-2020 Nordic Semiconductor ASA
5 * Copyright (c) 2015-2016 Intel Corporation.
7 * SPDX-License-Identifier: Apache-2.0
27 #include <zephyr/dt-bindings/gpio/gpio.h>
61 /* Initializes output to a high state. */
71 /** Configures GPIO pin as output and initializes it to a high state. */
90 * considered as logical level 1 (an active state), physical level high will
132 /* Trigger detection on input state is (or transitions to) physical high or
186 /** Configures GPIO interrupt to be triggered on pin physical level high and
239 * The value for a pin with index n is high (physical mode) or active
[all …]
/Zephyr-latest/drivers/video/
Dov7670.c4 * SPDX-License-Identifier: Apache-2.0
213 /* Brightness Control, with signal -128 to +128, 0x00 is middle value */
216 /* Internal clock pre-scalar,F(internal clock) = F(input clock)/(Bit[5:0]+1) */
223 /* Output Drive Capability */
224 {OV7670_COM2, 0x00}, /* Common Control 2, Output Drive Capability: 1x */
233 {OV7670_DNSTH, 0x00}, /* De-noise Strength */
268 /* AGC/AEC - Automatic Gain Control/Automatic exposure Control */
308 {OV7670_LCC6, 0x04}, /* effective only when LCC5[2] is high */
309 {OV7670_LCC7, 0x08}, /* effective only when LCC5[2] is high */
327 /* Histogram-based AEC/AGC Control */
[all …]
/Zephyr-latest/drivers/mipi_dbi/
Dmipi_dbi_smartbond.c4 * SPDX-License-Identifier: Apache-2.0
100 struct mipi_dbi_smartbond_data *data = dev->data; in mipi_dbi_smartbond_send_single_frame()
108 k_sem_take(&data->sync_sem, K_FOREVER); in mipi_dbi_smartbond_send_single_frame()
111 LCDC->LCDC_INTERRUPT_REG |= LCDC_LCDC_INTERRUPT_REG_LCDC_VSYNC_IRQ_EN_Msk; in mipi_dbi_smartbond_send_single_frame()
114 LCDC->LCDC_MODE_REG |= LCDC_LCDC_MODE_REG_LCDC_SFRAME_UPD_Msk; in mipi_dbi_smartbond_send_single_frame()
117 k_sem_take(&data->sync_sem, K_FOREVER); in mipi_dbi_smartbond_send_single_frame()
119 if (data->underflow_flag) { in mipi_dbi_smartbond_send_single_frame()
121 data->underflow_flag = false; in mipi_dbi_smartbond_send_single_frame()
128 const struct mipi_dbi_smartbond_config *config = dev->config; in mipi_dbi_smartbond_reset()
131 if (!gpio_is_ready_dt(&config->reset)) { in mipi_dbi_smartbond_reset()
[all …]
/Zephyr-latest/drivers/spi/
Dspi_xec_qmspi_ldma.c4 * SPDX-License-Identifier: Apache-2.0
20 #include <zephyr/dt-bindings/clock/mchp_xec_pcr.h>
21 #include <zephyr/dt-bindings/interrupt-controller/mchp-xec-ecia.h>
35 * data bytes will be left shifted by 1. Work-around for SPI Mode 3 is
36 * to sample input line(s) on same edge as output data is ready.
123 return -ETIMEDOUT; in xec_qmspi_spin_yield()
133 * Some QMSPI timing register may be modified by the Boot-ROM OTP
144 taps[0] = regs->TM_TAPS; in qmspi_reset()
145 taps[1] = regs->TM_TAPS_ADJ; in qmspi_reset()
146 taps[2] = regs->TM_TAPS_CTRL; in qmspi_reset()
[all …]
/Zephyr-latest/drivers/sdhc/
Drcar_mmc.c4 * SPDX-License-Identifier: Apache-2.0
109 struct mmc_rcar_data *data = dev->data; in rcar_mmc_reset_and_mask_irqs()
124 k_sem_reset(&data->irq_xref_fin); in rcar_mmc_reset_and_mask_irqs()
138 * @retval -EINVAL: the dev pointer is NULL
145 return -EINVAL; in rcar_mmc_card_busy()
160 * @retval -ETIMEDOUT: timed out while tx/rx
161 * @retval -EIO: I/O error
162 * @retval -EILSEQ: communication out of sync
170 return -ETIMEDOUT; in rcar_mmc_check_errors()
175 return -EILSEQ; in rcar_mmc_check_errors()
[all …]
/Zephyr-latest/drivers/led/
Dlp5562.c4 * SPDX-License-Identifier: Apache-2.0
13 * The LP5562 is a 4-channel LED driver that communicates over I2C. The four
23 * - Set the brightness.
24 * - Fade the brightness over time.
25 * - Loop parts of the program or the whole program.
26 * - Add delays.
27 * - Synchronize between the engines.
133 * it to drive the PWM or by one of the three execution engines that can be
189 * @retval -EINVAL If an invalid channel is given.
208 return -EINVAL; in lp5562_get_pwm_reg()
[all …]
/Zephyr-latest/doc/releases/
Drelease-notes-3.3.rst14 * Introduced :ref:`USB-C <usbc_api>` device stack with PD (power delivery)
17 CMSIS-DSP as the default backend.
30 * CVE-2023-0359: Under embargo until 2023-04-20
32 * CVE-2023-0779: Under embargo until 2023-04-22
66 removed in favor of new :dtcompatible:`zephyr,flash-disk` devicetree binding.
71 * Starting from this release ``zephyr-`` prefixed tags won't be created
82 image states). Use of a truncated hash or non-sha256 hash will still work
88 registration function at boot-up. If applications register this then
93 application code, these will now automatically be registered at boot-up (this
129 This may cause out-of-tree scripts or commands to fail if they have relied
[all …]
Drelease-notes-3.2.rst13 * Added support for :ref:`bin-blobs` (also see :ref:`west-blobs`).
15 * Converted all supported boards from ``pinmux`` to :ref:`pinctrl-guide`.
31 * CVE-2022-2993: Under embargo until 2022-11-03
33 * CVE-2022-2741: Under embargo until 2022-10-14
56 This definition can be used by third-party code to compile code conditional
58 Therefore, any third-party code integrated using the Zephyr build system will
91 changed from ``-ENETDOWN`` to ``-ENETUNREACH``. A return value of ``-ENETDOWN`` now indicates
129 * Removed support for configuring the CAN-FD maximum DLC value via Kconfig
156 valid for specific bindings to specify like :dtcompatible:`gpio-leds` and
157 :dtcompatible:`fixed-partitions`.
[all …]