Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3019279ybl; Sun, 11 Aug 2019 13:32:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqwQ7m8nt8AA3HXaWA1dc5QTADerNmRpGUnIwaUxv02kAhPDC0henHAMGmx37oWz5mKVVVd1 X-Received: by 2002:a17:90a:c20e:: with SMTP id e14mr21271515pjt.0.1565555569999; Sun, 11 Aug 2019 13:32:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565555569; cv=none; d=google.com; s=arc-20160816; b=B6INdowDn/7sbGxX/g04zSxebLrpdc+BY72xj8FMR4PfxeLyQixGx6EZe1YcIpaz47 XKmztQ9QPK33KXYx68duU295KGUIiAZv8I9ismyqLa0dbcA6a4yGQQ5JHbuXuVGDZcC9 vh3vMpGC8KNQpUt6jPIY0txzZjirCDBUFgNyfkq/tHqzMg9oDmZoD6dZZ+b8fp1ewA0K K9D/SrlLA5vkpb31aKU34/uxnMNGPRBwDoBeLAxmMwZA8Gb/++ckdKYGSG/j7dOKX4S8 qIxAE3hGkjpVYBBYpGHIQGHQRj3VKS3surLeHJhHPM+MvoEnb0jG0WCa992lduFX0E2h dfBw== 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=VmJANs6ADrzmj7CF2pwPHk66RmEAqBp61/Sj+xq22Nc=; b=m+aReAYRJ4Wua0Uz6Ucj43uPVVRqsPTR/DELvktt8wOyy/rNNlwkAj4g2+0KiAhpMc uOETDJIyqGjQ/BX3HwRGnceIuApPdtqr9pGbjlqv423IDu/C3sSgCPs+7pMA9KzL5GlT UUzWOCluiSVN7UExjRr/vYbI0RjYAhBYpKb6BVWtWYiMvmPxj1j8OB32evuUZsa7DuCG y5pzhA0myVO4v9TsKQIrJQSvz9Uj3FAVW7uIbiswULdp6Gw0jsgtvNyWDME7EB9E4rM1 +uHTVb3ThmsIn/GBXAuI+JNGmfAN2IrG0C+oSNdS05xzt4h2mUUIFmqXc1xqUO94b9tx D47w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=oXSmSfYF; 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 c5si62209418pfr.25.2019.08.11.13.32.34; Sun, 11 Aug 2019 13:32:49 -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=oXSmSfYF; 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 S1726557AbfHKUb7 (ORCPT + 99 others); Sun, 11 Aug 2019 16:31:59 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:34892 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726144AbfHKUb5 (ORCPT ); Sun, 11 Aug 2019 16:31:57 -0400 Received: by mail-wm1-f68.google.com with SMTP id l2so10035934wmg.0; Sun, 11 Aug 2019 13:31:56 -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=VmJANs6ADrzmj7CF2pwPHk66RmEAqBp61/Sj+xq22Nc=; b=oXSmSfYFRVvVK9HlfrUEv/VpPMEzztyoEuPkETohNSxYvim/+DIFnl4roDjE4M+Q7C pM1GWR5ea4sg3sA5Urj8lLcwC/4wrt9HGUM9wu3ukdZrg9PM/T2AnU7PeL2jS+Yd9qmk C+I46kDxvxT9ZLL7aAmVXOUxzzrWfhBZImGF3EwNOobu0O1H+SkMec/i35IXDeDsNDap Pvh6xpJS596vjLoSVUpaX8uv7FraOaV6E6zziqDrvOP5vAmWV85V9RYikAjAxVHp+S1J a5APp4StEx+4Z8QwY83WduuxACFSqRMP/SDgLT7V8erZRCQRQMBIWiYZQY6s/OeT/YyG FfCQ== 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=VmJANs6ADrzmj7CF2pwPHk66RmEAqBp61/Sj+xq22Nc=; b=X03zpLDML+xaU104dVhqkCZjUIfMgQ50TrSEbTBe3WW4C9zyVLDWg3wWsFapCwR9Xz hFL76ihXOwlqmJbbOmb2u05iaRyUovOwJhtmMzO3rY05x6hplesmBLdEEvwWaMdVlchf 0yPrRDzn0vVanEgrT2Bqcj7q87Irxmns3mRrsvrCWmwvLDWfQb2Uv+rPgjyvnX5/zy3v /Yc2dyBrg+YB1lwcFfBfJzKcANtVG0ymtiy6KDR+TZ5586cZHnD8+o2CwAZ61Xe6u4RU fqUbbg6elR2Wz2KjA3cOnJmo4W2SFyQBOnxh03rHRcw2Q7U3gayTUZ9A7RtWnMRFpKn+ iIrA== X-Gm-Message-State: APjAAAV47SKPIX7Hmy2yUBLa83feErIBGS7AhOUpBjagcPP4UowHagtK FyjBEqHrUfEhJImOCpcbqFs= X-Received: by 2002:a1c:9a95:: with SMTP id c143mr10613581wme.2.1565555515436; Sun, 11 Aug 2019 13:31:55 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:1f1:d0f0::4e2b:d7ca]) by smtp.gmail.com with ESMTPSA id a8sm11063269wma.31.2019.08.11.13.31.54 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sun, 11 Aug 2019 13:31:55 -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 v5 1/3] arm64: dts: allwinner: Add SPDIF node for Allwinner H6 Date: Sun, 11 Aug 2019 22:31:42 +0200 Message-Id: <20190811203144.5999-2-peron.clem@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190811203144.5999-1-peron.clem@gmail.com> References: <20190811203144.5999-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 7628a7c83096..677eb374678d 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 = "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"; + }; + 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