/Zephyr-latest/scripts/dts/python-devicetree/tests/test-bindings-include/ |
D | simple.yaml | 1 # 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 …]
|
D | simple_filter_blocklist.yaml | 1 # 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]
|
D | include.yaml | 1 # 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:
|
D | simple_filter_allowlist.yaml | 1 # SPDX-License-Identifier: BSD-3-Clause 4 # up to the grandchild-binding level. 7 - name: simple_inherit.yaml 8 property-allowlist: [prop-1] 9 child-binding: 10 property-allowlist: [child-prop-1] 11 child-binding: 12 property-allowlist: [grandchild-prop-1]
|
/Zephyr-latest/scripts/kconfig/ |
D | kconfigfunctions.py | 1 # Copyright (c) 2018-2019 Linaro 4 # SPDX-License-Identifier: Apache-2.0 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": 224 return node.props[prop].val >> _dt_units_to_scale(unit) [all …]
|
/Zephyr-latest/soc/nuvoton/npcx/common/ |
D | pinctrl_soc.h | 4 * SPDX-License-Identifier: Apache-2.0 70 * pin-muxing, pull-up/down and so on. 76 uint16_t bit: 3; 89 * characteristics such as tri-state, power supply type selection, and so on. 95 uint16_t field_offset: 3; 97 uint16_t field_size: 3; 114 uint16_t pol_bit: 3; 134 /** Properties used for io-pad. */ 172 * @param prop Property name for pinmux configuration. (i.e. 'pinmux') 174 #define Z_PINCTRL_NPCX_PERIPH_PINMUX_INIT(node_id, prop) \ argument [all …]
|
D | soc_dt.h | 4 * SPDX-License-Identifier: Apache-2.0 18 * If the prop exists, this expands to DT_ENUM_UPPER_TOKEN(node_id, prop). 24 * @param prop lowercase-and-underscores property name 28 #define NPCX_DT_PROP_ENUM_OR(node_id, prop, default_value) \ argument 29 COND_CODE_1(DT_NODE_HAS_PROP(node_id, prop), \ 30 (DT_STRING_UPPER_TOKEN(node_id, prop)), (default_value)) 36 * @param prop lowercase-and-underscores property name 40 #define NPCX_DT_INST_PROP_ENUM_OR(inst, prop, default_value) \ argument 41 NPCX_DT_PROP_ENUM_OR(DT_DRV_INST(inst), prop, default_value) 44 * @brief Construct a npcx_clk_cfg item from first item in 'clocks' prop which [all …]
|
/Zephyr-latest/soc/ambiq/apollo3x/ |
D | pinctrl_soc.h | 4 * SPDX-License-Identifier: Apache-2.0 10 #include <zephyr/dt-bindings/pinctrl/ambiq-apollo3-pinctrl.h> 19 uint32_t alt_func: 3; 22 /** Drive strength, relative to full-driver strength */ 35 uint32_t ambiq_pull_up_ohms: 3; 41 uint32_t iom_num: 3; 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)), \ [all …]
|
/Zephyr-latest/subsys/usb/device/class/audio/ |
D | usb_audio_internal.h | 6 * 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/xlnx/zynqmp/ |
D | pinctrl_soc.h | 4 * SPDX-License-Identifier: Apache-2.0 16 #define MIO_L2_SEL GENMASK(4, 3) 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/scripts/dts/python-devicetree/tests/test-bindings/ |
D | child-binding-with-compat.yaml | 1 # SPDX-License-Identifier: BSD-3-Clause 3 description: child-binding with separate compatible than the parent 5 compatible: "top-binding-with-compat" 7 child-binding: 8 compatible: child-compat 11 child-prop: 15 child-binding: 18 grandchild-prop:
|
D | child-binding.yaml | 1 # SPDX-License-Identifier: BSD-3-Clause 3 description: child-binding test 5 compatible: "top-binding" 7 child-binding: 10 child-prop: 13 child-ref: 16 child-binding: 19 grandchild-prop: 22 grandchild-ref:
|
/Zephyr-latest/soc/ambiq/apollo4x/ |
D | pinctrl_soc.h | 4 * SPDX-License-Identifier: Apache-2.0 10 #include <zephyr/dt-bindings/pinctrl/ambiq-apollo4-pinctrl.h> 22 /** Drive strength, relative to full-driver strength */ 37 uint32_t ambiq_pull_up_ohms : 3; 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. 76 #define Z_PINCTRL_STATE_PINS_INIT(node_id, prop) \ argument [all …]
|
/Zephyr-latest/subsys/input/ |
D | input_keymap.c | 4 * SPDX-License-Identifier: Apache-2.0 10 #include <zephyr/dt-bindings/input/keymap.h> 35 const struct keymap_config *cfg = dev->config; in keymap_cb() 36 struct keymap_data *data = dev->data; in keymap_cb() 37 const uint16_t *codes = cfg->codes; in keymap_cb() 40 switch (evt->code) { in keymap_cb() 42 data->col = evt->value; in keymap_cb() 45 data->row = evt->value; in keymap_cb() 48 data->pressed = evt->value; in keymap_cb() 52 if (!evt->sync) { in keymap_cb() [all …]
|
/Zephyr-latest/dts/bindings/test/ |
D | vnd,great-grandchild-bindings.yaml | 2 # SPDX-License-Identifier: Apache-2.0 5 Test binding for 3 levels of "child-binding". 8 "child-binding:" in a YAML file. This file is used to test that the 11 compatible: "vnd,great-grandchild-bindings" 15 child-binding: 18 child-binding: 21 child-binding: 22 description: great-grandchild node, ggc-prop property 25 ggc-prop:
|
/Zephyr-latest/scripts/dts/python-devicetree/tests/ |
D | test_dtlib.py | 2 # 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/soc/gd/gd32/common/ |
D | pinctrl_soc.h | 4 * 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/include/zephyr/ |
D | devicetree.h | 2 * 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/scripts/dts/python-devicetree/src/devicetree/ |
D | dtlib.py | 2 # 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: 129 def path(self) -> str: 144 def node_iter(self) -> Iterable['Node']: [all …]
|
/Zephyr-latest/soc/nordic/common/ |
D | soc_nrf_common.h | 3 * 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/ |
D | ots.h | 2 * Copyright (c) 2020-2022 Nordic Semiconductor ASA 4 * SPDX-License-Identifier: Apache-2.0 60 /* 16-bit UUID value */ 63 /* 128-bit UUID value */ 79 /** Bit 3 Writing data to this object is permitted */ 80 BT_OTS_OBJ_PROP_WRITE = 3, 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 …]
|
/Zephyr-latest/include/zephyr/drivers/clock_control/ |
D | renesas_ra_cgc.h | 4 * SPDX-License-Identifier: Apache-2.0 10 #include <zephyr/dt-bindings/clock/ra_clock.h> 12 #define RA_CGC_PROP_HAS_STATUS_OKAY_OR(node_id, prop, default_value) \ argument 13 COND_CODE_1(DT_NODE_HAS_STATUS(node_id, okay), (DT_PROP(node_id, prop)), (default_value)) 20 #define RA_CGC_CLK_DIV(clk, prop, default_value) \ argument 22 (RA_CGC_PROP_HAS_STATUS_OKAY_OR(clk, prop, default_value)) 65 #define BSP_CLOCKS_CLKOUT_DIV_8 (3)
|
/Zephyr-latest/drivers/spi/ |
D | spi_dw.h | 1 /* spi_dw.h - Designware SPI driver private definitions */ 7 * SPDX-License-Identifier: Apache-2.0 56 #define DT_INST_NODE_PROP_NOT_OR(inst, prop) \ argument 57 !DT_INST_PROP(inst, prop) || 58 #define DT_ANY_INST_NOT_PROP_STATUS_OKAY(prop) \ argument 59 (DT_INST_FOREACH_STATUS_OKAY_VARGS(DT_INST_NODE_PROP_NOT_OR, prop) 0) 61 #define DT_INST_NODE_PROP_AND_OR(inst, prop) \ argument 62 DT_INST_PROP(inst, prop) || 63 #define DT_ANY_INST_PROP_STATUS_OKAY(prop) \ argument 64 (DT_INST_FOREACH_STATUS_OKAY_VARGS(DT_INST_NODE_PROP_AND_OR, prop) 0) [all …]
|
/Zephyr-latest/soc/nxp/imx/imx8ulp/ |
D | pinctrl_soc.h | 4 * SPDX-License-Identifier: Apache-2.0 48 .input_daisy = DT_PROP_BY_IDX(node_id, pinmux, 3), \ 60 #define Z_PINCTRL_STATE_PINS_INIT(node_id, prop)\ argument 61 { DT_FOREACH_CHILD_VARGS(DT_PHANDLE(node_id, prop),\
|
/Zephyr-latest/scripts/dts/ |
D | gen_defines.py | 3 # Copyright (c) 2019 - 2020 Nordic Semiconductor ASA 6 # SPDX-License-Identifier: BSD-3-Clause 11 # Note: Do not access private (_-prefixed) identifiers from edtlib here (and 25 sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'python-devicetree', 46 with open(args.header_out, "w", encoding="utf-8") as header_file: 58 # Check to see if we have duplicate "zephyr,memory-region" property values. 61 if 'zephyr,memory-region' in node.props: 62 region = node.props['zephyr,memory-region'].val 64 sys.exit(f"ERROR: Duplicate 'zephyr,memory-region' ({region}) properties " 74 out_comment("Node's name with unit-address:") [all …]
|