Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2557502imw; Sun, 17 Jul 2022 11:27:03 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sh1CEy+1nRUMNKdMFt+byc45+qvcrGJ7/gJyMepq/Vl9PaZsxmQ/2675SrjWUwDvunQYME X-Received: by 2002:a05:6402:cba:b0:43a:6b17:f6b5 with SMTP id cn26-20020a0564020cba00b0043a6b17f6b5mr33184333edb.330.1658082423795; Sun, 17 Jul 2022 11:27:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658082423; cv=none; d=google.com; s=arc-20160816; b=Get6EWUYIfItt1AfUjGEYfRoeTsrv/Qh8KSiSgO0nLwVFQ8UWuTz5SQyQcR7baCAnm v48+GiOw/VGVhi1+2v064H7IVABdHGG9eUgYEAPNLsv7QRWEuV2T9X6UMogADVDeDhKY csO/SwxZ6dModxipWhZLYJA2M3UQfVCElw2CZrrfu/YVc/dlwgS3iFC/llIUgLzBSJte fnyHZkqH8I8ghV5BOcLv8NunRdt+U9+BiYlG+C/F9KNj1tS7onSlQHdlzeYbJkuVpb08 s+CFnd0CKQCD2FucOiqd2OaP2X5qBQaxr0wQI/HwAfD1KCJ1Zjuaf1JDNIYAEQSApSO1 QJFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=LQv1x1CMU9dHw2UgXHFEIhfhfWQgdyhgWe5xhYIl+Aw=; b=URAiS2UTnrKldZmiQm3peFAMgNGosbbMKJvU19sRdiNCNBk8I+oNHwcdXjjc8Tjchm ycphiXG7xQ+eqKHgsgMQqRmfE/OogMJXsbHJTmNly/uMKnxipzcvsuBr5ccJZjQO/oOH +mk1KsyDemjUv1hb6j+g1CFjRrfsE/EnhMNV2UZvPoYlqD7CtgM7D0fhCOHVrTjgq7uW SVh3H0YMwuohDCEU2JosN1hIF8R/fagnvpnPwug7wF2lFlKK8VLFdEXRMZ7LkMh44dvx iBRQX70TTB1AbiOHAOOeaDmlouV2qj8YtdvvdV6zzbK5iZC+eur9ORRw0hnb7eB4OgOs cpzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=MoxhHZBf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id di7-20020a170906730700b0072f1dd96738si5373183ejc.140.2022.07.17.11.26.38; Sun, 17 Jul 2022 11:27:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=MoxhHZBf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232592AbiGQSK0 (ORCPT + 99 others); Sun, 17 Jul 2022 14:10:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231381AbiGQSKT (ORCPT ); Sun, 17 Jul 2022 14:10:19 -0400 Received: from mail-io1-xd2e.google.com (mail-io1-xd2e.google.com [IPv6:2607:f8b0:4864:20::d2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D4307DFC5; Sun, 17 Jul 2022 11:10:18 -0700 (PDT) Received: by mail-io1-xd2e.google.com with SMTP id r70so6597569iod.10; Sun, 17 Jul 2022 11:10:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=LQv1x1CMU9dHw2UgXHFEIhfhfWQgdyhgWe5xhYIl+Aw=; b=MoxhHZBfdUw0zj2to3W51BCEWcS781wXb+YEaAfQmg64gs2uhJ/xqO17VuQqEtsBUj 9CUv7mCCK4SCAOFuLtV9dDjiHFFPSZqIWDMZcpi8WmlDJaS5z1ZImwRaM4HqaUSqPBa0 HRnyfwMCxwJ/aoHlJ5oGOhVT5LexTCmdiXO8Dx5cBPVFZRiMplC/aoPCrKn5ZLDKQVb6 jG0QFiF+copqOcwUNQWd7ghD4375e2DkccJ0vqeb8hsj+/wFSCfjAzczWxLN6ZnLagK6 F579Lovn0gh22QOsjBvlck1Im8m6tO2SRy13I4oU2Xugd3vq1ncVijq5aQQM520q2aDJ gdFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=LQv1x1CMU9dHw2UgXHFEIhfhfWQgdyhgWe5xhYIl+Aw=; b=U3SH/kXodw/FvI71XJYlBFEW/pak01EBhOVr8hrRk4abojs/cd5xxAf2qd5TZz61jn uEzdVvVcLlOTJB9ZkGDRdHUT9o+14yZxHpqPr+VCy4502yGMu8rYjKsBCborpuMFQ/55 QicyTaqlpCYIzA+jvGKLSq2PmlDboMWirctBvuLW9Xgg7NwGMHEpqEeHM57gmLgvKCtS 0fgEmcfbOycGWi8JAsDn72NHHZnu/YyW/vHIsSc5B6MBJ+/D0/50sC4/gMGrHw4wEebW OBsZ0sDnQJeIkE6kZM99blzz1U3JGMcpiz7FQRt1ksQ2+cMjq5xmg7EoC+imxYv2NAJz cYFQ== X-Gm-Message-State: AJIora90vP8xy2+hKoP89JVHmCxhIDzDqM3W/Hxb9fYbdjHTsZaj74of YCeOeP2pPBQ4LydnWBuz+hU= X-Received: by 2002:a05:6638:4089:b0:33f:7f78:1cd2 with SMTP id m9-20020a056638408900b0033f7f781cd2mr13090903jam.130.1658081418027; Sun, 17 Jul 2022 11:10:18 -0700 (PDT) Received: from AIO.lan ([2601:448:8400:9e8:8e1b:7df0:7e10:ddb0]) by smtp.gmail.com with ESMTPSA id f4-20020a056e0204c400b002dc1ea52967sm3869136ils.34.2022.07.17.11.10.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Jul 2022 11:10:17 -0700 (PDT) From: Adam Ford To: linux-arm-kernel@lists.infradead.org Cc: Adam Ford , Rob Herring , Krzysztof Kozlowski , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Catalin Marinas , Will Deacon , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/6] arm64: dts: imx8mn-beacon: Enable SPDIF Sound card Date: Sun, 17 Jul 2022 13:09:56 -0500 Message-Id: <20220717181000.1186373-3-aford173@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220717181000.1186373-1-aford173@gmail.com> References: <20220717181000.1186373-1-aford173@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a sound card to support SPDIF since the imx8mn-beacon baseboard can support it. Signed-off-by: Adam Ford diff --git a/arch/arm64/boot/dts/freescale/imx8mn-beacon-baseboard.dtsi b/arch/arm64/boot/dts/freescale/imx8mn-beacon-baseboard.dtsi index fa66cc9bf455..224845d24b64 100644 --- a/arch/arm64/boot/dts/freescale/imx8mn-beacon-baseboard.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mn-beacon-baseboard.dtsi @@ -88,6 +88,14 @@ cpu { }; }; }; + + sound-spdif { + compatible = "fsl,imx-audio-spdif"; + model = "imx-spdif"; + spdif-controller = <&spdif1>; + spdif-out; + spdif-in; + }; }; &ecspi2 { @@ -186,6 +194,23 @@ &snvs_pwrkey { status = "okay"; }; +&spdif1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_spdif1>; + assigned-clocks = <&clk IMX8MN_CLK_SPDIF1>; + assigned-clock-parents = <&clk IMX8MN_AUDIO_PLL1_OUT>; + assigned-clock-rates = <24576000>; + clocks = <&clk IMX8MN_CLK_AUDIO_AHB>, <&clk IMX8MN_CLK_24M>, + <&clk IMX8MN_CLK_SPDIF1>, <&clk IMX8MN_CLK_DUMMY>, + <&clk IMX8MN_CLK_DUMMY>, <&clk IMX8MN_CLK_DUMMY>, + <&clk IMX8MN_CLK_AUDIO_AHB>, <&clk IMX8MN_CLK_DUMMY>, + <&clk IMX8MN_CLK_DUMMY>, <&clk IMX8MN_CLK_DUMMY>, + <&clk IMX8MN_AUDIO_PLL1_OUT>, <&clk IMX8MN_AUDIO_PLL2_OUT>; + clock-names = "core", "rxtx0", "rxtx1", "rxtx2", "rxtx3", + "rxtx4", "rxtx5", "rxtx6", "rxtx7", "spba", "pll8k", "pll11k"; + status = "okay"; +}; + &uart2 { /* console */ pinctrl-names = "default"; pinctrl-0 = <&pinctrl_uart2>; @@ -277,6 +302,13 @@ MX8MN_IOMUXC_SAI3_RXD_SAI3_RX_DATA0 0xd6 >; }; + pinctrl_spdif1: spdif1grp { + fsl,pins = < + MX8MN_IOMUXC_SPDIF_TX_SPDIF1_OUT 0xd6 + MX8MN_IOMUXC_SPDIF_RX_SPDIF1_IN 0xd6 + >; + }; + pinctrl_uart2: uart2grp { fsl,pins = < MX8MN_IOMUXC_UART2_RXD_UART2_DCE_RX 0x140 -- 2.34.1