Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3632264ybl; Mon, 12 Aug 2019 03:53:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqz9PFPpPrUxBi0fDpwZCXkyRiUvhiqVXBJgQvTT6F58PwS5xH+toWfTdZ+rPSzMq8bsiJ1p X-Received: by 2002:a65:4044:: with SMTP id h4mr29680518pgp.164.1565607230695; Mon, 12 Aug 2019 03:53:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565607230; cv=none; d=google.com; s=arc-20160816; b=Zb2h9vAO0/4rRGCecbzIOLf+4yji538a+yZlDOhZ7rwkeCZ/nMg0eIdAg/U5TMEajx lRynWx6EPxuriPswG+8GpD7xHZBNaYNz2GzccLvhLjDn/88iRuWTS77BkououLICTMK1 WGjcn4eN3U+tJFlJ++0xzokjLcL4khbGavNEhOOj8vaIY9b/xu1ISRqdq0yn0Bm0W/0u 6Nl0GUMlO42s+rtQjkOZcI0apZmoQ3kPMYN6G83IYaWAtiU/CbnZGePG5ouo7r5waVUh ogRNLf+mpZ0TytlGTQVRA0EHIt4hObDtJ0TdO8jCsUcrrgEE4RdVKKV/lUqCjjziB1Vy XvWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=s6rx1dKUlrkp8lxrOtRYzLFSZ1b6ZE6siahQ5YOjH0s=; b=IXQ09P4yp+Q/4lZ9vOGJw4mHB41O4Zl2+fEVANIwMb6SCJeplJWOzL9zW0/igPGpSw SD+w1CygfrbXbLzLc3DphRu+79BLfRLGBDL57/TFOR7liNguDhg2Tpi2rfpfy1zArL9v C+tEszzZNv4iSoPlv5SwdG3hz6/3jLHWoUOi2IPBm0D520MbYvaBDCWXdzCBG1wwPLpS gE8l26rVw8420NWiBC0Sr0VKswd8US/EM4KxLkZ5dtXALOSGLpbNh23d3GG+PsTNgWhm 2POyIGbdmB8SxIkuffpKFtJuFpf8QuR0Zeh1QhWwnLWH2LS9amxZ8+dkJNuw+k7sWb6e /Eog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=CVb+eaXo; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q1si62548889pgv.58.2019.08.12.03.53.34; Mon, 12 Aug 2019 03:53:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=CVb+eaXo; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1728101AbfHLKv3 (ORCPT + 99 others); Mon, 12 Aug 2019 06:51:29 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:36423 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728063AbfHLKvZ (ORCPT ); Mon, 12 Aug 2019 06:51:25 -0400 Received: by mail-wm1-f67.google.com with SMTP id g67so11349623wme.1; 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=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=eohooJwu5djQNkebZlwlxBEDiKtTkIsAeRP03nEKGSmQfDPWPJESztRSRJFesixc0V Uxi7lGZ+IekeGWxtna5+LeCwFWU9Qd6/ewdBJCZhpx6o95d8P7ChOvJlPxp8ytVP2XWx vPbK2zNMWp+TvoUb/WPpHQlJnmzDEs79V1w3506w5tPYrGXsWRjCAbNvWJua13WedyWY Kkd23VjVd9VTiJumyxobmmCsylGqzmKAzZL9OasMMJL6ODz5ebS8+5/4mC29taFFcUgA selSlA1ymaCaGBEmxgUz5RftT66S2x88i/fzyeBltnFKjBD/WeHXeWxcF2KjLYGE89rF Y6qQ== X-Gm-Message-State: APjAAAUfl5XKBhtPjFmYnHJPWlnCxddS+VJxyAZZAnbduNAMqHu+6Ykz z5ILDijGC+2CWZTVNVy/RQa45WIOp9wXQQ== 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?q?Cl=C3=A9ment=20P=C3=A9ron?= To: Maxime Ripard , Rob Herring Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, =?UTF-8?q?Cl=C3=A9ment=20P=C3=A9ron?= 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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>; -- 2.20.1