mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-29 23:53:32 +00:00
5f0b06da5c
Another wack-a-mole pass of killing off unnecessary 'allOf + $ref' usage. json-schema versions draft7 and earlier have a weird behavior in that any keywords combined with a '$ref' are ignored (silently). The correct form was to put a '$ref' under an 'allOf'. This behavior is now changed in the 2019-09 json-schema spec and '$ref' can be mixed with other keywords. The json-schema library doesn't yet support this, but the tooling now does a fixup for this and either way works. This has been a constant source of review comments, so let's change this treewide so everyone copies the simpler syntax. Signed-off-by: Rob Herring <robh@kernel.org>
49 lines
1.2 KiB
YAML
49 lines
1.2 KiB
YAML
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/sound/maxim,max98390.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Maxim Integrated MAX98390 Speaker Amplifier with Integrated Dynamic Speaker Management
|
|
|
|
maintainers:
|
|
- Steve Lee <steves.lee@maximintegrated.com>
|
|
|
|
properties:
|
|
compatible:
|
|
const: maxim,max98390
|
|
|
|
reg:
|
|
maxItems: 1
|
|
description: I2C address of the device.
|
|
|
|
maxim,temperature_calib:
|
|
description: The calculated temperature data was measured while doing the calibration.
|
|
$ref: /schemas/types.yaml#/definitions/uint32
|
|
minimum: 0
|
|
maximum: 65535
|
|
|
|
maxim,r0_calib:
|
|
description: This is r0 calibration data which was measured in factory mode.
|
|
$ref: /schemas/types.yaml#/definitions/uint32
|
|
minimum: 1
|
|
maximum: 8388607
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
|
|
additionalProperties: false
|
|
|
|
examples:
|
|
- |
|
|
i2c {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
max98390: amplifier@38 {
|
|
compatible = "maxim,max98390";
|
|
reg = <0x38>;
|
|
maxim,temperature_calib = <1024>;
|
|
maxim,r0_calib = <100232>;
|
|
};
|
|
};
|