zephyr/dts/bindings/serial/uart.yaml
Ulf Magnusson 3513c260c0 dts/bindings: Remove 'generate: define' from 'interrupt-names' bindings
After commit 'scripts/dts: Never ignore properties in
generate_node_defines()', pointless entries for 'interrupt-names'
properties show up in generated_dts_board.conf and
generated_dts_board_fixups.h, because many bindings specify
'generate: define' for 'interrupt-names'.

If 'generation: define' is taken as "generate #define's for this
particular property", then only the 'interrupts' property ought to have
'generation: define'. Having it on both 'interrupts' and
'interrupt-names' makes you wonder what it would mean to only have it on
one of them.

Things get a bit confusing since 'interrupt-names' is still used when
determining the macro names generated for 'interrupts', but it's
probably best to have 'generation: define' work in a consistent way
still (and never be a no-op).

Remove 'generation: define' from all 'interrupt-names' bindings.

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
2019-02-27 10:02:35 -06:00

47 lines
1.1 KiB
YAML

---
title: Uart Base Structure
version: 0.1
description: >
This binding gives the base structures for all UART devices
child:
bus: uart
properties:
compatible:
type: string
category: required
description: compatible strings
generation: define
clock-frequency:
type: int
category: optional
description: Clock frequency information for UART operation
generation: define
current-speed:
type: int
category: required
description: Initial baud rate setting for UART
generation: define
clocks:
type: array
category: optional
description: Clock gate information
generation: define
label:
type: string
category: required
description: Human readable string describing the device (used by Zephyr for API name)
generation: define
interrupt-names:
type: stringlist
category: optional
description: names of required interrupts
pinctrl-\d+:
type: array
category: optional
description: pinmux information for RX, TX, CTS, RTS
generation: define
...