From patchwork Mon Mar 7 12:22:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Codrin Ciubotariu X-Patchwork-Id: 12771754 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 46E16C433F5 for ; Mon, 7 Mar 2022 12:35:04 +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=N3bSfa8Al6pisckHwI6nj1mBej7fFsenawbqwD4QaXk=; b=bmQ4F3AL1xH+L4 BKOXOg3KP0MZXfaFGjYbyIb9NrYNIg7/K9UPow9O0gUZSu7kFoZZlIyVvhsxgg7Hp7QnUkPtF4uZF Xu9VlZtGNgqMudwHw3+9IgmZRPKggGb8aXD2Hl3BhaV3JIhev/FzVkTUrK9VW6t2YAe+jOm7MPOwV meJbGmCE6n+Erpnk2q+2M0Y6+601VxHL2bleZr2FYkyARUjrYq/TXPGr0cxEy/4c9DgD9OhOzpjyM 1gR9Oyvd1Uxzrh7gV4oa29b8xvdBPoP14He5C672WMvbCHLbnVQ/vmO6p85iXe3eP5BPlm5rrYqH1 7YHwJga82doNTl7yoE9Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nRCYF-0001Ng-8x; Mon, 07 Mar 2022 12:33:25 +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 1nRCOA-00HYEe-S6 for linux-arm-kernel@lists.infradead.org; Mon, 07 Mar 2022 12:23:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1646655778; x=1678191778; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=8P0ugmaMhZ3HPKAOr2o7rau3EF16Zlfj7QAhGV8bFJg=; b=dI5Qzn7Usc8YQR0BUp7hP3rfqeMh2ZU23E+TVQ1EgECGj8oQkrijkj/c gDRbAOIcY2It+vlaLf2p16EfnUwwQ5jIT9YBklP/caUgElT7MR3Vb4W5+ WHXClOIWF3ijwxIx3Rzl+Ss4DJ0Rfu6/RAgc+nvEx758X9SxqyI4O9ymO mMawkkujtIsZ6Lzox3QoRWUYBojIZFX3I5YQOLUO6s6IddUX4VHpCIiMY LH8Zwm4rMIp35aq8WmM/elnUksP3PdGKjcsTlDk1mAyKiUDtlUxYMrEH1 SaZDLIjuFQ1pH6Dwu6zr6cpUeDt4hcG/IY+4Hstbj6buovqLfkapM5cMV A==; X-IronPort-AV: E=Sophos;i="5.90,162,1643698800"; d="scan'208";a="155942245" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 07 Mar 2022 05:22:57 -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:57 -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:54 -0700 From: Codrin Ciubotariu To: , , , Subject: [PATCH v3 5/6] ARM: dts: at91: sama7g5ek: add node for PDMC0 Date: Mon, 7 Mar 2022 14:22:01 +0200 Message-ID: <20220307122202.2251639-6-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_042258_977710_CBDA6895 X-CRM114-Status: GOOD ( 11.49 ) 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 --- Changes in v3: - none Changes in v2: - replaced included file dt-bindings/sound/mchp,pdmc.h wih dt-bindings/sound/microchip,pdmc.h 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..a1fb980d3fc1 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 = , ,