From patchwork Mon Nov 15 20:11:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Jernej_=C5=A0krabec?= X-Patchwork-Id: 12692663 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 8D5E5C433EF for ; Mon, 15 Nov 2021 20:12:43 +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 5B14B61B95 for ; Mon, 15 Nov 2021 20:12:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 5B14B61B95 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=2E6SIjZH4bMq1/c/u04FrhSxv2zjSVgTKUQV0GlrFTo=; b=a9B5i08stC/MNs dPfO1ssdqECVHfFywkYt8lmuD776d0gKKjYua/Ia4sj7mik6xtEE7CYDosv4DbYaBdAPI0wo1nske s1G76qjUC0/tp7NK+bwK0dUNyXb530DfRcMQbeTT8aiRbt1U10nDtJC3QHBA9qARH/3hyzJBmTIsd xRjHM+bEcN917VSkZOLmKcVHsEoZppK8nicPLcFWzxrQBn08Gu5j6aZtPnX+vK5LYQVfvsu7f0wC8 YYy5ZS2kLKr5MgSy8Y+FdGlAdx9u0zNQPtjNCDhfijvXjUkMp4BDAyDmLkpHLlSJX0cRbfH/47t05 3srwhOkbh+LXmyTvlDKQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mmiK2-00H03x-SA; Mon, 15 Nov 2021 20:11:23 +0000 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mmiJx-00H01z-3l for linux-arm-kernel@lists.infradead.org; Mon, 15 Nov 2021 20:11:18 +0000 Received: by mail-wr1-x436.google.com with SMTP id u1so33004118wru.13 for ; Mon, 15 Nov 2021 12:11:16 -0800 (PST) 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=OVufiMS+5ME6/qbmdZ9jFuP6rhzYyALe6R8u1xIQ+I8=; b=WxqUWqw9dcjW58RqrOawZJX8dFHGcFnqlOdeYJiHKEfL/w8CcJBKNfS5hs/bRlROkS DdCUsECLDA5V6QkypM6B5Wo2JFC8uqqpwXHvO2vr3PQkfLPcgvgG/dpAAkznKWl65CTh JG8S6Ii+uYuNCuRUEOU6lh36LitBTBiHXD5BNIp+F0gEkasoxvJUMDb6aPfs+pDeq7Ub tZ0U5WoZ06rEso3K4WPUoqi6IghSkiNAwMkIo5Gl1C2caO+WA5TvDvQjV7Npuwe7GsZ/ X4VpmqIT0/BJDzxJ+kavTAjlQx/27rs4f6/LGwf4soEWmIW4B6jXLoAqzFHR0c6SDKn9 0Sgw== 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=OVufiMS+5ME6/qbmdZ9jFuP6rhzYyALe6R8u1xIQ+I8=; b=vT8rV/aWCcXrkMJ21sg2FszIF721hU/pkg/+Iq451vzn5x7s1iiSaWp019ldH3Kl2o R5b/1+UKC0jq53YguwwlQpepQags30q/LQnBRfbgkABpRx2+ajOzVvB8a6722rIlJXOM np15Z2/t4YW1IThWsMkQ20LHj83qcaA+u1cuMmqknzaheF14oZL/Jxe3DDjosMIaD9JG +Z5z8sFvQaRtWjJnGTBPhaGa344zOgkUL/Z4Pp4B6dN6JZioG67qvty1a3qhJplmr6FG Coh5jrY2fb2MWxNMqC7oAfhAjFSCNlIO9Waj8fEPybu7mzEmr9pOzyg+AqQnZwByLjWH TPPQ== X-Gm-Message-State: AOAM532YxqMyJ4BPlcbkwRkPJ/yGZ14EeSOb25MdZ7paV1WbcBgNpMCv DbMPR3R7c9McQxYh+nkFTHA= X-Google-Smtp-Source: ABdhPJxRaydlPIgKCNnFlVSM/bdOi7Fbn48Le9KlaQLD2hWe6B5eTE0Fonu5liBo3qPVFLkEO0xmbA== X-Received: by 2002:adf:e484:: with SMTP id i4mr2123541wrm.49.1637007075508; Mon, 15 Nov 2021 12:11:15 -0800 (PST) Received: from kista.localdomain (cpe-86-58-29-253.static.triera.net. [86.58.29.253]) by smtp.gmail.com with ESMTPSA id q4sm15529370wrs.56.2021.11.15.12.11.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Nov 2021 12:11:15 -0800 (PST) From: Jernej Skrabec To: mripard@kernel.org, wens@csie.org Cc: robh+dt@kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Jernej Skrabec Subject: [PATCH] arm64: dts: allwinner: h6: tanix-tx6: Add SPDIF Date: Mon, 15 Nov 2021 21:11:12 +0100 Message-Id: <20211115201112.452696-1-jernej.skrabec@gmail.com> X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211115_121117_187258_54850D80 X-CRM114-Status: GOOD ( 10.53 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Tanix TX6 board has SPDIF connector in form of 3.5 mm jack. Add support for it. Signed-off-by: Jernej Skrabec --- .../dts/allwinner/sun50i-h6-tanix-tx6.dts | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-tanix-tx6.dts b/arch/arm64/boot/dts/allwinner/sun50i-h6-tanix-tx6.dts index 8f2a80f128de..6c10ff7f4b1c 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h6-tanix-tx6.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-tanix-tx6.dts @@ -52,6 +52,24 @@ reg_vdd_cpu_gpu: regulator-vdd-cpu-gpu { regulator-min-microvolt = <1135000>; regulator-max-microvolt = <1135000>; }; + + sound-spdif { + compatible = "simple-audio-card"; + simple-audio-card,name = "sun50i-h6-spdif"; + + simple-audio-card,cpu { + sound-dai = <&spdif>; + }; + + simple-audio-card,codec { + sound-dai = <&spdif_out>; + }; + }; + + spdif_out: spdif-out { + #sound-dai-cells = <0>; + compatible = "linux,spdif-dit"; + }; }; &cpu0 { @@ -127,6 +145,10 @@ &r_ir { status = "okay"; }; +&spdif { + status = "okay"; +}; + &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_ph_pins>;