Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3370095pxk; Mon, 5 Oct 2020 08:04:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2vtLx6xhKnFv48HzdMklQoTmZatCAJ+4Zdom/RWWFAyAlzk0lPPv6wrdCM/7KBt0t62rt X-Received: by 2002:a05:6402:b0e:: with SMTP id bm14mr29531edb.19.1601910287286; Mon, 05 Oct 2020 08:04:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601910287; cv=none; d=google.com; s=arc-20160816; b=V+bzrMelk+NAFKkcPegxbX/lGrvihQUWnixkYXuKjnvS7Jd8n8lawxd66kEv4BjaAU Ia97Cw8KiZAUhop/V7UPdWcjRsJDs2klAdQCQE4UXowNiKcG2Ka9pyp2/FDkGFPkb3Cc 9R2Ntxco98RLr3+QZwkGc/AonSLjHcl8rjRE7Ol1sQl1uLvk0CZntaefaD2mfuUb/kUx J83yooo559Xmp6b6DP4Yaw3lHkqCNEMpvSWE0aBECTkDUTyzjokP1N+g7u0vxeAs+m/J aQyVbKpQs5Xjc+jyhIZ7IavnS5GWLFCIU+NgoxjQutl8rgkx5iCCs3EK5N8BFCqAkaLM mD8g== 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 :message-id:date:subject:cc:to:from; bh=Qj3NcU05b3nxxWwzmuUPLqO7ElKtHwEtrXISgTQPTgw=; b=akWwnmr5cDxEYk+kyvAsZMBXsNLB9t1vKy/3ubGrbq7cb2fSxqW4KunfpjCN8vin/O nI6p4ijtNkx3XgfNWcW+1LAlyByCcNu3lH7TMpyMvQaj3c7FYWcmiwpQKdV3l0VJy1pK ZzhyHz8ZznTr3I2VQmIo3PRlu9G2ntMbrnP6K3QByEcFpc33xYEUW8s5TaLOV0JGSHpE HoqeKILGn/Sg3EBSN0/GfFrOXqSDagT5ShTQMOZfWvIwD7a+GVI7cmerwJpdO9JDTjL1 tK+0A0iXsQSderLUFZ59Vp7FPJxhVw30+AYedvDbA/+ML23mGVZAiZJacEtlU5X+kUDY 7vSg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 24si220123edv.45.2020.10.05.08.04.22; Mon, 05 Oct 2020 08:04:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726562AbgJEPDT (ORCPT + 99 others); Mon, 5 Oct 2020 11:03:19 -0400 Received: from www1102.sakura.ne.jp ([219.94.129.142]:21191 "EHLO www1102.sakura.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725981AbgJEPDT (ORCPT ); Mon, 5 Oct 2020 11:03:19 -0400 X-Greylist: delayed 3583 seconds by postgrey-1.27 at vger.kernel.org; Mon, 05 Oct 2020 11:03:18 EDT Received: from fsav405.sakura.ne.jp (fsav405.sakura.ne.jp [133.242.250.104]) by www1102.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id 095E3Kbe031802; Mon, 5 Oct 2020 23:03:20 +0900 (JST) (envelope-from katsuhiro@katsuster.net) Received: from www1102.sakura.ne.jp (219.94.129.142) by fsav405.sakura.ne.jp (F-Secure/fsigk_smtp/550/fsav405.sakura.ne.jp); Mon, 05 Oct 2020 23:03:20 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/550/fsav405.sakura.ne.jp) Received: from localhost.localdomain (80.57.232.153.ap.dti.ne.jp [153.232.57.80]) (authenticated bits=0) by www1102.sakura.ne.jp (8.15.2/8.15.2) with ESMTPSA id 095E3Dnx031782 (version=TLSv1.2 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 5 Oct 2020 23:03:20 +0900 (JST) (envelope-from katsuhiro@katsuster.net) From: Katsuhiro Suzuki To: Heiko Stuebner , linux-rockchip@lists.infradead.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Katsuhiro Suzuki Subject: [PATCH v3] arm64: dts: rockchip: add SPDIF node for rk3399-rockpro64 Date: Mon, 5 Oct 2020 23:03:11 +0900 Message-Id: <20201005140311.2507530-1-katsuhiro@katsuster.net> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds 'disabled' SPDIF sound node and related settings of SPDIF for rk3399-rockpro64. RockPro64 has output pins for SPDIF Tx. But RK3399 does not have enough DMA channel for enabling SPDIF tx. Current settings are: - I2S0 (Req num 0, 1): Enabled : Output to 40pins header CON40 - I2S1 (Req num 2, 3): Enabled : Output to ES8316 on board - I2S2 (Req num 4, 5): Enabled : Output to internal HDMI core - SPDIF Tx (Req num 7) : Disabled: Output to connector J10 If users want to enable ALL sound I/Os, we need 7 DMA channels for it. But unfortunately, RK3399 has only 6 DMA channels. So users have to choose from the following: - Disable one of I2S (Ex. I2S0) and enable SPDIF tx - Keep enable I2S0/1/2 and disable SPDIF tx Signed-off-by: Katsuhiro Suzuki --- Changes in v3: - Refine commit description why adding disabled node Changes in v2: - Remove redundant status property --- .../boot/dts/rockchip/rk3399-rockpro64.dtsi | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi index 6e553ff47534..58097245994a 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dtsi @@ -76,6 +76,23 @@ sound { dais = <&i2s1_p0>; }; + sound-dit { + compatible = "audio-graph-card"; + label = "rockchip,rk3399"; + dais = <&spdif_p0>; + }; + + spdif-dit { + compatible = "linux,spdif-dit"; + #sound-dai-cells = <0>; + + port { + dit_p0_0: endpoint { + remote-endpoint = <&spdif_p0_0>; + }; + }; + }; + vcc12v_dcin: vcc12v-dcin { compatible = "regulator-fixed"; regulator-name = "vcc12v_dcin"; @@ -698,6 +715,16 @@ &sdhci { status = "okay"; }; +&spdif { + pinctrl-0 = <&spdif_bus_1>; + + spdif_p0: port { + spdif_p0_0: endpoint { + remote-endpoint = <&dit_p0_0>; + }; + }; +}; + &spi1 { status = "okay"; -- 2.28.0