1 # SPDX-License-Identifier: GPL-2.0 1 # SPDX-License-Identifier: GPL-2.0 2 %YAML 1.2 2 %YAML 1.2 3 --- 3 --- 4 $id: http://devicetree.org/schemas/sound/amlog 4 $id: http://devicetree.org/schemas/sound/amlogic,g12a-toacodec.yaml# 5 $schema: http://devicetree.org/meta-schemas/co 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 title: Amlogic G12a Internal DAC Control Glue 7 title: Amlogic G12a Internal DAC Control Glue 8 8 9 maintainers: 9 maintainers: 10 - Jerome Brunet <jbrunet@baylibre.com> 10 - Jerome Brunet <jbrunet@baylibre.com> 11 11 12 allOf: << 13 - $ref: dai-common.yaml# << 14 << 15 properties: 12 properties: 16 $nodename: 13 $nodename: 17 pattern: "^audio-controller@.*" 14 pattern: "^audio-controller@.*" 18 15 19 "#sound-dai-cells": 16 "#sound-dai-cells": 20 const: 1 17 const: 1 21 18 22 compatible: 19 compatible: 23 oneOf: 20 oneOf: 24 - items: 21 - items: 25 - const: amlogic,g12a-toacodec !! 22 - const: >> 23 amlogic,g12a-toacodec 26 - items: 24 - items: 27 - enum: !! 25 - enum: 28 - amlogic,sm1-toacodec !! 26 - amlogic,sm1-toacodec 29 - const: amlogic,g12a-toacodec !! 27 - const: >> 28 amlogic,g12a-toacodec 30 29 31 reg: 30 reg: 32 maxItems: 1 31 maxItems: 1 33 32 34 resets: 33 resets: 35 maxItems: 1 34 maxItems: 1 36 35 37 sound-name-prefix: true << 38 << 39 required: 36 required: 40 - "#sound-dai-cells" 37 - "#sound-dai-cells" 41 - compatible 38 - compatible 42 - reg 39 - reg 43 - resets 40 - resets 44 41 45 additionalProperties: false << 46 << 47 examples: 42 examples: 48 - | 43 - | 49 #include <dt-bindings/reset/amlogic,meson- 44 #include <dt-bindings/reset/amlogic,meson-g12a-audio-reset.h> 50 45 51 toacodec: audio-controller@740 { 46 toacodec: audio-controller@740 { 52 compatible = "amlogic,g12a-toacodec"; 47 compatible = "amlogic,g12a-toacodec"; 53 reg = <0x740 0x4>; !! 48 reg = <0x0 0x740 0x0 0x4>; 54 #sound-dai-cells = <1>; 49 #sound-dai-cells = <1>; 55 resets = <&clkc_audio AUD_RESET_TOACOD 50 resets = <&clkc_audio AUD_RESET_TOACODEC>; 56 }; 51 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.