From patchwork Wed Jul 31 07:02:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Umang Jain X-Patchwork-Id: 13748219 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B961AC3DA7F for ; Wed, 31 Jul 2024 07:03:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To: Content-Transfer-Encoding:Content-Type:MIME-Version:Message-Id:Date:Subject: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=JRciTmfW6+7InFoZKqDM5tvku6Ymyuaeg5AOrXlxplA=; b=y3uFEDOpJoRCRn irlBBomfO0J0EnLSatK/9Kdi63c23ZALpULJoZbYgUZSJV6/dc7pkCBIJNXppFXwSbifQA8ZEWa2U Ghb7Rh+fyWJoF96VwrzNjn7XY12IcSRx67QezvTTdeOOgsbcIYKwOP41SPbzMPuedQt/glHvroEX9 /prOeGCXG0svqRnMUR6rHNPan+5GuGVtPUx7U3U8KdNUVav+phHwYOMjeHZgsyT7JxUOkwxkz/tG1 neP7Br8vWH+fLQoT40pGq/nCpxS8GzFNN9BXeMC9MDs8tyuhzDpVm6VsW2xwXjI2Fo9SEvwuLlMqs LYtFN3nKMnBvz/oi44ZA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZ3Mw-000000002cH-3dWD; Wed, 31 Jul 2024 07:03:30 +0000 Received: from perceval.ideasonboard.com ([213.167.242.64]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZ3MS-000000002Tw-2ueJ for linux-arm-kernel@lists.infradead.org; Wed, 31 Jul 2024 07:03:02 +0000 Received: from [192.168.29.25] (unknown [IPv6:2405:201:2015:f873:55f8:639e:8e9f:12ec]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 43CB6842; Wed, 31 Jul 2024 09:02:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1722409331; bh=liF0sXKHqjDKpx94oIxqmUf1lDsy3nU2IMMBID62o+E=; h=From:Subject:Date:To:Cc:From; b=VTqvPk1usTRwO6vA8uspqkmnqJPEC+ZokX+w4D/B8DAg5/0wvBaz/D9LVL3KWsa2r 3ECkq3C6m8U917kFyRUU35oZlwbMjoqo4+gnqbd1lHU0ZyDzPCeBqzoDWJnYBgPa92 ozOS3KxDwWwABAJyU9LkqjP7Nj74HRvbTR6FdVxw= From: Umang Jain Subject: [PATCH v3 0/2] media: imx335: Fix reset-gpio handling Date: Wed, 31 Jul 2024 12:32:40 +0530 Message-Id: <20240731-imx335-gpio-v3-0-443bfa6ce864@ideasonboard.com> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAJDhqWYC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyjHUUlJIzE vPSU3UzU4B8JSMDIxMDc2ND3czcCmNjU930gsx8XQtDixRzY7M0SyNLUyWgjoKi1LTMCrBp0bG 1tQDrVJMCXQAAAA== To: Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , "Paul J. Murphy" , Daniele Alessandrelli , Sakari Ailus , Martina Krasteva Cc: linux-media@vger.kernel.org, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Mauro Carvalho Chehab , Kieran Bingham , Sakari Ailus , Laurent Pinchart , Umang Jain , stable@vger.kernel.org X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1722409375; l=1367; i=umang.jain@ideasonboard.com; s=20240731; h=from:subject:message-id; bh=liF0sXKHqjDKpx94oIxqmUf1lDsy3nU2IMMBID62o+E=; b=vuOEomY0cQDyzahht6nf3VDWeVkMWHOG1+/Px1nw7idTbw0BNwniKEzHLG+Hz80zUztxlFMxh VOIRJoDKonYBogAwvaO9JfsrEeJh4sLWI6Z56PHBY5VPD5AJDT4Hfso X-Developer-Key: i=umang.jain@ideasonboard.com; a=ed25519; pk=7pvnIBNsDpFUMiph0Vlhrr01+rAn5fSIn/QtDeLeXL0= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240731_000300_934086_BCD296B4 X-CRM114-Status: UNSURE ( 8.64 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org These couple of patches intends to fix the reset-gpio handling for imx335 driver. Patch 1/2 mentions reset-gpio polarity in DT binding example. Patch 2/2 fixes the logical value of reset-gpio during power-on/power-off sequence. --- Changes in v3: - Rework 1/2 commit message - Fix gpio include in DT example in 1/2 - Remove not-so-informative XCLR comment in 2/2 Changes in v2: - Also include reset-gpio polarity, mention in DT binding - Add Fixes tag in 2/2 - Set the reset line to high during init time in 2/2 Link to v2: https://lore.kernel.org/linux-media/20240729110437.199428-1-umang.jain@ideasonboard.com/ Link to v1: https://lore.kernel.org/linux-media/tyo5etjwsfznuk6vzwqmcphbu4pz4lskrg3fjieojq5qc3mg6s@6jbwavmapwmf/T/#m189ccfa77ddceda6c3b29be3306f1a27ed0934d6 Signed-off-by: Umang Jain --- Umang Jain (2): dt-bindings: media: imx335: Add reset-gpios to the DT example media: imx335: Fix reset-gpio handling Documentation/devicetree/bindings/media/i2c/sony,imx335.yaml | 4 ++++ drivers/media/i2c/imx335.c | 9 ++++----- 2 files changed, 8 insertions(+), 5 deletions(-) --- base-commit: f3d2b941adafcdfba9ef63d9ca5bb2d9b263e2af change-id: 20240731-imx335-gpio-818d736f9295 Best regards,