From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-vs2-f43.google.com (mail-vs2-f43.google.com [74.125.227.43]) (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 588B0426D2E for ; Wed, 23 Sep 2026 14:43:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.227.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790174617; cv=none; b=JJrcq7S5P2AfWrl5AY/tXFU3MgfN/s/gJYtlZ/5HAaAT5peEGFSXsItEANPUBFmG2konCmxhDxyhXLeMj6cutNk3XmS8TIwaiekfFypJlt9u8n7X5VCFyiNI9XnqmenWix4vf7AMvSOszEHhRUYZh3T7jr8s/Daw8TWOYPT5/X0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790174617; c=relaxed/simple; bh=k8wXZsiBZahd4YB/jFxIlwwwkrcy/Xge/EYWHanyKAM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=sTmcIYtRmFifq7KtT7V8BFZgy9oKKk1qsuLwfy0f9mNeBo5BUN7kMD1lGRAah4IWDmQigvLII1cZbtdz+8CbO6KQIpIW31YcTQvyynvAhclqM0DGoRImjwoSAIKu+RUdD52Bss+K5Od4QwsGX337nKwFT00u+dBZowlsIlOVeZw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=K3Z6t+Pu; arc=none smtp.client-ip=74.125.227.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="K3Z6t+Pu" Received: by mail-vs2-f43.google.com with SMTP id 71dfb90a1353d-5c83be8db39so661618e0c.3 for ; Wed, 23 Sep 2026 07:43:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1790174615; x=1790779415; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=mKXoFYw7/SjH6xvEvMhY/oZycn/zJvALe61FS8iJ6eQ=; b=K3Z6t+PuhM1dMHoYt8wTecLOt00RqjJJNv4e0e2XdkjzRJl29lbAvj3k/qBXbAtzva KCB9t7L9Ty4leUri69Jd4+J7RIa3fdFv4xZiSAcdlc3e1DH1Irph7wUdq22FnBWhObTX /Kcm1bVaJu/2WpY2F3CVAenfI0d9unq2baKKdJlN79nj6kkq0gKQOmZL9+d+txMRa+SH UpkuVfoEZNbl7XsVu0VCSGmldpMW1asFlFNU4WHnxlecUu9Rmak6IbK/Cm0bXxXQDrw6 XmYZ5rtVseUpFH95I97SCwE3z85SFME040Q6sDZmvnds7qLIQZ0xxHanggkElajY6bf1 fwJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790174615; x=1790779415; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=mKXoFYw7/SjH6xvEvMhY/oZycn/zJvALe61FS8iJ6eQ=; b=sqHGCpEeYL9O7v9Iiy3V5fEnP713IOkxHqsDlvOSSlxSkvKTHu0hXWdGvucYI5hMQb 2i19XN0rSmCVGDdBlEdjAQuOczOUT6k4IiifcmYOOtH/qXHFTVAi2BmPN7dVb9urhVA/ 1X2657CWPgeyzEywMrflAkGozDQH5FdNeOCt5fi4gF79UXX9t5Che8XRE+fA4hfx1rRY ksywA8Yyu/RjRkHwWGY+lL3l9NjUzVx6lqHORyQptCUQi6CorRpOgG54e8SMwtwaUmE3 3/eAEuWmbm9Jk+a+mPDbpZYc5Xk7x+WcCeuQkKqrcjIdsa7QNNunWtLWQNGbovQ5j2uk eMGA== X-Gm-Message-State: AFuF++nLHiIB8dNGK7dXYI103bviRjovHH051DL1+//WzJ4TqDKKb8Jq hLaP9XUSHaGI3XJCwpEVY3l4Gs1rmnbsG2Jcr8HFpiYg9qwL9p4JiHDf7FyOD/yn9FQ= X-Gm-Gg: AYBFou231+OKN+/TgYnzfUtWU/I1Gha10t5xC4MSkIf2G60HKQLxojaf9/TbyVEL7hp fR6e69acn3/uJicTTNgARKfRMOVKBHgnQpJpmJ1JzHVBeYDyTJJftrUkJnkZIlrYM071bE5PuqQ 0bJ+0JVMmgSzlwAX93YYtEpw3tyhqoTwgEEUr5jpoLzYZ2E2JIwjbzmLv2MMo4rLtm3c7rZYgds 1ksKUveFx/KRcMZkEvRTbL9JlXYlP2tInELQ1jKXFn5WOUJxOg73YePYMDamBYvdj8BPjEsjfCP L8AwzVz3Ou7SLNsD0M17bH5qBW+FBXweTnw9UuCQKMrtU8y9EYrx1ROr9Vsx6GA93HpE4MEXLe1 IX9ogtjSuyWf7V+rrOga4tPcI3psg1F9M284ps1d365hSce+NXX7Hh15cZi+ZR1Dy1NFXuSSD+Q WXXDLUSNlAen3EzeleriNLlbMXOHuL0JKrFRibYcizlrsbOIWp9o4zb/mc/IByPH6LBK4pMBM= X-Received: by 2002:a05:6122:1b10:b0:5c9:b5ba:135 with SMTP id 71dfb90a1353d-5c9f16b490amr3259073e0c.22.1790174615155; Wed, 23 Sep 2026 07:43:35 -0700 (PDT) Received: from archsung ([139.82.178.10]) by smtp.gmail.com with ESMTPSA id 71dfb90a1353d-5c9f04fb621sm3566169e0c.9.2026.09.23.07.43.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Sep 2026 07:43:34 -0700 (PDT) From: Felipe Calliari To: linux-media@vger.kernel.org Cc: Sakari Ailus , Hans de Goede , Bryan O'Donoghue , Mauro Carvalho Chehab , Tomas Moro , linux-kernel@vger.kernel.org, Felipe Calliari Subject: [PATCH v2 0/3] media: ov02c10: get_selection and 26 MHz clock support Date: Wed, 23 Sep 2026 11:42:54 -0300 Message-ID: <20260923144257.119076-1-calliarifelipe@gmail.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260905030732.39196-1-calliarifelipe@gmail.com> References: <20260905030732.39196-1-calliarifelipe@gmail.com> Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Some Meteor Lake / Lunar Lake laptops (e.g. the Samsung Galaxy Book3/4 series) wire the OV02C10 to a 26 MHz external clock, which the driver rejects at probe today. This series adds support for it, together with two small changes found along the way. Patch 1 drops a duplicated register write, patch 2 implements .get_selection so libcamera can query the sensor geometry, and patch 3 accepts a 26 MHz clock and re-programs the OP and VT PLL multipliers so that the MIPI link stays at the nominal 400 MHz. Tested on a Samsung Galaxy Book3 (two CSI-2 lanes, 26 MHz clock): capture runs at a steady 30.01 fps by buffer timestamp, against ~40 fps with the unmodified register tables. v1 was also tested on a Galaxy Book3 Pro; that Tested-by is carried on patches 1 and 2 only, since patch 3 was rewritten. Changes in v2: - Rebased onto media next; patch 2 takes the new const struct v4l2_subdev_client_info * argument of .get_selection. - Patch 3: re-program the PLL multipliers instead of advertising a scaled 541.667 MHz link frequency (Sakari), and drop the second V4L2_CID_LINK_FREQ entry. No ipu-bridge change is needed any more. v1: https://lore.kernel.org/linux-media/20260905030732.39196-1-calliarifelipe@gmail.com/ Felipe Calliari (3): media: ov02c10: Drop duplicate register write media: ov02c10: Implement get_selection media: ov02c10: Accept a 26 MHz external clock drivers/media/i2c/ov02c10.c | 78 +++++++++++++++++++++++++++++++++++-- 1 file changed, 74 insertions(+), 4 deletions(-) base-commit: 0c795849fd70d6bdb99aea5dd08d9b43128612f6 -- 2.55.0