Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp487465rdb; Thu, 30 Nov 2023 09:47:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IEkpHFqKncbTpUiK0ZlqQiYDIqjYHz/vmwOM7WUnxH8KT9teWLi56NXgvbAdlgeCNME29nc X-Received: by 2002:a05:6a20:8e26:b0:18c:9a9c:5b5d with SMTP id y38-20020a056a208e2600b0018c9a9c5b5dmr14561097pzj.60.1701366447148; Thu, 30 Nov 2023 09:47:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701366447; cv=none; d=google.com; s=arc-20160816; b=z8qDhOQFXEFRWUhKCX9rqZGGXkAlgOlSpjktkemyulyBAwBDtkZaEEtxO8NFCuF3Jh w94gT0grrSIVCjQtfXDvxw2oOjqhFEbJEYRWDM3chpuV2gP5wXcUPldAJh4hzbfSBS26 1Xet1Gn/0NYGVWSsNlTzTpTbb04gsfsfNY2ufFzjpS7vc6FX4LeQOsTQ3PK/SusTCoUh FRp3/OiCVJKMytXjPMXA1ce3ihrYvH5OfnIFmFYV4qflxy1z5VDbFgGXneO0379Ce2gM JDC9kobV1nigQkrI38XukRYZDygYKe4oInrtQWAMN28Ft5FyhCiuVr9TgnUxvPtEFa0p 1zQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=UqoHlspa06CgNPES11cqIX48bHZaq15ATXNGtexHU5c=; fh=pD6HSf1186SspAVsNjC6R2BqLIDwpF/u5DGrCXsz160=; b=xOUn3hKOYZtpWO10K7vH9sf3N6fQAPbKmv9L2lr7L2bezX64BvnhpGkQGCtkG4WE5U ey3sa5/rU4LU86sVrVzxly+C72cEb7CVwBezJ9crvy7IvySOxSKbpycr6RJxZ+wE9yXE Cc2MjAZluRwUUQu03oznDckdu4KGrtSePqx3vpofgjfmG+J66A9RqS1XSW9AXgD4d5Bx FoxHDxIwsz1blWXomDrPA5jAEUY3tdEi6jF/+/lV/pIDCZlIXh0pMhQ8UklPWp2l8gBo /x1DtCB7+YXQK/8uulGqt3CGzEpkzQKJvJScocBrF1SF73M3jBMI6ore87RJoa0axP3Y MbwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="AS8Bw/Y1"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id z39-20020a056a001da700b006cb537d7b47si1681470pfw.309.2023.11.30.09.47.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 09:47:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="AS8Bw/Y1"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 891B78027877; Thu, 30 Nov 2023 09:47:13 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346646AbjK3Rqs (ORCPT + 99 others); Thu, 30 Nov 2023 12:46:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235209AbjK3Rqr (ORCPT ); Thu, 30 Nov 2023 12:46:47 -0500 Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF890D40; Thu, 30 Nov 2023 09:46:51 -0800 (PST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 6452EC0006; Thu, 30 Nov 2023 17:46:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1701366410; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=UqoHlspa06CgNPES11cqIX48bHZaq15ATXNGtexHU5c=; b=AS8Bw/Y12HOoIBgnJwLZyWkeubxCP+NnCLBXtIyDKLDct23HaR5FIK4b0k5Hb+L2mOPlLD pyQ5ChAP9Tz9eUmgmLNrYsPWFOOvogtnvbMbDgBvGCKh3Xr00O/KLYH31nTFyUr/6pzqaM +zFnhF3ONofodD69dnp14MMpaB7N5betVTy7iyEDy4zCX8VlShrlmg+0GktIoVMsfMqjUs u9v4qeFIlpubLEL3SdyswGVGbkkhZljJRQ9JWibGhr6v8p9c6PC+QXsa+2BGXnkJGT5nuG QsbxIp7yXN3YkarPetZ4zZRrtGNPK179q0XT2K527OzZoK+/uDfDwF0hh6wsWw== From: Mehdi Djait To: mchehab@kernel.org, heiko@sntech.de, hverkuil-cisco@xs4all.nl, laurent.pinchart@ideasonboard.com, krzysztof.kozlowski+dt@linaro.org, robh+dt@kernel.org, conor+dt@kernel.org Cc: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com, alexandre.belloni@bootlin.com, maxime.chevallier@bootlin.com, paul.kocialkowski@bootlin.com, Mehdi Djait Subject: [PATCH V10 0/3] media: i2c: Introduce driver for the TW9900 video decoder Date: Thu, 30 Nov 2023 18:46:44 +0100 Message-ID: X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-GND-Sasl: mehdi.djait@bootlin.com X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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 agentk.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 (agentk.vger.email [0.0.0.0]); Thu, 30 Nov 2023 09:47:13 -0800 (PST) Hello everyone, V10 of the series adding support for the Techwell TW9900 multi standard decoder. It's a pretty simple decoder compared to the TW9910, since it doesn't have a built-in scaler/crop engine. v9 => v10: - fixed two issues pointed out by Dan Carpenter bot and Kernel bot v8 => v9: - added a "depends on" GPIOLIB, PM and "select" V4L2_ASYNC to Kconfig - reworked the locking to protect the tw9900->streaming global state - folded power_on and power_off into runtime_resume and runtime_suspend callbacks - used pm_runtime_resume_and get instead pm_runtime_get_sync v7 => v8: - fixed the number of analog input ports: it is just one. - added endpoints of the analog input port - added vdd-supply to the required in the dt-binding documentation - added back pm_runtime - added a mutex to Serialize access to hardware and current mode configuration - split get_fmt and set_fmt callbacks - removed the tw9900_cancel_autodetect() v6 => v7: - added powerdown-gpios and input ports to dt-bindings - added #include to fix a Warning from the kernel robot - removed a dev_info and replaced a dev_err by dev_err_probe v5[1] => v6: - dropped .skip_top and .field in the supported_modes - added error handling for the i2c writes/reads - added the colorimetry information to fill_fmt - removed pm_runtime - added the g_input_status callback - dropped SECAM - dropped the non-standard PAL/NTSC variants Any feedback is appreciated, Mehdi Djait media_tree, base-commit: a00b3f296eac3d43328615c3113e1a74143fc67a [1] https://lore.kernel.org/linux-media/20210401070802.1685823-1-maxime.chevallier@bootlin.com/ Mehdi Djait (3): dt-bindings: vendor-prefixes: Add techwell vendor prefix media: dt-bindings: media: i2c: Add bindings for TW9900 media: i2c: Introduce a driver for the Techwell TW9900 decoder .../bindings/media/i2c/techwell,tw9900.yaml | 137 +++ .../devicetree/bindings/vendor-prefixes.yaml | 2 + MAINTAINERS | 6 + drivers/media/i2c/Kconfig | 15 + drivers/media/i2c/Makefile | 1 + drivers/media/i2c/tw9900.c | 781 ++++++++++++++++++ 6 files changed, 942 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/techwell,tw9900.yaml create mode 100644 drivers/media/i2c/tw9900.c -- 2.41.0