From patchwork Sat Jan 27 16:32:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chen-Yu Tsai X-Patchwork-Id: 193067 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2395:b0:106:343:edcb with SMTP id gw21csp572789dyb; Sat, 27 Jan 2024 08:39:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IGf+WslCM+4yNXuQcgQGh+G+o2fpKI8QMNmbGHb8KsZfZilt0ej+U89WP3oQDMd5CdctUwE X-Received: by 2002:a05:6808:2109:b0:3bd:f9c2:60e0 with SMTP id r9-20020a056808210900b003bdf9c260e0mr2073355oiw.27.1706373584803; Sat, 27 Jan 2024 08:39:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706373584; cv=pass; d=google.com; s=arc-20160816; b=LdLqLc4jdNWoZDONgeUefSDgGRk4+UaD8IGOOB67XO3WElebtvnybttlO0prQFFPzx /joT1V9M92kEv4zGTAJDv5OOyhrY3NmNumfovInbOxr8YpjajhcUQqi1MZZV+XEvgKxP 1XYr6bgBFfN1tdD1zgZkn/J3KYxaUIr+dgFQvkxuXXLgm1cnNhllhqb6+0gZFdFtpOXn c0Y3itWWWWy9e3eqOt31ayJlLlxfmsWYrXZWFx4oT+gtQIJ66K63xpNfo62jZgjjvnmd +1wM4LNvoWSkLxUqYqP3KubtMEGfnTp6Gr5w6R7JtC51Ed084mdh9QHoZ/shM0VoviQ8 76Xw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=mpRGKwkY5ZKdt0P+2nskuYUjyzd6Et6tDgWEs0u/ZKw=; fh=7heQgEq06SRj3M5jJj/3xEMmsrcIaj+c3B/LX1Wa5n4=; b=e0jVB3IyLSW8WN8rmO9hoDd3U6dRIR71pvmQ13c7Cs+WmV04LyWcLMXU313x3izFpz /36r837dcwYhWU8PAdxzXJCnC/hc1CvFf2GlXgECBJEmmYKFmVQFgW0F9J7H3pbhNDuH amZrhHUyNzQzZLFKljzIE9ObjJU0/or9GVfVc3RlNfHEtrz2HGqXllrFBOTfb9iOiBD/ MmAQOuNTozgn4yUj66R5tj04S1QMKn6m9JGUsSCp179G0DCbHd0FOSrbnPHH+uqugr73 60eKDrX7L0HttYVZi2I9KJxYmqka/9hUMVQGzN75FMH3LMp7WdhGVUjaUWdlJlybZKA/ lbgA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="ZfxcEB/P"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-41315-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41315-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id z6-20020a63e546000000b005d8b3af5d3asi1455872pgj.769.2024.01.27.08.39.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Jan 2024 08:39:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-41315-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="ZfxcEB/P"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-41315-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41315-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 99353B23372 for ; Sat, 27 Jan 2024 16:35:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6F81945BE4; Sat, 27 Jan 2024 16:33:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ZfxcEB/P" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7C7C22E635; Sat, 27 Jan 2024 16:32:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706373177; cv=none; b=ff30xOuK3T7GUzFFgQYaNEDqA991V/0tW+83nNDV/+kWrmz6rvHZE0sDiEdMt3FVjBr4gDTl/m2AT9tNFUIvtysti22HdMKhQNxjoQK6iK1g5TuRAsSRsMkDt76zDZV4zcHKX5dGDqLIERrxvMAtqcSa194joOWb4OkkK759rsQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706373177; c=relaxed/simple; bh=eAd7srBbetTNuoTznQNyc5Zq6J7HU6wdNysZdYd3kxE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=izvwT0QqnBRlWUkDSAi7PJsXCJ3EcnkJlpIkppSQsyjXqGI2EtjOGE/2n39fS9DiIVBJO4FEmkjofvmMEV4ZNP9KS/y4UD9HwFiVJ2/6+wXy14MXEMVkTlmKdpX9otYPgIotqK5Eiy16YlsdDnAM9OfdxMIaPzf/D43hLqRJjq4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ZfxcEB/P; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 300EBC32782; Sat, 27 Jan 2024 16:32:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706373177; bh=eAd7srBbetTNuoTznQNyc5Zq6J7HU6wdNysZdYd3kxE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZfxcEB/PjxKgjc/wwsQqMoHdUsXoHcutXwR54Zz40tbIJXiovoDWfeN2uMIdDB59T hM6+YDMoFZqvX6il/E5dr7lY6HkkXWdBiCpifCLQEUR5NwmlSdCKnzXY2qaJo/10sE NtZu6vr8Lxl5EBkdeY3/XyYXBJX+3XDG0lR/cH1WhoneVu0SMDVZZh6qLSf9oq+6w3 GKjLZNe0SXeazRSN53MmOCtRbwLlr/q0iqSECdPaDJWIiqHFXX+cAPde9PawemAPgt Bec634DL1z171RBlA2cLg4ECC8TEDIl+4khHl52kIHZ/Bgf+9Zzj4UDFcU8P/i06cO HeusOAzAQND/g== Received: by wens.tw (Postfix, from userid 1000) id 925475FEC6; Sun, 28 Jan 2024 00:32:52 +0800 (CST) From: Chen-Yu Tsai To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jernej Skrabec , Samuel Holland , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Vinod Koul Cc: Chen-Yu Tsai , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-sound@vger.kernel.org, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, Andre Przywara Subject: [PATCH v2 7/7] arm64: dts: allwinner: h616: Add SPDIF device node Date: Sun, 28 Jan 2024 00:32:47 +0800 Message-Id: <20240127163247.384439-8-wens@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240127163247.384439-1-wens@kernel.org> References: <20240127163247.384439-1-wens@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789262388147978461 X-GMAIL-MSGID: 1789262388147978461 From: Chen-Yu Tsai The H616 SoC has an SPDIF transmitter hardware block, which has the same layout as the one in the H6, minus the receiver side. Add a device node for it, and a default pinmux. Signed-off-by: Chen-Yu Tsai Reviewed-by: Andre Przywara Acked-by: Jernej Skrabec --- .../arm64/boot/dts/allwinner/sun50i-h616.dtsi | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi index 885809137b9d..b1bf4fb5fc58 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi @@ -253,6 +253,11 @@ spi1_cs0_pin: spi1-cs0-pin { function = "spi1"; }; + spdif_tx_pin: spdif-tx-pin { + pins = "PH4"; + function = "spdif"; + }; + uart0_ph_pins: uart0-ph-pins { pins = "PH0", "PH1"; function = "uart0"; @@ -550,6 +555,21 @@ mdio0: mdio { }; }; + spdif: spdif@5093000 { + compatible = "allwinner,sun50i-h616-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>; + #sound-dai-cells = <0>; + status = "disabled"; + }; + usbotg: usb@5100000 { compatible = "allwinner,sun50i-h616-musb", "allwinner,sun8i-h3-musb";