172661ff7SRichard Fitzgerald# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 272661ff7SRichard Fitzgerald%YAML 1.2 372661ff7SRichard Fitzgerald--- 472661ff7SRichard Fitzgerald$id: http://devicetree.org/schemas/sound/cirrus,cs35l45.yaml# 572661ff7SRichard Fitzgerald$schema: http://devicetree.org/meta-schemas/core.yaml# 672661ff7SRichard Fitzgerald 772661ff7SRichard Fitzgeraldtitle: Cirrus Logic CS35L45 Speaker Amplifier 872661ff7SRichard Fitzgerald 972661ff7SRichard Fitzgeraldmaintainers: 1072661ff7SRichard Fitzgerald - Ricardo Rivera-Matos <rriveram@opensource.cirrus.com> 1172661ff7SRichard Fitzgerald - Richard Fitzgerald <rf@opensource.cirrus.com> 1272661ff7SRichard Fitzgerald 1372661ff7SRichard Fitzgeralddescription: | 1472661ff7SRichard Fitzgerald CS35L45 is a Boosted Mono Class D Amplifier with DSP 1572661ff7SRichard Fitzgerald Speaker Protection and Adaptive Battery Management. 1672661ff7SRichard Fitzgerald 17*58ae9a2aSKrzysztof KozlowskiallOf: 18*58ae9a2aSKrzysztof Kozlowski - $ref: dai-common.yaml# 19*58ae9a2aSKrzysztof Kozlowski 2072661ff7SRichard Fitzgeraldproperties: 2172661ff7SRichard Fitzgerald compatible: 2272661ff7SRichard Fitzgerald enum: 2372661ff7SRichard Fitzgerald - cirrus,cs35l45 2472661ff7SRichard Fitzgerald 2572661ff7SRichard Fitzgerald reg: 2672661ff7SRichard Fitzgerald maxItems: 1 2772661ff7SRichard Fitzgerald 2872661ff7SRichard Fitzgerald '#sound-dai-cells': 2972661ff7SRichard Fitzgerald const: 1 3072661ff7SRichard Fitzgerald 3172661ff7SRichard Fitzgerald reset-gpios: 3272661ff7SRichard Fitzgerald maxItems: 1 3372661ff7SRichard Fitzgerald 3472661ff7SRichard Fitzgerald vdd-a-supply: 3572661ff7SRichard Fitzgerald description: voltage regulator phandle for the VDD_A supply 3672661ff7SRichard Fitzgerald 3772661ff7SRichard Fitzgerald vdd-batt-supply: 3872661ff7SRichard Fitzgerald description: voltage regulator phandle for the VDD_BATT supply 3972661ff7SRichard Fitzgerald 4072661ff7SRichard Fitzgerald spi-max-frequency: 4172661ff7SRichard Fitzgerald maximum: 5000000 4272661ff7SRichard Fitzgerald 4372661ff7SRichard Fitzgerald cirrus,asp-sdout-hiz-ctrl: 4472661ff7SRichard Fitzgerald description: 4572661ff7SRichard Fitzgerald Audio serial port SDOUT Hi-Z control. Sets the Hi-Z 4672661ff7SRichard Fitzgerald configuration for SDOUT pin of amplifier. Logical OR of 4772661ff7SRichard Fitzgerald CS35L45_ASP_TX_HIZ_xxx values. 4872661ff7SRichard Fitzgerald $ref: "/schemas/types.yaml#/definitions/uint32" 4972661ff7SRichard Fitzgerald minimum: 0 5072661ff7SRichard Fitzgerald maximum: 3 5172661ff7SRichard Fitzgerald default: 2 5272661ff7SRichard Fitzgerald 5372661ff7SRichard Fitzgeraldrequired: 5472661ff7SRichard Fitzgerald - compatible 5572661ff7SRichard Fitzgerald - reg 5672661ff7SRichard Fitzgerald - "#sound-dai-cells" 5772661ff7SRichard Fitzgerald 58*58ae9a2aSKrzysztof KozlowskiunevaluatedProperties: false 5972661ff7SRichard Fitzgerald 6072661ff7SRichard Fitzgeraldexamples: 6172661ff7SRichard Fitzgerald - | 6272661ff7SRichard Fitzgerald #include <dt-bindings/sound/cs35l45.h> 6372661ff7SRichard Fitzgerald spi { 6472661ff7SRichard Fitzgerald #address-cells = <1>; 6572661ff7SRichard Fitzgerald #size-cells = <0>; 6672661ff7SRichard Fitzgerald 6772661ff7SRichard Fitzgerald cs35l45: cs35l45@2 { 6872661ff7SRichard Fitzgerald #sound-dai-cells = <1>; 6972661ff7SRichard Fitzgerald compatible = "cirrus,cs35l45"; 7072661ff7SRichard Fitzgerald reg = <2>; 7172661ff7SRichard Fitzgerald spi-max-frequency = <5000000>; 7272661ff7SRichard Fitzgerald vdd-a-supply = <&dummy_vreg>; 7372661ff7SRichard Fitzgerald vdd-batt-supply = <&dummy_vreg>; 7472661ff7SRichard Fitzgerald reset-gpios = <&gpio 110 0>; 7572661ff7SRichard Fitzgerald cirrus,asp-sdout-hiz-ctrl = <(CS35L45_ASP_TX_HIZ_UNUSED | 7672661ff7SRichard Fitzgerald CS35L45_ASP_TX_HIZ_DISABLED)>; 7772661ff7SRichard Fitzgerald }; 7872661ff7SRichard Fitzgerald }; 79