Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1809648rdb; Thu, 7 Dec 2023 09:16:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IFk5Tmf/3GnumuPv5Q4eX8lciuwk2SiGrladv4g0rmRIqWZTmYEILrWzdfpll4MxKR0fzb6 X-Received: by 2002:a17:902:c713:b0:1d0:ab2e:8e8e with SMTP id p19-20020a170902c71300b001d0ab2e8e8emr2594871plp.82.1701969369580; Thu, 07 Dec 2023 09:16:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701969369; cv=none; d=google.com; s=arc-20160816; b=div8g+0PdIYouZ9XAJkjd6aIWtidi7F4tofA1LVhmZfX0ODZplqcu/sTB1TZ7bAhsl Cb58AcR+8BowYfXibenv/rqHADCdp0J1rBUEjEYMrj6nyC1qNfe6RjCJvAfV5PCMzOb/ yuQOTWxFv7gs4kxsNLRZarpeZXG7n1xRUSaaVjfPNEysIUuHiQsI4KwgPlfHpjSfhRYp l22f/Yi6PFDJqWuzzLjUwRwuKd8fuyBuaebgqzfDG2SyWfw6/8gAmFPU8r6GbuYxlpms A55EbG2PRfp+V35e5MjwLYeP6MVZGIIENIOyIXeErOaaIGgV3vSyJBpa+2Yhoc+1OJHX 2Uwg== 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=lNerN46ID7DmFVKHXejhSseuPoBcTbcVLyjNs/Hsoqg=; fh=iuiG108sa0HCIGkv6Vz8oVzfBxTY8F2kLWcL1LF5hkg=; b=H1hmD/bJn/aWffld8PetHvMSZP7G3Eh2HhNOCaEeJBuFPqzVX6prbFbwRC3FIQIMmd tHDxi3Ooo/dGaMG08FynOE+eW5bMZGnVXSnbYZrrDpngHny0rnglZmpAhb0JuNUg05I2 6Zxca7nLduqwa6eL7zzSTNJR7TLcYA78HeW9KQKP0MjDkpvBG4Xa/5Idc6zOJRYCXGC2 0TtscZcn8Az5nRYbPXxo2479cPoNPvaQJpD78lHd8ydRuQ8EDi/wXFVOEsDLCqMwBTGQ V8UZgu6Z26QSUURikUE4FgqXxdVKVpqbImEibTjEvZ+z0/rMGECb09Wpsl03sKmcny9v Xq+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Uryj+pFN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id c10-20020a170902724a00b001cfa17ec30dsi55499pll.508.2023.12.07.09.16.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 09:16:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Uryj+pFN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 5913A807AC77; Thu, 7 Dec 2023 09:15:39 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1443167AbjLGRPX (ORCPT + 99 others); Thu, 7 Dec 2023 12:15:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233088AbjLGRPW (ORCPT ); Thu, 7 Dec 2023 12:15:22 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB0DF1709 for ; Thu, 7 Dec 2023 09:15:28 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 26AC0C433C8; Thu, 7 Dec 2023 17:15:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701969328; bh=/NZy2kf75bJHAraLx4pRXvEeYyqAAqrTseqq1t9//Z4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Uryj+pFN/z19lqg/7cEn4xKACWxpDihfcbOk/XC7lpDOzL+WX5z5VlVKW/3cvc+s4 NnYm2WFY7rSGpPSslqD1J6I3Wpr1chYU20ZNrbVvFkl2993ctJ7h/psl1WiexVzUjD 8YGtfVufiZ5612U10APSlebah/U99YbyjvEdSPCgjfnElDbT0UYOawzzgTCkqdmJ2m ET+dOj3b6u51JOd/VhhorhTNoRSjmL4GcqgEbKzGpzxePYQSnCSqCXQbtGaITrMvcA hKG2dqxFyUBsO9mrBFlgazs0xmbU8WLuGrDy5M8ZlrJTb9Ehndy63JZSb5e9thcvci dhCJS1KngpLuQ== Date: Thu, 7 Dec 2023 17:15:23 +0000 From: Conor Dooley To: Krzysztof Kozlowski Cc: Sakari Ailus , 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: <20231207-antics-tummy-5316e38477de@spud> References: <20231207142356.100453-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="OSYC6STl8ciQnFnr" Content-Disposition: inline In-Reply-To: <20231207142356.100453-1-krzysztof.kozlowski@linaro.org> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 groat.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 (groat.vger.email [0.0.0.0]); Thu, 07 Dec 2023 09:15:39 -0800 (PST) --OSYC6STl8ciQnFnr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. >=20 > Decouple these properties from the driver to match what is actually > supported by the hardware. >=20 > This also fixes DTS example: >=20 > ov8856.example.dtb: camera@10: port:endpoint:link-frequencies:0: [36000= 0000] is too short >=20 > Fixes: 066a94e28a23 ("media: dt-bindings: media: Use graph and video-inte= rfaces schemas") > Signed-off-by: Krzysztof Kozlowski >=20 > --- >=20 > Changes in v2: > 1. Rework approach: decouple bindings from driver instead of fixing > DTS example (Sakari) Acked-by: Conor Dooley Cheers, Conor. > --- > .../devicetree/bindings/media/i2c/ov8856.yaml | 21 +++++++++++-------- > 1 file changed, 12 insertions(+), 9 deletions(-) >=20 > diff --git a/Documentation/devicetree/bindings/media/i2c/ov8856.yaml b/Do= cumentation/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: > =20 > 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 > =20 > link-frequencies: > description: Frequencies listed are driver, not h/w limitati= ons. > - maxItems: 2 > items: > - enum: [ 360000000, 180000000 ] > + enum: [ 1440000000, 720000000, 360000000, 180000000 ] > =20 > required: > - link-frequencies > --=20 > 2.34.1 >=20 --OSYC6STl8ciQnFnr Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZXH9qwAKCRB4tDGHoIJi 0hyzAP9aNR0uAwPrTbmO+v6W10FcAGLU1UTX15VyHl6zTw/+zwD7BNYOXpLbWO6V oavXs+cccjna3l+eCE+iR8mzZg9kRgg= =+455 -----END PGP SIGNATURE----- --OSYC6STl8ciQnFnr--