From patchwork Mon Mar 7 10:04:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Codrin Ciubotariu X-Patchwork-Id: 12771472 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 5A4DDC433F5 for ; Mon, 7 Mar 2022 10:08:46 +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=kP9cKfU61mbFGtDR3Up4qtLg+dc7TGP3PGWEw0Z+Q2c=; b=GSkFgSH34uzf3r 4X5bkNVl7ocjo3HK0JYuNrtfVL1LgZF83sUPTlUWKhl5mE6ewSDRpPQBwvKxClqjeNRg7nWPWaZzF OJE+xaN6HPnecC2A+klsJDzKxspDuC3Cp+7g7AV08QvFJsypoLsh/VEYmiZpVW9XlRT9pSGfLt4Rb QDmQ5P81yKrHw1Wuvzy0ulscQlhyoAB8jrhng7l8mOyRR9IoP73q+aeVGBKUt7eMu27R3SvWPIyon djs4zVermd2r8XmN0xoT4sY8+uDK2/tIHO8r0D0Q2OamGB8bUyVU4qNCIsG8DsARJRz5+LE5piAJ0 63yRYZBO0ZG81bqtt0LQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nRAH3-00Gy9s-Cz; Mon, 07 Mar 2022 10:07:29 +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 1nRAFq-00GxS1-EU for linux-arm-kernel@lists.infradead.org; Mon, 07 Mar 2022 10:06:15 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1646647574; x=1678183574; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=3VKXO9vL9OlCgl5v6BC6SLD+HFFz5DTpmHGxTxgva/Q=; b=MOURKdHJdvQCH2XyT5Wm/lfcVA+Qq75C1jfQwtxxms3A0DywkDZOj4q8 RGYE5jyBKTHcl3v5Wa8DEZBsHes7EHE2KpG5QXMXk/ZmcszRo5+c+qtDL xMalc+foJz3MaJk2j/VSM8dWOscvGkDPHNjkp3Gm5jFLCljXC877lfj8F ITQhq3Qi1Lm8buFsMplCdTXq/w8LMVwZZszvR+oJ+U7Qt1iKeqSKmjeiI 14Nn5Jd//4XqbycDiZe1/Ej5y75rF61TsHV72PBPgvx5JWBoEHY9PqXy8 7pCYswzY1LfaoBQnA6zTWWrJAY5sb3GUxmTPxCAo5Dpbp9Ubn11c3nOHr Q==; X-IronPort-AV: E=Sophos;i="5.90,161,1643698800"; d="scan'208";a="88045549" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa6.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 07 Mar 2022 03:06:12 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex03.mchp-main.com (10.10.85.151) 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 03:06:09 -0700 Received: from rob-ult-m19940.amer.actel.com (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Mon, 7 Mar 2022 03:06:06 -0700 From: Codrin Ciubotariu To: , , , Subject: [PATCH v2 4/6] ARM: dts: at91: sama7g5: add nodes for PDMC Date: Mon, 7 Mar 2022 12:04:26 +0200 Message-ID: <20220307100428.2227511-5-codrin.ciubotariu@microchip.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220307100428.2227511-1-codrin.ciubotariu@microchip.com> References: <20220307100428.2227511-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_020614_591784_33A294F6 X-CRM114-Status: UNSURE ( 8.39 ) 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 --- 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";