Texas Instruments PCM1754 Stereo DAC

Schema identifier ($id): "http://devicetree.org/schemas/sound/ti,pcm1754.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

The PCM1754 is a simple stereo DAC that is controlled via hardware gpios.

Maintainers (maintainers): "Stefan Kerkmann <s.kerkmann@pengutronix.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 #

Allowed values (enum): "ti,pcm1754"

vcc-supply — required here #

true — No constraints added by this property rule.

#sound-dai-cells — required here #

Exact value (const): 0

format-gpios — not listed as required here #

Maximum number of items (maxItems): 1

GPIO used to select the PCM format

mute-gpios — not listed as required here #

Maximum number of items (maxItems): 1

GPIO used to mute all outputs

Required in this object (required): "compatible", "#sound-dai-cells", "vcc-supply"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
codec {
  compatible = "ti,pcm1754";
  #sound-dai-cells = <0>;

  vcc-supply = <&vcc_reg>;
  mute-gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
  format-gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Edit this page