From patchwork Mon Mar 7 12:22:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Codrin Ciubotariu X-Patchwork-Id: 12771744 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6E2CDC4332F for ; Mon, 7 Mar 2022 12:33:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=q062JkcD9jok+7s07vQvoX6x3zNX3YnvsYqr6I0GYV8=; b=BigdZtgZzAuOx6 /wfNvDLMyF/mafSZbSluiBOiRTsK58m2i4K6RecOOe7KGi9ovyTrjNdgvDMXww3iVA5NTsS+uKKiQ giPSPq7u9qoiAdoM9GwibXCL1fARAt+0XBDHUCT7zYHW5RqLZ2PjaHN8kfD3Cd7dmzo1sVaY4uN6d 5RI/JKR8JvLz9z9Xk3/yAeKzkSqyWOvprTKQE2qLD4kWKC+OGHpQytPcWWKeLAZa1BnYy9/IGrVdU IOy/tnpj8iWDmm/B74HJDp8yEHoRP4nB6qExvEPSvCvP+tXPthrGuun4cCroBmAKe8/1SVQtZIc1v Zm91JWkO6B2YZ+xlg0mA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nRCWv-0000vF-CW; Mon, 07 Mar 2022 12:32:02 +0000 Received: from esa.microchip.iphmx.com ([68.232.154.123]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nRCO8-00HYDs-9a for linux-arm-kernel@lists.infradead.org; Mon, 07 Mar 2022 12:22:58 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1646655776; x=1678191776; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=/2gvArZrxpjBHlcifiq/PuCMiVcOPlvOD5ludY/TGtU=; b=m4BiJdFOqiGnMz78Lyk53j3njJKaSdG8+WA1eo1LQaVlcMoqhyh6m0lQ IpSF9M8bX+AkKzs7VcNkfSIpMdeBqWWLO/NwsyayxQf5sI6bcQDRJOLs1 AyWQeOkLLEFT0t25/eb1rBYbhnAATCxyHmTqBwUyNOCqniu57ol7Bw+EJ FnoU7oi42+DOdBAzMuBhYQQ3tDkxIWted4LZY2tHyGqJswjyNqRCSZsIX 706PGGkZWCfsY0faJJsUCbrew/F7eJRwbW/1GnvUy/LK4CKD6/jy+CHmH Ar2Ysn65Pjmp5+OVRiZ5CLTHlI/U3Kogl1vDBpV/8thKerW4xGj8pfLUe w==; X-IronPort-AV: E=Sophos;i="5.90,162,1643698800"; d="scan'208";a="151091529" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 07 Mar 2022 05:22:54 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Mon, 7 Mar 2022 05:22:54 -0700 Received: from rob-ult-m19940.amer.actel.com (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Mon, 7 Mar 2022 05:22:51 -0700 From: Codrin Ciubotariu To: , , , Subject: [PATCH v3 4/6] ARM: dts: at91: sama7g5: add nodes for PDMC Date: Mon, 7 Mar 2022 14:22:00 +0200 Message-ID: <20220307122202.2251639-5-codrin.ciubotariu@microchip.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220307122202.2251639-1-codrin.ciubotariu@microchip.com> References: <20220307122202.2251639-1-codrin.ciubotariu@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220307_042256_508838_19A5603D X-CRM114-Status: UNSURE ( 8.29 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: lars@metafoo.de, robh+dt@kernel.org, tiwai@suse.com, broonie@kernel.org, Codrin Ciubotariu , perex@perex.cz Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Microchip's SAMA7G5 embeds two PDMCs. The PDMCs can be used to connect 2x4 PDM microphones. Signed-off-by: Codrin Ciubotariu --- Chnages in v3: - none Changes in v2: - set 'sound' as nodes' name arch/arm/boot/dts/sama7g5.dtsi | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/arm/boot/dts/sama7g5.dtsi b/arch/arm/boot/dts/sama7g5.dtsi index eddcfbf4d223..70e86444194f 100644 --- a/arch/arm/boot/dts/sama7g5.dtsi +++ b/arch/arm/boot/dts/sama7g5.dtsi @@ -275,6 +275,30 @@ pwm: pwm@e1604000 { status = "disabled"; }; + pdmc0: sound@e1608000 { + compatible = "microchip,sama7g5-pdmc"; + reg = <0xe1608000 0x1000>; + interrupts = ; + #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 = ; + #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";