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: 181219 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp636156ile; Wed, 11 Dec 2019 06:52:17 -0800 (PST) X-Google-Smtp-Source: APXvYqzjg8jdty1eustN+X6iAwgP4l4E4C3bL27ys9umN9cx5emmjR1F2YBvaOHa3Cf/QDP+c8Jf X-Received: by 2002:aca:b808:: with SMTP id i8mr3014839oif.66.1576075936944; Wed, 11 Dec 2019 06:52:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576075936; cv=none; d=google.com; s=arc-20160816; b=ipXCVGwDNCWHtLb9vcXSnwAoruKSJM6N8NosK8SO/qltiW4MeGPAiDeCX8jQWWbY8e YFpxPnUtwy6VH9d0V1V3WNRLOUk/CHVgsok4QTdx9YyIXc2QFYt6S1iLtvdZ0RYmJLbD KKqr8gzxALm4iALIFgs1oDJbH5U0GU4oqr4YiWae59j0T4PiI4mAXcpKCKbRIWVhuCCr PSFcQG3wtbk/3V1S/M7Y45m1RWK2DUGEmbFvNmXHJt7MPYNnDbEFjXOWzWb5W1oaYBcE 6MCUroKYrXeGNsXbEgXS5NvCU+9vNVFN/zJo+kUqtQUUAXUVaFLxMNSRlMb0AdKeU+cE OXSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter; bh=qTaGKuC9cCAB+1j7GCP6On5IHmid3yqkEWyTajSdyOk=; b=KcnfP1fpcutsgDOHMnX/Qc8rkrweImPlcf7EjU3pA1zy4tdFjfcQvcL3KNeVKERNvw 0rtOmDLBX83td5VMwbNBC41G89dh8t0Oujw/XkToCSb6ShVsVmYH+Qk8/tjGnCNG10SS gsgg0c0Pw84NsNDZZakhxaBDXP53x+PzUeVy149T3pPrNdSGwetI97shCtstwx70tkEY 0dEXu6OijSGncouBuWJMBq1St26e2hCf8P9AHJo3vMtZ6lNH6TMrLtg+GP2biDQ0MHYJ p22LBbiN14/MCq1SAcPUsrFxMUZAGczCsAkL9/QdC+lMduwkYdArtGag30uHpFIhwtWA 2Qog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=mb8i57rO; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m24si1243961otn.67.2019.12.11.06.52.16; Wed, 11 Dec 2019 06:52:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=mb8i57rO; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729469AbfLKOwQ (ORCPT + 3 others); Wed, 11 Dec 2019 09:52:16 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:57229 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729359AbfLKOwQ (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 20191211145214euoutp02d757a905a5a3616013886a24f4bd383f~fWLZHo9FB1403314033euoutp02q for ; Wed, 11 Dec 2019 14:52:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20191211145214euoutp02d757a905a5a3616013886a24f4bd383f~fWLZHo9FB1403314033euoutp02q 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+p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0AJDg4WAVWJo/3yIGFeAVuJhxO2M0JskJdYveEAM4jN KWAn0fVtHdgVQkA1n263sU1g5FvAyLCKUSS1tDg3PbfYUK84Mbe4NC9dLzk/dxMjMJK2Hfu5 eQfjpY3BhxgFOBiVeHgXbH8fK8SaWFZcmXuIUYKDWUmE93jbu1gh3pTEyqrUovz4otKc1OJD jKZAN01klhJNzgdGeV5JvKGpobmFpaG5sbmxmYWSOG+HwMEYIYH0xJLU7NTUgtQimD4mDk6p BkYhs8pfCx+buiwpq/+1h0dywZkpDj+3fuFyPM8v5u4nUOKz22pvgtDmmJfqMxfMUdt9PrM5 fPeBzDiPexF5r8P7dJ6U+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-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@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 --- arch/arm/boot/dts/qcom-mdm9615-wp8548-mangoh-green.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 Acked-by: Bjorn Andersson 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>; }; };