Home
last modified time | relevance | path

Searched +full:check +full:- +full:gpios (Results 1 – 25 of 97) sorted by relevance

1234

/Zephyr-latest/tests/drivers/regulator/fixed/dts/bindings/
Dtest-regulator-fixed.yaml2 # SPDX-License-Identifier: Apache-2.0
8 compatible: "test-regulator-fixed"
11 check-gpios:
12 type: phandle-array
16 regulator enable-gpios property. This is used to confirm that signal's
20 of the flags cell in the regulator's enable-gpios property, and the
/Zephyr-latest/tests/drivers/regulator/fixed/boards/
Dnrf5340dk_nrf5340_cpuapp.overlay3 * SPDX-License-Identifier: Apache-2.0
11 enable-gpios = <&gpio0 4 GPIO_ACTIVE_HIGH>;
15 check-gpios = <&gpio0 5 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
Dnrf52840dk_nrf52840.overlay3 * SPDX-License-Identifier: Apache-2.0
11 enable-gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>;
15 check-gpios = <&gpio1 2 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
Dnrf9160dk_nrf9160.overlay3 * SPDX-License-Identifier: Apache-2.0
11 enable-gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>;
15 check-gpios = <&gpio0 11 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
20 /* Default-enabled Arduino UART steals the pins we want. */
/Zephyr-latest/dts/bindings/input/
Dgpio-kbd-matrix.yaml2 # SPDX-License-Identifier: Apache-2.0
11 kbd-matrix {
12 compatible = "gpio-kbd-matrix";
13 row-gpios = <&gpio0 0 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>,
15 col-gpios = <&gpio0 2 GPIO_ACTIVE_LOW>,
18 no-ghostkey-check;
21 compatible: "gpio-kbd-matrix"
24 - name: kbd-matrix-common.yaml
25 property-blocklist:
26 - row-size
[all …]
/Zephyr-latest/dts/bindings/mspi/
Dmspi-controller.yaml2 # SPDX-License-Identifier: Apache-2.0
11 clock-frequency:
15 "#address-cells":
18 "#size-cells":
22 op-mode:
25 - "MSPI_CONTROLLER"
26 - "MSPI_PERIPHERAL"
34 - "MSPI_HALF_DUPLEX"
35 - "MSPI_FULL_DUPLEX"
38 The controller driver may check this setting against its
[all …]
/Zephyr-latest/include/zephyr/devicetree/
Dgpio.h10 * SPDX-License-Identifier: Apache-2.0
21 * @defgroup devicetree-gpio Devicetree GPIO API
28 * gpio phandle-array property at an index
37 * gpios = <&gpio1 10 GPIO_ACTIVE_LOW>,
43 * DT_GPIO_CTLR_BY_IDX(DT_NODELABEL(n), gpios, 1) // DT_NODELABEL(gpio2)
46 * @param gpio_pha lowercase-and-underscores GPIO property with
47 * type "phandle-array"
59 * @param gpio_pha lowercase-and-underscores GPIO property with
60 * type "phandle-array"
72 * Refer to the node's binding to check if necessary.
[all …]
/Zephyr-latest/tests/drivers/gpio/gpio_basic_api/
DREADME.txt1 GPIO 2-Pin Test
5 where two GPIOs are directly wired together. The test pins are
6 identified through a test-specific devicetree binding in the `dts/`
11 the selected pins for use as GPIOs.
18 Check GPIO_0 output 2 connected to input 3
/Zephyr-latest/samples/sensor/tdk_apex/boards/
Dnrf52dk_nrf52832_i2c.overlay4 * SPDX-License-Identifier: Apache-2.0
12 tdk-apex-sensor0 = &icm42670p;
17 * Example configuration of a ICM42670-P device on i2c0 compatible with an Arduino I2C bus.
20 * address; check your device documentation if unsure.
27 int-gpios = <&arduino_header 8 GPIO_ACTIVE_HIGH>; /* D2 */
28 accel-hz = <50>;
29 gyro-hz = <50>;
30 accel-fs = <16>;
31 gyro-fs = <2000>;
/Zephyr-latest/doc/services/input/
Dgpio-kbd.rst1 .. _gpio-kbd:
6 The :dtcompatible:`gpio-kbd-matrix` driver supports a large variety of keyboard
12 row GPIOs (inputs) and selects on the columns GPIOs (output).
14 Base use case, no isolation diodes, interrupt capable GPIOs
21 .. figure:: no-diodes.svg
28 row GPIOs at the same time.
30 .. code-block:: devicetree
32 kbd-matrix {
33 compatible = "gpio-kbd-matrix";
34 row-gpios = <&gpio0 0 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>,
[all …]
/Zephyr-latest/samples/sensor/6dof_motion_drdy/boards/
Dnrf52dk_nrf52832_i2c.overlay4 * SPDX-License-Identifier: Apache-2.0
8 * Get a node identifier for 6-axis IMU sensor.
12 6dof-motion-drdy0 = &icm42670p;
17 * Example configuration of a ICM42670-P device on i2c0 compatible with an Arduino I2C bus.
20 * address; check your device documentation if unsure.
29 int-gpios = <&arduino_header 8 GPIO_ACTIVE_HIGH>; /* D2 */
30 accel-hz = <100>;
31 gyro-hz = <100>;
32 accel-fs = <16>;
33 gyro-fs = <2000>;
[all …]
/Zephyr-latest/samples/boards/bbc/microbit/sound/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
28 static const struct gpio_dt_spec sw0_gpio = GPIO_DT_SPEC_GET(DT_ALIAS(sw0), gpios);
29 static const struct gpio_dt_spec sw1_gpio = GPIO_DT_SPEC_GET(DT_ALIAS(sw1), gpios);
32 BUILD_ASSERT(DT_SAME_NODE(DT_GPIO_CTLR(DT_ALIAS(sw0), gpios), DT_GPIO_CTLR(DT_ALIAS(sw1), gpios)));
70 period -= PWM_USEC(50U); in button_pressed()
89 printk("%s: device not ready.\n", pwm.dev->name); in main()
93 /* since sw0_gpio.port == sw1_gpio.port, we only need to check ready once */ in main()
95 printk("%s: device not ready.\n", sw0_gpio.port->name); in main()
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/
Dradio_df.c4 * SPDX-License-Identifier: Apache-2.0
33 * MAX_DFE_GPIO-1, with the given parenthesized separator.
44 /* Selection of GPIOs to be used to switch antennas by Radio */
57 /* The number of dfegpio[n]-gpios properties which are set. */
64 * dfegpio[n]-gpios properties which are set.
81 * Check that we have an antenna switch pattern for the DFE idle
91 "Set the dfe-pdu-antenna devicetree property.");
102 * - SWITCHPATTERN[0] for idle period (PDU Tx/Rx), in radio_df_ant_switch_pattern_set()
103 * - SWITCHPATTERN[1] for guard and reference period, in radio_df_ant_switch_pattern_set()
104 * - SWITCHPATTERN[2] and following for switch-sampling slots. in radio_df_ant_switch_pattern_set()
[all …]
/Zephyr-latest/soc/nordic/common/
Dsoc_nrf_common.h3 * SPDX-License-Identifier: Apache-2.0
19 * @brief Get a PSEL value out of a foo-gpios or foo-pin devicetree property
21 * Many Nordic bindings have 'foo-pin' properties to specify a pin
22 * configuration as a PSEL value directly instead of using a 'foo-gpios'
25 * It would be better to use 'foo-gpios' properties instead. This type
26 * of property is more in line with the recommended DT encoding for GPIOs.
28 * To allow for a smooth migration from 'foo-pin' to 'foo-gpios', this
30 * using whichever one of 'foo-gpios' or 'foo-pin' is in the DTS.
34 * - NRF_DT_PSEL_CHECK_*() to check the property configuration at build time
35 * - NRF_DT_GPIOS_TO_PSEL() if you only have a 'foo-gpios'
[all …]
/Zephyr-latest/drivers/sensor/bosch/bmi160/
DKconfig4 # SPDX-License-Identifier: Apache-2.0
30 depends on $(dt_compat_any_has_prop,$(DT_COMPAT_BOSCH_BMI160),int-gpios)
36 depends on $(dt_compat_any_has_prop,$(DT_COMPAT_BOSCH_BMI160),int-gpios)
158 bool "fast start-up"
228 test code to check that things are working as expected.
/Zephyr-latest/dts/bindings/sensor/
Dti,bq274xx.yaml4 # SPDX-License-Identifier: Apache-2.0
11 include: [sensor-device.yaml, i2c-device.yaml]
14 design-voltage:
17 description: Battery Design Voltage in mV (3300 - 4400)
19 design-capacity:
24 taper-current:
31 terminate-voltage:
38 chemistry-id:
41 The value of the Chem ID register. When zero, the driver will not check the register.
44 int-gpios:
[all …]
/Zephyr-latest/doc/services/device_mgmt/
Dec_host_cmd.rst25 The general handler validates data from the backend e.g. check sizes, checksum, etc. If the command
44 can be changed in the future once the SPI API is extended to host command needs. Please check `the
45 discussion <https://github.com/zephyrproject-rtos/zephyr/issues/56091>`_.
51 .. code-block:: devicetree
57 compatible = "st,stm32-spi-host-cmd";
62 dma-names = "tx", "rx";
64 cs-gpios = <&gpioa 4 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
67 The STM32 SPI host command backend driver supports the :dtcompatible:`st,stm32h7-spi` and
68 :dtcompatible:`st,stm32-spi-fifo` variant implementations. To enable these variants, append the
72 .. code-block:: devicetree
[all …]
/Zephyr-latest/samples/basic/button/src/
Dmain.c2 * Copyright (c) 2016 Open-RnD Sp. z o.o.
5 * SPDX-License-Identifier: Apache-2.0
8 * debouncing, check out `input` subsystem and `samples/subsys/input/input_dump`
28 static const struct gpio_dt_spec button = GPIO_DT_SPEC_GET_OR(SW0_NODE, gpios,
36 static struct gpio_dt_spec led = GPIO_DT_SPEC_GET_OR(DT_ALIAS(led0), gpios,
51 button.port->name); in main()
58 ret, button.port->name, button.pin); in main()
66 ret, button.port->name, button.pin); in main()
72 printk("Set up button at %s pin %d\n", button.port->name, button.pin); in main()
76 ret, led.port->name); in main()
[all …]
/Zephyr-latest/drivers/bluetooth/hci/
Dapollox_blue.h4 * SPDX-License-Identifier: Apache-2.0
45 * The devices mainly include the required gpio (e.g. reset-gpios,
46 * irq-gpios).
100 * @brief Check if vendor specific receiving handling is ongoing.
/Zephyr-latest/samples/basic/button/
DREADME.rst1 .. zephyr:code-sample:: button
3 :relevant-api: gpio_interface
14 debouncing, check out :ref:`input` and :zephyr:code-sample:`input-dump`
23 The button must be configured using the ``sw0`` :ref:`devicetree <dt-guide>`
24 alias, usually in the :ref:`BOARD.dts file <devicetree-in-out-files>`. You will
27 .. code-block:: none
35 the same alias used by the :zephyr:code-sample:`blinky` sample. If this is provided, the LED
48 .. code-block:: devicetree
58 gpio-controller;
59 #gpio-cells = <2>;
[all …]
/Zephyr-latest/tests/kernel/timer/timer_behavior/
DREADME10 --------------------------------------------------------------------------------
16 GPIO pin on every cycle - first cycle will be a rising edge. This test expects
23 "test-kernel-timer-behavior-external", with property "timeout-gpios" being the
31 run(seconds: float, options: str) -> {}, int
51 One can check `pytest/saleae_logic2.py` file as a sample of external tool
60 "tool-options", a string with options passed to the Python module helper.
62 Check testcase.yaml for an example using the saleae_logic2 module.
83 the saleae_logic2 module ones are listed at pytest/requirements-saleae.txt.
86 pip install -r pytest/requirements-saleae.txt
/Zephyr-latest/dts/bindings/display/
Dftdi,ft800.yaml2 # SPDX-License-Identifier: Apache-2.0
8 include: spi-device.yaml
11 irq-gpios:
12 type: phandle-array
46 support different LCD panel. Please check FT800 Programmers
/Zephyr-latest/drivers/sensor/ams/tsl2540/
Dtsl2540_trigger.c2 * Copyright (c) 2022 T-Mobile USA, Inc.
4 * SPDX-License-Identifier: Apache-2.0
14 const struct tsl2540_config *config = dev->config; in tsl2540_setup_int()
19 gpio_pin_interrupt_configure_dt(&config->int_gpio, flags); in tsl2540_setup_int()
24 struct tsl2540_data *drv_data = dev->data; in tsl2540_handle_int()
29 k_sem_give(&drv_data->trig_sem); in tsl2540_handle_int()
31 k_work_submit(&drv_data->work); in tsl2540_handle_int()
40 tsl2540_handle_int(data->dev); in tsl2540_gpio_callback()
45 const struct tsl2540_config *config = dev->config; in tsl2540_process_int()
46 struct tsl2540_data *data = dev->data; in tsl2540_process_int()
[all …]
/Zephyr-latest/doc/releases/
Dmigration-guide-3.7.rst22 out-of-tree SoCs and boards to be ported to the new model. See the
25 * The following build-time generated headers:
27 .. list-table::
28 :header-rows: 1
30 * - Affected header files
31 * - ``app_version.h``
32 * - ``autoconf.h``
33 * - ``cmake_intdef.h``
34 * - ``core-isa-dM.h``
35 * - ``devicetree_generated.h``
[all …]
/Zephyr-latest/samples/basic/blinky/
DREADME.rst1 .. zephyr:code-sample:: blinky
3 :relevant-api: gpio_interface
14 #. Get a pin specification from the :ref:`devicetree <dt-guide>` as a
19 See :zephyr:code-sample:`pwm-blinky` for a similar sample that uses the PWM API instead.
21 .. _blinky-sample-requirements:
37 .. zephyr-app-commands::
38 :zephyr-app: samples/basic/blinky
54 On GCC-based toolchains, the error looks like this:
56 .. code-block:: none
65 .. code-block:: DTS
[all …]

1234