mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-02 08:32:55 +00:00

DTS example in the bindings should be indented with 2- or 4-spaces and aligned with opening '- |', so correct any differences like 3-spaces or mixtures 2- and 4-spaces in one binding. While touching the lines do other non-functional changes: replace raw number with proper define for GPIO flag and use generic node name. No functional changes here, but saves some comments during reviews of new patches built on existing code. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://patch.msgid.link/20250107125901.227995-1-krzysztof.kozlowski@linaro.org Signed-off-by: Mark Brown <broonie@kernel.org>
50 lines
1.0 KiB
YAML
50 lines
1.0 KiB
YAML
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/sound/adi,ssm2518.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Analog Devices SSM2518 audio amplifier
|
|
|
|
maintainers:
|
|
- Lars-Peter Clausen <lars@metafoo.de>
|
|
|
|
allOf:
|
|
- $ref: dai-common.yaml#
|
|
|
|
properties:
|
|
compatible:
|
|
const: adi,ssm2518
|
|
|
|
reg:
|
|
maxItems: 1
|
|
description: |
|
|
I2C address of the device. This will either be 0x34 (ADDR pin low)
|
|
or 0x35 (ADDR pin high)
|
|
|
|
gpios:
|
|
maxItems: 1
|
|
description: |
|
|
GPIO connected to the nSD pin. If the property is not present
|
|
it is assumed that the nSD pin is hardwired to always on.
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
|
|
unevaluatedProperties: false
|
|
|
|
examples:
|
|
- |
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
|
|
i2c {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
codec@34 {
|
|
compatible = "adi,ssm2518";
|
|
reg = <0x34>;
|
|
gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
};
|