Lines Matching +full:built +full:- +full:in
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.
12 Consequently, also GPIO pins are configured in the devicetree and assigned to a specific purpose
15 This is in contrast to other embedded environments like Arduino, where e.g. the direction (input /
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.
24 custom devicetree binding for the power output controlled via a GPIO pin is specified in the file
25 :zephyr_file:`samples/basic/custom_dts_binding/dts/bindings/power-switch.yaml`. The gate driver for
26 the MOSFET would be connected to the pin as specified in the ``.overlay`` file in the boards
33 in the ``boards`` subfolder.
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.
52 .. code-block:: console