/Zephyr-Core-3.5.0/samples/subsys/modbus/rtu_server/ |
D | sample.yaml | 7 - nrf52840dk_nrf52840 8 - frdm_k64f 10 - nrf52840dk_nrf52840 12 - uart 13 - modbus 14 filter: dt_enabled_alias_with_parent_compat("led0", "gpio-leds") and 15 dt_enabled_alias_with_parent_compat("led1", "gpio-leds") and 16 dt_enabled_alias_with_parent_compat("led2", "gpio-leds") 18 - gpio 19 - arduino_serial [all …]
|
/Zephyr-Core-3.5.0/dts/bindings/led/ |
D | gpio-leds.yaml | 2 # SPDX-License-Identifier: Apache-2.0 5 This allows you to define a group of LEDs. Each LED in the group is 6 controlled by a GPIO. Each LED is defined in a child node of the 7 gpio-leds node. 9 Here is an example which defines three LEDs in the node /leds: 12 leds { 13 compatible = "gpio-leds"; 28 - led_0 is pin 1 on gpio0. The LED is on when the pin is low, 30 - led_1 is pin 2 on gpio0. The LED is on when the pin is high, 32 - led_2 is pin 15 on gpio1. The LED is on when the pin is low, [all …]
|
/Zephyr-Core-3.5.0/samples/subsys/modbus/tcp_server/ |
D | sample.yaml | 8 - frdm_k64f 10 filter: dt_enabled_alias_with_parent_compat("led0", "gpio-leds") and 11 dt_enabled_alias_with_parent_compat("led1", "gpio-leds") and 12 dt_enabled_alias_with_parent_compat("led2", "gpio-leds") 14 - gpio 15 - netif
|
/Zephyr-Core-3.5.0/samples/basic/blinky/ |
D | README.rst | 1 .. zephyr:code-sample:: blinky 3 :relevant-api: gpio_interface 5 Blink an LED forever using the GPIO API. 10 The Blinky sample blinks an LED forever using the :ref:`GPIO API <gpio_api>`. 14 #. Get a pin specification from the :ref:`devicetree <dt-guide>` as a 16 #. Configure the GPIO pin as an output 19 See :zephyr:code-sample:`pwm-blinky` for a similar sample that uses the PWM API instead. 21 .. _blinky-sample-requirements: 28 #. Have an LED connected via a GPIO pin (these are called "User LEDs" on many of 37 .. zephyr-app-commands:: [all …]
|
D | sample.yaml | 6 - LED 7 - gpio 8 filter: dt_enabled_alias_with_parent_compat("led0", "gpio-leds") 9 depends_on: gpio 12 - frdm_k64f
|
/Zephyr-Core-3.5.0/samples/basic/threads/ |
D | sample.yaml | 2 description: A basic demo to showcase multi-threading using K_THREAD_DEFINE 7 - kernel 8 - threads 9 - gpio 10 filter: dt_enabled_alias_with_parent_compat("led0", "gpio-leds") and 11 dt_enabled_alias_with_parent_compat("led1", "gpio-leds") 13 - nrf52833dk_nrf52820 14 depends_on: gpio 20 - "Toggled led0; counter=(.*)" 21 - "Toggled led1; counter=(.*)"
|
/Zephyr-Core-3.5.0/samples/drivers/led_apa102c_bitbang/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 11 * level shifter (preferred) or pull-up resistors are needed. 12 * Make sure the pins are 5V tolerant if using pull-up 16 * Protect your eyes and do not look directly into those LEDs. 24 #include <zephyr/drivers/gpio.h> 47 /* Number of LEDS linked together */ 71 int leds = 0; in main() local 75 printk("GPIO device %s is not ready!\n", gpio_dev->name); in main() 79 /* Setup GPIO output */ in main() 93 for (leds = 0; leds < NUM_LEDS; leds++) { in main() [all …]
|
/Zephyr-Core-3.5.0/samples/drivers/led_pwm/boards/ |
D | mr_canhubk3.conf | 2 # SPDX-License-Identifier: Apache-2.0 4 # Due to gpio-leds and pwm-leds are the same RGB LEDs so should not be used 5 # at the same time, need to disable this config when using pwm-leds.
|
/Zephyr-Core-3.5.0/boards/arm/nucleo_h745zi_q/ |
D | nucleo_h745zi_q.dtsi | 4 * SPDX-License-Identifier: Apache-2.0 7 #include <st/h7/stm32h745zitx-pinctrl.dtsi> 9 #include <zephyr/dt-bindings/input/input-event-codes.h> 12 leds: leds { label 13 compatible = "gpio-leds"; 25 compatible = "gpio-keys";
|
/Zephyr-Core-3.5.0/samples/drivers/led_xec/ |
D | README.rst | 1 .. zephyr:code-sample:: led-xec 2 :name: Breathing-blinking LED (BBLED) 3 :relevant-api: led_interface 5 Control a BBLED (Breathing-Blinking LED) using Microchip XEC driver. 10 This sample allows to test the Microchip led-xec driver which uses the 11 breathing-blinking LED (BBLED) controllers. The SoC design is fixed 12 allowing each BBLED control over one specific GPIO. 16 - BBLED controller 0 uses GPIO 0156. 17 - BBLED controller 1 uses GPIO 0157. 18 - BBLED controller 2 uses GPIO 0153. [all …]
|
/Zephyr-Core-3.5.0/boards/arm/cyclonev_socdk/ |
D | cyclonev_socdk.dts | 2 * SPDX-License-Identifier: Apache-2.0 10 #include <zephyr/dt-bindings/gpio/gpio.h> 14 compatible = "altr,socfpga-cyclone5-socdk", "altr,socfpga-cyclone5", "altr,socfpga"; 23 /* Giving different names to the LEDs connected to the HPS side of the chip */ 28 eeprom-0 = &eeprom; 31 leds { 32 compatible = "gpio-leds"; 50 local-mac-address = [e6 88 2d 82 1f d4]; 52 gpio0: gpio@ff708000 { 55 gpio1: gpio@ff709000 { [all …]
|
/Zephyr-Core-3.5.0/tests/drivers/gpio/gpio_api_1pin/boards/ |
D | up_squared.overlay | 4 * SPDX-License-Identifier: Apache-2.0 12 * () Advanced -> HAT Configurations: 13 * - HD-Audio / I2S6 Selec -> Disabled 15 * - GPIO 28 (Pin40) Confi -> Output 23 leds { 24 compatible = "gpio-leds";
|
/Zephyr-Core-3.5.0/boards/arm/rpi_pico/ |
D | rpi_pico.dts | 4 * SPDX-License-Identifier: Apache-2.0 7 /dts-v1/; 9 #include "rpi_pico-common.dtsi" 12 leds { 13 compatible = "gpio-leds"; 21 compatible = "pwm-leds"; 31 pwm-led0 = &pwm_led0;
|
/Zephyr-Core-3.5.0/samples/basic/custom_dts_binding/ |
D | README.rst | 1 .. zephyr:code-sample:: gpio-custom-dts-binding 2 :name: GPIO with custom Devicetree binding 3 :relevant-api: gpio_interface devicetree-generic-id devicetree-generic-exist 5 Use custom Devicetree binding to control a GPIO. 10 In Zephyr, all hardware-specific configuration is described in the devicetree. 12 Consequently, also GPIO pins are configured in the devicetree and assigned to a specific purpose 16 output) of a GPIO pin is configured in the application firmware. 18 For typical use cases like LEDs or buttons, the existing :dtcompatible:`gpio-leds` or 19 :dtcompatible:`gpio-keys` compatibles can be used. 21 This sample demonstrates how to use a GPIO pin for other purposes with a custom devicetree binding. [all …]
|
/Zephyr-Core-3.5.0/boards/arm/nucleo_l452re/ |
D | nucleo_l452re_p.dts | 5 * SPDX-License-Identifier: Apache-2.0 8 /dts-v1/; 10 #include <st/l4/stm32l452retxp-pinctrl.dtsi> 14 model = "STMicroelectronics STM32L452RE-P-NUCLEO board"; 15 compatible = "st,stm32l452re-nucleo"; 17 leds: leds { label 18 compatible = "gpio-leds";
|
D | nucleo_l452re.dts | 5 * SPDX-License-Identifier: Apache-2.0 8 /dts-v1/; 10 #include <st/l4/stm32l452r(c-e)tx-pinctrl.dtsi> 15 model = "STMicroelectronics STM32L452RE-NUCLEO board"; 16 compatible = "st,stm32l452re-nucleo"; 18 leds: leds { label 19 compatible = "gpio-leds";
|
/Zephyr-Core-3.5.0/boards/arm/arduino_giga_r1/ |
D | arduino_giga_r1.dtsi | 4 * SPDX-License-Identifier: Apache-2.0 8 #include <zephyr/dt-bindings/input/input-event-codes.h> 11 leds { 12 compatible = "gpio-leds"; 25 compatible = "gpio-keys";
|
/Zephyr-Core-3.5.0/boards/arm/quick_feather/ |
D | quick_feather.dts | 4 * SPDX-License-Identifier: Apache-2.0 7 /dts-v1/; 9 #include <zephyr/dt-bindings/pinctrl/quicklogic-eos-s3-pinctrl.h> 10 #include <zephyr/dt-bindings/input/input-event-codes.h> 19 zephyr,shell-uart = &uart0; 20 zephyr,uart-pipe = &uart0; 30 leds { 31 compatible = "gpio-leds"; 33 gpios = <&gpio 4 GPIO_ACTIVE_HIGH>; 38 gpios = <&gpio 5 GPIO_ACTIVE_HIGH>; [all …]
|
/Zephyr-Core-3.5.0/tests/drivers/gpio/gpio_get_direction/ |
D | testcase.yaml | 2 drivers.gpio.get_direction: 4 - drivers 5 - gpio 6 depends_on: gpio 10 - mps2_an385 11 - mps2_an521 12 - neorv32 13 filter: dt_enabled_alias_with_parent_compat("led0", "gpio-leds")
|
/Zephyr-Core-3.5.0/tests/drivers/gpio/gpio_api_1pin/ |
D | testcase.yaml | 2 drivers.gpio.1pin: 4 - drivers 5 - gpio 6 depends_on: gpio 10 - mps2_an385 11 - mps2_an521 12 - neorv32 13 filter: dt_enabled_alias_with_parent_compat("led0", "gpio-leds")
|
/Zephyr-Core-3.5.0/boards/arm/gd32f407v_start/ |
D | gd32f407v_start.dts | 3 * SPDX-License-Identifier: Apache-2.0 6 /dts-v1/; 9 #include "gd32f407v_start-pinctrl.dtsi" 10 #include <zephyr/dt-bindings/input/input-event-codes.h> 13 model = "GigaDevice GD32F407V-START"; 14 compatible = "gd,gd32f407v-start"; 20 zephyr,shell-uart = &usart0; 23 leds { 24 compatible = "gpio-leds"; 31 compatible = "gpio-keys"; [all …]
|
/Zephyr-Core-3.5.0/boards/arm/gd32f450v_start/ |
D | gd32f450v_start.dts | 3 * SPDX-License-Identifier: Apache-2.0 6 /dts-v1/; 9 #include "gd32f450v_start-pinctrl.dtsi" 10 #include <zephyr/dt-bindings/input/input-event-codes.h> 13 model = "GigaDevice GD32F450V-START"; 14 compatible = "gd,gd32f450v-start"; 20 zephyr,shell-uart = &usart0; 23 leds { 24 compatible = "gpio-leds"; 31 compatible = "gpio-keys"; [all …]
|
/Zephyr-Core-3.5.0/tests/drivers/gpio/gpio_get_direction/boards/ |
D | nrf52_bsim.overlay | 4 * SPDX-License-Identifier: Apache-2.0 13 leds { 14 compatible = "gpio-leds";
|
/Zephyr-Core-3.5.0/boards/arm/cy8cproto_062_4343w/ |
D | cy8cproto_062_4343w-common.dtsi | 3 * SPDX-License-Identifier: Apache-2.0 6 #include <zephyr/dt-bindings/input/input-event-codes.h> 14 leds { 15 compatible = "gpio-leds"; 23 compatible = "gpio-keys";
|
/Zephyr-Core-3.5.0/boards/riscv/neorv32/ |
D | neorv32.dts | 4 * SPDX-License-Identifier: Apache-2.0 7 /dts-v1/; 25 zephyr,shell-uart = &uart0; 26 zephyr,uart-pipe = &uart0; 31 compatible = "soc-nv-flash", "mmio-sram"; 36 compatible = "soc-nv-flash", "mmio-sram"; 41 compatible = "mmio-sram"; 46 leds { 47 compatible = "gpio-leds"; 49 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>; [all …]
|