ARM: dts: at91: sama7g5: add nodes for PDMC
authorCodrin Ciubotariu <codrin.ciubotariu@microchip.com>
Mon, 7 Mar 2022 12:22:00 +0000 (14:22 +0200)
committerNicolas Ferre <nicolas.ferre@microchip.com>
Tue, 17 May 2022 15:14:42 +0000 (17:14 +0200)
Microchip's SAMA7G5 embeds two PDMCs. The PDMCs can be used to connect 2x4
PDM microphones.

Signed-off-by: Codrin Ciubotariu <codrin.ciubotariu@microchip.com>
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Link: https://lore.kernel.org/all/20220307122202.2251639-5-codrin.ciubotariu@microchip.com
Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
arch/arm/boot/dts/sama7g5.dtsi

index edcf921c9c9792b6893b532b339a5655bc5827b7..7dcd41f3be4ba5b246ea258b40b6c9c055f768ad 100644 (file)
                        status = "disabled";
                };
 
+               pdmc0: sound@e1608000 {
+                       compatible = "microchip,sama7g5-pdmc";
+                       reg = <0xe1608000 0x1000>;
+                       interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
+                       #sound-dai-cells = <0>;
+                       dmas = <&dma0 AT91_XDMAC_DT_PERID(37)>;
+                       dma-names = "rx";
+                       clocks = <&pmc PMC_TYPE_PERIPHERAL 68>, <&pmc PMC_TYPE_GCK 68>;
+                       clock-names = "pclk", "gclk";
+                       status = "disabled";
+               };
+
+               pdmc1: sound@e160c000 {
+                       compatible = "microchip,sama7g5-pdmc";
+                       reg = <0xe160c000 0x1000>;
+                       interrupts = <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>;
+                       #sound-dai-cells = <0>;
+                       dmas = <&dma0 AT91_XDMAC_DT_PERID(38)>;
+                       dma-names = "rx";
+                       clocks = <&pmc PMC_TYPE_PERIPHERAL 69>, <&pmc PMC_TYPE_GCK 69>;
+                       clock-names = "pclk", "gclk";
+                       status = "disabled";
+               };
+
                spdifrx: spdifrx@e1614000 {
                        #sound-dai-cells = <0>;
                        compatible = "microchip,sama7g5-spdifrx";