Home
last modified time | relevance | path

Searched +full:prop +full:- +full:2 (Results 1 – 25 of 173) sorted by relevance

1234567

/Zephyr-latest/scripts/dts/python-devicetree/tests/test-bindings-include/
Dsimple.yaml1 # SPDX-License-Identifier: BSD-3-Clause
4 # the grandchild-binding level.
7 prop-1:
9 prop-2:
11 prop-3:
14 child-binding:
16 child-prop-1:
18 child-prop-2:
20 child-prop-3:
23 child-binding:
[all …]
Dsimple_filter_blocklist.yaml1 # SPDX-License-Identifier: BSD-3-Clause
4 # up to the grandchild-binding level.
7 - name: simple_inherit.yaml
8 property-blocklist: [prop-2, prop-3]
9 child-binding:
10 property-blocklist: [child-prop-2, child-prop-3]
11 child-binding:
12 property-blocklist: [grandchild-prop-2, grandchild-prop-3]
Dinclude.yaml1 # SPDX-License-Identifier: BSD-3-Clause
12 child-binding:
14 child-prop-1:
16 child-prop-2:
19 child-binding:
21 grandchild-prop-1:
23 grandchild-prop-2:
/Zephyr-latest/scripts/kconfig/
Dkconfigfunctions.py1 # Copyright (c) 2018-2019 Linaro
4 # SPDX-License-Identifier: Apache-2.0
15 ZEPHYR_BASE = str(Path(__file__).resolve().parents[2])
17 "python-devicetree", "src"))
157 foo: some-node { ... };
199 def _node_int_prop(node, prop, unit=None): argument
202 property called 'prop' and if that 'prop' is an integer type will return
203 the value of the property 'prop' as either a string int or string hex
218 if prop not in node.props:
221 if node.props[prop].type != "int":
[all …]
/Zephyr-latest/soc/nuvoton/npcx/common/
Dpinctrl_soc.h4 * SPDX-License-Identifier: Apache-2.0
70 * pin-muxing, pull-up/down and so on.
80 enum npcx_periph_type type: 2;
82 uint16_t reserved: 2;
89 * characteristics such as tri-state, power supply type selection, and so on.
130 enum npcx_pinctrl_type type :2;
134 /** Properties used for io-pad. */
135 enum npcx_io_bias_type io_bias_type :2;
172 * @param prop Property name for pinmux configuration. (i.e. 'pinmux')
174 #define Z_PINCTRL_NPCX_PERIPH_PINMUX_INIT(node_id, prop) \ argument
[all …]
/Zephyr-latest/soc/silabs/common/
Dpinctrl_soc.h4 * SPDX-License-Identifier: Apache-2.0
20 #include <zephyr/dt-bindings/pinctrl/silabs-pinctrl-dbus.h>
22 #include <zephyr/dt-bindings/pinctrl/gecko-pinctrl-s1.h>
24 #include <zephyr/dt-bindings/pinctrl/gecko-pinctrl.h>
50 ? (8 + DT_PROP(node, silabs_input_filter) + 2 * DT_PROP(node, bias_pull_up) + \
54 ? (2 + DT_PROP(node, silabs_input_filter)) \
68 #define Z_PINCTRL_STATE_PIN_INIT(node, prop, idx) \ argument
70 FIELD_GET(SILABS_PINCTRL_PERIPH_BASE_MASK, DT_PROP_BY_IDX(node, prop, idx)), \
71 .port = FIELD_GET(SILABS_PINCTRL_GPIO_PORT_MASK, DT_PROP_BY_IDX(node, prop, idx)), \
72 .pin = FIELD_GET(SILABS_PINCTRL_GPIO_PIN_MASK, DT_PROP_BY_IDX(node, prop, idx)), \
[all …]
/Zephyr-latest/soc/quicklogic/eos_s3/
Dpinctrl_soc.h4 * SPDX-License-Identifier: Apache-2.0
24 uint32_t slew_rate: 2;
27 uint32_t control_selection: 2;
45 #define Z_PINCTRL_STATE_PIN_INIT(node_id, prop, idx) \ argument
46 QUICKLOGIC_EOS_S3_DT_PIN(DT_PROP_BY_IDX(node_id, prop, idx))
48 #define Z_PINCTRL_STATE_PINS_INIT(node_id, prop) \ argument
49 { DT_FOREACH_PROP_ELEM(node_id, prop, Z_PINCTRL_STATE_PIN_INIT) }
/Zephyr-latest/soc/ambiq/apollo3x/
Dpinctrl_soc.h4 * SPDX-License-Identifier: Apache-2.0
10 #include <zephyr/dt-bindings/pinctrl/ambiq-apollo3-pinctrl.h>
22 /** Drive strength, relative to full-driver strength */
23 uint32_t drive_strength: 2;
37 uint32_t iom_nce: 2;
50 * @param prop Property name.
53 #define Z_PINCTRL_STATE_PIN_INIT(node_id, prop, idx) \ argument
55 APOLLO3_GET_PIN_NUM(DT_PROP_BY_IDX(node_id, prop, idx)), \
56 APOLLO3_GET_PIN_ALT_FUNC(DT_PROP_BY_IDX(node_id, prop, idx)), \
74 * @param prop Property name describing state pins.
[all …]
/Zephyr-latest/soc/ambiq/apollo4x/
Dpinctrl_soc.h4 * SPDX-License-Identifier: Apache-2.0
10 #include <zephyr/dt-bindings/pinctrl/ambiq-apollo4-pinctrl.h>
22 /** Drive strength, relative to full-driver strength */
23 uint32_t drive_strength : 2;
41 uint32_t interrupt_direction: 2;
50 * @param prop Property name.
53 #define Z_PINCTRL_STATE_PIN_INIT(node_id, prop, idx) \ argument
55 APOLLO4_GET_PIN_NUM(DT_PROP_BY_IDX(node_id, prop, idx)), \
56 APOLLO4_GET_PIN_ALT_FUNC(DT_PROP_BY_IDX(node_id, prop, idx)), \
74 * @param prop Property name describing state pins.
[all …]
/Zephyr-latest/include/zephyr/
Ddevicetree.h2 * SPDX-License-Identifier: Apache-2.0
39 * -----------------
42 * part in DT_N_<path-id>_P_<property-id> macros, or the "prop-suf"
71 * @defgroup devicetree-generic-id Node identifiers and helpers
96 * The arguments to this macro are the names of non-root nodes in the
98 * Non-alphanumeric characters in each name must be converted to
108 * current-speed = <115200>;
119 * Example usage with DT_PROP() to get the `current-speed` property:
125 * (The `current-speed` property is also in `lowercase-and-underscores`
130 * - the first argument corresponds to a child node of the root (`soc` above)
[all …]
/Zephyr-latest/soc/renesas/rzt2m/
Dpinctrl_soc.h4 * SPDX-License-Identifier: Apache-2.0
25 uint32_t slew_rate: 2;
34 #define Z_PINCTRL_STATE_PIN_INIT(node_id, prop, idx) \ argument
36 .port = RZT2M_GET_PORT(DT_PROP_BY_IDX(node_id, prop, idx)), \
37 .pin = RZT2M_GET_PIN(DT_PROP_BY_IDX(node_id, prop, idx)), \
38 .func = RZT2M_GET_FUNC(DT_PROP_BY_IDX(node_id, prop, idx)), \
48 #define Z_PINCTRL_STATE_PINS_INIT(node_id, prop) \ argument
49 {DT_FOREACH_CHILD_VARGS(DT_PHANDLE(node_id, prop), \
/Zephyr-latest/soc/wch/ch32v00x/
Dpinctrl_soc.h4 * SPDX-License-Identifier: Apache-2.0
21 uint8_t slew_rate: 2;
26 #define Z_PINCTRL_STATE_PIN_INIT(node_id, prop, idx) \ argument
28 .config = DT_PROP_BY_IDX(node_id, prop, idx), \
38 #define Z_PINCTRL_STATE_PINS_INIT(node_id, prop) \ argument
39 {DT_FOREACH_CHILD_VARGS(DT_PHANDLE(node_id, prop), DT_FOREACH_PROP_ELEM, pinmux, \
/Zephyr-latest/soc/raspberrypi/rpi_pico/common/
Dpinctrl_soc.h4 * SPDX-License-Identifier: Apache-2.0
10 #include <zephyr/dt-bindings/pinctrl/rpi-pico-pinctrl-common.h>
32 /** Output-enable override */
33 uint32_t oe_override : 2;
42 * @param prop Property name.
45 #define Z_PINCTRL_STATE_PIN_INIT(node_id, prop, idx) \ argument
47 RP2_GET_PIN_NUM(DT_PROP_BY_IDX(node_id, prop, idx)), \
48 RP2_GET_PIN_ALT_FUNC(DT_PROP_BY_IDX(node_id, prop, idx)), \
62 * @param prop Property name describing state pins.
64 #define Z_PINCTRL_STATE_PINS_INIT(node_id, prop) \ argument
[all …]
/Zephyr-latest/soc/xlnx/zynqmp/
Dpinctrl_soc.h4 * SPDX-License-Identifier: Apache-2.0
15 #define MIO_L1_SEL BIT(2)
26 * 1 - UART
29 * and the defines controling those are listed in `pinctrl-zynqmp.h`.
43 #define Z_PINCTRL_STATE_PIN_INIT(node_id, prop, idx) \ argument
45 .pin = ZYNQMP_GET_PIN(DT_PROP_BY_IDX(node_id, prop, idx)), \
46 .func = ZYNQMP_GET_FUNC(DT_PROP_BY_IDX(node_id, prop, idx)), \
49 #define Z_PINCTRL_STATE_PINS_INIT(node_id, prop) { \ argument
50 DT_FOREACH_CHILD_VARGS(DT_PHANDLE(node_id, prop), \
/Zephyr-latest/soc/nuvoton/numicro/common/
Dpinctrl_soc.h4 * SPDX-License-Identifier: Apache-2.0
12 #include <zephyr/dt-bindings/gpio/numicro-gpio.h>
24 uint32_t slew_rate : 2;
31 #define Z_PINCTRL_STATE_PIN_INIT(node_id, prop, idx) \ argument
33 .pinmux = DT_PROP_BY_IDX(node_id, prop, idx), \
43 #define Z_PINCTRL_STATE_PINS_INIT(node_id, prop) \ argument
44 {DT_FOREACH_CHILD_VARGS(DT_PHANDLE(node_id, prop), \
/Zephyr-latest/soc/ti/simplelink/cc13x2_cc26x2/
Dpinctrl_soc.h4 * SPDX-License-Identifier: Apache-2.0
27 (DT_PROP(node_id, drive_strength) >> 2) << IOC_IOCFG0_IOCURR_S | \
39 #define Z_PINCTRL_STATE_PIN_INIT(node_id, prop, idx) \ argument
40 CC13XX_CC26XX_DT_PIN(DT_PROP_BY_IDX(node_id, prop, idx))
42 #define Z_PINCTRL_STATE_PINS_INIT(node_id, prop) \ argument
43 { DT_FOREACH_PROP_ELEM(node_id, prop, Z_PINCTRL_STATE_PIN_INIT) }
/Zephyr-latest/soc/nuvoton/numaker/common/
Dpinctrl_soc.h4 * SPDX-License-Identifier: Apache-2.0
27 uint32_t slew_rate: 2;
31 #define Z_PINCTRL_STATE_PIN_INIT(node_id, prop, idx) \ argument
33 .pin_mux = DT_PROP_BY_IDX(node_id, prop, idx), \
40 #define Z_PINCTRL_STATE_PINS_INIT(node_id, prop) \ argument
42 DT_FOREACH_CHILD_VARGS(DT_PHANDLE(node_id, prop), DT_FOREACH_PROP_ELEM, pinmux, \
/Zephyr-latest/subsys/usb/device/class/audio/
Dusb_audio_internal.h6 * SPDX-License-Identifier: Apache-2.0
67 #define POS(prop, ch_idx, ch_cnt) (ch_cnt * POS_##prop + \ argument
68 (ch_idx * FEATURE_##prop##_SIZE))
69 #define LEN(ch_cnt, prop) (ch_cnt * FEATURE_##prop##_SIZE) argument
80 #define IF_USB_AUDIO_PROP_HP(i, prop, bitmask) \ argument
81 COND_CODE_1(DT_PROP(DT_INST(i, COMPAT_HP), prop), (bitmask), (0))
82 #define IF_USB_AUDIO_PROP_MIC(i, prop, bitmask) \ argument
83 COND_CODE_1(DT_PROP(DT_INST(i, COMPAT_MIC), prop), (bitmask), (0))
84 #define IF_USB_AUDIO_PROP_HS_HP(i, prop, bitmask) \ argument
85 COND_CODE_1(DT_PROP(DT_INST(i, COMPAT_HS), hp_##prop), (bitmask), (0))
[all …]
/Zephyr-latest/soc/gd/gd32/common/
Dpinctrl_soc.h4 * SPDX-License-Identifier: Apache-2.0
19 #include <dt-bindings/pinctrl/gd32-af.h>
21 #include <dt-bindings/pinctrl/gd32-afio.h>
33 * - 0-12: GD32_PINMUX_AF bit field.
34 * - 13-25: Reserved.
35 * - 26-31: Pin configuration bit field (@ref GD32_PINCFG).
38 * - 0-19: GD32_PINMUX_AFIO bit field.
39 * - 20-25: Reserved.
40 * - 26-31: Pin configuration bit field (@ref GD32_PINCFG).
48 * @param prop Property name.
[all …]
/Zephyr-latest/tests/drivers/console_switching/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
16 #define PHANDLE_TO_DEVICE(node_id, prop, idx) DEVICE_DT_GET(DT_PHANDLE_BY_IDX(node_id, prop, idx)) argument
21 #define PHANDLE_TO_NAME(node_id, prop, idx) DT_NODE_FULL_NAME(DT_PHANDLE_BY_IDX(node_id, prop, idx)) argument
26 #define PHANDLE_TO_TEXT(node_id, prop, idx) \ argument
27 "Hello, " DT_NODE_FULL_NAME(DT_PHANDLE_BY_IDX(node_id, prop, idx)) "!"
37 for (size_t i = 0, j = 0, N = ARRAY_SIZE(devs); i < 2 * N; i++, j++, j %= N) { in ZTEST()
39 /* skip testing non-emul uart */ in ZTEST()
50 ret[2] = devmux_select_set(devmux_dev, normal_uart); in ZTEST()
53 zassert_ok(ret[2], "Switching back to selection %zu failed", normal_uart); in ZTEST()
71 for (size_t i = 0, j = 0, N = ARRAY_SIZE(devs); i < 2 * N; i++, j++, j %= N) { in ZTEST()
[all …]
/Zephyr-latest/tests/drivers/pinctrl/api/src/
Dpinctrl_soc.h4 * SPDX-License-Identifier: Apache-2.0
39 * @name Test pinctrl pull-up/down.
43 /** Pull-up disabled. */
45 /** Pull-down enabled. */
47 /** Pull-up enabled. */
48 #define TEST_PULL_UP 2U
75 * @param prop Property name.
78 #define Z_PINCTRL_STATE_PIN_INIT(node_id, prop, idx) \ argument
79 (((DT_PROP_BY_IDX(node_id, prop, idx) << TEST_PIN_POS) \
91 * @param prop Property name describing state pins.
[all …]
/Zephyr-latest/scripts/dts/python-devicetree/tests/
Dtest_dtlib.py2 # SPDX-License-Identifier: BSD-3-Clause
23 # - to stop on the first failure with shorter traceback output,
24 # use '-x --tb=native'
25 # - to drop into a debugger on failure, use '--pdb'
26 # - to run a particular test function or functions, use
27 # '-k test_function_pattern_goes_here'
34 fd, path = tempfile.mkstemp(prefix='pytest-', suffix='.dts')
36 os.write(fd, dts.encode('utf-8'))
44 representation is expected[1:-1].
52 expected = expected[1:-1]
[all …]
/Zephyr-latest/scripts/dts/python-devicetree/src/devicetree/
Ddtlib.py2 # SPDX-License-Identifier: BSD-3-Clause
10 The top-level entry point of the library is the DT class. DT.__init__() takes a
30 "Exception raised for devicetree-related errors"
34 Represents a node in the devicetree ('node-name { ... };').
62 stored in big-endian format.
113 def name(self) -> str:
117 # Converted to a property to discourage renaming -- that has to be done
122 def unit_addr(self) -> str:
126 return self.name.partition("@")[2]
129 def path(self) -> str:
[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
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'
38 * @param psel_prop lowercase-and-underscores old-style 'foo-pin' property
[all …]
/Zephyr-latest/include/zephyr/bluetooth/services/
Dots.h2 * Copyright (c) 2020-2022 Nordic Semiconductor ASA
4 * SPDX-License-Identifier: Apache-2.0
60 /* 16-bit UUID value */
63 /* 128-bit UUID value */
76 /** Bit 2 Reading this object is permitted */
77 BT_OTS_OBJ_PROP_READ = 2,
104 * @param prop Object properties.
106 #define BT_OTS_OBJ_SET_PROP_DELETE(prop) \ argument
107 WRITE_BIT(prop, BT_OTS_OBJ_PROP_DELETE, 1)
111 * @param prop Object properties.
[all …]

1234567