Skip to content

Commit

Permalink
dts/bindings: Move common properties into a base.yaml
Browse files Browse the repository at this point in the history
Move common properties like 'compatible', 'reg', 'reg-names',
'interrupts', 'interrupt-names', and 'label' into one common base.yaml
that all the other yaml's can inherit from.  This removes both
duplication and inconsistent definition.

The device specific yamls just need to say if a property is 'required'
or not.

NOTE: due to some generation conflicts we did not covert
'soc-nv-flash.yaml' to use base.yaml.

Signed-off-by: Kumar Gala <[email protected]>
  • Loading branch information
galak authored and MaureenHelm committed Jun 10, 2019
1 parent 811f0f2 commit 48100df
Show file tree
Hide file tree
Showing 238 changed files with 443 additions and 2,000 deletions.
10 changes: 3 additions & 7 deletions dts/bindings/arc/arc,dccm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,13 @@ version: 0.1
description: >
This binding gives a base representation of the ARC DCCM
inherits:
!include base.yaml

properties:
compatible:
type: string
category: required
description: compatible strings
constraint: "arc,dccm"
generation: define

reg:
type: array
description: DCCM memory mapped address space
generation: define
category: required
...
10 changes: 3 additions & 7 deletions dts/bindings/arc/arc,iccm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,13 @@ version: 0.1
description: >
This binding gives a base representation of the ARC ICCM
inherits:
!include base.yaml

properties:
compatible:
type: string
category: required
description: compatible strings
constraint: "arc,iccm"
generation: define

reg:
type: array
description: ICCM memory mapped address space
generation: define
category: required
...
9 changes: 3 additions & 6 deletions dts/bindings/arm/arm,scc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,14 @@ version: 0.1
description: >
This binding gives a base representation of the ARM SCC
inherits:
!include base.yaml

properties:
compatible:
type: string
category: required
description: compatible strings
constraint: "arm,scc"

reg:
type: array
description: mmio register space
generation: define
category: required

...
10 changes: 3 additions & 7 deletions dts/bindings/arm/atmel,sam0-device_id.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,13 @@ version: 0.1
description: >
Binding for locating the Device ID (serial number) on Atmel SAM0 devices.
inherits:
!include base.yaml

properties:
compatible:
type: string
category: required
description: compatible strings
constraint: "atmel,sam0-id"
generation: define

reg:
type: array
category: required
description: Location of Device ID words in memory
generation: define
...
13 changes: 3 additions & 10 deletions dts/bindings/arm/atmel,sam0-dmac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,16 @@ version: 0.1
description: >
Binding for the Atmel SAM0 DMA controller.
inherits:
!include base.yaml

properties:
compatible:
type: string
category: required
description: compatible strings
constraint: "atmel,sam0-dmac"
generation: define

reg:
type: array
description: mmio register space
generation: define
category: required

interrupts:
type: array
category: required
description: required interrupts
generation: define
...
13 changes: 3 additions & 10 deletions dts/bindings/arm/atmel,sam0-sercom.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,16 @@ version: 0.1
description: >
Binding for the Atmel SAM0 multi-protocol (UART, SPI, I2C) SERCOM unit.
inherits:
!include base.yaml

properties:
compatible:
type: string
category: required
description: compatible strings
constraint: "atmel,sam0-sercom"
generation: define

reg:
type: array
description: mmio register space
generation: define
category: required

interrupts:
type: array
category: required
description: required interrupts
generation: define
...
10 changes: 3 additions & 7 deletions dts/bindings/arm/nordic,nrf-dppic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,13 @@ description: >
Binding for the Nordic DPPIC
Distributed Programmable Peripheral Interconnect Controller
inherits:
!include base.yaml

properties:
compatible:
type: string
category: required
description: compatible strings
constraint: "nordic,nrf-dppic"
generation: define

reg:
type: array
category: required
description: mmio register space
generation: define
...
10 changes: 3 additions & 7 deletions dts/bindings/arm/nordic,nrf-ficr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,14 @@ version: 0.1
description: >
Binding for the Nordic FICR (Factory Information Configuration Registers)
inherits:
!include base.yaml

properties:
compatible:
type: string
category: required
description: compatible strings
constraint: "nordic,nrf-ficr"
generation: define

reg:
type: array
description: mmio register space
generation: define
category: required

...
13 changes: 3 additions & 10 deletions dts/bindings/arm/nordic,nrf-spu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,17 @@ version: 0.1
description: >
Binding for the Nordic SPU (System Protection Unit)
inherits:
!include base.yaml

properties:
compatible:
type: string
category: required
description: compatible strings
constraint: "nordic,nrf-spu"
generation: define

reg:
type: array
description: mmio register space
generation: define
category: required

interrupts:
type: array
category: required
description: required interrupts
generation: define

...
9 changes: 3 additions & 6 deletions dts/bindings/arm/nxp,imx-dtcm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,14 @@ version: 0.1
description: >
This binding gives a base representation of the i.MX DTCM
inherits:
!include base.yaml

properties:
compatible:
type: string
category: required
constraint: "nxp,imx-dtcm"
generation: define

reg:
type: int
description: mmio register space
generation: define
category: required

...
15 changes: 3 additions & 12 deletions dts/bindings/arm/nxp,imx-epit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,30 +10,21 @@ version: 0.1
description: >
This binding gives a base representation of the i.MX Enhanced Periodic Interrupt Timer (EPIT)
inherits:
!include base.yaml

properties:
compatible:
type: string
category: required
description: compatible strings
constraint: "nxp,imx-epit"

reg:
type: array
description: mmio register space
generation: define
category: required

interrupts:
type: array
category: required
description: required interrupts
generation: define

label:
type: string
category: required
description: Human readable string describing the device (used by Zephyr for API name)
generation: define

prescaler:
type: int
Expand Down
9 changes: 3 additions & 6 deletions dts/bindings/arm/nxp,imx-itcm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,14 @@ version: 0.1
description: >
This binding gives a base representation of the i.MX ITCM
inherits:
!include base.yaml

properties:
compatible:
type: string
category: required
constraint: "nxp,imx-itcm"
generation: define

reg:
type: int
description: mmio register space
generation: define
category: required

...
15 changes: 3 additions & 12 deletions dts/bindings/arm/nxp,imx-mu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,30 +10,21 @@ version: 0.1
description: >
This binding gives a base representation of the i.MX Messaging Unit
inherits:
!include base.yaml

properties:
compatible:
type: string
category: required
description: compatible strings
constraint: "nxp,imx-mu"

reg:
type: array
description: mmio register space
generation: define
category: required

interrupts:
type: array
category: required
description: required interrupts
generation: define

label:
type: string
category: required
description: Human readable string describing the device (used by Zephyr for API name)
generation: define

rdc:
type: int
Expand Down
13 changes: 3 additions & 10 deletions dts/bindings/arm/nxp,kinetis-pcc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,18 @@ version: 0.1
description: >
This is a representation of the NXP Kinetis PCC IP node
inherits:
!include base.yaml

properties:
compatible:
type: string
category: required
description: compatible strings
constraint: "nxp,kinetis-pcc"
generation: define

reg:
type: int
description: mmio register space
generation: define
category: required

label:
type: string
category: required
description: Human readable string describing the device (used by Zephyr for API name)
generation: define

"#cells":
- name
Expand Down
13 changes: 3 additions & 10 deletions dts/bindings/arm/nxp,kinetis-scg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,18 @@ version: 0.1
description: >
This is a representation of the NXP Kinetis SCG IP node
inherits:
!include base.yaml

properties:
compatible:
type: string
category: required
description: compatible strings
constraint: "nxp,kinetis-scg"
generation: define

reg:
type: int
description: mmio register space
generation: define
category: required

label:
type: string
category: required
description: Human readable string describing the device (used by Zephyr for API name)
generation: define

clk-divider-slow:
type: int
Expand Down
Loading

0 comments on commit 48100df

Please sign in to comment.