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>
73 lines
1.4 KiB
YAML
73 lines
1.4 KiB
YAML
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/sound/neofidelity,ntp8918.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: NeoFidelity NTP8918 Amplifier
|
|
|
|
maintainers:
|
|
- Igor Prusov <ivprusov@salutedevices.com>
|
|
|
|
description:
|
|
The NTP8918 is a single chip full digital audio amplifier
|
|
including power stage for stereo amplifier system.
|
|
The NTP8918 is integrated with versatile digital audio signal
|
|
processing functions, high-performance, high-fidelity fully
|
|
digital PWM modulator and two high-power full-bridge MOSFET
|
|
power stages.
|
|
|
|
allOf:
|
|
- $ref: dai-common.yaml#
|
|
|
|
properties:
|
|
compatible:
|
|
enum:
|
|
- neofidelity,ntp8918
|
|
|
|
reg:
|
|
enum:
|
|
- 0x2a
|
|
- 0x2b
|
|
- 0x2c
|
|
- 0x2d
|
|
|
|
reset-gpios:
|
|
maxItems: 1
|
|
|
|
'#sound-dai-cells':
|
|
const: 0
|
|
|
|
clocks:
|
|
maxItems: 3
|
|
|
|
clock-names:
|
|
items:
|
|
- const: wck
|
|
- const: scl
|
|
- const: bck
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
|
|
unevaluatedProperties: false
|
|
|
|
examples:
|
|
- |
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
|
|
i2c {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
audio-codec@2a {
|
|
compatible = "neofidelity,ntp8918";
|
|
#sound-dai-cells = <0>;
|
|
reg = <0x2a>;
|
|
clocks = <&clkc 150>, <&clkc 151>, <&clkc 152>;
|
|
clock-names = "wck", "scl", "bck";
|
|
reset-gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
|
|
};
|
|
};
|