Message ID | 20200326142037.20418-1-m.szyprowski@samsung.com |
---|---|
State | New |
Headers | show
Return-Path: <SRS0=iMEO=5L=vger.kernel.org=stable-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CD0CAC43331 for <stable@archiver.kernel.org>; Thu, 26 Mar 2020 14:20:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A04F32076A for <stable@archiver.kernel.org>; Thu, 26 Mar 2020 14:20:51 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="RSjjvNrS" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727724AbgCZOUv (ORCPT <rfc822;stable@archiver.kernel.org>); Thu, 26 Mar 2020 10:20:51 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:57416 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726496AbgCZOUv (ORCPT <rfc822;stable@vger.kernel.org>); Thu, 26 Mar 2020 10:20:51 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20200326142049euoutp0103743e8b1881b301f80b77dee0edd26a~-4IN9wM831340513405euoutp01g for <stable@vger.kernel.org>; Thu, 26 Mar 2020 14:20:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20200326142049euoutp0103743e8b1881b301f80b77dee0edd26a~-4IN9wM831340513405euoutp01g DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1585232449; bh=hN+ecJpsrRK3zq7EWx6C58RKWjYp+sw4rItIRnqYql0=; h=From:To:Cc:Subject:Date:References:From; b=RSjjvNrS7KQ0rjpAOlLm4UftVa+ue/hKs8GSiA9AqFLcoX52heS8QS98h6Id1YA6S ExfceU9a2nhi+8dQLlLY08QaagkjpCDRE5/AFXdOST5pYWhbnzhWuT58xB/rH7aLVK IMb88zQql8wTEi46wxFvOs2hzE7RuwllsSaCeAk4= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20200326142048eucas1p259edb440d4f80ef2d312b8eed1e5c216~-4INmW0GC2148121481eucas1p2x; Thu, 26 Mar 2020 14:20:48 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 77.CB.60679.04ABC7E5; Thu, 26 Mar 2020 14:20:48 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200326142048eucas1p29aee56575f8b530fc2d83860f6185d6b~-4INRoN6T1889018890eucas1p26; Thu, 26 Mar 2020 14:20:48 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200326142048eusmtrp17a0ff825e37f4d6d09b6ce41e1db0cfe~-4INQ-KlH2054620546eusmtrp1V; Thu, 26 Mar 2020 14:20:48 +0000 (GMT) X-AuditID: cbfec7f4-0cbff7000001ed07-cc-5e7cba40b760 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id D9.0D.07950.04ABC7E5; Thu, 26 Mar 2020 14:20:48 +0000 (GMT) Received: from AMDC2765.digital.local (unknown [106.120.51.73]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200326142048eusmtip27bef788e9fa098047b75c944c9e1b1f8~-4IM_IRwd0712907129eusmtip2y; Thu, 26 Mar 2020 14:20:48 +0000 (GMT) From: Marek Szyprowski <m.szyprowski@samsung.com> To: linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski <m.szyprowski@samsung.com>, Krzysztof Kozlowski <krzk@kernel.org>, Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>, Simon Shields <simon@lineageos.org>, stable@vger.kernel.org Subject: [PATCH] ARM: dts: exynos: Fix GPIO polarity for thr GalaxyS3 CM36651 sensor's bus Date: Thu, 26 Mar 2020 15:20:37 +0100 Message-Id: <20200326142037.20418-1-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrKIsWRmVeSWpSXmKPExsWy7djP87oOu2riDL6v0LPYOGM9q8X58xvY LWac38dksfbIXXaLLWdus1ks2PiI0YHNY9OqTjaPlvWb2Dz6tqxi9Pi8SS6AJYrLJiU1J7Ms tUjfLoEr49zmiawFN7krTr55wNLA+I6zi5GTQ0LARGLHqi6mLkYuDiGBFYwSt169YYZwvjBK 7Pk2ixHC+cwocaPtGDNMy8V5t6FaljNKfF5ynBWuZUXnfhaQKjYBQ4mut11sILaIgKrE57YF 7CA2s8BZRokPFyRBbGGBGIlbh6aD1bMA1Xw4f4QRxOYVsJX4smwXC8Q2eYnVGw6A3SQhcIRN YuaMx4wQCReJ3d3noWxhiVfHt7BD2DISpyf3sEA0NDNKPDy3lh3C6WGUuNw0A6rDWuLOuV9A 53EAnaQpsX6XPkTYUeJL12sWkLCEAJ/EjbeCEEfzSUzaNp0ZIswr0dEmBFGtJjHr+Dq4tQcv XIIq8ZBYtiUBJCwkECvxfMsllgmMcrMQVi1gZFzFKJ5aWpybn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O8cMe+MvN0f hcpkgyduR7rcpMTsOB/NFDXZ4ba4lzUmTlmJpTgj0VCLuag4EQAuOa+zTwIAAA== X-CMS-MailID: 20200326142048eucas1p29aee56575f8b530fc2d83860f6185d6b X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200326142048eucas1p29aee56575f8b530fc2d83860f6185d6b X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200326142048eucas1p29aee56575f8b530fc2d83860f6185d6b References: <CGME20200326142048eucas1p29aee56575f8b530fc2d83860f6185d6b@eucas1p2.samsung.com> Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
ARM: dts: exynos: Fix GPIO polarity for thr GalaxyS3 CM36651 sensor's bus
|
expand
|
diff --git a/arch/arm/boot/dts/exynos4412-galaxy-s3.dtsi b/arch/arm/boot/dts/exynos4412-galaxy-s3.dtsi index 44f97546dd0a..f910aa924bfb 100644 --- a/arch/arm/boot/dts/exynos4412-galaxy-s3.dtsi +++ b/arch/arm/boot/dts/exynos4412-galaxy-s3.dtsi @@ -68,7 +68,7 @@ i2c_cm36651: i2c-gpio-2 { compatible = "i2c-gpio"; - gpios = <&gpf0 0 GPIO_ACTIVE_LOW>, <&gpf0 1 GPIO_ACTIVE_LOW>; + gpios = <&gpf0 0 GPIO_ACTIVE_HIGH>, <&gpf0 1 GPIO_ACTIVE_HIGH>; i2c-gpio,delay-us = <2>; #address-cells = <1>; #size-cells = <0>;
GPIO lines for the CM36651 sensor I2C bus use the normal not the inverted polarity. This bug has been there since adding the CM36651 sensor by commit 85cb4e0bd2294, but went unnoticed because the "i2c-gpio" driver ignored the GPIO polarity specified in the device-tree. The recent conversion of "i2c-gpio" driver to the new, descriptor based GPIO API, automatically made it the DT-specified polarity aware, what broke the CM36651 sensor operation. Fixes: c769eaf7a85d ("ARM: dts: exynos: Split Trats2 DTS in preparation for Midas boards") Fixes: c10d3290cbde ("ARM: dts: Use GPIO constants for flags cells in exynos4412 boards") Fixes: 85cb4e0bd229 ("ARM: dts: add cm36651 light/proximity sensor node for exynos4412-trats2") CC: stable@vger.kernel.org # 4.16+ Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> --- arch/arm/boot/dts/exynos4412-galaxy-s3.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)