From patchwork Fri Mar 4 18:17:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Codrin Ciubotariu X-Patchwork-Id: 12769779 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 DB14CC433EF for ; Fri, 4 Mar 2022 18:20:49 +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=ZhqdAPYFkV50h+37bUfku/Ovq3smAVriQ9XDlnjBOhk=; b=0FF3QaGJvWS6Ov Iv5fSKIEMcYjPNksaTMhcHJ8Lmo/PzsCEvBP8GKJMV4DrLvvel9QTO+/UxFCJvlbhePdUuX52vEDl Hja8a3cQd72rqO0pK52C7PhRYEvGRmyMDAdP7D+FO/Zc57498j6l4+JN8qlhpfUeA+/EZzzEQR+02 BWK1ffS3SYyPKAf5qrQGY2xKX5dKQtHFvrQFHZSz7A7vJAeRuyb7hxLNDn3yub8xtrdWmq1HMPhty kE/Q0omOYlyXyu4NHfSYLQOe/WPtOrYZ3LyQTEc5fSMyeszohmyFKGq23CGiE+YO7I5F0srIJqtJX Y1Ln5e+9Wlftg19/Fvmg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nQCWW-00BaW5-R6; Fri, 04 Mar 2022 18:19:29 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nQCVd-00Ba5d-H3 for linux-arm-kernel@lists.infradead.org; Fri, 04 Mar 2022 18:18:34 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1646417913; x=1677953913; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=TyGrqQgOrnGNSs8hyqV2vrSGr4tqKm8anDwq3Leeft8=; b=0HPYGimLH1I6DPRyfSr2MK4wlh8YEW9my7z8fZAt0bnjcpPD9KAd5yui Aev2zsOU8KwRNSzcoTYRCtFs949b6860eNZuse13/v0w6RHE1Gdvr5TQ/ SFamJYykPH8GnaT7Ol5o93/txrpWayWnUsp8l7x1Tfw/xN0/oZi9Yt4ob 3TJ6cX7qF3wB6kc9uuCRbHgGbT7ymlwK/VJJw/GNEYJ7Z9wR2ufdC2gO4 IdwbQKkiir79U2xqZYsM1OtRGYjzKxbCvVorlLeUjAmasiZ3MM6keLIkb pH/Ahph5eVl6o108wYv0c5NkYk+UIM3BWCL/AlQRPQbwjdycRQ/qwfeTI Q==; X-IronPort-AV: E=Sophos;i="5.90,155,1643698800"; d="scan'208";a="164569536" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 04 Mar 2022 11:18:32 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Fri, 4 Mar 2022 11:18:32 -0700 Received: from rob-ult-m19940.amer.actel.com (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Fri, 4 Mar 2022 11:18:29 -0700 From: Codrin Ciubotariu To: , , , Subject: [PATCH 5/6] ARM: dts: at91: sama7g5ek: add node for PDMC0 Date: Fri, 4 Mar 2022 20:17:55 +0200 Message-ID: <20220304181756.1894561-6-codrin.ciubotariu@microchip.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220304181756.1894561-1-codrin.ciubotariu@microchip.com> References: <20220304181756.1894561-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-20220304_101833_601149_849C12CC X-CRM114-Status: GOOD ( 11.35 ) 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 SAMA7G5-EK has 4 PDM microphones connected to PDMC0. PDMC0 pinmux is in conflict with gmac1, gmac1 being enabled by default. Signed-off-by: Codrin Ciubotariu --- arch/arm/boot/dts/at91-sama7g5ek.dts | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/at91-sama7g5ek.dts b/arch/arm/boot/dts/at91-sama7g5ek.dts index ccf9e224da78..a612a4a410c0 100644 --- a/arch/arm/boot/dts/at91-sama7g5ek.dts +++ b/arch/arm/boot/dts/at91-sama7g5ek.dts @@ -14,6 +14,7 @@ #include #include #include +#include / { model = "Microchip SAMA7G5-EK"; @@ -439,7 +440,7 @@ &gmac1 { &pinctrl_gmac1_mdio_default &pinctrl_gmac1_phy_irq>; phy-mode = "rmii"; - status = "okay"; + status = "okay"; /* Conflict with pdmc0. */ ethernet-phy@0 { reg = <0x0>; @@ -453,6 +454,17 @@ &i2s0 { pinctrl-0 = <&pinctrl_i2s0_default>; }; +&pdmc0 { + #sound-dai-cells = <0>; + microchip,mic-pos = , /* MIC 1 */ + , /* MIC 2 */ + , /* MIC 3 */ + ; /* MIC 4 */ + status = "disabled"; /* Conflict with gmac1. */ + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pdmc0_default>; +}; + &pioA { pinctrl_flx0_default: flx0_default { pinmux = , @@ -609,6 +621,13 @@ pinctrl_mikrobus1_spi: mikrobus1_spi { bias-disable; }; + pinctrl_pdmc0_default: pdmc0_default { + pinmux = , + , + ; + bias_disable; + }; + pinctrl_qspi: qspi { pinmux = , ,