From patchwork Wed Dec 11 14:52:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 11285273 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2A96C109A for ; Wed, 11 Dec 2019 14:52:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 08E8D214AF for ; Wed, 11 Dec 2019 14:52:20 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="mb8i57rO" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729490AbfLKOwQ (ORCPT ); Wed, 11 Dec 2019 09:52:16 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:57232 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729465AbfLKOwQ (ORCPT ); Wed, 11 Dec 2019 09:52:16 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20191211145214euoutp02a86a3dee44300e8c2254938b642853d6~fWLZLtlw21465914659euoutp02G for ; Wed, 11 Dec 2019 14:52:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20191211145214euoutp02a86a3dee44300e8c2254938b642853d6~fWLZLtlw21465914659euoutp02G DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1576075934; bh=qTaGKuC9cCAB+1j7GCP6On5IHmid3yqkEWyTajSdyOk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mb8i57rOTKdqMiFgX8p5YDI8YqNT+740uzElwlU95aaj0Sc85UjitjIzCDagHpvbn /6AI1IJU9Nx1snXAlV41sFf4C3ENQjXFRSDJ65mO54C8mrYTeEAWW5twEoWMGCk3Sq Oc1kSlYkKHqHRim9PZAvBWeHA60WwcZSHvrEpMvE= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20191211145214eucas1p2b19c265b185e2ac4c73d146201a443e8~fWLYv5LWD0707307073eucas1p2O; Wed, 11 Dec 2019 14:52:14 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 42.DE.60698.E9201FD5; Wed, 11 Dec 2019 14:52:14 +0000 (GMT) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20191211145213eucas1p2c438f848ba705fa407331bb31b03b626~fWLYd1P7J1065910659eucas1p2R; Wed, 11 Dec 2019 14:52:13 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20191211145213eusmtrp2c30d1e464771e3d3f4d441d8d5275168~fWLYdCsMM0450404504eusmtrp2M; Wed, 11 Dec 2019 14:52:13 +0000 (GMT) X-AuditID: cbfec7f5-a0fff7000001ed1a-94-5df1029ea016 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 7E.D9.08375.D9201FD5; Wed, 11 Dec 2019 14:52:13 +0000 (GMT) Received: from AMDC2765.digital.local (unknown [106.120.51.73]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20191211145213eusmtip1f8bac6888c5908f6393dfadf01ec598f~fWLXzNfb-1276212762eusmtip1N; Wed, 11 Dec 2019 14:52:13 +0000 (GMT) From: Marek Szyprowski To: linux-usb@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Marek Szyprowski , Greg Kroah-Hartman , Krzysztof Kozlowski , Matthias Brugger , Maxime Ripard , Chen-Yu Tsai , Andy Gross , Bjorn Andersson , Stefan Agner , Chunfeng Yun , Linus Walleij , Bartlomiej Zolnierkiewicz Subject: [PATCH v2 2/4] ARM: dts: qcom: Correct USB3503 GPIOs polarity Date: Wed, 11 Dec 2019 15:52:08 +0100 Message-Id: <20191211145208.24976-1-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191211145054.24835-1-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA0WSe0hTYRjG+XbOzjkbzU5T9Esjc1Rg4A2NPii1oMv5IyKDwgTRmadpOZNN zYLInJc2LM07orbUNLxteU2peUldEWxeYBk2SyXpglbMDC9km8fsv9/7vO/zPS8vH4WJh/ju VHxiMqtIlCZICCHeObxs8qni/Yz0f1eII9PsKo6elun46E3vAo5yDJU4UtXoCGQ260lUtFbP Q62zFj4a76kg0LhqFKAys4GHquuyMNQ8aCVRRmYgylbX8VFbSw6JlgfMvKM7mJrfUxijn2nk M93lVpJpbVATzHvLc4LprWwimbba20zm616cud/eABhb6+6zwgjhkVg2IT6VVfiFRAvjTLn9 eNKwIG3EtoSngxVSAwQUpIOgaXV6g8X0EwANXZQGCO28CGCtvgrjChuAfbaMLUd37Q/ANeoB VM+pCc5ut8x8cXEwQQdAzbyGcAy50E0Art4rwx0FRq9gsNNSv+Fwpk9CrXXd3qAonN4Hh/I8 HbKIDobT+V2AS/OEjfo+zMECOgRqllo23oH0FAkn7szj3NBxWKLTbrIz/Gps31x1F1zvfsjj DCoAp03NJFfkAjieUbYZcRi+NI7yHVtgtDfU9fhx8jFYUGzYkCHtBCfmdzhkzI4FnaUYJ4vg 3WwxN70flhtbtmL7R8Ywjhmo7bbyuWs9AFClt5L5wLP8f5gWgAbgxqYo5TJWGZjIXvdVSuXK lESZ76Vr8lZg/1xv/hh/PQOGtZgBQFNAsk2k7foeKeZLU5U35AMAUpjERWTMXogUi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6U+vxaXFq5RiZxw9LgZt/8f3WfZr/7mlo3ITx0766TxTudShr7esyC A3aYWzdnL1ix98Wt72+cBfn+Sn7T2mIaekRGRUeJpTgj0VCLuag4EQDc3CIRugIAAA== X-CMS-MailID: 20191211145213eucas1p2c438f848ba705fa407331bb31b03b626 X-Msg-Generator: CA X-RootMTR: 20191211145213eucas1p2c438f848ba705fa407331bb31b03b626 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20191211145213eucas1p2c438f848ba705fa407331bb31b03b626 References: <20191211145054.24835-1-m.szyprowski@samsung.com> Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Current USB3503 driver ignores GPIO polarity and always operates as if the GPIO lines were flagged as ACTIVE_HIGH. Fix the polarity for the existing USB3503 chip applications to match the chip specification and common convention for naming the pins. The only pin, which has to be ACTIVE_LOW is the reset pin. The remaining are ACTIVE_HIGH. This change allows later to fix the USB3503 driver to properly use generic GPIO bindings and read polarity from DT. Signed-off-by: Marek Szyprowski Acked-by: Bjorn Andersson --- arch/arm/boot/dts/qcom-mdm9615-wp8548-mangoh-green.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/qcom-mdm9615-wp8548-mangoh-green.dts b/arch/arm/boot/dts/qcom-mdm9615-wp8548-mangoh-green.dts index 26160c324802..942e3a2cac35 100644 --- a/arch/arm/boot/dts/qcom-mdm9615-wp8548-mangoh-green.dts +++ b/arch/arm/boot/dts/qcom-mdm9615-wp8548-mangoh-green.dts @@ -143,7 +143,7 @@ compatible = "smsc,usb3503a"; reg = <0x8>; connect-gpios = <&gpioext2 1 GPIO_ACTIVE_HIGH>; - intn-gpios = <&gpioext2 0 GPIO_ACTIVE_LOW>; + intn-gpios = <&gpioext2 0 GPIO_ACTIVE_HIGH>; initial-mode = <1>; }; };