Skip to content
Permalink
Browse files

yaml: Remove redundant document separators

YAML document separators are needed e.g. when doing

  $ cat doc1.yaml doc2.yaml | <parser>

For the bindings, we never parse concatenated documents. Assume we don't
for any other .yaml files either.

Having document separators in e.g. base.yaml makes !include a bit
confusing, since the !included files are merged and not separate
documents (the merging is done in Python code though, so it makes no
difference for behavior).

The replacement was done with

    $ git ls-files '*.yaml' | \
        xargs sed -i -e '${/\s*\.\.\.\s*/d;}' -e 's/^\s*---\s*$//'

First pattern removes ... at the end of files, second pattern clears a
line with a lone --- on it.

Some redundant blank lines at the end of files were cleared with

    $ git ls-files '*.yaml' | xargs sed -i '${/^\s*$/d}'

This is more about making sure people can understand why every part of a
binding is there than about removing some text.

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
  • Loading branch information...
ulfalizer authored and carlescufi committed Jun 18, 2019
1 parent 4e89d29 commit eba81c6e54f642918b6fd8a64d50f7d444f464fa
Showing 330 changed files with 319 additions and 749 deletions.
@@ -3,7 +3,7 @@
#
# SPDX-License-Identifier: Apache-2.0
#
---

identifier: litex_vexriscv
name: LiteX SoC with VexRiscV softcore CPU
type: mcu
@@ -3,7 +3,7 @@
#
# SPDX-License-Identifier: Apache-2.0
#
---

title: ARC DCCM
version: 0.1

@@ -19,4 +19,3 @@ properties:

reg:
category: required
...
@@ -3,7 +3,7 @@
#
# SPDX-License-Identifier: Apache-2.0
#
---

title: ARC ICCM
version: 0.1

@@ -19,4 +19,3 @@ properties:

reg:
category: required
...
@@ -3,7 +3,7 @@
#
# SPDX-License-Identifier: Apache-2.0
#
---

title: ARM Serial Configuration Control
version: 0.1

@@ -19,5 +19,3 @@ properties:

reg:
category: required

...
@@ -1,4 +1,4 @@
---

title: Atmel Device ID (Serial Number) binding
version: 0.1

@@ -14,4 +14,3 @@ properties:

reg:
category: required
...
@@ -1,4 +1,4 @@
---

title: Atmel DMAC binding
version: 0.1

@@ -17,4 +17,3 @@ properties:

interrupts:
category: required
...
@@ -1,4 +1,4 @@
---

title: Atmel SERCOM binding
version: 0.1

@@ -17,4 +17,3 @@ properties:

interrupts:
category: required
...
@@ -3,7 +3,7 @@
#
# SPDX-License-Identifier: Apache-2.0
#
---

title: Nordic DPPIC
version: 0.1

@@ -20,4 +20,3 @@ properties:

reg:
category: required
...
@@ -1,4 +1,4 @@
---

title: Nordic FICR (Factory Information Configuration Registers)
version: 0.1

@@ -14,5 +14,3 @@ properties:

reg:
category: required

...
@@ -1,4 +1,4 @@
---

title: Nordic SPU (System Protection Unit)
version: 0.1

@@ -17,5 +17,3 @@ properties:

interrupts:
category: required

...
@@ -3,7 +3,7 @@
#
# SPDX-License-Identifier: Apache-2.0
#
---

title: i.MX DTCM (Data Tightly Coupled Memory)
version: 0.1

@@ -19,5 +19,3 @@ properties:

reg:
category: required

...
@@ -3,7 +3,7 @@
#
# SPDX-License-Identifier: Apache-2.0
#
---

title: IMX EPIT COUNTER
version: 0.1

@@ -37,5 +37,3 @@ properties:
category: required
description: Set the RDC permission for this peripheral
generation: define

...
@@ -3,7 +3,7 @@
#
# SPDX-License-Identifier: Apache-2.0
#
---

title: i.MX ITCM (Instruction Tightly Coupled Memory)
version: 0.1

@@ -19,5 +19,3 @@ properties:

reg:
category: required

...
@@ -3,7 +3,7 @@
#
# SPDX-License-Identifier: Apache-2.0
#
---

title: IMX MESSAGING UNIT
version: 0.1

@@ -31,5 +31,3 @@ properties:
category: required
description: Set the RDC permission for this peripheral
generation: define

...
@@ -3,7 +3,7 @@
#
# SPDX-License-Identifier: Apache-2.0
#
---

title: NXP Kinetis PCC (Peripheral Clock Controller)
version: 0.1

@@ -26,4 +26,3 @@ properties:
"#cells":
- name
- offset
...
@@ -3,7 +3,7 @@
#
# SPDX-License-Identifier: Apache-2.0
#
---

title: NXP Kinetis SCG (System Clock Generator)
version: 0.1

@@ -142,5 +142,3 @@ properties:
description: clockout clock source
generation: define
category: optional

...
@@ -3,7 +3,7 @@
#
# SPDX-License-Identifier: Apache-2.0
#
---

title: Kinetis System Integration Module (SIM)
version: 0.1

@@ -39,4 +39,3 @@ properties:
- name
- offset
- bits
...
@@ -3,7 +3,7 @@
#
# SPDX-License-Identifier: Apache-2.0
#
---

title: LPC MAILBOX
version: 0.1

@@ -25,5 +25,3 @@ properties:

label:
category: required

...
@@ -1,4 +1,4 @@
---

# SPDX-License-Identifier: Apache-2.0
title: STM32 CCM
version: 0.1
@@ -15,5 +15,3 @@ properties:

reg:
category: required

...
@@ -1,4 +1,4 @@
---

# SPDX-License-Identifier: Apache-2.0
title: TI CC2650 PRCM
version: 0.1
@@ -16,4 +16,3 @@ properties:

reg:
category: required
...
@@ -3,7 +3,7 @@
#
# SPDX-License-Identifier: Apache-2.0
#
---

title: ST Microelectronics MPXXDTYY digital pdm microphone family
version: 0.1

@@ -18,5 +18,3 @@ properties:
constraint: "st,mpxxdtyy"
label:
category: required

...
@@ -3,7 +3,7 @@
#
# SPDX-License-Identifier: Apache-2.0
#
---

title: Texas Instruments TLV320DAC Audio DAC
version: 0.1

@@ -21,4 +21,3 @@ properties:
type: compound
category: required
generation: define, use-prop-name
...
@@ -1,4 +1,4 @@
---

title: base device binding
version: 0.1

@@ -41,5 +41,3 @@ properties:
category: optional
description: Human readable string describing the device (used by Zephyr for API name)
generation: define

...
@@ -3,7 +3,7 @@
#
# SPDX-License-Identifier: Apache-2.0
#
---

title: Bluetooth controller that provides Host Controller Interface over SPI
version: 0.1

@@ -25,4 +25,3 @@ properties:
type: compound
category: required
generation: define
...
@@ -3,7 +3,7 @@
#
# SPDX-License-Identifier: Apache-2.0
#
---

title: Bluetooth module based on Zephyr's Bluetooth HCI SPI driver
version: 0.1

@@ -27,4 +27,3 @@ properties:
type: compound
category: required
generation: define
...
@@ -3,7 +3,7 @@
#
# SPDX-License-Identifier: Apache-2.0
#
---

title: CAN Device Base Structure
version: 0.1

@@ -21,4 +21,3 @@ properties:
category: required
label:
category: required
...
@@ -1,4 +1,4 @@
---

title: CAN Base Structure
version: 0.1

@@ -46,4 +46,3 @@ properties:
type: array
category: optional
description: pinmux information for RX, TX
...
@@ -3,7 +3,7 @@
#
# SPDX-License-Identifier: Apache-2.0
#
---

title: MCP2515 CAN
version: 0.1

@@ -20,4 +20,3 @@ properties:
type: compound
category: required
generation: define, use-prop-name
...
@@ -1,4 +1,4 @@
---

title: STM32 CAN
version: 0.1

@@ -41,4 +41,3 @@ properties:
category: required
description: Clock gate control information
generation: define
...
@@ -3,7 +3,7 @@
#
# SPDX-License-Identifier: Apache-2.0
#
---

title: Nordic nRF clock control
version: 0.1

@@ -25,4 +25,3 @@ properties:

interrupts:
category: required
...

0 comments on commit eba81c6

Please sign in to comment.
You can’t perform that action at this time.