Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp202974rdb; Mon, 22 Jan 2024 17:40:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IFeQwDojjVms5PWPC34kX2NqXsvlA2fsqom75MWuqF2HoMPeKx91ViKfD2D41m12PMMEm4f X-Received: by 2002:a2e:a4cf:0:b0:2cd:faab:4502 with SMTP id p15-20020a2ea4cf000000b002cdfaab4502mr1387349ljm.49.1705974031666; Mon, 22 Jan 2024 17:40:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705974031; cv=pass; d=google.com; s=arc-20160816; b=b1JGSz6b8ZYP1732pUyzEGQfmtUgeFsBAgAsPl+nGo27lRq5BLm1okCoXNUzkzdc1w HkIvmkQ8kkJwTBtgsegGfO4JNbrcAcT1dFPRWpEzkpCc3qRPqIApU/ZfGoovPjWJvuSw fqva2drm7LreGQUlypIFh8D0woqjmsQeGZsTXg0w+zx3KrYt+t91WADfdskzp1Jeb4TS wBytCd7oO9kMf5WbaBPn6PmS3j3tZSvRfw7KPkvGl4ANSiZqeOBNn3VsoVZNv27kUfOW +SvnCPWc9Ua8FjM9PG6lLEPzLP3gu65Si/GfWHISrcOPVLgJFXNInjFqIeZn3dHc5/AU V+Ug== 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:organization:references :in-reply-to:message-id:subject:cc:to:from:date; bh=YTi1nO9riPns7rqwQxJPXBM5/ZfOM1kjSmSedHYT6M8=; fh=UWiig1s3fmMOlTSMGWrEATJpXuAxUBcuTQXgzYQfeCg=; b=rmbrsulHAHifl7EY2qWwxPYkUbPppA7Jwz2uPKWrJaUefYskf87h/jop8mDmjItX9T VkO3jTmPDoe+l/Nc1szgEhA+qlhWlCriDHaelDq3Xmh86J/gpmrieJMAuRA6eSuh+FIk W3/3kgvNqCV9KqYom6teR1/BykkJ1QEsoIxjzP5nUZayZ0FL3O9Burz4cCSRozw8d+PO StQLuIXkHdoNcdP+wKWaYATj0i+Fpspfg5yeRqQuQyIgbj1+Wwa/fG1F0k8qBE3iJQJM skjE3SBFFxk3hv8Hr4fk/6tSCHLrsltzyCum0Sus6APkNblkjlwCy+bilxcDccc6CUo/ lXKw== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-34536-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34536-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id er7-20020a056402448700b0055a49811537si4707159edb.457.2024.01.22.17.40.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 17:40:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-34536-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-34536-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34536-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com 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 62BDE1F29187 for ; Tue, 23 Jan 2024 01:40:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 602C113AA40; Tue, 23 Jan 2024 00:44:10 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8446F5732A; Tue, 23 Jan 2024 00:44:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705970649; cv=none; b=o98KmMWx1IDkIufgHE7xrbLQwZADTQEuU8mXy8sPg2aNNK78h+x5Vn/w/QD1Hu9K/FY3GiIc218WcSwj/OZtJ0q7iWj3vLlxi/41MopvCX3THii+h1MAYKTbtV3b3kX0tL+S5OjkzSr0ZxAta+1PGuk26OqI6QB4q16TYUPMIqg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705970649; c=relaxed/simple; bh=EqkaQAa8ngABIEr8F8P6NKP5vlleTQIiI2bXwG/sbHc=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=GsxutwFL+0jsx5L42lSYs0r1qJnpuNouwD8J36uFs7JyGHDgHTObIeTvQ2CafcE2nOtLokve0Rc+TMD3g04oljdwDozxqGbB2RZWzTmyDBu6H4dsiWotTJLVB3Ic4K/7wtwt2oGy85JDsNg9xp8Vio0enJ3K+qpfSaXoC6yJmVo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 91A0E1FB; Mon, 22 Jan 2024 16:44:52 -0800 (PST) Received: from minigeek.lan (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id A275B3F73F; Mon, 22 Jan 2024 16:44:04 -0800 (PST) Date: Tue, 23 Jan 2024 00:43:15 +0000 From: Andre Przywara To: Chen-Yu Tsai Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jernej Skrabec , Samuel Holland , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Vinod Koul , 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: Re: [PATCH 7/7] arm64: dts: allwinner: h616: Add SPDIF device node Message-ID: <20240123004315.068adcba@minigeek.lan> In-Reply-To: <20240122170518.3090814-8-wens@kernel.org> References: <20240122170518.3090814-1-wens@kernel.org> <20240122170518.3090814-8-wens@kernel.org> Organization: Arm Ltd. X-Mailer: Claws Mail 4.2.0 (GTK 3.24.31; x86_64-slackware-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Tue, 23 Jan 2024 01:05:18 +0800 Chen-Yu Tsai wrote: Hi, > 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 Compared the details against the manual, the clock driver, and the binding, they match: Reviewed-by: Andre Przywara Cheers, Andre > --- > .../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";