Lines Matching +full:switch +full:- +full:sample
1 .. zephyr:code-sample:: gpio-custom-dts-binding
3 :relevant-api: gpio_interface devicetree-generic-id devicetree-generic-exist
10 In Zephyr, all hardware-specific configuration is described in the devicetree.
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.
25 :zephyr_file:`samples/basic/custom_dts_binding/dts/bindings/power-switch.yaml`. The gate driver for
35 Afterwards, the sample can be built and executed for the ``<board>`` as follows:
37 .. zephyr-app-commands::
38 :zephyr-app: samples/basic/custom_dts_binding
43 For demonstration purposes, some boards use the GPIO pin of the built-in LED.
45 Sample output
52 .. code-block:: console