Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp68444lqz; Fri, 29 Mar 2024 08:47:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXbRuKKHhcnOXL5LGr+M+HLoaEtqxyxyE8cF/o04zxJdDJju0fsVXfrgiigRBPKhDnKE5Ru792w0E5x6UzxGDZ7MhrnrYEXwHM0kOBC/w== X-Google-Smtp-Source: AGHT+IFVHQqRMfwLt21fkUXFSe8i+auPgw0NwIWUGujDcpZX0WON7NC9PVcPmebhdHwLA08lSPLu X-Received: by 2002:a05:620a:580f:b0:78a:2f75:9100 with SMTP id wm15-20020a05620a580f00b0078a2f759100mr2346045qkn.26.1711727236282; Fri, 29 Mar 2024 08:47:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711727236; cv=pass; d=google.com; s=arc-20160816; b=FwfYSnQGrzdWZeGnFOTCGNUWFfuhBsUZCGA/jVZTe+w2FTfDKXg0ibRg4bmx/yprCJ a9RUbmWUGiPWpyXIvKyZgpndbNrJ+Zoh6Cbvelq0wBxRulJOnxj5asMTjJo+pa91LkNL SdyEwwpsnTiz/wb7SZuG9/miU9TI3Do96rddeAAT2UD8Tt2r/ImLhPDq8ugri+UTqUBv 3ieYydOQagX/nNOzUVDAJedVIDxfJxg5EKL/HJTNSXgmVXaIRfGLADvjknbkO/50XpLV eVnTlXKFFO6p6hZu/k5gPQaRvmRKlQu7TiMIG6wZ3kXki2dxWRsi4haK8e3Ftg7/ml4/ lksA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=mGMCbTudpO//dsMmAJuxrfDrUsM2TLQi58qOzKNQl9k=; fh=DqfUuS3MagQxO4rnF3HLG5R2PDOgKuEUTE2o0n8bOS8=; b=Ydn7719B+IrMxfwr+NRD125LD8COKn0hu3qXa/ZTIEM2uxwNT3hlhYKkcuyAOqf+L8 chVMaRMhf6RKQ1Hudl9gtPX1X0cpAqp/1I97WJvw9C4xdJ2IS9k9lWhLm5cbeTZM8Thm 9fBsg4XVufMPHcILeGBggiQVbzRbyqcHO1H8tSdFIFHzRSmElU6W6eODVgeEy5QNPNDP en4NE5MM7CI53vIfsTe3tx45bvZVCP0ot+QKSAyDI5xFgz6ZEQMwsTGEQGD2HXq1UKu8 zeEIEcXwnaygk39YKopoEaKuYzvUTPdmFp0c6L1UXdLO3Jtv0+TSpAbc86tmlaQtE7E3 N7bw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jOUaZZNd; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-125143-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-125143-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id wj24-20020a05620a575800b0078a3a113293si3960780qkn.98.2024.03.29.08.47.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Mar 2024 08:47:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-125143-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jOUaZZNd; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-125143-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-125143-linux.lists.archive=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 06B831C25B0F for ; Fri, 29 Mar 2024 15:47:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4AD263FE36; Fri, 29 Mar 2024 15:47:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="jOUaZZNd" 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 5C6DF23A8; Fri, 29 Mar 2024 15:47:06 +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=1711727226; cv=none; b=PDr8msmx4wWh3KviFJi62+MZ6Z3PWDcBAtxbD12Wl8ZL8RbNSvr9t1n7jeNCucnw+jH4C/BpQrPJ/kxANpjYMUtvnkvClh4qb1j5cbvIt4GEA94TBM/19YcVwfcYtRrmwUCXaSTdEo43f19fl9sjwqA+PFxskmDT1agicrqMl9k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711727226; c=relaxed/simple; bh=mGMCbTudpO//dsMmAJuxrfDrUsM2TLQi58qOzKNQl9k=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=hStMZGmU6Vzss5Gz9xmdPYXs6/hcoQZTvtUJq811XWRz79TK4240lTBDXmxIJcVKntqbVG9icvhOJfDWEdSoKiB2wV9JzX6OW1KaRxtzSq5hnpy7OlQ4WZqi/BDe/34Gg0GS1iz1mNWhXKIK9PxiQcqmPyhJ1MQcFuZOJ9aZ2v8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=jOUaZZNd; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 65400C433F1; Fri, 29 Mar 2024 15:47:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711727225; bh=mGMCbTudpO//dsMmAJuxrfDrUsM2TLQi58qOzKNQl9k=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jOUaZZNdtIIh47EJVI810yivxPhgr04bdCv5G8syQ9pIqc96Lk1QfVhs1Zg2F3MZ+ 8ycCTwvcR7dRIz5PyImHowSY7nGzeP1Fa1weOpI4PXdyLUvxXVh2YM77J4ZnnPZcDJ eme6BIklM4Cr/HfOfALdVa6oRCZCmeBZtrBoRBVZbsLPBXivn+VE/geDCnH5fo9Zke OVY0GzrZctB+LLGPa0koCkG1wtWO4ZbrbHmwwCiqDN2QTp9OtB5D5a66J9WoH2fQFT yLAjAKn/xV6lVUfPEsNTYspoy5GK+5rfK+JLddPBFkJwE2U4/eMbfV7x4pwxuS5A2z x59T2XaUWyIDA== Date: Fri, 29 Mar 2024 15:46:59 +0000 From: Conor Dooley To: "Klymenko, Anatoliy" Cc: Krzysztof Kozlowski , Laurent Pinchart , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , "Simek, Michal" , Andrzej Hajda , Neil Armstrong , Robert Foss , Jonas Karlman , Jernej Skrabec , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Mauro Carvalho Chehab , Tomi Valkeinen , "dri-devel@lists.freedesktop.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-media@vger.kernel.org" Subject: Re: [PATCH v3 8/9] dt-bindings: xlnx: Add VTC and TPG bindings Message-ID: <20240329-overture-tank-d20888f2cb6e@spud> References: <20240321-dp-live-fmt-v3-0-d5090d796b7e@amd.com> <20240321-dp-live-fmt-v3-8-d5090d796b7e@amd.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Aig4naILjr3w2J70" Content-Disposition: inline In-Reply-To: --Aig4naILjr3w2J70 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Mar 29, 2024 at 12:38:33AM +0000, Klymenko, Anatoliy wrote: > Thank you for the feedback. > > From: Krzysztof Kozlowski > > Subject: Re: [PATCH v3 8/9] dt-bindings: xlnx: Add VTC and TPG bindings > > On 22/03/2024 20:12, Klymenko, Anatoliy wrote: > > >> From: Krzysztof Kozlowski > > >> On 21/03/2024 21:43, Anatoliy Klymenko wrote: > > >>> diff --git a/include/dt-bindings/media/media-bus-format.h > > >>> b/include/dt- > > >> bindings/media/media-bus-format.h > > >>> new file mode 100644 > > >>> index 000000000000..60fc6e11dabc > > >>> --- /dev/null > > >>> +++ b/include/dt-bindings/media/media-bus-format.h > > >>> @@ -0,0 +1,177 @@ > > >>> +/* SPDX-License-Identifier: (GPL-2.0-only OR MIT) */ > > >>> +/* > > >>> + * Media Bus API header > > >>> + * > > >>> + * Copyright (C) 2009, Guennadi Liakhovetski > > >>> + > > >>> + * > > >>> + * This program is free software; you can redistribute it and/or > > >>> +modify > > >>> + * it under the terms of the GNU General Public License version 2 > > >>> +as > > >>> + * published by the Free Software Foundation. > > >> > > >> That's not true. Your SPDX tells something entirely different. > > >> > > > > > > Thank you - I'll see how to fix it. > > > > > >> Anyway, you did not explain why you need to copy anything anywhere. > > >> > > >> Specifically, random hex values *are not bindings*. > > >> > > > > > > The same media bus format values are being used by the reference > > > driver in patch #9. And, as far as I know, we cannot use headers from > > > Linux API headers directly (at least I > >=20 > > I don't understand what does it mean. You can use in your driver whatev= er > > headers you wish, I don't care about them. > >=20 > >=20 > > noticed the same pattern in ../dt-bindings/sdtv-standarts.h for instanc= e). > > What would be the best approach to reusing the same defines on DT and > > driver sides from your point of view? Symlink maybe? > > > > >=20 > > Wrap your messages to match mailing list discussion style. There are no > > defines used in DT. If there are, show me them in *THIS* or other > > *upstreamed* (being upstreamed) patchset. > >=20 >=20 > Sorry, I didn't explain properly what I'm trying to achieve. I need to > create a DT node property that represents video signal format, one of > MEDIA_BUS_FMT_* from include/uapi/linux/media-bus-format.h. It would be > nice to reuse the same symbolic values in the device tree. What is the > best approach here? Should I create a separate header in > include/dt-bindings with the same or similar (to avoid multiple > definition errors) defines, or is it better to create a symlink to > media-bus-format.h like include/dt-bindings/linux-event-codes.h? Isn't there already a property for this, described in Documentation/devicetree/bindings/media/xilinx/video.txt ? --Aig4naILjr3w2J70 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZgbicwAKCRB4tDGHoIJi 0vIxAQDTGIb39pZ2GgViTifY62vMB8y8nobcQ16j//LjfSv8+AD/di6X30rcf2qm aucSKfOlVRUnjE+ZOb0HLGjnjVZzFQ4= =0Xod -----END PGP SIGNATURE----- --Aig4naILjr3w2J70--