brintos

brintos / linux-shallow public Read only

0
0
Text · 3.7 KiB · 45ad56d Raw
131 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/sound/mediatek,mt8365-afe.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: MediaTek Audio Front End PCM controller for MT83658 9maintainers:10  - Alexandre Mergnat <amergnat@baylibre.com>11 12properties:13  compatible:14    const: mediatek,mt8365-afe-pcm15 16  reg:17    maxItems: 118 19  "#sound-dai-cells":20    const: 021 22  clocks:23    items:24      - description: 26M clock25      - description: mux for audio clock26      - description: audio i2s0 mck27      - description: audio i2s1 mck28      - description: audio i2s2 mck29      - description: audio i2s3 mck30      - description: engen 1 clock31      - description: engen 2 clock32      - description: audio 1 clock33      - description: audio 2 clock34      - description: mux for i2s035      - description: mux for i2s136      - description: mux for i2s237      - description: mux for i2s338 39  clock-names:40    items:41      - const: top_clk26m_clk42      - const: top_audio_sel43      - const: audio_i2s0_m44      - const: audio_i2s1_m45      - const: audio_i2s2_m46      - const: audio_i2s3_m47      - const: engen148      - const: engen249      - const: aud150      - const: aud251      - const: i2s0_m_sel52      - const: i2s1_m_sel53      - const: i2s2_m_sel54      - const: i2s3_m_sel55 56  interrupts:57    maxItems: 158 59  power-domains:60    maxItems: 161 62  mediatek,dmic-mode:63    $ref: /schemas/types.yaml#/definitions/uint3264    description:65      Indicates how many data pins are used to transmit two channels of PDM66      signal. 1 means two wires, 0 means one wire. Default value is 0.67    enum:68      - 0 # one wire69      - 1 # two wires70 71required:72  - compatible73  - reg74  - clocks75  - clock-names76  - interrupts77  - power-domains78 79additionalProperties: false80 81examples:82  - |83    #include <dt-bindings/clock/mediatek,mt8365-clk.h>84    #include <dt-bindings/interrupt-controller/arm-gic.h>85    #include <dt-bindings/interrupt-controller/irq.h>86    #include <dt-bindings/power/mediatek,mt8365-power.h>87 88    soc {89        #address-cells = <2>;90        #size-cells = <2>;91 92        audio-controller@11220000 {93            compatible = "mediatek,mt8365-afe-pcm";94            reg = <0 0x11220000 0 0x1000>;95            #sound-dai-cells = <0>;96            clocks = <&clk26m>,97                     <&topckgen CLK_TOP_AUDIO_SEL>,98                     <&topckgen CLK_TOP_AUD_I2S0_M>,99                     <&topckgen CLK_TOP_AUD_I2S1_M>,100                     <&topckgen CLK_TOP_AUD_I2S2_M>,101                     <&topckgen CLK_TOP_AUD_I2S3_M>,102                     <&topckgen CLK_TOP_AUD_ENGEN1_SEL>,103                     <&topckgen CLK_TOP_AUD_ENGEN2_SEL>,104                     <&topckgen CLK_TOP_AUD_1_SEL>,105                     <&topckgen CLK_TOP_AUD_2_SEL>,106                     <&topckgen CLK_TOP_APLL_I2S0_SEL>,107                     <&topckgen CLK_TOP_APLL_I2S1_SEL>,108                     <&topckgen CLK_TOP_APLL_I2S2_SEL>,109                     <&topckgen CLK_TOP_APLL_I2S3_SEL>;110            clock-names = "top_clk26m_clk",111                          "top_audio_sel",112                          "audio_i2s0_m",113                          "audio_i2s1_m",114                          "audio_i2s2_m",115                          "audio_i2s3_m",116                          "engen1",117                          "engen2",118                          "aud1",119                          "aud2",120                          "i2s0_m_sel",121                          "i2s1_m_sel",122                          "i2s2_m_sel",123                          "i2s3_m_sel";124            interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_LOW>;125            power-domains = <&spm MT8365_POWER_DOMAIN_AUDIO>;126            mediatek,dmic-mode = <1>;127        };128    };129 130...131