Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2511197rdb; Fri, 8 Dec 2023 10:07:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IG79oQRcRvwiw7i8MpMkkwbgr7PFkRhqlsma38B0SFbnXaW6JRIxpG+M/i8wviZBWw9+N2+ X-Received: by 2002:a05:6a20:7b29:b0:18b:386a:46a5 with SMTP id s41-20020a056a207b2900b0018b386a46a5mr404142pzh.17.1702058850731; Fri, 08 Dec 2023 10:07:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702058850; cv=none; d=google.com; s=arc-20160816; b=NTRZqjERokbHelJBEg4rwQrkI35zMCPjfdHoVRIxV+ca4j2OCpEoAas6cZ/ADiFYFX gk28TvWUhy78rUU33XdYmv7ZKj04XrpNW2uGhhgjQ/TtIkSxggYYHv2rspVD1tU2YdRd Yh6icXwW8Pj7U4Xr81Ce/T5Qix/7AtEq0YgMqe4UXQm1hgzq7DGHwkbVmVrW3g4yYbYd R7Jmhy3/+vlLrSgPnroSpsqQ+VmMgKlJcBgHY+xcK7LJtcR5xCn+SX9Z0Heqa0Q9TdYd ZxZazr7aUTFsNcVp1ELVUYAa+vDVWHQthPDC+OeHSy45POflYvw4YpLeIgFTXuCRXg9H quKg== 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=/27PsSr5PkD8OS/5d0JzB9j7QLq6xLGZf48fYbLgrGI=; fh=wG8mZNjkOQVJEtyHnuviUa7dt+Ydjc1J9B/erLZ+FWM=; b=QFjTfqPq/CunX8Pa2ZLPq74JirWWtuGr2KvG1++GXAtmid1uZaBpajRgPGkfsfSNMm 0Q4oDs1tvFO1t2e914crUP9kuVvx7jLzu3ZZWECF5tE5cpPY1MaVNixJfh19GsvqNe+c 7aAxpVkGs44BRy4VUq/YPu65ksEEoOkJLCl6VGuymD9x6IbU4ihEbzNK0LUPo94vSnph xzCbj04JF7YBPJYMbXdQlA3RE76rZa+3f76kmVz2L0itUIlCfAbSBpN3Di1BcC9h2Z2J La07WYV3tdI68FO/3V9wS0mgb+oIMKbAwB840KzyQtEgU3WCYijQ0B7/OFYOA2Veki19 3Pbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=YdRQYyHI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id q16-20020a056a00151000b006cddb04ab75si1937653pfu.53.2023.12.08.10.07.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 10:07:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=YdRQYyHI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 9C38084A84EC; Fri, 8 Dec 2023 10:07:26 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1574499AbjLHSHL (ORCPT + 99 others); Fri, 8 Dec 2023 13:07:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235962AbjLHSHJ (ORCPT ); Fri, 8 Dec 2023 13:07:09 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1DF11198D; Fri, 8 Dec 2023 10:07:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1702058836; x=1733594836; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=k3i428SfmhgbbGxwTnZmXhIRi1dfQ6MQmf1eOjd45OQ=; b=YdRQYyHII0f4qsc4Bq9gdrptLdduA0Jx2+ocksGQ6SB19zcGTdUs6edi w8a7Js4TZuyXuBTMyPRN1HAG9o49CxVKEPEBRG+pcrpkJfvt4yYkWF3iR Yak5YlixWAbeJ27Omclp5qOwTiNCfqHKir64NWHVGgOpTmefbWijDwbYf ZERMO+eAWu5+EpByVWWMqr5ts5eele+UENASl1uniroejUY9DdFQYZ01Z f7XMivQ37dbb7SBUS0Tdzr7yIi4aiU/XKpZLIXvTs7KnAW3zRHvvfFXFu gRBJx8oc15BXBv7/EX8++aia1zkIfDhDCfILM3MCHUUHFPEcCDHD03Y94 Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10918"; a="425575369" X-IronPort-AV: E=Sophos;i="6.04,261,1695711600"; d="scan'208";a="425575369" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2023 10:07:15 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10918"; a="801182284" X-IronPort-AV: E=Sophos;i="6.04,261,1695711600"; d="scan'208";a="801182284" Received: from turnipsi.fi.intel.com (HELO kekkonen.fi.intel.com) ([10.237.72.44]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2023 10:07:12 -0800 Received: from kekkonen.localdomain (localhost [127.0.0.1]) by kekkonen.fi.intel.com (Postfix) with SMTP id 06CC811F995; Fri, 8 Dec 2023 20:07:10 +0200 (EET) Date: Fri, 8 Dec 2023 18:07:09 +0000 From: Sakari Ailus To: Krzysztof Kozlowski Cc: Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Laurent Pinchart , Maxime Ripard , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] media: dt-bindings: ov8856: decouple lanes and link frequency from driver Message-ID: References: <20231207142356.100453-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231207142356.100453-1-krzysztof.kozlowski@linaro.org> X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Fri, 08 Dec 2023 10:07:26 -0800 (PST) Hi Krzysztof, Thanks for the update. On Thu, Dec 07, 2023 at 03:23:56PM +0100, Krzysztof Kozlowski wrote: > The data lanes and link frequency were set to match exiting Linux driver > limitations, however bindings should be independent of chosen Linux > driver support. > > Decouple these properties from the driver to match what is actually > supported by the hardware. > > This also fixes DTS example: > > ov8856.example.dtb: camera@10: port:endpoint:link-frequencies:0: [360000000] is too short > > Fixes: 066a94e28a23 ("media: dt-bindings: media: Use graph and video-interfaces schemas") > Signed-off-by: Krzysztof Kozlowski > > --- > > Changes in v2: > 1. Rework approach: decouple bindings from driver instead of fixing > DTS example (Sakari) > --- > .../devicetree/bindings/media/i2c/ov8856.yaml | 21 +++++++++++-------- > 1 file changed, 12 insertions(+), 9 deletions(-) > > diff --git a/Documentation/devicetree/bindings/media/i2c/ov8856.yaml b/Documentation/devicetree/bindings/media/i2c/ov8856.yaml > index 57f5e48fd8e0..71102a71cf81 100644 > --- a/Documentation/devicetree/bindings/media/i2c/ov8856.yaml > +++ b/Documentation/devicetree/bindings/media/i2c/ov8856.yaml > @@ -67,19 +67,22 @@ properties: > > properties: > data-lanes: > - description: |- > - The driver only supports four-lane operation. > - items: > - - const: 1 > - - const: 2 > - - const: 3 > - - const: 4 > + oneOf: > + - items: > + - const: 1 > + - items: > + - const: 1 > + - const: 2 > + - items: > + - const: 1 > + - const: 2 > + - const: 3 > + - const: 4 > > link-frequencies: > description: Frequencies listed are driver, not h/w limitations. This should be dropped, too. > - maxItems: 2 > items: > - enum: [ 360000000, 180000000 ] > + enum: [ 1440000000, 720000000, 360000000, 180000000 ] These frequencies are listed in the datasheet but they're just an example---the sensor hardware isn't limited to these, the resulting frequency on the CSI-2 bus is simply up to the external clock frequency and PLL configuration. I'd remove the values here altogether. > > required: > - link-frequencies -- Regards, Sakari Ailus