Skip to content

Commit

Permalink
ARM: dts: at91: sama7g5ek: add node for PDMC0
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Claudiu Beznea <[email protected]>
Link: https://lore.kernel.org/all/[email protected]
Signed-off-by: Nicolas Ferre <[email protected]>
  • Loading branch information
codrin989 authored and noglitch committed May 17, 2022
1 parent 0c91107 commit 821cb05
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion arch/arm/boot/dts/at91-sama7g5ek.dts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <dt-bindings/mfd/atmel-flexcom.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/pinctrl/at91.h>
#include <dt-bindings/sound/microchip,pdmc.h>

/ {
model = "Microchip SAMA7G5-EK";
Expand Down Expand Up @@ -456,7 +457,7 @@
&pinctrl_gmac1_mdio_default
&pinctrl_gmac1_phy_irq>;
phy-mode = "rmii";
status = "okay";
status = "okay"; /* Conflict with pdmc0. */

ethernet-phy@0 {
reg = <0x0>;
Expand All @@ -470,6 +471,17 @@
pinctrl-0 = <&pinctrl_i2s0_default>;
};

&pdmc0 {
#sound-dai-cells = <0>;
microchip,mic-pos = <MCHP_PDMC_DS0 MCHP_PDMC_CLK_NEGATIVE>, /* MIC 1 */
<MCHP_PDMC_DS1 MCHP_PDMC_CLK_NEGATIVE>, /* MIC 2 */
<MCHP_PDMC_DS0 MCHP_PDMC_CLK_POSITIVE>, /* MIC 3 */
<MCHP_PDMC_DS1 MCHP_PDMC_CLK_POSITIVE>; /* MIC 4 */
status = "disabled"; /* Conflict with gmac1. */
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_pdmc0_default>;
};

&pioA {

pinctrl_can0_default: can0_default {
Expand Down Expand Up @@ -639,6 +651,13 @@
bias-disable;
};

pinctrl_pdmc0_default: pdmc0_default {
pinmux = <PIN_PD23__PDMC0_DS0>,
<PIN_PD24__PDMC0_DS1>,
<PIN_PD22__PDMC0_CLK>;
bias_disable;
};

pinctrl_qspi: qspi {
pinmux = <PIN_PB12__QSPI0_IO0>,
<PIN_PB11__QSPI0_IO1>,
Expand Down

0 comments on commit 821cb05

Please sign in to comment.