From patchwork Sat Jun 18 22:22:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 12886496 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C345CC433EF for ; Sat, 18 Jun 2022 22:23:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233460AbiFRWXG (ORCPT ); Sat, 18 Jun 2022 18:23:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232039AbiFRWXE (ORCPT ); Sat, 18 Jun 2022 18:23:04 -0400 Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C83591127; Sat, 18 Jun 2022 15:23:03 -0700 (PDT) Received: from tr.lan (ip-86-49-12-201.net.upcbroadband.cz [86.49.12.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 84862802F2; Sun, 19 Jun 2022 00:23:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1655590981; bh=2f/Vy8H8KrRMFojNWJEwbK4z4F9L0HVx73rd5ObdoLA=; h=From:To:Cc:Subject:Date:From; b=Pk0ElU8ldru0aNe7O+zYYS6m9k/D76XKaHkwEs4MhCgrlzYtK5mSd9RSLXtyJZCmL zg1d87I2uCi+kcovpMFhggOi51nTxP3S6y3SCvhGL/m5fHhMz5UZEGNrgIIkcPTJgI fwxKw5cibgzdH1pcDkvdBHYz/RA5axyqa7fSS7Xl1GKd4PFytB956Zbt1NOmZTuxZH I16DpfiIpPzNZAKc98S3zxgIFcmv1YFTvw5u2Nw6jGGdFnTndPubrwrpJT1qLIh9n+ Or7nBiRFjF8SVkJnLhjQRp6345/DsF+0xjRbWG0LsT4lTNJ8iG6JckG0tGLjtz7d1K kZSr2BNrYvuUQ== From: Marek Vasut To: linux-media@vger.kernel.org Cc: Marek Vasut , Laurent Pinchart , Mauro Carvalho Chehab , Rob Herring , Sakari Ailus , Stefan Riedmueller , devicetree@vger.kernel.org Subject: [PATCH 1/2] media: dt-bindings: mt9p031: Add MT9P006 compatible string Date: Sun, 19 Jun 2022 00:22:54 +0200 Message-Id: <20220618222255.478165-1-marex@denx.de> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Add compatible for MT9P006 sensor, which is older variant of MT9P031 and compatible with this driver. Signed-off-by: Marek Vasut Cc: Laurent Pinchart Cc: Mauro Carvalho Chehab Cc: Rob Herring Cc: Sakari Ailus Cc: Stefan Riedmueller Cc: devicetree@vger.kernel.org Reviewed-by: Laurent Pinchart Acked-by: Rob Herring --- Documentation/devicetree/bindings/media/i2c/aptina,mt9p031.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/media/i2c/aptina,mt9p031.yaml b/Documentation/devicetree/bindings/media/i2c/aptina,mt9p031.yaml index c2ba78116dbbd..1d6af1bf9a6b6 100644 --- a/Documentation/devicetree/bindings/media/i2c/aptina,mt9p031.yaml +++ b/Documentation/devicetree/bindings/media/i2c/aptina,mt9p031.yaml @@ -17,6 +17,7 @@ description: | properties: compatible: enum: + - aptina,mt9p006 - aptina,mt9p031 - aptina,mt9p031m From patchwork Sat Jun 18 22:22:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 12886495 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 48AF2C43334 for ; Sat, 18 Jun 2022 22:23:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232543AbiFRWXE (ORCPT ); Sat, 18 Jun 2022 18:23:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231599AbiFRWXE (ORCPT ); Sat, 18 Jun 2022 18:23:04 -0400 Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A1711111 for ; Sat, 18 Jun 2022 15:23:03 -0700 (PDT) Received: from tr.lan (ip-86-49-12-201.net.upcbroadband.cz [86.49.12.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id D24CC83F6A; Sun, 19 Jun 2022 00:23:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1655590982; bh=D4lrbWGTlccFJRtfr2+DOS0k/KRfnUq3vs2eNOmFpFU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CT6SNvfVh2Vdp4Wcnyhn+U8sHgy1GALKKDn4yuRfLSvt/UdzFoejVCL5Sqw8YlzVE VEOyoZRAYDP8EE7hBTSWtNhN+IgcMPdVEVoQMUVuVtTlgWzUmemSILG2nWULRwjj0r qIJ6lqVMZ81ti+wClSt9Lj/uJCJHq7UpEmGIhCjaDZkIlUT7qBVexC2KLYQDy8UH5l PhLKJyQ3VM61L855yKPZgEObZNTf5XjlFBJYMI70XVKgtLP0qwiv5GoiFzFhBsgSK3 gh1XU9U1y7o483l5MHW0eIEezCO8imy8qCX6T5Q8W3KHLi+MUXHlr3mysNV/Bt6unV BaZ/tEMeXLaaw== From: Marek Vasut To: linux-media@vger.kernel.org Cc: Marek Vasut , Laurent Pinchart , Mauro Carvalho Chehab , Sakari Ailus , Stefan Riedmueller Subject: [PATCH 2/2] media: mt9p031: Add MT9P006 compatible Date: Sun, 19 Jun 2022 00:22:55 +0200 Message-Id: <20220618222255.478165-2-marex@denx.de> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220618222255.478165-1-marex@denx.de> References: <20220618222255.478165-1-marex@denx.de> MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Add compatible for MT9P006 sensor, which is older variant of MT9P031 and compatible with this driver. Signed-off-by: Marek Vasut Cc: Laurent Pinchart Cc: Mauro Carvalho Chehab Cc: Sakari Ailus Cc: Stefan Riedmueller Reviewed-by: Laurent Pinchart --- drivers/media/i2c/mt9p031.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/i2c/mt9p031.c b/drivers/media/i2c/mt9p031.c index d0706723e493c..a81d1ca058b9c 100644 --- a/drivers/media/i2c/mt9p031.c +++ b/drivers/media/i2c/mt9p031.c @@ -1234,6 +1234,7 @@ static int mt9p031_remove(struct i2c_client *client) } static const struct i2c_device_id mt9p031_id[] = { + { "mt9p006", MT9P031_MODEL_COLOR }, { "mt9p031", MT9P031_MODEL_COLOR }, { "mt9p031m", MT9P031_MODEL_MONOCHROME }, { } @@ -1242,6 +1243,7 @@ MODULE_DEVICE_TABLE(i2c, mt9p031_id); #if IS_ENABLED(CONFIG_OF) static const struct of_device_id mt9p031_of_match[] = { + { .compatible = "aptina,mt9p006", }, { .compatible = "aptina,mt9p031", }, { .compatible = "aptina,mt9p031m", }, { /* sentinel */ },