/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 | 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")) 22 doc_mode = os.environ.get('KCONFIG_DOC_MODE') == "1" 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 208 'k' or 'K' divide by 1024 (1 << 10) 209 'm' or 'M' divide by 1,048,576 (1 << 20) [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. 78 bool inverted: 1; 89 * characteristics such as tri-state, power supply type selection, and so on. 132 bool pinmux_lock :1; 133 bool pinmux_gpio :1; 134 /** Properties used for io-pad. */ 136 enum npcx_io_drive_type io_drive_type :1; 138 enum npcx_psl_in_mode psl_in_mode :1; 139 enum npcx_psl_in_pol psl_in_polarity :1; [all …]
|
/Zephyr-latest/soc/renesas/smartbond/da1469x/ |
D | pinctrl_soc.h | 4 * SPDX-License-Identifier: Apache-2.0 10 #include <zephyr/dt-bindings/pinctrl/smartbond-pinctrl.h> 14 uint32_t port : 1; 16 uint32_t bias_pull_up : 1; 17 uint32_t bias_pull_down : 1; 18 uint32_t output_enable : 1; 19 uint32_t input_enable : 1; 24 #define Z_PINCTRL_STATE_PIN_INIT(node_id, prop, idx) \ argument 26 SMARTBOND_GET_FUNC(DT_PROP_BY_IDX(node_id, prop, idx)), \ 27 SMARTBOND_GET_PORT(DT_PROP_BY_IDX(node_id, prop, idx)), \ [all …]
|
/Zephyr-latest/soc/renesas/rzt2m/ |
D | pinctrl_soc.h | 4 * SPDX-License-Identifier: Apache-2.0 20 uint32_t input_enable: 1; 21 uint32_t output_enable: 1; 22 uint32_t pull_up: 1; 23 uint32_t pull_down: 1; 24 uint32_t high_impedance: 1; 27 uint32_t schmitt_enable: 1; 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)), \ [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/soc/raspberrypi/rpi_pico/common/ |
D | pinctrl_soc.h | 4 * SPDX-License-Identifier: Apache-2.0 10 #include <zephyr/dt-bindings/pinctrl/rpi-pico-pinctrl-common.h> 23 uint32_t slew_rate : 1; 25 uint32_t pullup : 1; 27 uint32_t pulldown : 1; 29 uint32_t input_enable : 1; 31 uint32_t schmitt_enable : 1; 32 /** Output-enable override */ 42 * @param prop Property name. 45 #define Z_PINCTRL_STATE_PIN_INIT(node_id, prop, idx) \ argument [all …]
|
/Zephyr-latest/include/zephyr/drivers/pinctrl/ |
D | pinctrl_soc_sam_common.h | 4 * SPDX-License-Identifier: Apache-2.0 17 #include <dt-bindings/pinctrl/atmel_sam_pinctrl.h> 28 * - 0-15: SAM pinmux bit field (@ref SAM_PINMUX). 29 * - 16-21: Pin flags bit field (@ref SAM_PINFLAGS). 30 * - 22-31: Reserved. 38 * @param prop Property name. 42 #define Z_PINCTRL_STATE_PIN_INIT(node_id, prop, idx) \ argument 43 ((DT_PROP_BY_IDX(node_id, prop, idx) << SAM_PINCTRL_PINMUX_POS) \ 49 #define Z_PINCTRL_STATE_PIN_INIT(node_id, prop, idx) \ argument 50 ((DT_PROP_BY_IDX(node_id, prop, idx) << SAM_PINCTRL_PINMUX_POS) \ [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> 21 uint32_t input_enable: 1; 22 /** Drive strength, relative to full-driver strength */ 25 uint32_t push_pull: 1; 27 uint32_t open_drain: 1; 29 uint32_t tristate: 1; 31 uint32_t bias_pull_up: 1; 33 uint32_t bias_pull_down: 1; 39 uint32_t iom_mspi: 1; [all …]
|
/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> 21 uint32_t input_enable : 1; 22 /** Drive strength, relative to full-driver strength */ 25 uint32_t slew_rate : 1; 27 uint32_t push_pull : 1; 29 uint32_t open_drain : 1; 31 uint32_t tristate : 1; 33 uint32_t bias_pull_up : 1; 35 uint32_t bias_pull_down : 1; [all …]
|
/Zephyr-latest/soc/wch/ch32v00x/ |
D | pinctrl_soc.h | 4 * SPDX-License-Identifier: Apache-2.0 15 bool bias_pull_up: 1; 16 bool bias_pull_down: 1; 17 bool drive_open_drain: 1; 18 bool drive_push_pull: 1; 19 bool output_high: 1; 20 bool output_low: 1; 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 [all …]
|
/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 …]
|
/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/soc/nuvoton/numicro/common/ |
D | pinctrl_soc.h | 4 * SPDX-License-Identifier: Apache-2.0 12 #include <zephyr/dt-bindings/gpio/numicro-gpio.h> 20 uint32_t pull_down : 1; 21 uint32_t pull_up : 1; 22 uint32_t open_drain : 1; 23 uint32_t schmitt_trigger : 1; 25 uint32_t input_disable : 1; 26 uint32_t input_debounce : 1; 31 #define Z_PINCTRL_STATE_PIN_INIT(node_id, prop, idx) \ argument 33 .pinmux = DT_PROP_BY_IDX(node_id, prop, idx), \ [all …]
|
/Zephyr-latest/soc/quicklogic/eos_s3/ |
D | pinctrl_soc.h | 4 * SPDX-License-Identifier: Apache-2.0 19 uint32_t input_enable: 1; 20 uint32_t output_enable: 1; 21 uint32_t pull_up: 1; 22 uint32_t pull_down: 1; 23 uint32_t high_impedance: 1; 26 uint32_t schmitt_enable: 1; 33 .iof = DT_PROP_BY_IDX(node_id, pinmux, 1), \ 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)) [all …]
|
/Zephyr-latest/soc/silabs/common/ |
D | pinctrl_soc.h | 4 * 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> 55 : 1) \ 60 : DT_PROP(node, drive_open_drain) ? 1 \ 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/sifive/sifive_freedom/common/ |
D | pinctrl_soc.h | 4 * SPDX-License-Identifier: Apache-2.0 20 .iof = DT_PROP_BY_IDX(node_id, pinmux, 1) \ 23 #define Z_PINCTRL_STATE_PIN_INIT(node_id, prop, idx) \ argument 24 SIFIVE_DT_PIN(DT_PROP_BY_IDX(node_id, prop, idx)) 26 #define Z_PINCTRL_STATE_PINS_INIT(node_id, prop) \ argument 27 { DT_FOREACH_PROP_ELEM(node_id, prop, Z_PINCTRL_STATE_PIN_INIT) }
|
/Zephyr-latest/soc/xlnx/zynqmp/ |
D | pinctrl_soc.h | 4 * SPDX-License-Identifier: Apache-2.0 14 #define MIO_L0_SEL BIT(1) 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/snps/emsdp/ |
D | pinctrl_soc.h | 4 * SPDX-License-Identifier: Apache-2.0 21 .type = DT_PROP_BY_IDX(node_id, pinmux, 1) \ 24 #define Z_PINCTRL_STATE_PIN_INIT(node_id, prop, idx) \ argument 25 EMSDP_DT_PIN(DT_PROP_BY_IDX(node_id, prop, idx)) 27 #define Z_PINCTRL_STATE_PINS_INIT(node_id, prop) \ argument 28 { DT_FOREACH_PROP_ELEM(node_id, prop, Z_PINCTRL_STATE_PIN_INIT) }
|
/Zephyr-latest/soc/nuvoton/numaker/common/ |
D | pinctrl_soc.h | 4 * SPDX-License-Identifier: Apache-2.0 25 uint32_t open_drain: 1; 26 uint32_t schmitt_enable: 1; 28 uint32_t digital_disable: 1; 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/soc/ti/k3/am6x/ |
D | pinctrl_soc.h | 4 * SPDX-License-Identifier: Apache-2.0 27 .value = DT_PROP_BY_IDX(node_id, pinmux, 1) \ 30 #define Z_PINCTRL_STATE_PIN_INIT(node_id, prop, idx) \ argument 31 TI_K3_DT_PIN(DT_PROP_BY_IDX(node_id, prop, idx)) 33 #define Z_PINCTRL_STATE_PINS_INIT(node_id, prop) \ argument 34 { DT_FOREACH_PROP_ELEM(node_id, prop, Z_PINCTRL_STATE_PIN_INIT) }
|
/Zephyr-latest/subsys/usb/device/class/audio/ |
D | usb_audio_internal.h | 6 * SPDX-License-Identifier: Apache-2.0 20 #define DUMMY_API (const void *)1 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 [all …]
|
/Zephyr-latest/doc/build/kconfig/ |
D | preprocessor-functions.rst | 1 .. _kconfig-functions: 13 <https://www.kernel.org/doc/html/latest/kbuild/kconfig-macro-language.html>`__. 21 Devicetree-related Functions 28 .. code-block:: none 31 $(dt_chosen_bool_prop, <property in /chosen>, <prop>) 42 $(dt_compat_any_has_prop,<compatible string>,<prop>[,<value>]) 43 $(dt_compat_any_on_bus,<compatible string>,<prop>) 48 $(dt_node_array_prop_hex,<node path>,<prop>,<index>[,<unit>]) 49 $(dt_node_array_prop_int,<node path>,<prop>,<index>[,<unit>]) 50 $(dt_node_bool_prop,<node path>,<prop>) [all …]
|