Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp959709rwd; Thu, 8 Jun 2023 09:59:50 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6A5QiNUJlSIatGHgKmmP4LZU1SZpppSJzM5YdoIF2+sC3CY36y2wz8y0H4QnLyUwfEh5Lb X-Received: by 2002:a05:6a00:988:b0:645:834c:f521 with SMTP id u8-20020a056a00098800b00645834cf521mr3734897pfg.17.1686243589915; Thu, 08 Jun 2023 09:59:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686243589; cv=none; d=google.com; s=arc-20160816; b=cWF2H91o6iOKC0PyLGGRxuw60ndZktzuS/vpTzkRRHDvRoI8YF2wKfGJ99b476L4jo gSnTkslgPAwuTud5ha1Nq3RXX+B+qAHltnaMRfJ6CcXXX9qY055WuHqtHYmOkql9omFq ZmSRo1g89tfaK8TMuhPZw54l/PFnQKT4NMcnXLSjY7do5XthlzdPEzd15I5a8cL/wNjI jS0UNeG4YqjvxN56IBWMPs5Z9HjhFl2sAE1wExMEHQBfYv7aNVQKbb++WcTsVxQKUBoW u58h/pFcOi/SkIktI+NydQ1qdcPhA4nPL3pgPfmh06zfhcWrtF6BE3G19lMpwvcdiEzf NHSA== 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=NItZle+oTrePZjmBVAT27mVwVfGQfOUwmTs+qmzGn6k=; b=L/twjm94XzGz2qpvSNHgIxtK/7ItTerQaduW0Ys8V15PZ52eDE7o6ls6SF9mQr7+X2 hBE+kMBBOTvbwJ1wk8l2A1KWxmI0A8J4WJyO7M+BJr3/fmDCVH3gOAqRy0GGcBdGAtEw xngeJBPtMSaLnq3Ol2lKOLUgK267MmP/JQFUmOkBHeg12kfuBFM2hSx7CcFaD9XzQl8O yx74ehHVfjLCP0EseC1GildkX6NqLH6sG0wFYUHq7dn7iciVpiuOjl1Zx7WkVMhalRr3 aOFjISKDlel8Qt0g6oduOAI3dYqbMLq6e/HKVyZm5UwCZzbfE/BAKFeaHGUiCZexHYZ7 In+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VuOb+jLe; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 70-20020a621749000000b0065ca5d6016asi1100428pfx.24.2023.06.08.09.59.38; Thu, 08 Jun 2023 09:59:49 -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=@kernel.org header.s=k20201202 header.b=VuOb+jLe; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234202AbjFHQsr (ORCPT + 99 others); Thu, 8 Jun 2023 12:48:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236525AbjFHQsn (ORCPT ); Thu, 8 Jun 2023 12:48:43 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1FBF01FFA; Thu, 8 Jun 2023 09:48:38 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 720A264F84; Thu, 8 Jun 2023 16:48:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 87307C433EF; Thu, 8 Jun 2023 16:48:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686242917; bh=NItZle+oTrePZjmBVAT27mVwVfGQfOUwmTs+qmzGn6k=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=VuOb+jLe1WtbWqLUUym3QtQf1tvdlFkuQfkXMyt7i0SeMBl4Z5PMy/JBo/3J7StOa z13cXGwocgTkgqyZgejt0LSDiFJsSOlThO+7ClDdUklpU8a7ZdYDirSE1H56uiEfQt /44/2dX0GDtyh//EgAJRFSLbhXfGUYmEjy1HeV14GEaRd9tJ0mFC+FIWAzKQiW+FkK FsKUIo2Yx8vrLWVxJYbaRGLw2Xn5y+2XBhv2JvajneWwp2jVcF/oXznmkX7wCCrDFH NP3Otfho+XBrV6YQV8JoN2PDCovVIB2Ij1BdnNlHf7CUrBvaekN5RuTCZgzSmCqmcr PYDrrXuIM9eSg== Date: Thu, 8 Jun 2023 17:48:32 +0100 From: Conor Dooley To: =?iso-8859-1?Q?N=EDcolas_F=2E_R=2E_A=2E?= Prado Cc: Matthias Brugger , Hans Verkuil , kernel@collabora.com, AngeloGioacchino Del Regno , Andrew-CT Chen , Conor Dooley , Krzysztof Kozlowski , Mauro Carvalho Chehab , Rob Herring , Tiffany Lin , Yunfei Dong , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH v2 2/5] media: dt-bindings: mediatek,vcodec: Remove VDEC_SYS for mt8183 Message-ID: <20230608-helping-regally-3ce781f6d8ec@spud> References: <20230607205714.510012-1-nfraprado@collabora.com> <20230607205714.510012-3-nfraprado@collabora.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="bqm2BrX9NmqPaHSz" Content-Disposition: inline In-Reply-To: <20230607205714.510012-3-nfraprado@collabora.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 --bqm2BrX9NmqPaHSz Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jun 07, 2023 at 04:53:39PM -0400, N=EDcolas F. R. A. Prado wrote: > The binding expects the first register space to be VDEC_SYS. But on > mt8183, which uses the stateless decoders, this space is used only for > controlling clocks and resets, which are better described as separate > clock-controller and reset-controller nodes. >=20 > In fact, in mt8173's devicetree there are already such separate > clock-controller nodes, which cause duplicate addresses between the > vdecsys node and the vcodec node. But for this SoC, since the stateful > decoder code makes other uses of the VDEC_SYS register space, it's not > straightforward to remove it. >=20 > In order to avoid the same address conflict to happen on mt8183, > since the only current use of the VDEC_SYS register space in > the driver is to read the status of a clock that indicates the hardware > is active, remove the VDEC_SYS register space from the binding and > describe an extra clock that will be used to directly check the hardware > status. >=20 > While adding the active clock, split the mt8183 clocks since there are > less of them than in mt8173. This is done in this same commit to avoid > changing the number of clocks twice. >=20 > Also add reg-names to be able to tell that this new register schema is > used, so the driver can keep backward compatibility. Rationale here seems to make sense to me & seems like whatever functionality, or lack thereof, for the mt8183 will be preserved w/ the old devicetree. Reviewed-by: Conor Dooley Cheers, Conor. --bqm2BrX9NmqPaHSz Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZIIGXwAKCRB4tDGHoIJi 0l6GAP9Fj0Yzci2QZFnKHVu1ULZFD8JnPf07oxRvnEiMYMGg6gEAhC1nbdxyRxKx aw9kQMvf0BpeAZuX8VEoKUTSBCMZAwQ= =K2/N -----END PGP SIGNATURE----- --bqm2BrX9NmqPaHSz--