From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ed1-f49.google.com (mail-ed1-f49.google.com [209.85.208.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3676E154C15 for ; Mon, 14 Oct 2024 09:03:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728896630; cv=none; b=MS/mVeenXABH2PhUTSlnen+esSLj+Kg75FPoLSLFTKrank1wmPYguOuU4yur34lGeTJvgCZKSe/qpiNKVLV34cQRk8kXAw1J65LZnEo8aQIJu+iM46XT/j5v55OxuSUettjKPPutF4wJR3iotrpWUXKD2Fjx1BPYxmSl7C2gKZA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728896630; c=relaxed/simple; bh=sHpyCuwQq/I2DTs7dmBgkBNOQIwrlp6onpFJ3nE1MTI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=iljtzMVPqWDaKEbXfKepYha455NHUwNPQg1Y+1p9IMoHf+GexjG1l1yJgd/VJ+8vO+ZTlA5tPZdXkuEFr8Vwdi7QvMvNQ5X8aqv9aUId2j+vY/pIZg1WpSS0SUx60odw7ei7rzx1WTdSjBVK3fDPkoxW2wU/wayCCXqn75mYXsE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=MzXQPnsd; arc=none smtp.client-ip=209.85.208.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="MzXQPnsd" Received: by mail-ed1-f49.google.com with SMTP id 4fb4d7f45d1cf-5c903f5bd0eso6038477a12.3 for ; Mon, 14 Oct 2024 02:03:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1728896626; x=1729501426; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=ej1J1uipGZreJY91YHwmy1fCwa14PATNAE1OP3F9fzI=; b=MzXQPnsdwRqdUbshlqq4ff1PkRaHKB1wf2sQERPPuhjvGbl1IpEqKc71TrJdpnAfBU EpOiCsvE51PRbPhwCUMCFU2750h49EEEorYk963O7k4bo5INrlVOLB9Ft5RmRbwfvdiU DYT51rB0gLOmh5pK0rHYCzhQTz2dCGADnWjdcdTQFmCBlP333qxGv/8xRLf07WmNQL+6 SGTCDCcj86jMZm4W1N1X+2RRvE6RS5MIjC5fZ8J9fPmDbhbF5QsxRMZH1BeB8x28f/12 kC8D7Azbore9JiZ3Uwbv97Jcea7CX4GABfdixqiuq2u0Kg+XIWmQlyIUrrf1lIB9NlQS cX6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728896626; x=1729501426; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ej1J1uipGZreJY91YHwmy1fCwa14PATNAE1OP3F9fzI=; b=Da70Awp6dstCEyowqq5K2wO2wQcukrdHgzvveargede7bLn/MYESYerStHM6/gLtjq KHCUXSd+s3OSRQ9WSVk7ETrJA+um+IJaURkSQ8TIBzm8MltSFmcl3Pwrkroy0wkqgd3z c/BOWmznJKjheXXQdd6xnSIMH3orjhWhvL0x8wxOSjBCrMho1g3MGTNniuUWqMRQjMiS 6iFrcT5pvKPFh8BJtBsrEnVJrd7boJZoAVCVXQHkcrlr5i+MZZAkiN4AvKdwIoI9Qu2n fTtEx1WNVR992G3LdsW3pmgRVqyCp/YeglCqsErCNV3ZBcSyhLSbyTu/YMdElAhKdsHw 3bhg== X-Forwarded-Encrypted: i=1; AJvYcCUOQ7OzQi5FP/GCIqTeUBOHTEhzi7U5uzRQX9V4/XaR6Kg+wke9j97v05J6obBrABneCOfKrO7rnZVygwY=@vger.kernel.org X-Gm-Message-State: AOJu0Yz8nBMRxVjsKosQAQ4bwfUX5c52ZQHhmQEmXZejcwd+VJJkKA2J vaaNVdHdsJT28UCaeHNzc843BrR23SNpS9Yp62tbdrVxmMPyrir2SmbeCZYcrvI= X-Google-Smtp-Source: AGHT+IGb7GDEfrG1cF+8kZu+KeiDnhyofexGNBASYbiwubzKma7DssNASeS3npGWfvqJswAeHNJYow== X-Received: by 2002:a05:6402:278e:b0:5c9:5a96:2869 with SMTP id 4fb4d7f45d1cf-5c95a962ce0mr7082905a12.10.1728896626352; Mon, 14 Oct 2024 02:03:46 -0700 (PDT) Received: from [192.168.0.40] ([176.61.106.227]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c93711bb78sm4924587a12.33.2024.10.14.02.03.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 14 Oct 2024 02:03:45 -0700 (PDT) Message-ID: <2afe4f3c-e2ce-4cc0-88ac-348e6f3f7e26@linaro.org> Date: Mon, 14 Oct 2024 10:03:43 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/2] media: dt-bindings: Use additionalProperties: false for endpoint: properties: To: Krzysztof Kozlowski Cc: Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Dave Stevenson , Sakari Ailus , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Martin Kepplinger , Paul Kocialkowski , "Paul J. Murphy" , Daniele Alessandrelli , Tommaso Merciai , Martin Hecht , Zhi Mao , Alain Volmat , Mikhail Rudenko , Ricardo Ribalda , Kieran Bingham , Umang Jain , Manivannan Sadhasivam , Vladimir Zapolskiy , Dongchun Zhu , Quentin Schulz , Todor Tomov , Laurent Pinchart , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org References: <20241012-b4-linux-next-202041004-i2c-media-yaml-fixes-v1-0-a2bb12a1796d@linaro.org> <20241012-b4-linux-next-202041004-i2c-media-yaml-fixes-v1-2-a2bb12a1796d@linaro.org> <7ecxjoa7aije46cxmkyfd6ihxnqw4wleqkioddomxbwlu7qtrc@4dkfitppeksu> <6f461cb3-3a41-4a3d-b9b2-71b1c6be77f7@linaro.org> <9510b546-28fa-4fb4-b06e-0af5f9fd3bbb@kernel.org> Content-Language: en-US From: Bryan O'Donoghue In-Reply-To: <9510b546-28fa-4fb4-b06e-0af5f9fd3bbb@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 14/10/2024 09:47, Krzysztof Kozlowski wrote: > If a common binding for a group of devices encourages you to list its > subset, then it is not that common. > > Solution is to fix that, e.g. split it per classes of devices. It might be possible to have $ref: /schemas/media/video-interfaces-endpoint-defaults.yaml# which declares the typical list -> $ref: /schemas/media/video-interfaces.yaml# additonalProperties:false properties: data-lanes: true link-frequencies: true remote-endpoints: true required: data-lanes link-frequencies remote-endpoints and then if you need say clock-noncontinuous you'd just include $ref: /schemas/media/video-interfaces.yaml# unevaluatedProperties: false and then list whatever you need > Or don't care and use unevaluatedProps because it makes people's life > easier and is still correct. If it is not correct, then this should be > used as an argument. I'll wait to see what people think before progressing this patch further. --- bod