Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp605118rdb; Fri, 17 Nov 2023 07:43:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IHhxXaFiI9IHejB2hw7irZEOqHHXmyQm6kRCJGLCDSa+/RqWagSALEPdYKY2EY+kai0A9O7 X-Received: by 2002:a05:6a00:390c:b0:6bd:9281:9458 with SMTP id fh12-20020a056a00390c00b006bd92819458mr18606416pfb.9.1700235796037; Fri, 17 Nov 2023 07:43:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700235796; cv=none; d=google.com; s=arc-20160816; b=wD4zKWT+OczGmiJPXBT9iBXaRU0Lh9TRZHm5CYJ3IS2JFFmMrhTpiN9WGVDuwU1Vks Z4ASswRTmuIZrU/5hpXW3/1O3yxmi81P3i+l/pVEDZ3K/NSStBdjKh3tYrwT/LsFfIMI ij5xUF5VIptjg+IxP04IdMeWTO/3ttwLdOFQ9kQceCvsmNDLNcw03O+YBe0v9JznerFS 06ZDSaU61zKiapydNTi92qJEFRUWRkqRw2bXBTSCb0tywXku/6bReV78PNP06J01b/Yj QLb5VfsIzWupTeHsK4pxk5XpZsis1u/MgoI/9r9ZiDoJd3w+U342FOnPgV7hcGsg859s 70kQ== 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=yNqh1W+l1xyxCiKwmG3HCTekXHZkRRwcjr0CZxdvgL4=; fh=pD6HSf1186SspAVsNjC6R2BqLIDwpF/u5DGrCXsz160=; b=y1CheZPoqu5lwifqNxIJyZXzl3B8FjtQq0MheqSxJXAch4DR1YKRRB6hFJdqm7TzbI SHEwvUcNTgnW+cbn56V4qMYcwXBYePFzfPzRB1DZ5abe6w2QR6J0VwbDL1zo68BJKD0E pYMrAgNHPw2ltOHI5ZG9fq8rDYYuDvsBtUBpfapvFqxB9+sir6CBuF43MdA7TINbnmp1 p84xcjcjr0+FpUXlf+GaUtbt9Lr6a3AiyXEHX1noN9KZ+jDgt4S4QM4qlhULPIqB2MN7 5n5sCBNLRPDbho/uL1/5voay4ajRAViNedwxiav6po45jchokTZ8GkcpGzJexbdaRvF3 2uQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Yb+6bvWS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id q2-20020a056a00088200b006be1dd29127si2197354pfj.127.2023.11.17.07.43.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 07:43:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Yb+6bvWS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id 72DC98096A42; Fri, 17 Nov 2023 07:43:01 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232515AbjKQPmj (ORCPT + 99 others); Fri, 17 Nov 2023 10:42:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231430AbjKQPmi (ORCPT ); Fri, 17 Nov 2023 10:42:38 -0500 Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1FE6E6; Fri, 17 Nov 2023 07:42:33 -0800 (PST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 9B8D61BF204; Fri, 17 Nov 2023 15:42:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1700235752; 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=yNqh1W+l1xyxCiKwmG3HCTekXHZkRRwcjr0CZxdvgL4=; b=Yb+6bvWSy9bvYwB3oTuh9ttCmd2iHinW74sbHwSeHKzbL+T5BHhSwT+nXBLUbo82l0M5vj xTRY2Sj8+Sp+TKAsZRpWT2Q9s66zL+ZbYX9sz8OIG3rlXfpKhMcpP+E6L5p8BoqUO5M+QH POxIUP1bazxDidjeESogrwg5e8GfzAdUoLFTxAfQyS3xoEI6FPe3Am7F1ZqjoPdQfUyDg7 NGHfJugs5alDUL/aESpAoUWg0mE85UADWmKDsOhxnsOSk1S6IHfUmpk79CDmxUoWlkpdJA sxqOH4wWFc0d64qeRe5oXFl7TpbMb9HK3+4zDbIcSDfOBJyoWShppANZEQCoLA== 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 v9 0/3] media: i2c: Introduce driver for the TW9900 video decoder Date: Fri, 17 Nov 2023 16:42:26 +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,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.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 (fry.vger.email [0.0.0.0]); Fri, 17 Nov 2023 07:43:01 -0800 (PST) Hello everyone, V8 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. 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: 3e238417254bfdcc23fe207780b59cbb08656762 [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 | 777 ++++++++++++++++++ 6 files changed, 938 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/techwell,tw9900.yaml create mode 100644 drivers/media/i2c/tw9900.c -- 2.41.0