Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp6061063rwb; Tue, 1 Aug 2023 11:39:27 -0700 (PDT) X-Google-Smtp-Source: APBJJlEPIju9RMUZvMu+Rk2tJZfXGXErvyQbP//bczpND/irdSQTrrdw8+EBtfZnqAvN0pAlJ919 X-Received: by 2002:a17:906:8a:b0:99b:627f:9c0d with SMTP id 10-20020a170906008a00b0099b627f9c0dmr3119249ejc.27.1690915166930; Tue, 01 Aug 2023 11:39:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690915166; cv=pass; d=google.com; s=arc-20160816; b=D/90ukMmF387gX+DuD4RM2IaZt3tkifTN6wmdLjlUbN2K/bv+C9eOC4D1IwhxXtYuW YEqtvw7KRk8RdSUOvCVaUUWP+oa2hno0fRp73Zsz5ODerdly837/wqPOk5NKwKyu02xU nE5rnqYQbgM+XkTS7GD2gOepGvpd+KrBaBk+HbixSaWpGKpmwgI5EbVuHbZjPJnZiimp SfC3q6oCQTx5A75zw+kNsBDCmXrfZhmatFIUz2yI8NxHOs45F2009kOgUgoGMKWHnDxl q3D6AQwhGK6C5bmwxQDQthigeGTHj366pNfS5We3quXzJKm9LltgXTIA0Yl9KRPaG+v4 FmaQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=kaq3tUxGWT8kGOgYm0nW8eQt9ANPfhADF6lkxkW0974=; fh=PFwOWNq9N6joJDQCw6NGEmAvfnjEH3q7HOo4ByB/sHc=; b=ZNCTtM1us6wprldr9NpHJrERDDs8pD1r0uVMfZuhKly/h03gisj6p7BUm0pQuTaS3/ FqodxczKe9qM3JCme2Fyo/CYHGMIBxdGg9c4xZ8U4dxXUi8TpiCtCV54Vrki+wf8y7GG jyWGXxw6kGj8TNCFhiToaLnvcqI4+d4SLxr+XKFnWSf7j7VrGhZGOKJiRdZyTVJ84zXC 3SfbVW4Q5mb2OZ1xMT/8vqsJKs5S0NCDnI978GX+AtvQaf7vNni9F6Kxlj3EXVGclDyx Gx58gym2lFfET2rwMPbf39if7Y4fAwSF5G8UhwXZV1Roty4AwYjobmQAkURhS2rfWRX8 gpkA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@iki.fi header.s=meesny header.b=NseJW3ia; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sb9-20020a170906edc900b009937af8ac4asi4659986ejb.241.2023.08.01.11.38.56; Tue, 01 Aug 2023 11:39:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@iki.fi header.s=meesny header.b=NseJW3ia; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232444AbjHAOG5 (ORCPT + 99 others); Tue, 1 Aug 2023 10:06:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234404AbjHAOGd (ORCPT ); Tue, 1 Aug 2023 10:06:33 -0400 Received: from meesny.iki.fi (meesny.iki.fi [IPv6:2001:67c:2b0:1c1::201]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C9D230EF; Tue, 1 Aug 2023 07:06:11 -0700 (PDT) Received: from hillosipuli.retiisi.eu (82-181-192-243.bb.dnainternet.fi [82.181.192.243]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: sailus) by meesny.iki.fi (Postfix) with ESMTPSA id 4RFcMt2Gb4zyPp; Tue, 1 Aug 2023 17:06:02 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=meesny; t=1690898764; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=kaq3tUxGWT8kGOgYm0nW8eQt9ANPfhADF6lkxkW0974=; b=NseJW3ia59kmCdTykP6NnUDaKv1bRlsIR2JIwCZLTtk2+/aQSOyL+TsB9xbdnDT+FaIHF4 uwbtYEo5l10kfZHH+Z4zD+l6MUYnYagPSvd8rso9ILMKgdOFQzdXkxOZBHQkZzbSD853Gm MLNh6dWCyE0zeCf8d5JIuFS6huryufk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=meesny; t=1690898764; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=kaq3tUxGWT8kGOgYm0nW8eQt9ANPfhADF6lkxkW0974=; b=uZfuf8FmRo6v5hjr5987MJjC7boJpxHd1f9EpZHHlhvrOgMPM0JgBKeelaWaWeBD4ySwJV UHlucyijE3gMK5/RJXCalBlUpXduWCEQ1sSk5GwOM4TwaELN/Tf9IWqqtVu0Qcsn2PBKo8 Brpl/8kysJiOx7wUSj7Ge0AdQ2CSaUM= ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=sailus smtp.mailfrom=sakari.ailus@iki.fi ARC-Seal: i=1; s=meesny; d=iki.fi; t=1690898764; a=rsa-sha256; cv=none; b=shcZAOjPrqPSB5PnpOAyi/h+O7lZ6fGlXGObEanUClT3vSqCD9cr4VPKs27USpOpIRKKGl jSEADw1kAT+b9ZyoilW+Qf18E5wuI5dJTc9bqXsC1KukJIDh0Vs4KXxGtEXhYvqzKx0aYe x2z79mznlJO2/t5fzYUrGynXMfuXwls= Received: from valkosipuli.retiisi.eu (valkosipuli.localdomain [192.168.4.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by hillosipuli.retiisi.eu (Postfix) with ESMTPS id 8D736634C95; Tue, 1 Aug 2023 17:06:01 +0300 (EEST) Date: Tue, 1 Aug 2023 14:06:01 +0000 From: Sakari Ailus To: Rob Herring Cc: Mauro Carvalho Chehab , Krzysztof Kozlowski , Conor Dooley , Daniel Scally , Dafna Hirschfeld , Heiko Stuebner , Tommaso Merciai , Helen Koike , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] media: dt-bindings: Merge OV5695 into OV5693 binding Message-ID: References: <20230707210604.868002-1-robh@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, On Tue, Aug 01, 2023 at 07:45:08AM -0600, Rob Herring wrote: > On Mon, Jul 31, 2023 at 5:21 AM Sakari Ailus wrote: > > > > Hi Rob, > > > > On Fri, Jul 07, 2023 at 03:06:04PM -0600, Rob Herring wrote: > > > The OV5695 binding is almost the same as the OV5693 binding. The only > > > difference is 'clock-names' is defined for OV5695. However, the lack of > > > clock-names is an omission as the Linux OV5693 driver expects the same > > > 'xvclk' clock name. > > > > > > 'link-frequencies' is required by OV5693, but not OV5695. Just drop it > > > from being required. Expressing it conditionally would be ugly. It > > > shouldn't really be required either as the driver only supports 1 > > > frequency anyways. > > > > The correct way to address this would appear to be to add link-frequencies > > for both of these devices. I think I've seen one or two sensors of this > > class (raw, CSI-2/parallel, external clock etc.) with link frequencies > > documented as "fixed" --- which is probably a documentation issue more than > > anything else. > > link-frequencies is already supported. It's just a question of being > required or not. Adding a property as required is an ABI break (if the > OS starts requiring the property). Currently the ov5693 driver requires a link-frequencies property, the ov5695 driver doesn't care. In this case the backwards compatible way would be to make it optional for ov5695 and if it exists, then allow only those frequencies. It's a fairly trivial driver, it only supports a single link frequency at the moment (as well as a single external clock frequency). At least link-frequencies should continue to be required for ov5693. -- Regards, Sakari Ailus