From patchwork Mon Jan 22 17:05:18 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: 190261 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2bc4:b0:101:a8e8:374 with SMTP id hx4csp2731622dyb; Mon, 22 Jan 2024 09:45:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IF/i24w8t9TP8RMTzy0E9MO62OJIanjm5lqT467u9ZBjQdJpk++sLvJVCbLVg7J2xgUWwAr X-Received: by 2002:a2e:9113:0:b0:2cc:77b0:7655 with SMTP id m19-20020a2e9113000000b002cc77b07655mr1832316ljg.8.1705945543686; Mon, 22 Jan 2024 09:45:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705945543; cv=pass; d=google.com; s=arc-20160816; b=hkuj2WbyZtNhRVeWyzt54Q44xAnAEH9eaEXXgtw8M+/REeaRhqbSr/+aJxXg0nZi/T CdAiuJVQ7pP64uobJAUaO0Si1fri+xug7itSr7T1++Yan8bdpnwHWjB/uftXVGdHdTDT bxPvM5fV+3kzMhdjdceeCu4hKDeMhHBV7ZXHkybvmh9DjZaUinKSaW+AKE9ar+XmUCsV IpdsGKFDwIXQvuiq86ZDC3w6N3wHtpFdCur1HmpEM85TqbV19QP+qKKA6q1727rCieII ZKY6IMWrkhz545oBMAXlGMMpffP+deArTIvxreh3/VC+/cODoWhcT0t0Pz5Gr3K1Q6I1 CaRw== 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=JDqGiC62U6/lv5nPPmdBA3m8DQLwdlm1r4nq0YjRuGw=; fh=m1+VV4HTiGNm18uZzn/d6hCG96aBwlw9t3UKL+x124s=; b=u/5LkXm1ndxp8xxYfMchS4IayWlxD5NqSN6PLzzwA/5DJ90VlstkPZ8HXn6ZoZTbTu iQ4xfp5fQr3flwcrKq4rD1eLDtWPVbSZw4CYcVL4XUzyP+WI9+R7vyuAeoklHFVstmEm VyNto8qhLsVJeBQvwWhx56OmRp27NPRn0iPlgOjJTn+7/UdNefglClh1DRfFy52l0iAV yqXzhpacyjyGk8d0/bMoNmFTx/+cl4iZG81MFochE+16QknBfogYDunzJ7oFuCPRxr9p Tr188HGGKFGiy20DwA0khZ3vTnJVVASazXgWzj2fMTDm1K7Aa06VWhhsJFUEJ1KwAZ5Q 9WJA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eTjpP12a; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-33750-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33750-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id c8-20020a0564021f8800b00559963bde38si7174745edc.556.2024.01.22.09.45.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 09:45:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-33750-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eTjpP12a; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-33750-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33750-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 4C8271F2714E for ; Mon, 22 Jan 2024 17:45:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3733C5DF0E; Mon, 22 Jan 2024 17:05:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="eTjpP12a" 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 8D3FF5D8E1; Mon, 22 Jan 2024 17:05:36 +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=1705943136; cv=none; b=O3O4RDiMbBNHdcLZMb28WxymhZ+zjcJPOntJ5OO8OdH7wxoGwfpAKz2+Mu66MjqHZdpT4kwdPCYfrv9yapWnTS49GGkm2KOEelNGQsvLl4/sGe1g3dExSvimxAuoQYTv7Ip1GrIukk5a6F9dlMG4ntyR7sOpDH9574/7x5ZXbaU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705943136; c=relaxed/simple; bh=plCrDOFxd9CSFR2G/TaoQ8OuyVplm0yUrVWBFc9beG0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=S+Wm8JtsC7Lwiaylx39EaqLxQblhyJiYL7HlFTpXQum5SRONN9oUfE0mKLj3ZSTLERn6ESWP/8KnDRrRWEnDLSIF2IJOSVNKv59xlyqS1wHxqPI29svX2nLBsl4Q2/o/V9mRUqd7gD6+fe7KZ9/5L7F4WoVDEbcstYk2fACQucI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=eTjpP12a; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C65EEC43141; Mon, 22 Jan 2024 17:05:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705943136; bh=plCrDOFxd9CSFR2G/TaoQ8OuyVplm0yUrVWBFc9beG0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eTjpP12aEqbpC9EDTaf7939XgV6o2gVZwL8479UFJS++dJR+QRuJOuFVsDUDiMrXm kKg9rpEb/hkE2EGvRmNITTp21cA0j773Ordlv+twyUbNtPw02tlEMlT+kLqEotK3Ju vWdaDowAOlZ8hUJWnEhVRKJZRFbp8QPFubGuiS6Ebbc36NR7uEfTTaEZrgaoIJH5vf dPIbPww8ez+hibciUxiXaklYhdZnZhDM/39NmSSPNupPqxV4Gzfclp7fYOUECtHFcn qFN7sVEmR6yjcH3vTvrWsL1e9nwto7Elo7K16BywguX097llP5TRrLyeou8fjzFNX9 PT4QACDWJPSOQ== Received: by wens.tw (Postfix, from userid 1000) id 2E367600FD; Tue, 23 Jan 2024 01:05:30 +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 Subject: [PATCH 7/7] arm64: dts: allwinner: h616: Add SPDIF device node Date: Tue, 23 Jan 2024 01:05:18 +0800 Message-Id: <20240122170518.3090814-8-wens@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240122170518.3090814-1-wens@kernel.org> References: <20240122170518.3090814-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: 1788813554404193572 X-GMAIL-MSGID: 1788813554404193572 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 --- .../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 a0268439f3be..fd4c080b8e62 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";