Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
410 changes: 410 additions & 0 deletions doc/tools/check_dt_macros.py

Large diffs are not rendered by default.

18 changes: 1 addition & 17 deletions dts/bindings/adc/arduino,uno-adc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,4 @@ description: |

compatible: "arduino,uno-adc"

include: base.yaml

properties:
io-channel-map:
type: compound
required: true

io-channel-map-mask:
type: compound

io-channel-map-pass-thru:
type: compound

"#io-channel-cells":
type: int
required: true
description: Number of items to expect in an ADC specifier
include: [base.yaml, io-channel-nexus.yaml]
4 changes: 2 additions & 2 deletions dts/bindings/gpio/gpio-nexus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ properties:
required: true

gpio-map-mask:
type: compound
type: array

gpio-map-pass-thru:
type: compound
type: array

"#gpio-cells":
type: int
Expand Down
20 changes: 20 additions & 0 deletions dts/bindings/iio/io-channel-nexus.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright (c) 2025 TOKITA Hiroshi
# SPDX-License-Identifier: Apache-2.0

# Common fields for io-channel nexus

properties:
io-channel-map:
type: compound
required: true

io-channel-map-mask:
type: array

io-channel-map-pass-thru:
type: array

"#io-channel-cells":
type: int
required: true
description: Number of items to expect in the io-channel specifier, such as ADC channels.
20 changes: 20 additions & 0 deletions dts/bindings/interrupt-controller/interrupt-nexus.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright (c) 2025 TOKITA Hiroshi
# SPDX-License-Identifier: Apache-2.0

# Common fields for interrupt nexus nodes

properties:
interrupt-map:
type: compound
required: true

interrupt-map-mask:
type: array

interrupt-map-pass-thru:
type: array

"#interrupt-cells":
type: int
required: true
description: Number of items to expect in a interrupt specifier
8 changes: 1 addition & 7 deletions dts/bindings/pcie/host/pci-host-ecam-generic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: PCIe Controller in ECAM mode

compatible: "pci-host-ecam-generic"

include: pcie-controller.yaml
include: [pcie-controller.yaml, interrupt-nexus.yaml]

properties:
reg:
Expand All @@ -22,11 +22,5 @@ properties:
definition of non-prefetchable memory. One or both of prefetchable Memory
and IO Space may also be provided.

interrupt-map-mask:
type: array

interrupt-map:
type: compound

bus-range:
type: array
8 changes: 8 additions & 0 deletions dts/bindings/test/vnd,gpio-nexus.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Copyright (c) 2025, TOKITA Hiroshi
# SPDX-License-Identifier: Apache-2.0

description: VND GPIO nexus

include: [gpio-nexus.yaml]

compatible: "vnd,gpio-nexus"
8 changes: 8 additions & 0 deletions dts/bindings/test/vnd,intr-nexus.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Copyright (c) 2025, TOKITA Hiroshi
# SPDX-License-Identifier: Apache-2.0

description: VND interrupt nexus

include: [interrupt-nexus.yaml]

compatible: "vnd,intr-nexus"
1 change: 1 addition & 0 deletions include/zephyr/devicetree.h
Original file line number Diff line number Diff line change
Expand Up @@ -5570,5 +5570,6 @@
#include <zephyr/devicetree/mbox.h>
#include <zephyr/devicetree/port-endpoint.h>
#include <zephyr/devicetree/display.h>
#include <zephyr/devicetree/map.h>

#endif /* ZEPHYR_INCLUDE_DEVICETREE_H_ */
Loading
Loading