Skip to content

Commit aafbd9d

Browse files
committed
dts: bindings: Add interrupt-nexus and io-channel-nexus base bindings
Add a base binding for interrupt and io-channel nexus nodes. This makes the implicit definitions explicit. Replace existing individual map definitions with this. This file does not define a specific `compatible` on its own, So you should include this file before using it practically. Signed-off-by: TOKITA Hiroshi <[email protected]>
1 parent 7bf09d5 commit aafbd9d

File tree

4 files changed

+50
-24
lines changed

4 files changed

+50
-24
lines changed

dts/bindings/adc/arduino,uno-adc.yaml

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,4 @@ description: |
1313
1414
compatible: "arduino,uno-adc"
1515

16-
include: base.yaml
17-
18-
properties:
19-
io-channel-map:
20-
type: compound
21-
required: true
22-
23-
io-channel-map-mask:
24-
type: compound
25-
26-
io-channel-map-pass-thru:
27-
type: compound
28-
29-
"#io-channel-cells":
30-
type: int
31-
required: true
32-
description: Number of items to expect in an ADC specifier
16+
include: [base.yaml, io-channel-nexus.yaml]
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Copyright (c) 2025 TOKITA Hiroshi
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
# Common fields for io-channel nexus
5+
#
6+
# see 2.5 Nexus Nodes and Specifier Mapping
7+
# https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#nexus-nodes-and-specifier-mapping
8+
# in the Devicetree Specification
9+
10+
properties:
11+
io-channel-map:
12+
type: compound
13+
required: true
14+
15+
io-channel-map-mask:
16+
type: array
17+
18+
io-channel-map-pass-thru:
19+
type: array
20+
21+
"#io-channel-cells":
22+
type: int
23+
required: true
24+
description: Number of items to expect in the io-channel specifier, such as ADC channels.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Copyright (c) 2025 TOKITA Hiroshi
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
# Common fields for interrupt nexus nodes
5+
#
6+
# See 2.4 Interrupts and Interrupt Mapping
7+
# https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#interrupts-and-interrupt-mapping
8+
# in the Devicetree Specification
9+
10+
properties:
11+
interrupt-map:
12+
type: compound
13+
required: true
14+
15+
interrupt-map-mask:
16+
type: array
17+
18+
interrupt-map-pass-thru:
19+
type: array
20+
21+
"#interrupt-cells":
22+
type: int
23+
required: true
24+
description: Number of items to expect in a interrupt specifier

dts/bindings/pcie/host/pci-host-ecam-generic.yaml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: PCIe Controller in ECAM mode
55

66
compatible: "pci-host-ecam-generic"
77

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

1010
properties:
1111
reg:
@@ -22,11 +22,5 @@ properties:
2222
definition of non-prefetchable memory. One or both of prefetchable Memory
2323
and IO Space may also be provided.
2424
25-
interrupt-map-mask:
26-
type: array
27-
28-
interrupt-map:
29-
type: compound
30-
3125
bus-range:
3226
type: array

0 commit comments

Comments
 (0)