Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2107696yba; Fri, 19 Apr 2019 12:15:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqz0ap6zQbJzwNo4uaityHaXDSL7weXtlkpmVCNL5NR6qcelw9F0R35wpiQJZGW3hvGgGeyu X-Received: by 2002:aa7:91c8:: with SMTP id z8mr5791918pfa.110.1555701352053; Fri, 19 Apr 2019 12:15:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555701352; cv=none; d=google.com; s=arc-20160816; b=iI097BMk9KKUB1zF6J2QBgSGJYXpkBkGeMIjqgasUJ4NQt9AsqGKn9A94DrFlV1O3R 2H6k/J+a4Qkz6JGeEVsQ+Fjo0NWK5mkMNCkSL2GeaXnuDdHkP5CD2vcfo1iyggGN1Rxu K8qqpF95eswIgwsoQETbMBhgVsFTlav4yXkalE9UpydtjMWWgkb9eX6kU3TBT2rWOv21 qqCQFE3znfnz9AtxsHnAO3oDC6DdiDLq6s8lBZwo8DDKelzu+1FZ1xnPO9MxFp8rJGnN rDEzg/hJ6VMXipuNkCgxBcE8r2HG5cPgKXUmk943AFQmUXvtpM8vVvCoCnktUW+ZwSCN bV1A== 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=uKVrYG5fLNMq4oH61B/TjfI3DotxPxjhCoHU0PS1JtQ=; b=xW/0V7cA0y568XMoHh/G5phP1cOMlwZvOgfRT36Uo6a5QEeUiNGwe3kiNMuaasH3OV yRZrbbg50tdPuFxFTSJAqv3ZXDfYZ/z+Wxpd/sDfi2B2nHdxCoKA0fShScCV/tLjSZak SJ5F/kuLgZtue0l++ua4zXgwCJrF7/N42oI8wvoHoTDluol2U+lMVoRnVPNJJRubcNl4 wZGuTDtxY96OgE1ZXccAP81YVCbUJvEtRVqFkyou4vsKz3o85kFAf10rtIsJRaBuJjf2 9OjgaQAiWpAof0p8/YxDiaFbkkKG/vyM5J8Z9HwRFLjZp8sZJo9rdHglGV1V5XY06AYe q79A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Fmw+8qN7; 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 f8si6244470pfd.105.2019.04.19.12.15.36; Fri, 19 Apr 2019 12:15:52 -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=Fmw+8qN7; 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 S1729786AbfDSTOZ (ORCPT + 99 others); Fri, 19 Apr 2019 15:14:25 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:43807 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727613AbfDSTOX (ORCPT ); Fri, 19 Apr 2019 15:14:23 -0400 Received: by mail-wr1-f67.google.com with SMTP id k17so7952675wrx.10; Fri, 19 Apr 2019 12:14:22 -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=uKVrYG5fLNMq4oH61B/TjfI3DotxPxjhCoHU0PS1JtQ=; b=Fmw+8qN7tfPH2V88rzY0I30wZ5901KlVIJ5/XnYPdTSySXV3OaXpjJAWDicCRUG+vQ g0Lpey8lZAvzvI/4ZHbaG2aXi2sHom8ayzkRFJdZQpk5NH2eB6TTugThntly7zpqBZw9 bu0q0CmxPC08bIly9hQt5ljgZfYJ7B1XsRvj9iKVGpLb3lLv4mzjQOjC+v49+g0SufC/ QIjThzyGkVCnipdumYWcap8C994gWpEDuDhkPupp+WUfydcqAZ0/2WDKEGQ/GfsNeu4L K3h/dAEjvRNxXOTXQom7CjAh5+kg+LWVeHVNhVnx/oFZmUEH6v7Or4Gg7qjqYI3j8vTt zFjw== 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=uKVrYG5fLNMq4oH61B/TjfI3DotxPxjhCoHU0PS1JtQ=; b=kphQe8lWP1G/CjJJ3TyF5V1IAwgRhcdtT6DHaSow+Rhg3FPUft25X9pAzS0PM1Gs01 gUbj+yLW8jtSP4W28ojU4JogZdQ+c1BFfy6PkvxdFMTDBjIl8nNhary4/+u/i6RYzQFZ acwTEajYRcTdBBpDK7OeOrmz8g6t2T7W5ZuX97gzuVEXv02Iav8uBNBAM4pV14+WjMTI BzJiv2wTIwGDMxO7l81OVb5cIkSmi5D4r7qmL+NlTnOzZOK7Oi7Y9JVg99X4Aip4ig/6 VZ3dfFBRp9SKICEIAa2EDK1JnTk0pvO4Kwuo1rHuC9bTJPOddfXGbkTrLezoDZ+LegTM pySg== X-Gm-Message-State: APjAAAWsH/o/Iy1TVjLec58o8NGbJgcROUeEg851aspYQdzVxusl2476 5fEjb2WqrtAuoITVUz7BP/4= X-Received: by 2002:adf:fa47:: with SMTP id y7mr4259360wrr.27.1555701261219; Fri, 19 Apr 2019 12:14:21 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:1f1:d0f0::df7e:4a05]) by smtp.gmail.com with ESMTPSA id z18sm8131149wrr.90.2019.04.19.12.14.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Apr 2019 12:14:19 -0700 (PDT) From: =?UTF-8?q?Cl=C3=A9ment=20P=C3=A9ron?= To: Chen-Yu Tsai , Takashi Iwai , Jaroslav Kysela , Liam Girdwood , Mark Brown , Rob Herring , Maxime Ripard Cc: alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@googlegroups.com, =?UTF-8?q?Cl=C3=A9ment=20P=C3=A9ron?= Subject: [PATCH v2 3/5] arm64: dts: allwinner: Add SPDIF node for Allwinner H6 Date: Fri, 19 Apr 2019 21:17:28 +0200 Message-Id: <20190419191730.9437-4-peron.clem@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190419191730.9437-1-peron.clem@gmail.com> References: <20190419191730.9437-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 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 | 38 ++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi index ad2077830f73..6c1debf11e5c 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi @@ -83,6 +83,24 @@ method = "smc"; }; + sound_spdif { + compatible = "simple-audio-card"; + simple-audio-card,name = "On-board 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"; + }; + timer { compatible = "arm,armv8-timer"; interrupts = ; + 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"; -- 2.17.1