1 # SPDX-License-Identifier: (GPL-2.0-only OR BS 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 %YAML 1.2 2 %YAML 1.2 3 --- 3 --- 4 $id: http://devicetree.org/schemas/sound/nvidi 4 $id: http://devicetree.org/schemas/sound/nvidia,tegra30-hda.yaml# 5 $schema: http://devicetree.org/meta-schemas/co 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 title: NVIDIA Tegra HDA controller 7 title: NVIDIA Tegra HDA controller 8 8 9 description: | 9 description: | 10 The High Definition Audio (HDA) block provid 10 The High Definition Audio (HDA) block provides a serial interface to 11 audio codec. It supports multiple input and 11 audio codec. It supports multiple input and output streams. 12 12 13 maintainers: 13 maintainers: 14 - Thierry Reding <treding@nvidia.com> 14 - Thierry Reding <treding@nvidia.com> 15 - Jon Hunter <jonathanh@nvidia.com> 15 - Jon Hunter <jonathanh@nvidia.com> 16 16 17 properties: 17 properties: 18 $nodename: 18 $nodename: 19 pattern: "^hda@[0-9a-f]*$" 19 pattern: "^hda@[0-9a-f]*$" 20 20 21 compatible: 21 compatible: 22 oneOf: 22 oneOf: 23 - const: nvidia,tegra30-hda 23 - const: nvidia,tegra30-hda 24 - items: 24 - items: 25 - enum: 25 - enum: 26 - nvidia,tegra234-hda 26 - nvidia,tegra234-hda 27 - nvidia,tegra194-hda 27 - nvidia,tegra194-hda 28 - nvidia,tegra186-hda 28 - nvidia,tegra186-hda 29 - nvidia,tegra210-hda 29 - nvidia,tegra210-hda 30 - nvidia,tegra124-hda 30 - nvidia,tegra124-hda 31 - const: nvidia,tegra30-hda 31 - const: nvidia,tegra30-hda 32 - items: 32 - items: 33 - const: nvidia,tegra132-hda 33 - const: nvidia,tegra132-hda 34 - const: nvidia,tegra124-hda 34 - const: nvidia,tegra124-hda 35 - const: nvidia,tegra30-hda 35 - const: nvidia,tegra30-hda 36 36 37 reg: 37 reg: 38 maxItems: 1 38 maxItems: 1 39 39 40 interrupts: 40 interrupts: 41 description: The interrupt from the HDA co 41 description: The interrupt from the HDA controller 42 maxItems: 1 42 maxItems: 1 43 43 44 clocks: 44 clocks: 45 minItems: 2 45 minItems: 2 46 maxItems: 3 46 maxItems: 3 47 47 48 clock-names: 48 clock-names: 49 minItems: 2 49 minItems: 2 50 items: 50 items: 51 - const: hda 51 - const: hda 52 - const: hda2hdmi 52 - const: hda2hdmi 53 - const: hda2codec_2x 53 - const: hda2codec_2x 54 54 55 resets: 55 resets: 56 minItems: 2 56 minItems: 2 57 maxItems: 3 57 maxItems: 3 58 58 59 reset-names: 59 reset-names: 60 minItems: 2 60 minItems: 2 61 items: 61 items: 62 - const: hda 62 - const: hda 63 - const: hda2hdmi 63 - const: hda2hdmi 64 - const: hda2codec_2x 64 - const: hda2codec_2x 65 65 66 power-domains: 66 power-domains: 67 maxItems: 1 67 maxItems: 1 68 68 69 interconnects: 69 interconnects: 70 maxItems: 2 70 maxItems: 2 71 71 72 interconnect-names: 72 interconnect-names: 73 items: 73 items: 74 - const: dma-mem 74 - const: dma-mem 75 - const: write 75 - const: write 76 76 77 iommus: 77 iommus: 78 maxItems: 1 78 maxItems: 1 79 79 80 nvidia,model: 80 nvidia,model: 81 $ref: /schemas/types.yaml#/definitions/str 81 $ref: /schemas/types.yaml#/definitions/string 82 description: | 82 description: | 83 The user-visible name of this sound comp 83 The user-visible name of this sound complex. If this property is 84 not specified then boards can use defaul 84 not specified then boards can use default name provided in hda driver. 85 85 86 required: 86 required: 87 - compatible 87 - compatible 88 - reg 88 - reg 89 - interrupts 89 - interrupts 90 - clocks 90 - clocks 91 - clock-names 91 - clock-names 92 92 93 additionalProperties: false 93 additionalProperties: false 94 94 95 examples: 95 examples: 96 - | 96 - | 97 #include<dt-bindings/clock/tegra124-car-co 97 #include<dt-bindings/clock/tegra124-car-common.h> 98 #include<dt-bindings/interrupt-controller/ 98 #include<dt-bindings/interrupt-controller/arm-gic.h> 99 99 100 hda@70030000 { 100 hda@70030000 { 101 compatible = "nvidia,tegra124-hda", "n 101 compatible = "nvidia,tegra124-hda", "nvidia,tegra30-hda"; 102 reg = <0x70030000 0x10000>; 102 reg = <0x70030000 0x10000>; 103 interrupts = <GIC_SPI 81 IRQ_TYPE_LEVE 103 interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>; 104 clocks = <&tegra_car TEGRA124_CLK_HDA> 104 clocks = <&tegra_car TEGRA124_CLK_HDA>, 105 <&tegra_car TEGRA124_CLK_HDA2 105 <&tegra_car TEGRA124_CLK_HDA2HDMI>, 106 <&tegra_car TEGRA124_CLK_HDA2 106 <&tegra_car TEGRA124_CLK_HDA2CODEC_2X>; 107 clock-names = "hda", "hda2hdmi", "hda2 107 clock-names = "hda", "hda2hdmi", "hda2codec_2x"; 108 resets = <&tegra_car 125>, /* hda */ 108 resets = <&tegra_car 125>, /* hda */ 109 <&tegra_car 128>, /* hda2hdmi 109 <&tegra_car 128>, /* hda2hdmi */ 110 <&tegra_car 111>; /* hda2code 110 <&tegra_car 111>; /* hda2codec_2x */ 111 reset-names = "hda", "hda2hdmi", "hda2 111 reset-names = "hda", "hda2hdmi", "hda2codec_2x"; 112 nvidia,model = "jetson-tk1-hda"; 112 nvidia,model = "jetson-tk1-hda"; 113 }; 113 }; 114 114 115 ... 115 ...
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.