From patchwork Thu Feb 22 06:22:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Skvortsov X-Patchwork-Id: 20770 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:aa16:b0:108:e6aa:91d0 with SMTP id by22csp64239dyb; Wed, 21 Feb 2024 22:23:24 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUhlPsMGd9bfBVbDiKRozLSB/ed4WAR91DkvweyZAC+wcPRznfBYpsNllENmVn0uRMM4Tx3iclSwlEPlvx+fUgqiAxfXg== X-Google-Smtp-Source: AGHT+IGT7C9OalukTmOFH+sLNzreF7zpD+l+IZIO1quPajB7FgpHX2c6MnNVynZsyvSEVP76ARXK X-Received: by 2002:a05:6808:318:b0:3c0:2d52:1f28 with SMTP id i24-20020a056808031800b003c02d521f28mr18630398oie.50.1708583004698; Wed, 21 Feb 2024 22:23:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708583004; cv=pass; d=google.com; s=arc-20160816; b=xgUrgRVMgGjLWXN62x/i84k60R0rzijZyM5YlJCFfKjSIcseeOw+iVtSXE82VY9ii/ 2lMqPkjfldUHVs/yfvg0zMOp4D48ErCDDqB+Lo+qw5etYSx8X+bZC3P3rpLbpat6w4ck cJ5lcmu6GKwuhHEMOCCYSolShRpdIbyRInvs9v9tn5DEnAs6BLnDtdVm114iHn9HUW/k VzQf/tqqnc3xWCfx0BLo4iNKD8u6ocdzF/evbqC9lSBiGqulekNI4NIfgmT+YEQDy9B5 PDdLXVR83m0rpkxpbkOSS5Aysj5dBQ5/IU5J+dT7BJ5UlG7Fupm8Sm14F8zGjbY2EqkC Ddgg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=H1a0uGmRwFxQVTjWSYQgbbb6IcpaIjDAJCmTdMKxd2U=; fh=iQ+1wNbTA6oozypw8W9lhSuZ4J0Zd63zebuvuPwZ/+A=; b=GXNjOKz4FD3YjYU1/LK2nOQtIx9YGnyqW/6ElNS8E/qEDXfbVbOsBaJ1Rf4MW8V0CI usJeWAClnZUuPKBe56ZgiwSDsy0rDjUxmKVPUraZ1h3z3rtc00m+GpCBJIhi/00m3DND GeLLZzdXXHJetVeLBtsejK1juHIP+rWM38UvfKTBJjss2Sfq583W0e5rdsD4Ou78fgH3 Uq032uG84DdTia306HLNnMKgkMHkD2GeuN5AEW0GW99pZINk2QxgV5e5PVGNrFwBGWK3 HCiQxjcj/8y1iWmNQtawNRQHFHS7BY2J68vuun9Yzm+9dfbHPpsmEZDZbUmykH76HC5l 3L8w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Rvk8w2Hn; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-75977-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75977-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id k14-20020aa7998e000000b006e4c8e84d38si817880pfh.196.2024.02.21.22.23.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 22:23:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-75977-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Rvk8w2Hn; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-75977-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75977-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 2B9C2B23CDC for ; Thu, 22 Feb 2024 06:23:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7BF5818048; Thu, 22 Feb 2024 06:22:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Rvk8w2Hn" Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com [209.85.167.48]) (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 5C4E0179B0; Thu, 22 Feb 2024 06:22:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708582951; cv=none; b=KtWqS5U+IP/c7czN8uuoZNkUtNWPSDIaexElFDKPo09b3mkHI3PXgpicoS4vwEYYn6hrJQJAwPI1/ZSrskfwIR6+Larg0nBX9eYQ7XOZ0F28tKjnr3Dz7tOa2OX9jyNwmu162IRbcrkUVEma8kbVLeIsq7kOmfs9OfOIKybS7FE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708582951; c=relaxed/simple; bh=5zPWaGxuvPdH6xrIjwITcYmJ0FVhd7Z6bIq4IKyG7PE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=cnnId2QMQvndmgoC8THA6ZVUYl2l65igwiXyosLNLhWykNo4592nmoWx6x42ms9izavOxT9hbw23wF41WEfNVSwZ1jod/hxuqzeN9TOS9Lj/XpPMQ7F1OSvZAZlvQBqMtypkf9uQ2tB2z98ciWEKnphOE53c/pILWGh+m1Wsb8s= 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=Rvk8w2Hn; arc=none smtp.client-ip=209.85.167.48 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 Received: by mail-lf1-f48.google.com with SMTP id 2adb3069b0e04-512d8fe4fceso742391e87.3; Wed, 21 Feb 2024 22:22:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708582947; x=1709187747; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=H1a0uGmRwFxQVTjWSYQgbbb6IcpaIjDAJCmTdMKxd2U=; b=Rvk8w2HnIFjrbBMXkaEkvzoIrVxmH7ZSGc8KlcJFbYX7iDoinYipFj5kK7jb6vMT2n qg9yZ7gWb9nIZhhhpq9W8cR78CUh7gfbia9VtYaanlgrAVrxv02jpECEGLknsY54Txml Y+NzLpRLS5gSVe4IgpaN5hWkWkqUvRiLknGZ0n32fMWjPz+holHsprfFbEXswkzNslh8 dCEUygFStfByWLrWkpEm53Ek3M/kF/sb0G05eRMYQdolVy/dH7R6CdyvMYQ0Mz3ORTxA Fn93Pq6gwNAPnsKKgQahLfL69i3FKkKARZ02z9ImG6dzmTocyDEMDKlDWKQAIdEQU5z/ V/PQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708582947; x=1709187747; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=H1a0uGmRwFxQVTjWSYQgbbb6IcpaIjDAJCmTdMKxd2U=; b=cFmLYrO4O71D/79vRNxr/eGCg94IySEQiF4XD/8G7VDunBNWqqVdkdoU3smW4BmxwJ ezzHCdxUytU432unUSd/DwVQV12hvEfV5WbgC7aGHBgE/PcPCB0pqEBY0DqUOJ7mp3Bk mJimUWp+9CL0nUd/QLql9ENos5wgdlDXZ81spkogYOBVdGDfj+R/SbTi2bVCsZuZOduf h4NR3MXVJ8FMnR52z+CiX7QOlOYsp+2ynzmCtQyp09x+gkt02EBgEqTUJcpdOf1xgndZ 0DqdEUWJhR1MvLfZkH9wphusRWmiRJxMKCKAEfYvrqNpLwulCiDwU0gcTHxr/EeAv+Xg 6djA== X-Forwarded-Encrypted: i=1; AJvYcCXRz76WlX8zdSh18eNrMtAbBBI60t2Hbj76rXFO+5s0aHETC5c9TUsenJUNpBZhzhUQrmF9fjMEJVTXrBolY12cAdQSN8DbbP4bD9bhvyrPp0uM/lYaztd1MXUJVmf/BBBmbSJ2JX3pTEKuijwHxdvevwpXsw4v/blyXH4LuXBFlwzPGrhL X-Gm-Message-State: AOJu0YwkhF9F0YDgZNGRaSkhfAsJeWzL2FZdLSiEOaVy5Zn4/+q9qNIG CQVVHXE0cBwo1RRk/17SzWM/k/KGt5jG52j+36/aCcwYR77IB9P0O/bvbXnD10c= X-Received: by 2002:a05:6512:318a:b0:512:cb0c:d984 with SMTP id i10-20020a056512318a00b00512cb0cd984mr5323554lfe.68.1708582947271; Wed, 21 Feb 2024 22:22:27 -0800 (PST) Received: from localhost.localdomain ([2a05:3580:f312:6c02:29d4:49b1:c3dc:494c]) by smtp.gmail.com with ESMTPSA id e8-20020a05651236c800b0051296788949sm1945574lfs.232.2024.02.21.22.22.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 22:22:23 -0800 (PST) From: Andrey Skvortsov To: Sakari Ailus , Alain Volmat , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: =?utf-8?q?Ond=C5=99ej_Jirman?= , Pavel Machek , Arnaud Ferraris , Andrey Skvortsov Subject: [PATCH v2 0/2] media: gc2145: add basic dvp bus support Date: Thu, 22 Feb 2024 09:22:12 +0300 Message-ID: <20240222062214.2627810-1-andrej.skvortzov@gmail.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791579132343115786 X-GMAIL-MSGID: 1791579132343115786 Tested on PinePhone with libcamera-based GNOME screenshot. Andrey Skvortsov (2): dt-bindings: media: i2c: add galaxycore,gc2145 DVP bus support media: gc2145: implement basic dvp bus support v2: - bindings: - add required bus-type property - conditionally require link-frequency property based on bus-type - add DVP properties with their default values - driver: - fix fwnode parsing - remove gc2145_is_csi2 - fix error message for unsupported bus-type .../bindings/media/i2c/galaxycore,gc2145.yaml | 64 ++++++++- drivers/media/i2c/gc2145.c | 122 ++++++++++++++---- 2 files changed, 159 insertions(+), 27 deletions(-)