Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp306664lqz; Fri, 29 Mar 2024 19:02:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUMrTrmihs2/fU1zPx7NfbWlbxEmDkR2jYDSYarZ05gQY36oO9WAIe0liKTMM9tmShM5VswLxI4yoOdBwuFF9GrhC8IyswxuhwTreOomA== X-Google-Smtp-Source: AGHT+IFNLhg85+bLjkZMzfyOnw00ZL7iZgWaH1ILwDVo7nIVKQT6AeYGTn8xQhKcVm5tXsb+ZaZw X-Received: by 2002:a17:90a:db96:b0:29b:5c1:5e05 with SMTP id h22-20020a17090adb9600b0029b05c15e05mr3574391pjv.2.1711764159553; Fri, 29 Mar 2024 19:02:39 -0700 (PDT) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id k1-20020a17090ac50100b002a091584713si4858640pjt.119.2024.03.29.19.02.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Mar 2024 19:02:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-125566-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=y4jl9Crp; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-125566-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-125566-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 2F76F282D00 for ; Sat, 30 Mar 2024 02:02:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0C0291FB2; Sat, 30 Mar 2024 02:02:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="y4jl9Crp" Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2118.outbound.protection.outlook.com [40.107.223.118]) (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 B073D15C9; Sat, 30 Mar 2024 02:02:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.223.118 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711764148; cv=fail; b=vBNZdPSA0IpdExxiZiG3MGkmYvgBUVy1XCnEZ+PrCmAL1RrHLsWX/V8LAk4Z/P1/uoqtTOCL3Wmqm6IJj6494JaX+9WsqDGvj4jhzK/NEmu3OaQYkn5SGbAl7jblf5yTd7+YIELZf3eeLfT8sKNn2wTHrILZR4NYlS6LRqT9JZU= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711764148; c=relaxed/simple; bh=aFrdI/+a9fd20Ujis877H7/rItG9XCCE15Dl4ufR0HI=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=QXIuJdK6ibp3aLcOc8ugD7dioNEn91fzXVLts67QTicIVBBWWH/64bSfbC2AR1EjdJbSroBsmANx+LYc/Ai+sgVrhOZzlSwVJeJu2uMaQz0SV/zL7jNfA5J5v/PcdtdZpuXs53AozBs33NTYsFtiku9GoIWziPamWsfwhyX2AM8= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=y4jl9Crp; arc=fail smtp.client-ip=40.107.223.118 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RizkHLvXtw5YCNpeH7yQf7jWVJEiGC8XKi0cniipfpFgvjgQNfL1EHPBdhcofeH5SmAuArmBGSWHsIvwbxTOzagqadLH4G4dQppL4CkBs/PRPfI4bZ1kKAFzuYcIApwtOm8PArl/v2UTjnxNXdnhiNQEC/vemv+Q0y47cCvUlQAVkPOd6STRCQKXE/2dvZpV59cxddCiZp0oYBUgNPwX9d9JGw2iwUCco+GyP0aa/eNEQpJQLvxIgpsKXZPAvkqiPMJmmwtjPioA99p/EdzqBbk9Ck6gQ0Q2odEGqsbnL5qG/DtYXjSSk3QgLFhgTipt6gkBC3UgAXWaFvuJRNv2GQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=aFrdI/+a9fd20Ujis877H7/rItG9XCCE15Dl4ufR0HI=; b=g6xF34NdptKLVEeBGO2X+AgWEmCePc5cmlSFbpPKHAA53KwOV0aV9PZ2fGvU2VcEYRe60h2F2Z9rZJnmGteLivW4T5h/mDw3keAA/UBVUhGgYUIu6mlufNGun/P8watKzHXKSnewnUQDgxXVNym7BMDPHUmbIBwieikK3NAyTQWKBrYdEoRlirAzWW/cXUAydpm1+dBAYo5JFFBg9RQL23qjg6uy9tV9OTvkfyoXAvIWPRpWR4G9Ba31213jTSH3LA3DgbCG72SWaL6XYlktv5fV9jdnFnByQWSBGwDqLVjSgNb5SRYM9Pcni5hMAxBaH60k21CHVphX8455Pybx1A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=aFrdI/+a9fd20Ujis877H7/rItG9XCCE15Dl4ufR0HI=; b=y4jl9CrpkmKqXvEdDhEp4yJk3YTav1DPvvGfLVlAbw5Fdr9wqp71hJwF6pm/ZitEA8CfZ6pcO5HfPAqSb/O3C50HAYHat91/oRt74u0YVjS/UiRMqLw74h9PUsEl+UF+BKLcAXEvD8J+wjQ3lz6saJ8holAZrLrdLGl1b5/Hjq8= Received: from MW4PR12MB7165.namprd12.prod.outlook.com (2603:10b6:303:21b::14) by BY5PR12MB4068.namprd12.prod.outlook.com (2603:10b6:a03:203::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.41; Sat, 30 Mar 2024 02:02:15 +0000 Received: from MW4PR12MB7165.namprd12.prod.outlook.com ([fe80::e039:187d:47be:afb7]) by MW4PR12MB7165.namprd12.prod.outlook.com ([fe80::e039:187d:47be:afb7%4]) with mapi id 15.20.7409.031; Sat, 30 Mar 2024 02:02:15 +0000 From: "Klymenko, Anatoliy" To: Conor Dooley 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 Thread-Topic: [PATCH v3 8/9] dt-bindings: xlnx: Add VTC and TPG bindings Thread-Index: AQHae9CWOJYT8G1vaUajPKAdUatgu7FDRIUAgADPWeCAAQwKAIAIv8BAgAEJYoCAAKRcwA== Date: Sat, 30 Mar 2024 02:02:15 +0000 Message-ID: References: <20240321-dp-live-fmt-v3-0-d5090d796b7e@amd.com> <20240321-dp-live-fmt-v3-8-d5090d796b7e@amd.com> <20240329-overture-tank-d20888f2cb6e@spud> In-Reply-To: <20240329-overture-tank-d20888f2cb6e@spud> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: MW4PR12MB7165:EE_|BY5PR12MB4068:EE_ x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: RJibeOS7pyKaKGmMCJaeZJiGIOXWEOtXM2YcsSDzbo48N2oDBzvSaQ2HYbPaA4Ed8WKfArwiR6AltgxqEC8ihNeDAA4qI1XfyLTd3rbvI8P3yajPGXGuGIC/Z1x0LzUu6wve3qZWrEdzWCAoW8V6he8d3Zr2obxBlpa13C99xPDnaffesXEhag7UgufOPr2yteZX/inG5SnZun6SgLdLa2aDpo094JuQzVhJpXptuA+YiS5r9pKRDoPIR/LQw30AkFl6+gtSAGY4dWkqRMgm9d0vfcgcqLSwwFzk2PUGg7lvLpIuSt50OPCE9n2TZc+JjCK3eD41cd7rWHT+5fxXI5o/u5fQ3AGDybPfpH6cGYMpCHv5Xe0Hut7647oTfY0kaYsTGO9fqu05XUfkcnSxPqPzQW2m4YSsmZRzrBPJPyR1OuJyJM3/HC8XS9YAqL6nB2cC4jlRUg2jLTQqNxA5f3+39xeb+s0OkA1eYbFfK0UgRTybbq+FMBv2C6Nq0feaFhYMg9ucLOjJhxzlcCJlHNtTImzxk8yJcfeJYcVJmXlpD7F0PGPw9Y89155u3swh/I4HLbH8A850Ie+YTZopGLSqjLxDnmkP/i2EDxrfz03A7eBxj0yF55UTUKJv+McnB7qRYMxLmOKId4tQ/M67wWyzkDUicp3Q93DQ1ig1v88= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MW4PR12MB7165.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(1800799015)(7416005)(366007);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?PCdvyZBcoJwxbz6H/JuA1UcBsBO5CCm4pg57WINkuMNoERhDiT9n5QOeGp7u?= =?us-ascii?Q?7u0V39JfFncoQAo7j+G8Zs+jpsBW/LA0WqCz2ekBpvJMCPWjqcP6bnGsuvji?= =?us-ascii?Q?RMhVutwYuH2ak7d6UyZYQ+Rj7qoIGtSdlu79XYYcd7YSn8dtRQrN2Ycj0ncN?= =?us-ascii?Q?2c1tdgSuulVzkZK0mbQVLT/PE+2ZtBGEABtIVnJcuc+HYFHMBwhy6K2gPKh9?= =?us-ascii?Q?GBFGKdF5LqSCs1Cpc3FZifFBub8LpwRd3Nvcf8qHrRx2p5npRy5LFGcia6sf?= =?us-ascii?Q?kbssyj7KbYqoQh36ZphS7a8u5g0JR5S2sBrZWPGVvlG7IU6MNcigZg1pFbF/?= =?us-ascii?Q?u+OjC3vkoOe7NpJX8irCgGWFSUQZZhXKuh4Wpj7N2t8ccdwSplcUWn+j4G5Y?= =?us-ascii?Q?x/VlnhOFf9eiFq2KZGfqob1dKgaYGzF970cN2DvTQFOgJXT+b652qrDrDkcA?= =?us-ascii?Q?JRgjgJQX74wARSCt+0Dw3dkxuHMb7Q4NBy8GHQclQJBIMdPq8rZ7o6/qyIo2?= =?us-ascii?Q?tTAb5MjDUhbotsADAzyf+i8Iw0NCRRi1BWmhLXbQ2ZTKUEX+hJ2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EOYVhbn1wJHgAbxn8L6o7ndXe2pt2Y44FTWnyt1?= =?us-ascii?Q?82aQ4YXhuG6iZJ26325aXCy/zT7D7ia7A+Zs0umGmh4KekFxotkdQ4PaY905?= =?us-ascii?Q?GFsVyas4yBEPC45YMqQ=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MW4PR12MB7165.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6c45a82d-3a99-4d84-ffbe-08dc505d6bf0 X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Mar 2024 02:02:15.2277 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: a22Zv405TSk+Pa75bdaXjgDdNP6dLL+RGijPGg+UM3Ak/haHbxBFGxSka1bxWInOzAHrUwB6WrFgcpMWcb3ALw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR12MB4068 > -----Original Message----- > From: Conor Dooley > Sent: Friday, March 29, 2024 8:47 AM > To: Klymenko, Anatoliy > Cc: Krzysztof Kozlowski ; Laurent Pinchar= t > ; 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 >=20 > 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 bindin= gs > > > 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 fr= om > > > > Linux API headers directly (at least I > > > > > > I don't understand what does it mean. You can use in your driver > whatever > > > headers you wish, I don't care about them. > > > > > > > > > noticed the same pattern in ../dt-bindings/sdtv-standarts.h for insta= nce). > > > What would be the best approach to reusing the same defines on DT and > > > driver sides from your point of view? Symlink maybe? > > > > > > > > > > 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. > > > > > > > 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? >=20 > Isn't there already a property for this, described in > Documentation/devicetree/bindings/media/xilinx/video.txt > ? Those properties are very similar, indeed but not exactly the same. The one you noticed maps Xilinx video data format on AXI4-Stream transport that covers color space and chroma subsampling only. The rest of the signal attributes are either conventional or left out. MEDIA_BUS_FMT_* collection is more specific and embeds additional information about video signals, like bits per component and component ordering.