From patchwork Mon Aug 12 10:51:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= X-Patchwork-Id: 11089617 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5667213AC for ; Mon, 12 Aug 2019 10:51:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 472F027F88 for ; Mon, 12 Aug 2019 10:51:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3BD4727F93; Mon, 12 Aug 2019 10:51:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id DFBE627F88 for ; Mon, 12 Aug 2019 10:51:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=BM9vDbApgsi3ZOK4hgzY6MRNsVwFI0bQsnZcK2VE8zg=; b=R7MgdjreDlqbXl 8YvGWjVVhusZTMibXQba8ZYmIFNWRZ4fOjulufUS4+QNlERSa9mHIo2EAwGWzSG8fc4rIobeaCOYR jzSNnebB6weU0brRi+6y9Uej1l8j+NhIiyAeJphjxWVzjH3UaJHzkSuQFvbaJ1qnxQz6PMCOZ9AdF 7rjFDJEZKfM2/Srl3a0g2GYreEHYNuCJ/CqjBEV3AeATP6SzuU+KlanwShNEi3ypMM92iBrmFJhX3 mEnj83wWIHudCQ8q4OC0NACfZ+z7HQNoZrB7G3SxuSm9XNf1eM02vaDw327Tn5zX/R07PxnPG4QKd QNcH02XPnrivycHoLVrA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hx7vf-0001Xr-5C; Mon, 12 Aug 2019 10:51:55 +0000 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hx7v9-00017l-N5 for linux-arm-kernel@lists.infradead.org; Mon, 12 Aug 2019 10:51:25 +0000 Received: by mail-wm1-x344.google.com with SMTP id z23so11348724wmf.2 for ; Mon, 12 Aug 2019 03:51:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=E6tk82k5TW54Tmi+3csD4OKmu7+dtwlB6O+wvC9mbyU=; b=FFXOj+d+O9qgInIVXb+Sftndtm05JphCPhcUol3hrBE+2Q+2OuhLTyMNJmheL0djcD gbuQJs8q9565e+PIwD7RxJ62El0N2FEi6Buo6yjREUkvPyxDraK0pbon0NhGJla+6r1z lerT5NsDc33Ih7WN7RXKWZ2hQhhaHFuvsbo8yjOIh6vzeNe5BncMwRy5P81G34DzB10q u6xhvJW3J/gsKIzhC2RV/4kcuDgmOBcQlrLdCAPc3ivPdDgZUf2iKh73IYJ2Dv96c6LP 1OqlPXvjt5xnl4AU1/oHN0m+GLRP/zaYn//65jYOm09yj8roL+9bTUxpMcEcpieKHxbx m8/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=E6tk82k5TW54Tmi+3csD4OKmu7+dtwlB6O+wvC9mbyU=; b=AauL3nzlIGLyDRcSHy29kpoOy1QMYvDcZruxryH6wOR+2QrgiDTmVBLsspjKnX3wkQ CbgkCZ0ashcUbRkws03h7uGZzYWsfiyYiXQrY3kDX8nIOdQykeQ306MxgwZrR2noF3Gr 4KBLgoFSc+JDCyo5qJS42abdhyJJaSinfxOYbXMtLbyuRdcQlv2PKRovWDj0ALiI6Os/ XwdEIXCGLo5IUBP6UCXUF9xEtJleb2DRd1xYmgnYBb/p2LA20CHVXBC5Vg4Rf1XRwI97 3DnSVt/ow9t1za/0J3711bz/HfH7oLySMRzsbN6eHwRQd2t6CaCBqUzc/zGHYBGl30pF 4ZqA== X-Gm-Message-State: APjAAAWapX2qGWbW9he7UEuSFxUd2k3QlRmZeVFaX7+BKhY1KL/iKxGb sYsgOMYjpifymlDu1KsI+VY= X-Google-Smtp-Source: APXvYqz3iWhMUmifg53tK3NRpq7zKWmNYACZQgK+R7BpcssqngYhmlMV2tEFxt29aLSzmCM7t5zo1Q== X-Received: by 2002:a1c:9d8c:: with SMTP id g134mr7086261wme.174.1565607082211; Mon, 12 Aug 2019 03:51:22 -0700 (PDT) Received: from localhost.localdomain (lputeaux-656-1-11-33.w82-127.abo.wanadoo.fr. [82.127.142.33]) by smtp.gmail.com with ESMTPSA id z8sm22797916wru.13.2019.08.12.03.51.21 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 12 Aug 2019 03:51:21 -0700 (PDT) From: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= To: Maxime Ripard , Rob Herring Subject: [PATCH v6 1/2] arm64: dts: allwinner: Add SPDIF node for Allwinner H6 Date: Mon, 12 Aug 2019 12:51:14 +0200 Message-Id: <20190812105115.26676-2-peron.clem@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190812105115.26676-1-peron.clem@gmail.com> References: <20190812105115.26676-1-peron.clem@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190812_035123_804772_69C36A64 X-CRM114-Status: GOOD ( 11.58 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-sunxi@googlegroups.com, =?utf-8?b?Q2w=?= =?utf-8?b?w6ltZW50IFDDqXJvbg==?= , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The Allwinner H6 has a SPDIF controller called OWA (One Wire Audio). Only one pinmuxing is available so set it as default. Signed-off-by: Clément Péron --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi index 7628a7c83096..2ba9ab9e0924 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi @@ -282,6 +282,11 @@ bias-pull-up; }; + spdif_tx_pin: spdif-tx-pin { + pins = "PH7"; + function = "spdif"; + }; + uart0_ph_pins: uart0-ph-pins { pins = "PH0", "PH1"; function = "uart0"; @@ -411,6 +416,21 @@ }; }; + spdif: spdif@5093000 { + #sound-dai-cells = <0>; + compatible = "allwinner,sun50i-h6-spdif"; + reg = <0x05093000 0x400>; + interrupts = ; + clocks = <&ccu CLK_BUS_SPDIF>, <&ccu CLK_SPDIF>; + clock-names = "apb", "spdif"; + resets = <&ccu RST_BUS_SPDIF>; + dmas = <&dma 2>; + dma-names = "tx"; + pinctrl-names = "default"; + pinctrl-0 = <&spdif_tx_pin>; + status = "disabled"; + }; + usb2otg: usb@5100000 { compatible = "allwinner,sun50i-h6-musb", "allwinner,sun8i-a33-musb"; From patchwork Mon Aug 12 10:51:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= X-Patchwork-Id: 11089619 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B04B213AC for ; Mon, 12 Aug 2019 10:52:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A1B01212D9 for ; Mon, 12 Aug 2019 10:52:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 950AF23201; Mon, 12 Aug 2019 10:52:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3EE51212D9 for ; Mon, 12 Aug 2019 10:52:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=8gp/vcTBmGssKLWMwCfEWhqprCM8Kr6mfvrhCJgd4Js=; b=IWKT6e/X9nL7V9 qb5ye13YSwKE+NXD2d1MLaa+gV0vPbBdeDkJDqNHQckQuya8OthhD8C/yjGWdG9L7/gnVz3yNioR4 ufLyKU+NLGjx3ae+iDumCxuOOMrh12RKJdOepJJO0sveEjPo9yZpGZGtxoFu4jpgv7Jezdoz/oedh 92D8KSYE7CL7APmtbhtZEzBmOb4+lSI7ehphOvLqRqWQHJ/dBVnYDckt2JLPl1cUk62BXqc6MgmsE 7/e9c01p/sbGgAmW+Blsj4SistFvofty2kWvLvK2/3QIhFMzrz/Szfa7X3Yra1oKcVKjSaFkxG6C2 qwJjVOPfC5i/RGzkY2VQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hx7vw-0001nR-JZ; Mon, 12 Aug 2019 10:52:12 +0000 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hx7vA-00018Z-Ai for linux-arm-kernel@lists.infradead.org; Mon, 12 Aug 2019 10:51:25 +0000 Received: by mail-wm1-x342.google.com with SMTP id p74so11715851wme.4 for ; Mon, 12 Aug 2019 03:51:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=s6rx1dKUlrkp8lxrOtRYzLFSZ1b6ZE6siahQ5YOjH0s=; b=CVb+eaXo2L4uM0satNH8rv4hAuHEe9s6gMleWULDR7+PiRZ+/xA/4RBmoJJFHmzMSJ oaEos42X9x4zneikNH10lWnMVDiOhygtJCpv3ey0JialcqOxLxSNRdFf5e2ycFL8PYtR BmXfvwSCFQJMaEm9MpqXVlpC/c/8LxGs4XVArzE1TKKyCi8FUIuL+Ejo2ghmj2bJmSum p32NozAwLYo0UFS1xvirot+T+ZkwyZ9b6VV1A2eB9On6byX3Nim95OdqSxfcfkrfv9Ud CiuLnj5H6b9TBwIGZSgkkjbp3irr2e3sAyWwPkELtm46aATsDsetsXT2JEQl6+vN/F1d 9lAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=s6rx1dKUlrkp8lxrOtRYzLFSZ1b6ZE6siahQ5YOjH0s=; b=i6GuaiEKiG/FV0sYS5RxTXYsqab2C9DGbl9SIrOE4wIHuayoKHOUTGwkiWoMVj6zz+ YSGWZiyNLSKVFRUkskTB/pvM7nrMlRWJPq8ECZeZueSdgy1VO6mkWrA3PlF/Ph4gDyEY k2Ksfw0PwbASwv6sipNdFyVI/X/EGYwfvouR07JQP623p4RJkXjInCBTnChNRIoB90ZS cf0HFmNteqN8/qGgckmUaGoj5w1n25npYHrOwK04KDHNZgb5YwTl4yVTeBgeL+ULzUaj HD+SOXAKhh3ZyIjsUODm/q/RAfNd0WUXM81xYylE82qpAbfi8ZeRzMDvMvAyEU6yyEXP jpYA== X-Gm-Message-State: APjAAAUxViHjDAR7KvGjEou2a4ZyEvsTNhNZQtmWoebN5HyudD5TyNI6 zE90SULfJlFRedPI/LA8qFo= X-Google-Smtp-Source: APXvYqwcypxhte6LRn2hiX6Q6xCU9wrTY4rbDlru9jV6IK9HQW07ieLBEkKsRKPv2UH3pSAPKrFZzQ== X-Received: by 2002:a05:600c:144:: with SMTP id w4mr13375394wmm.94.1565607082842; Mon, 12 Aug 2019 03:51:22 -0700 (PDT) Received: from localhost.localdomain (lputeaux-656-1-11-33.w82-127.abo.wanadoo.fr. [82.127.142.33]) by smtp.gmail.com with ESMTPSA id z8sm22797916wru.13.2019.08.12.03.51.22 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 12 Aug 2019 03:51:22 -0700 (PDT) From: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= To: Maxime Ripard , Rob Herring Subject: [PATCH v6 2/2] arm64: dts: allwinner: h6: Enable SPDIF for Beelink GS1 Date: Mon, 12 Aug 2019 12:51:15 +0200 Message-Id: <20190812105115.26676-3-peron.clem@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190812105115.26676-1-peron.clem@gmail.com> References: <20190812105115.26676-1-peron.clem@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190812_035124_421261_66E4ECC6 X-CRM114-Status: GOOD ( 11.85 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-sunxi@googlegroups.com, =?utf-8?b?Q2w=?= =?utf-8?b?w6ltZW50IFDDqXJvbg==?= , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Beelink GS1 board has a SPDIF out connector, so enable it in the device-tree and add a simple SPDIF soundcard. Signed-off-by: Clément Péron --- .../dts/allwinner/sun50i-h6-beelink-gs1.dts | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts b/arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts index 0dc33c90dd60..4bd14f085070 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts @@ -51,6 +51,24 @@ regulator-max-microvolt = <5000000>; regulator-always-on; }; + + 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"; + }; }; &de { @@ -243,6 +261,10 @@ vcc-pm-supply = <®_aldo1>; }; +&spdif { + status = "okay"; +}; + &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_ph_pins>;