mirror of
https://github.com/torvalds/linux.git
synced 2026-04-20 15:53:59 -04:00
The Devicetree bindings document does not have to say in the title that
it is a "binding", but instead just describe the hardware.
Drop trailing "Node|Tree|Generic bindings" in various forms (also with
trailing full stop):
find Documentation/devicetree/bindings/ -type f -name '*.yaml' \
-not -name 'trivial-devices.yaml' \
-exec sed -i -e 's/^title: \(.*\) [nN]ode [bB]indings\?\.\?$/title: \1/' {} \;
find Documentation/devicetree/bindings/ -type f -name '*.yaml' \
-not -name 'trivial-devices.yaml' \
-exec sed -i -e 's/^title: \(.*\) [tT]ree [bB]indings\?\.\?$/title: \1/' {} \;
find Documentation/devicetree/bindings/ -type f -name '*.yaml' \
-not -name 'trivial-devices.yaml' \
-exec sed -i -e 's/^title: \(.*\) [gG]eneric [bB]indings\?\.\?$/title: \1/' {} \;
find Documentation/devicetree/bindings/ -type f -name '*.yaml' \
-not -name 'trivial-devices.yaml' \
-exec sed -i -e 's/^title: \(.*\) [bB]indings\? description\.\?$/title: \1/' {} \;
find Documentation/devicetree/bindings/ -type f -name '*.yaml' \
-not -name 'trivial-devices.yaml' \
-exec sed -i -e 's/^title: \(.*\) [bB]indings\? document\.\?$/title: \1/' {} \;
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Acked-by: Ulf Hansson <ulf.hansson@linaro.org> # MMC
Acked-by: Stephen Boyd <sboyd@kernel.org> # clk
Acked-by: Vinod Koul <vkoul@kernel.org> # phy
Acked-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20221216163815.522628-6-krzysztof.kozlowski@linaro.org
Signed-off-by: Rob Herring <robh@kernel.org>
104 lines
3.2 KiB
YAML
104 lines
3.2 KiB
YAML
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/sound/audio-graph-port.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Audio Graph Card 'port'
|
|
|
|
maintainers:
|
|
- Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
|
|
|
|
select: false
|
|
|
|
allOf:
|
|
- $ref: /schemas/graph.yaml#/$defs/port-base
|
|
|
|
properties:
|
|
prefix:
|
|
description: "device name prefix"
|
|
$ref: /schemas/types.yaml#/definitions/string
|
|
convert-rate:
|
|
$ref: "/schemas/sound/dai-params.yaml#/$defs/dai-sample-rate"
|
|
convert-channels:
|
|
$ref: "/schemas/sound/dai-params.yaml#/$defs/dai-channels"
|
|
convert-sample-format:
|
|
$ref: "/schemas/sound/dai-params.yaml#/$defs/dai-sample-format"
|
|
|
|
patternProperties:
|
|
"^endpoint(@[0-9a-f]+)?":
|
|
$ref: /schemas/graph.yaml#/$defs/endpoint-base
|
|
unevaluatedProperties: false
|
|
|
|
properties:
|
|
mclk-fs:
|
|
description: |
|
|
Multiplication factor between stream rate and codec mclk.
|
|
When defined, mclk-fs property defined in dai-link sub nodes are
|
|
ignored.
|
|
$ref: /schemas/types.yaml#/definitions/uint32
|
|
frame-inversion:
|
|
description: dai-link uses frame clock inversion
|
|
$ref: /schemas/types.yaml#/definitions/flag
|
|
bitclock-inversion:
|
|
description: dai-link uses bit clock inversion
|
|
$ref: /schemas/types.yaml#/definitions/flag
|
|
frame-master:
|
|
description: Indicates dai-link frame master.
|
|
oneOf:
|
|
- $ref: /schemas/types.yaml#/definitions/flag
|
|
- $ref: /schemas/types.yaml#/definitions/phandle
|
|
bitclock-master:
|
|
description: Indicates dai-link bit clock master
|
|
oneOf:
|
|
- $ref: /schemas/types.yaml#/definitions/flag
|
|
- $ref: /schemas/types.yaml#/definitions/phandle
|
|
|
|
dai-format:
|
|
description: audio format.
|
|
items:
|
|
enum:
|
|
- i2s
|
|
- right_j
|
|
- left_j
|
|
- dsp_a
|
|
- dsp_b
|
|
- ac97
|
|
- pdm
|
|
- msb
|
|
- lsb
|
|
convert-rate:
|
|
$ref: "/schemas/sound/dai-params.yaml#/$defs/dai-sample-rate"
|
|
convert-channels:
|
|
$ref: "/schemas/sound/dai-params.yaml#/$defs/dai-channels"
|
|
convert-sample-format:
|
|
$ref: "/schemas/sound/dai-params.yaml#/$defs/dai-sample-format"
|
|
|
|
dai-tdm-slot-num:
|
|
description: Number of slots in use.
|
|
$ref: /schemas/types.yaml#/definitions/uint32
|
|
dai-tdm-slot-width:
|
|
description: Width in bits for each slot.
|
|
$ref: /schemas/types.yaml#/definitions/uint32
|
|
dai-tdm-slot-width-map:
|
|
description: Mapping of sample widths to slot widths. For hardware
|
|
that cannot support a fixed slot width or a slot width always
|
|
equal to sample width. A matrix of one or more 3-tuples.
|
|
$ref: /schemas/types.yaml#/definitions/uint32-matrix
|
|
items:
|
|
items:
|
|
-
|
|
description: Sample width in bits
|
|
minimum: 8
|
|
maximum: 64
|
|
-
|
|
description: Slot width in bits
|
|
minimum: 8
|
|
maximum: 256
|
|
-
|
|
description: Slot count
|
|
minimum: 1
|
|
maximum: 64
|
|
|
|
additionalProperties: true
|