Analog Devices SSM2518 audio amplifier
Schema identifier ($id): "http://devicetree.org/schemas/sound/adi,ssm2518.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Lars-Peter Clausen <lars@metafoo.de>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):dai-common.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "adi,ssm2518"
reg — required here #
Maximum number of items (maxItems): 1
I2C address of the device. This will either be 0x34 (ADDR pin low) or 0x35 (ADDR pin high)
gpios — not listed as required here #
Maximum number of items (maxItems): 1
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 in this object (required): "compatible", "reg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (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>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause