mirror of
https://github.com/torvalds/linux.git
synced 2026-04-22 08:44:02 -04:00
Just as unevaluatedProperties or additionalProperties are required at the top level of schemas, they should (and will) also be required for child node schemas. That ensures only documented properties are present. Add unevaluatedProperties or additionalProperties as appropriate, and then add any missing properties flagged by the addition. Acked-by: Sebastian Reichel <sebastian.reichel@collabora.com> Acked-by: Guenter Roeck <linux@roeck-us.net> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Acked-by: Mark Brown <broonie@kernel.org> Acked-by: Lee Jones <lee@kernel.org> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20230124230228.372305-1-robh@kernel.org Signed-off-by: Rob Herring <robh@kernel.org>
98 lines
2.5 KiB
YAML
98 lines
2.5 KiB
YAML
# SPDX-License-Identifier: GPL-2.0
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/sound/samsung,odroid.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Samsung Exynos Odroid XU3/XU4 audio complex with MAX98090 codec
|
|
|
|
maintainers:
|
|
- Krzysztof Kozlowski <krzk@kernel.org>
|
|
- Sylwester Nawrocki <s.nawrocki@samsung.com>
|
|
|
|
properties:
|
|
compatible:
|
|
oneOf:
|
|
- const: hardkernel,odroid-xu3-audio
|
|
|
|
- const: hardkernel,odroid-xu4-audio
|
|
deprecated: true
|
|
|
|
- const: samsung,odroid-xu3-audio
|
|
deprecated: true
|
|
|
|
- const: samsung,odroid-xu4-audio
|
|
deprecated: true
|
|
|
|
model:
|
|
$ref: /schemas/types.yaml#/definitions/string
|
|
description: The user-visible name of this sound complex.
|
|
|
|
assigned-clock-parents: true
|
|
assigned-clock-rates: true
|
|
assigned-clocks: true
|
|
clocks: true
|
|
|
|
cpu:
|
|
type: object
|
|
additionalProperties: false
|
|
properties:
|
|
sound-dai:
|
|
description: phandles to the I2S controllers
|
|
|
|
codec:
|
|
type: object
|
|
additionalProperties: false
|
|
properties:
|
|
sound-dai:
|
|
minItems: 1
|
|
items:
|
|
- description: phandle of the HDMI IP block node
|
|
- description: phandle of the MAX98090 CODEC
|
|
|
|
samsung,audio-routing:
|
|
$ref: /schemas/types.yaml#/definitions/non-unique-string-array
|
|
description: |
|
|
List of the connections between audio
|
|
components; each entry is a pair of strings, the first being the
|
|
connection's sink, the second being the connection's source;
|
|
valid names for sources and sinks are the MAX98090's pins (as
|
|
documented in its binding), and the jacks on the board.
|
|
For Odroid X2: "Headphone Jack", "Mic Jack", "DMIC"
|
|
For Odroid U3, XU3: "Headphone Jack", "Speakers"
|
|
For Odroid XU4: no entries
|
|
|
|
samsung,audio-widgets:
|
|
$ref: /schemas/types.yaml#/definitions/non-unique-string-array
|
|
description: |
|
|
This property specifies off-codec audio elements
|
|
like headphones or speakers, for details see widgets.txt
|
|
|
|
required:
|
|
- compatible
|
|
- model
|
|
- cpu
|
|
- codec
|
|
|
|
additionalProperties: false
|
|
|
|
examples:
|
|
- |
|
|
sound {
|
|
compatible = "hardkernel,odroid-xu3-audio";
|
|
model = "Odroid-XU3";
|
|
samsung,audio-routing =
|
|
"Headphone Jack", "HPL",
|
|
"Headphone Jack", "HPR",
|
|
"IN1", "Mic Jack",
|
|
"Mic Jack", "MICBIAS";
|
|
|
|
cpu {
|
|
sound-dai = <&i2s0 0>;
|
|
};
|
|
|
|
codec {
|
|
sound-dai = <&hdmi>, <&max98090>;
|
|
};
|
|
};
|