Home
last modified time | relevance | path

Searched +full:gpio +full:- +full:hog (Results 1 – 17 of 17) sorted by relevance

/Zephyr-Core-3.4.0/dts/bindings/gpio/
Dgpio-controller.yaml2 # SPDX-License-Identifier: Apache-2.0
4 # Common fields for GPIO controllers
7 "gpio-controller":
10 description: Convey's this node is a GPIO controller
11 "#gpio-cells":
14 description: Number of items to expect in a GPIO specifier
19 This property indicates the number of in-use slots of available slots
28 gpio-reserved-ranges:
31 If not all the GPIOs at offsets 0...N-1 are usable for ngpios = <N>, then
36 For example, setting "gpio-reserved-ranges = <3 2>, <10 1>;" means that
[all …]
/Zephyr-Core-3.4.0/tests/drivers/gpio/gpio_hogs/boards/
Dnative_posix.overlay4 * SPDX-License-Identifier: Apache-2.0
7 #include <zephyr/dt-bindings/gpio/gpio.h>
11 output-high-gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
12 output-low-gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
13 input-gpios = <&gpio0 3 GPIO_ACTIVE_HIGH>;
19 gpio-hog;
21 output-high;
25 gpio-hog;
27 output-low;
31 gpio-hog;
Dmec172xevb_assy6906.overlay4 * SPDX-License-Identifier: Apache-2.0
7 #include <zephyr/dt-bindings/gpio/gpio.h>
11 output-high-gpios = <&gpio_000_036 13 GPIO_ACTIVE_LOW>;
12 output-low-gpios = <&gpio_000_036 14 GPIO_ACTIVE_HIGH>;
13 input-gpios = <&gpio_000_036 11 GPIO_ACTIVE_LOW>;
19 gpio-hog;
21 output-high;
25 gpio-hog;
27 output-low;
31 gpio-hog;
Dnative_posix_64.overlay4 * SPDX-License-Identifier: Apache-2.0
7 #include <zephyr/dt-bindings/gpio/gpio.h>
11 output-high-gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
12 output-low-gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
13 input-gpios = <&gpio0 3 GPIO_ACTIVE_HIGH>;
19 gpio-hog;
21 output-high;
25 gpio-hog;
27 output-low;
31 gpio-hog;
Dnrf52840dk_nrf52840.overlay4 * SPDX-License-Identifier: Apache-2.0
7 #include <zephyr/dt-bindings/gpio/gpio.h>
11 output-high-gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
12 output-low-gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
13 input-gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
19 gpio-hog;
21 output-high;
25 gpio-hog;
27 output-low;
31 gpio-hog;
Dnucleo_g474re.overlay4 * SPDX-License-Identifier: Apache-2.0
7 #include <zephyr/dt-bindings/gpio/gpio.h>
11 output-high-gpios = <&gpioc 2 GPIO_ACTIVE_LOW>;
12 output-low-gpios = <&gpiof 1 GPIO_ACTIVE_HIGH>;
13 input-gpios = <&gpioc 3 GPIO_ACTIVE_HIGH>;
19 gpio-hog;
21 output-high;
25 gpio-hog;
33 gpio-hog;
35 output-low;
Dfrdm_k64f.overlay4 * SPDX-License-Identifier: Apache-2.0
7 #include <zephyr/dt-bindings/gpio/gpio.h>
11 output-high-gpios = <&gpioc 5 GPIO_ACTIVE_LOW>;
12 output-low-gpios = <&gpiob 20 GPIO_ACTIVE_HIGH>;
13 input-gpios = <&gpioc 7 GPIO_ACTIVE_HIGH>;
19 gpio-hog;
21 output-high;
25 gpio-hog;
33 gpio-hog;
35 output-low;
/Zephyr-Core-3.4.0/drivers/gpio/
Dgpio_hogs.c2 * Copyright (c) 2022-2023 Vestas Wind Systems A/S
4 * SPDX-License-Identifier: Apache-2.0
8 #include <zephyr/drivers/gpio.h>
37 /* Expands to 1 if node_id is a GPIO controller, 0 otherwise */
41 /* Expands to to 1 if node_id is a GPIO hog, empty otherwise */
45 /* Expands to 1 if GPIO controller node_id has GPIO hog children, 0 otherwise */
52 /* Called for GPIO hog indexes */
56 /* Called for GPIO hog dts nodes */
61 /* Called for GPIO controller dts node children */
66 /* Called for each GPIO controller dts node which has GPIO hog children */
[all …]
/Zephyr-Core-3.4.0/include/zephyr/devicetree/
Dgpio.h3 * @brief GPIO Devicetree macro public API header file.
10 * SPDX-License-Identifier: Apache-2.0
21 * @defgroup devicetree-gpio Devicetree GPIO API
28 * gpio phandle-array property at an index
32 * gpio1: gpio@... { };
34 * gpio2: gpio@... { };
46 * @param gpio_pha lowercase-and-underscores GPIO property with
47 * type "phandle-array"
49 * @return the node identifier for the gpio controller referenced at
59 * @param gpio_pha lowercase-and-underscores GPIO property with
[all …]
/Zephyr-Core-3.4.0/tests/drivers/gpio/gpio_hogs/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
7 #include <zephyr/drivers/gpio.h>
23 if (spec->port == NULL) { in assert_gpio_hog_direction()
28 err = gpio_pin_is_output(spec->port, spec->pin); in assert_gpio_hog_direction()
30 err = gpio_pin_is_input(spec->port, spec->pin); in assert_gpio_hog_direction()
33 if (err == -ENOSYS) { in assert_gpio_hog_direction()
37 zassert_equal(err, 1, "GPIO hog %s pin %d not configured as %s", in assert_gpio_hog_direction()
38 spec->port->name, spec->pin, in assert_gpio_hog_direction()
62 if (spec->port == NULL) { in assert_gpio_hog_config()
67 if (err == -ENOSYS) { in assert_gpio_hog_config()
[all …]
/Zephyr-Core-3.4.0/doc/build/dts/
Dmacros.bnf7 ; --------------------------------------------------------------------
8 ; dt-macro: the top level nonterminal for a devicetree macro
10 ; A dt-macro starts with uppercase "DT_", and is one of:
12 ; - a <node-macro>, generated for a particular node
13 ; - some <other-macro>, a catch-all for other types of macros
14 dt-macro = node-macro / other-macro
16 ; --------------------------------------------------------------------
17 ; node-macro: a macro related to a node
20 node-macro = property-macro
22 node-macro =/ pinctrl-macro
[all …]
/Zephyr-Core-3.4.0/tests/lib/devicetree/api/
Dapp.overlay4 * SPDX-License-Identifier: Apache-2.0
9 * with real-world devicetree nodes, to allow these tests to run on
15 test-alias = &test_nodelabel;
19 ztest,gpio = &test_nodelabel;
28 #address-cells = < 0x1 >;
29 #size-cells = < 0x1 >;
30 interrupt-parent = <&test_intc>;
32 test_pinctrl: pin-controller {
34 test_pincfg_a: pincfg-a {};
35 test_pincfg_b: pincfg-b {};
[all …]
/Zephyr-Core-3.4.0/boards/arm/nrf5340_audio_dk_nrf5340/
Dnrf5340_audio_dk_nrf5340_cpuapp_common.dtsi2 * Copyright (c) 2020-2022 Nordic Semiconductor ASA
4 * SPDX-License-Identifier: Apache-2.0
6 #include "nrf5340_audio_dk_nrf5340_cpuapp_common-pinctrl.dtsi"
7 #include <zephyr/dt-bindings/sensor/ina230.h>
12 zephyr,shell-uart = &uart0;
13 zephyr,uart-mcumgr = &uart0;
14 zephyr,bt-mon-uart = &uart0;
15 zephyr,bt-c2h-uart = &uart0;
16 zephyr,bt-hci-rpmsg-ipc = &ipc0;
20 gpio_fwd: nrf-gpio-forwarder {
[all …]
/Zephyr-Core-3.4.0/samples/bluetooth/peripheral_hids/src/
Dhog.c2 * @brief HoG Service sample
8 * SPDX-License-Identifier: Apache-2.0
12 #include <zephyr/drivers/gpio.h>
96 return bt_gatt_attr_read(conn, attr, buf, len, offset, attr->user_data, in read_info()
112 return bt_gatt_attr_read(conn, attr, buf, len, offset, attr->user_data, in read_report()
133 uint8_t *value = attr->user_data; in write_ctrl_point()
145 /* Require encryption using authenticated link-key. */
/Zephyr-Core-3.4.0/scripts/dts/python-devicetree/src/devicetree/
Dedtlib.py3 # SPDX-License-Identifier: BSD-3-Clause
17 but a binding can also come from a 'child-binding:' key in the binding for the
23 The top-level entry points for the library are the EDT and Binding classes.
31 # --------------------
47 # - Consider using @property for APIs that don't need parameters. It makes
51 # - Think about the data type of the thing you're exposing. Exposing something
55 # - Avoid get_*() prefixes on functions. Name them after the thing they return
60 # - Don't expose dtlib stuff directly.
62 # - Add documentation for any new APIs you add.
108 The free-form description of the binding, or None.
[all …]
/Zephyr-Core-3.4.0/scripts/dts/
Dgen_defines.py3 # Copyright (c) 2019 - 2020 Nordic Semiconductor ASA
5 # SPDX-License-Identifier: BSD-3-Clause
16 # Note: Do not access private (_-prefixed) identifiers from edtlib here (and
30 sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'python-devicetree',
62 "-Wno-simple_bus_reg" not in args.dtc_flags,
73 with open(args.dts_out, "w", encoding="utf-8") as f:
96 with open(args.header_out, "w", encoding="utf-8") as header_file:
106 # Check to see if we have duplicate "zephyr,memory-region" property values.
109 if 'zephyr,memory-region' in node.props:
110 region = node.props['zephyr,memory-region'].val
[all …]
/Zephyr-Core-3.4.0/scripts/kconfig/
Dkconfigfunctions.py1 # Copyright (c) 2018-2019 Linaro
4 # SPDX-License-Identifier: Apache-2.0
14 "python-devicetree", "src"))
153 foo: some-node { ... };
713 Return "y" if any GPIO hog node is enabled. Otherwise, return "n".