From patchwork Fri Oct 15 11:13:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Frattaroli X-Patchwork-Id: 12561073 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CA4CAC433F5 for ; Fri, 15 Oct 2021 11:27:56 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 9189660F56 for ; Fri, 15 Oct 2021 11:27:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 9189660F56 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=DiRgqogKfj8f+LVGlN9MThkK8KNfcL6GYuyqrn01rsI=; b=qkeLZ7vMTFVsdN V3Utbf8IbxZekCDZR8BxEWNnFp+OiMjYoOLs8Iw8vEUVmzc14PNp27FAgOcfJQ6sLn3+XqeTniVEg BEV+IQ6NNu1JBsmHvr7ldSQKpjKQBWm3awYnfLbDjAHD8Ih3Zs/yTVyMYlJCF7BprWVJKXlWbH9fz TLmgwkWJnp4a86Zlwg9HM5cdp4MPamFV/SgTSlMN2uozbCq7gJANRtAKbiOwvox0bi4EPwrk+o8UH orpw9+1xGiSrl8STzmRtOpqdYs3UUqvqeEtPVtvDfOm+FAand0/O2zcpwSQX4brYAi0jjvsUUQnw5 fTTO8Yd431xCQT2qYiYg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mbLNQ-006iuf-W7; Fri, 15 Oct 2021 11:27:53 +0000 Received: from mail-lf1-x130.google.com ([2a00:1450:4864:20::130]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mbL9d-006eoM-1r; Fri, 15 Oct 2021 11:13:38 +0000 Received: by mail-lf1-x130.google.com with SMTP id i24so39090608lfj.13; Fri, 15 Oct 2021 04:13:35 -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:mime-version :content-transfer-encoding; bh=96jnA4ej/Uzri1MzuZ9UoSs3Fw1wfRJ3Z/GoE9dIJXE=; b=QorjoxGzfxWLxsFjAE+2QAcprbyddJkXxfvG+tUBRIWWMbQkCZJ0L72XWxTvcrYTR+ 7sxnnPb+nXNGhcwXEmZAb7aspra0lXbt0YdfFAzhKusySohB/3VM4Dw43S75sg2xpQ2a Y49OMqsGlX+nDiDF2bUX/s5K9qTuAErMhYOqbYA60liaY4sIIZmMM+vVujZt/y7/UHe7 3kooHCFoXNMi4VFkndM7Sh+XoMNLGU9vwEEdL/N1RgrwMkx/RK8TovMGueViiJoPM8A9 m+qgzpkWJa2rUopXCd9cROY2SopzmqiLQ+215B3TlxYbRbZWIoN7o7UNCXeue3l5TQqF WS7Q== 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:mime-version :content-transfer-encoding; bh=96jnA4ej/Uzri1MzuZ9UoSs3Fw1wfRJ3Z/GoE9dIJXE=; b=uouHmvX+mecaCGcfgJx/JhBhfpGqmvwcZ4K2hh/lJ/CC2zsnVac23jbx98Qn1hZ4U2 DaH0q2CTLwrkdAsCd3nBVku1XeaJtuabmCqc22CZpsbjCiz+Uj8IXn5KqFoMUzNQwSsQ 7+I5jyfyZe1h6sJK5KqdfI24XmnU85bvvJeodVoHntKUZgltRyvbfTXWh8gSMraY51AJ s/NKO4SCmfURJ0ttBc9brWCA41ZpL0qLXEB8MyujC9ZY0kf+EQXcdoS51Da7uBDtXDD8 sn+AujHLZ+s07zlcMJpg61hE1nYUwrJozCfdVdatK6MleorOzfcmBtbdT4NwMJX3nkbu MN7w== X-Gm-Message-State: AOAM5331enZ4rluAQCiX+6iHtrym8/Mr1GRUZrqgScw1NW6mZnegUW2k nilxMmfK6fqRwd1Fm+r4tr8= X-Google-Smtp-Source: ABdhPJx+ctQa7OfRWwCG5zVAX/y0wrmmRLdqUITithI8O9z8oH8ze1L6DTb8XMoQEHCzGx4BF9Y/rg== X-Received: by 2002:a05:651c:511:: with SMTP id o17mr12577381ljp.441.1634296414372; Fri, 15 Oct 2021 04:13:34 -0700 (PDT) Received: from localhost.localdomain (84-72-105-84.dclient.hispeed.ch. [84.72.105.84]) by smtp.gmail.com with ESMTPSA id s25sm534647ljd.63.2021.10.15.04.13.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Oct 2021 04:13:33 -0700 (PDT) From: Nicolas Frattaroli To: Rob Herring , Heiko Stuebner Cc: Peter Geis , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] arm64: dts: rockchip: add spdif node to rk356x Date: Fri, 15 Oct 2021 13:13:01 +0200 Message-Id: <20211015111303.1365328-1-frattaroli.nicolas@gmail.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211015_041337_201378_5B6093DE X-CRM114-Status: GOOD ( 10.79 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org From: Peter Geis This adds the spdif node to the rk356x device tree. Signed-off-by: Peter Geis --- arch/arm64/boot/dts/rockchip/rk356x.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk356x.dtsi b/arch/arm64/boot/dts/rockchip/rk356x.dtsi index b721a34ffa8c..f0e3fe445ace 100644 --- a/arch/arm64/boot/dts/rockchip/rk356x.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk356x.dtsi @@ -608,6 +608,20 @@ sdhci: mmc@fe310000 { status = "disabled"; }; + spdif: spdif@fe460000 { + compatible = "rockchip,rk3568-spdif"; + reg = <0x0 0xfe460000 0x0 0x1000>; + interrupts = ; + dmas = <&dmac1 1>; + dma-names = "tx"; + clock-names = "mclk", "hclk"; + clocks = <&cru MCLK_SPDIF_8CH>, <&cru HCLK_SPDIF_8CH>; + #sound-dai-cells = <0>; + pinctrl-names = "default"; + pinctrl-0 = <&spdifm0_tx>; + status = "disabled"; + }; + dmac0: dmac@fe530000 { compatible = "arm,pl330", "arm,primecell"; reg = <0x0 0xfe530000 0x0 0x4000>; From patchwork Fri Oct 15 11:13:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Frattaroli X-Patchwork-Id: 12561085 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2497BC433EF for ; Fri, 15 Oct 2021 11:29:19 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id CE19560F56 for ; Fri, 15 Oct 2021 11:29:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org CE19560F56 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ANsjNTmbFfmIAkoQze832fd/CA1iFvTj0cviEQbTkfI=; b=Hmv9BGQowfMjmz 70LYRjd26bLuVwjpfAhjZ8YSZCi7sm64Nmn45xfGKkM1slpiLOf7tNC/4vCUa3uAmLcB4ap6kCG2S 5MPdI0eCH5+sInw5+wg28uqtNffQzuXogdCNWg6ZXJzumPOyXTQ/nGgK6hwkAi+ZKGy2RMwx/ETYq g9khJBRaWYKVNoLiw9xQO26AmFoZRWoNJA1FTGUqMCc/BVfJWuR7GGLOWU93kaIZLyvA2qWXiqhtN MDYOKB+8rdS+i7NuGqeXqK0oJH+SWqEXW7DMqMbd8lG8JJq24ZPdJ5a6/w1vSXf5Ej0cP3iwQTOCP CiL4p7cvQ8gmi6joBZ5w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mbLOl-006jKm-1N; Fri, 15 Oct 2021 11:29:15 +0000 Received: from mail-lf1-x12e.google.com ([2a00:1450:4864:20::12e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mbL9m-006erF-6B; Fri, 15 Oct 2021 11:13:47 +0000 Received: by mail-lf1-x12e.google.com with SMTP id p16so40326113lfa.2; Fri, 15 Oct 2021 04:13:45 -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=LSI5oUUXkL8OiMsYr9YZBaNLQBQQhatS/MOSPJ3+9wg=; b=gJWR5ocJpGyJ1rfcWDdYR43oHq+aWAa1Fme6AHiJbTqUSSo4BusdfozTCw5qv5Be63 KSClH0AbCFmfVB/9Z3MltgnmdoHEhPyx6MY41gc8LkLCYeGDtYsR9HBHEaMfP73EcayH Ji3/L89ZrSk2QnVWfUDSZbqaNeuDxeJADv4kYqTf3w2Y4EROEHJP6ThomtlygFZ6yoOr N34LPXYwB70QNTwLvJRp+okDqvT4oaoAx2wjyOeslde9jtc+zfzyjNxU3p0Tq2CmrTtd txaAFgp34lZg0AsRgmo9Buc/JL9JHot4jSlIRFf3Ex4MHaHHzZY4JfdmSH/l7IKsviHp r3Ww== 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=LSI5oUUXkL8OiMsYr9YZBaNLQBQQhatS/MOSPJ3+9wg=; b=3OtR1+cp3ChjyxcxxJdRg7u9g0w7uOk9LMwDGwyMUm/rWJqVyQkULLb4WJd+Vwpp9r A/ZtDrKRhZE+XlQbcfyeOsdDdHh8qjqSdBi7afo24gD07VQJ8A7PxztDOHw5fCouYZRG gtDlKYqy+SF7e3z+dkfliO2ldTm9Ycg0MIsZ8FVRyGmm3a7g1TR0WTEh6In+eVYAv+Bb HA0xVy0hgeJYqJvTgAAwSE0dzvSM8KxYsP43p+2uOgOm7t4bJ9aElqvfiV9V250gy9ah KeH2/2ypETXpUUXhNpAT0knWyVsfsvHmJZHSLGpsM3SvWCeAlBMxtbgYeR3ZrGyiTa/1 VOgw== X-Gm-Message-State: AOAM530GhS0mw4mdHibhsNqSe9/3H8o25Kl0uRx0/qteu31Ye/7qNL6R mZStmEUszagKjKtAgiF4NPc= X-Google-Smtp-Source: ABdhPJw77iypYK9/c3uV5UaLuCOp2Nt1OGbb7nWeNVQ88UZsY4IQoCm0pPU1HgtX2gb74GRrjdfB6Q== X-Received: by 2002:a05:6512:12c6:: with SMTP id p6mr10393057lfg.40.1634296424290; Fri, 15 Oct 2021 04:13:44 -0700 (PDT) Received: from localhost.localdomain (84-72-105-84.dclient.hispeed.ch. [84.72.105.84]) by smtp.gmail.com with ESMTPSA id s25sm534647ljd.63.2021.10.15.04.13.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Oct 2021 04:13:43 -0700 (PDT) From: Nicolas Frattaroli To: Rob Herring , Heiko Stuebner Cc: Nicolas Frattaroli , Peter Geis , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] arm64: dts: rockchip: enable spdif on Quartz64 A Date: Fri, 15 Oct 2021 13:13:02 +0200 Message-Id: <20211015111303.1365328-2-frattaroli.nicolas@gmail.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211015111303.1365328-1-frattaroli.nicolas@gmail.com> References: <20211015111303.1365328-1-frattaroli.nicolas@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211015_041346_283073_285B6A9D X-CRM114-Status: GOOD ( 10.61 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Co-developed-by: Peter Geis Signed-off-by: Peter Geis Signed-off-by: Nicolas Frattaroli --- .../boot/dts/rockchip/rk3566-quartz64-a.dts | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts b/arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts index a244f7b87e38..d272839405c5 100644 --- a/arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts +++ b/arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts @@ -58,6 +58,25 @@ led-diy { }; }; + spdif_sound: spdif-sound { + compatible = "simple-audio-card"; + simple-audio-card,name = "SPDIF"; + + simple-audio-card,cpu { + sound-dai = <&spdif>; + }; + + simple-audio-card,codec { + sound-dai = <&spdif_dit>; + }; + }; + + spdif_dit: spdif-dit { + compatible = "linux,spdif-dit"; + #sound-dai-cells = <0>; + }; + + vcc12v_dcin: vcc12v_dcin { compatible = "regulator-fixed"; regulator-name = "vcc12v_dcin"; @@ -458,6 +477,10 @@ &sdmmc0 { status = "okay"; }; +&spdif { + status = "okay"; +}; + &tsadc { /* tshut mode 0:CRU 1:GPIO */ rockchip,hw-tshut-mode = <1>;