Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1771366rwl; Thu, 30 Mar 2023 01:01:21 -0700 (PDT) X-Google-Smtp-Source: AKy350Zf5p1sr41ox2lOprEd6T7ZtFMn4v3yz38f3BFcqt1YkmTGb7dsDQaYZLnxhuFAGjUrV/wN X-Received: by 2002:a05:6402:40c7:b0:501:ea97:519c with SMTP id z7-20020a05640240c700b00501ea97519cmr1663815edb.4.1680163281052; Thu, 30 Mar 2023 01:01:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680163281; cv=none; d=google.com; s=arc-20160816; b=YbQE1A2KVdKhGr19N+2W68M5Q7dK2ZP2MWsOgIypodgL8JipHzJTwavfg0zyL/dJKO ItMtv7++pIBP6UtBQLz1conlOFRkFO+FbJzeD3ezfN4JJ7gW3fQsaMu8eV+erHtF9v7V 4JGlLVWL76u8/5CbKbnipJgdUn7jFIR7g5G8sGAlirPN3Sn4he2+WFRQ2iS9m9W2ctWI 1dS0HtJr+tmRMJw/7ZULpZi3njCm538q3/eRLfqEq2IdrPYGdcSXFopBy8zekOMMStCh 04QGeV4eBup9g4fHH7fo6VuRIBJdCqrU9CY0MyFhW93gehdo/yFg2fQIDuEdH4+UfooV 9fwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=up/izhZcCM6I37MY2L1Kvn3d0oMS50PDAbY5jcMmb+4=; b=nCDpX5pilM+krOn1yVoz7M40oRoNHxAToyf4L65eg1Lf+4rC9ZbRGD6k9a4oYqt84k sNDRnJeSFI9sYQAMflwRmu7Htpo5uWTQ/iNQeXoP6xbKCF9FeH6yPJINS5ohbM1Brg5v JD39moTesJONpXF3wurMRYpUiLW6fMCAASSWYYCDImiTYBvnz7D3dc2WXL1TfCVCJNn6 5OnmNSWyspwKalgD7OPUzV3WxL7r37ocEVf48dO5cYl9ONE2n8nlaz/+8wBs/e3t6Kht B0oe1Lj83TYnsB1Pq/FeJ1HqFvH1wT4BauHK47f/fK5cZ7tyEKqPCnQtWb/S6TnFL7N/ 6zqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=2ns5yjDB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b2-20020aa7c902000000b004fe96b95bbbsi33281120edt.570.2023.03.30.01.00.55; Thu, 30 Mar 2023 01:01:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=2ns5yjDB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229900AbjC3H63 (ORCPT + 99 others); Thu, 30 Mar 2023 03:58:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229459AbjC3H61 (ORCPT ); Thu, 30 Mar 2023 03:58:27 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F41D10A; Thu, 30 Mar 2023 00:58:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1680163106; x=1711699106; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=A06o++GEZF1cEl6Qfofe3vUwyO2hA9xPd0Uh8TRXZRI=; b=2ns5yjDBXih4YtRAqmIczfMIXCEPZXehGtpQQ07i758R5eEiWJS6eWhv KTB9XLQyqYB1R/+c9TJVhW7rj5TG3wlBop/wG7o6/0/KTdCLtfT6ya/oq b472lfRt/aqrBOUkXEhX4k791avDi5Uv3U30mDAMN8HIQRzjpFoRjc9rJ 5fExxBoKevyiZlsTCXMsY9wovr/h20EhAH8OCacun5YveYR5RD1qUVhOh oZjpNt4ZSCPY4DASb/ORuKYCquiTcB7zAoVcU1MyE0h1Yfah7MWGd23rn 23hoHpY/3Z/RD1BlHEJuXjn2HqimDwoqi6A985ua7NDNtgRwvken9R+73 w==; X-IronPort-AV: E=Sophos;i="5.98,303,1673938800"; d="asc'?scan'208";a="218651809" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 30 Mar 2023 00:58:25 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Thu, 30 Mar 2023 00:58:25 -0700 Received: from wendy (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21 via Frontend Transport; Thu, 30 Mar 2023 00:58:23 -0700 Date: Thu, 30 Mar 2023 08:58:09 +0100 From: Conor Dooley To: Krzysztof Kozlowski , CC: Walker Chen , Jaroslav Kysela , Takashi Iwai , Rob Herring , Krzysztof Kozlowski , Emil Renner Berthing , , , , Subject: Re: [PATCH v1 3/3] riscv: dts: starfive: add tdm node and sound card Message-ID: References: <20230329153320.31390-1-walker.chen@starfivetech.com> <20230329153320.31390-4-walker.chen@starfivetech.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="QNdQWFvvxmlEs8o1" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --QNdQWFvvxmlEs8o1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Mar 30, 2023 at 09:43:10AM +0200, Krzysztof Kozlowski wrote: > On 29/03/2023 17:33, Walker Chen wrote: > > Add the tdm controller node and sound card for the StarFive JH7110 SoC. > > + compatible =3D "fixed-clock"; > > + clock-output-names =3D "wm8960_mclk"; > > + #clock-cells =3D <0>; > > + }; > > + > > i2srx_bclk_ext: i2srx-bclk-ext-clock { > > compatible =3D "fixed-clock"; > > clock-output-names =3D "i2srx_bclk_ext"; > > @@ -375,6 +381,27 @@ > > status =3D "disabled"; > > }; > > =20 > > + tdm: tdm@10090000 { > > + compatible =3D "starfive,jh7110-tdm"; > > + reg =3D <0x0 0x10090000 0x0 0x1000>; > > + clocks =3D <&syscrg JH7110_SYSCLK_TDM_AHB>, > > + <&syscrg JH7110_SYSCLK_TDM_APB>, > > + <&syscrg JH7110_SYSCLK_TDM_INTERNAL>, > > + <&syscrg JH7110_SYSCLK_TDM_TDM>, > > + <&syscrg JH7110_SYSCLK_MCLK_INNER>, > > + <&tdm_ext>; > > + clock-names =3D "tdm_ahb", "tdm_apb", > > + "tdm_internal", "tdm", > > + "mclk_inner", "tdm_ext"; > > + resets =3D <&syscrg JH7110_SYSRST_TDM_AHB>, > > + <&syscrg JH7110_SYSRST_TDM_APB>, > > + <&syscrg JH7110_SYSRST_TDM_CORE>; > > + dmas =3D <&dma 20>, <&dma 21>; > > + dma-names =3D "rx","tx"; > > + #sound-dai-cells =3D <0>; > > + status =3D "disabled"; > > + }; > > + > > stgcrg: clock-controller@10230000 { > > compatible =3D "starfive,jh7110-stgcrg"; > > reg =3D <0x0 0x10230000 0x0 0x10000>; > > @@ -601,5 +628,12 @@ > > #reset-cells =3D <1>; > > power-domains =3D <&pwrc JH7110_PD_VOUT>; > > }; > > + > > + sound0: snd-card0 { >=20 > 1. Why card0? > 2. Where is this node located? In MMIO bus? Run some basic checks on > your DTS before submitting upstream. > dtbs_check > dtbs W=3D1 >=20 > 3. Why this is even in the DTSI? This really looks wrong. Excuse me for not following here, but Walker, could you point me at where in the schematic for the VisionFive 2 that this wm8960 actually is? I know ~nothing about audio, but good old Google tells me that this is a dedicated codec chip and I was looking at [1] and could not easily find it on the schematic. Thanks, Conor. 1 https://doc-en.rvspace.org/VisionFive2/PDF/SCH_RV002_V1.2A_20221216.pdf --QNdQWFvvxmlEs8o1 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZCVBBAAKCRB4tDGHoIJi 0vwwAP9ZaSwYSns7mnKRth/7zaYJio+DGrk7Decdat0PRkCAKgD/V+oWJQb4k4XP /cV4orJwQtUvav3dglridCNAmArKkQQ= =3gLi -----END PGP SIGNATURE----- --QNdQWFvvxmlEs8o1--