Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1806728ybi; Sat, 25 May 2019 09:25:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqwWw2esShnyH7vzAtaL3y5rNxTfXmjnd6+XtVM2tD6I533ET/a68gGJ00TXWQlGr/jLzIZK X-Received: by 2002:a63:79c9:: with SMTP id u192mr3622721pgc.406.1558801516900; Sat, 25 May 2019 09:25:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558801516; cv=none; d=google.com; s=arc-20160816; b=BIk/vdq8YSGWWi8seY5dge5sZ1RJX0ZXwq4RYQwKS5JPfKCiRs4V5DCZSuP96KbTUw NZHgpNFaCXwpaIVUX4JVir5r3WVrBrIqotAR4lu+Y2fsN9ddVG13a/mXC9NzqHvO7Ewq nfWzL0A0VBOQtGabwRRFSjPVnKU4dZ935cD5ddsJkBRBXmMkYmtyf7zGxn0pmtqYHzFv OhXHZ6uoSrGg1azLO1mZau8bCjxbuHS7ZUBGvrjYNwjfWlqc7mU4o0W2O+comAC33scK xXhdb6c//yWyRR6ecg7xBmi5W8ljPdjXB1qYxteMXt3SxMXqU5m/8ewOv4Y87LQTQVze zOgw== 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=qlop/tLKOAnYug0Dp9+i5+P1xnfuVjpNMnA0jr7cUrU=; b=cqGdtqIEaSlBASHQphMVMuVFmzlHuumx7Lq4xNr3yiOMu5J8Y8HhEqyFJ08U/XKHkY mL5SLH800QYZeMcVRF/hBxXEdzHhuGagY4t3lAgkq58GqunS3PLnHuCrc9dZOcYjxV9k Rw/k1OQL6g5kgntRhn4Z2rIDNjrqF048lwNuVjGop5yHc6O0+Q7bs5ukbR05PVoryJcd FSxDLfk9+YF008cidzM9SFRBYDOBs9U+Ou0SeOrFOUpqNfKnoqqfqzsGtAzoZXNsMvWs xEZaXcDxafRFg7+cBU6lna+mC2oBNbRGtHU9eoPwbnxdHa1dXDIoXQ8WXDGqgrWTFHHG VfwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=I7TtEChR; 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 z27si8809207pga.47.2019.05.25.09.25.01; Sat, 25 May 2019 09:25:16 -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=I7TtEChR; 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 S1727248AbfEYQXs (ORCPT + 99 others); Sat, 25 May 2019 12:23:48 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:45530 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727206AbfEYQXi (ORCPT ); Sat, 25 May 2019 12:23:38 -0400 Received: by mail-wr1-f66.google.com with SMTP id b18so12774176wrq.12; Sat, 25 May 2019 09:23:37 -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=qlop/tLKOAnYug0Dp9+i5+P1xnfuVjpNMnA0jr7cUrU=; b=I7TtEChRmmNj6VLSBCmaMIg1zu7RzzR2Ga+g89wPPkAc7JPfiS4+Fg+EMAgbEWdFjf InpqE8E/KGCaKzquF3SLe/yF/Yk3D/rfGZXpj0Gecf1DFjtsa/4xb+hKPoP644KGMtU3 yXb2aN7EZ4xogv4qpSqOsRpSuRa9YeXNbjwGVqBFhWdzDzp0l9hym9Sc4o7ADgtt70NJ C/ACW4wRXgVi/Qr0TdwzxeXNpXyVgKKbMZ2iVYEAG0SC7nSfXcnc3eNwAMg9zEWWJ24g ggcLwnhi4gR5/SNmgxSm63gbJCes2IZ7tcExC/8g/9qng6fNyULrJuumkr/R2O0JgbtQ BTHQ== 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=qlop/tLKOAnYug0Dp9+i5+P1xnfuVjpNMnA0jr7cUrU=; b=ttM5iPlMImhOJlHgpnYVaSzBE5sE2yhgOpzwmZIcUH3O9A80h1vt4MutXVHtrH8hYf 1E3jxhREi0f+nrVJId1XHxlgJN0vVUO4OCLDM6DrgAdmej1Laf7sTOgCDZ5nZJFfmmJF +8jV1z2dsCpUo9uKHIvx5EnJOiG887PQFlQs7MY7p/6Zl9tvV5GzI5wLSxdqgiJBOeE8 0Da7FxWpliSFL8kxvZyNoBCjMA1BLoftSChXLp0RfHGjmqS8znj1bwxRHBg5kZePxvOx vPXRnbjRlarR+CaB5MggwDsuyY7qpzkR5xSiGFj4gF+srK8P+PzBwflPbrKlOwds/glO sRkA== X-Gm-Message-State: APjAAAU7rnfIP1sCKdHRvZlGFATkSlT5FZQ7XR8gWwdc/ymAM8bK/R2U QJG3v9WA6BMROFjePLjWJpY= X-Received: by 2002:adf:aa09:: with SMTP id p9mr14856373wrd.59.1558801416931; Sat, 25 May 2019 09:23:36 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:1f1:d0f0::4e2b:d7ca]) by smtp.gmail.com with ESMTPSA id k184sm13194409wmk.0.2019.05.25.09.23.35 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sat, 25 May 2019 09:23:36 -0700 (PDT) From: =?UTF-8?q?Cl=C3=A9ment=20P=C3=A9ron?= To: Liam Girdwood , Mark Brown , Rob Herring , Mark Rutland , Maxime Ripard , Chen-Yu Tsai , Jaroslav Kysela , Takashi Iwai , Jagan Teki Cc: alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Cl=C3=A9ment=20P=C3=A9ron?= Subject: [PATCH v3 5/7] arm64: dts: allwinner: Add SPDIF node for Allwinner H6 Date: Sat, 25 May 2019 18:23:21 +0200 Message-Id: <20190525162323.20216-6-peron.clem@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190525162323.20216-1-peron.clem@gmail.com> References: <20190525162323.20216-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 f4ea596c82ce..307d3c896ff2 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.20.1