From patchwork Wed Dec 11 14:46:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 181214 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp630015ile; Wed, 11 Dec 2019 06:47:00 -0800 (PST) X-Google-Smtp-Source: APXvYqxi5GeKNnNWERVy1EJ5NqpBNsEykCkEpyK5zPNvTaMiMF0opLVr9JfFarDiparUxy13HdMF X-Received: by 2002:a05:6830:1b71:: with SMTP id d17mr2375559ote.42.1576075620758; Wed, 11 Dec 2019 06:47:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576075620; cv=none; d=google.com; s=arc-20160816; b=CP8jxE6fIJp9dfVDcRlPDXkIQzkcL0Ivh3PkSriS8X+SStLYlvTZKTLehwNLh6DIIF EvOE6NPLts8stHDX7xdKbP4isPFmO6PzNkWalBocN+yOOxID/wG6dtVhN3lLDwPp8bN8 XmTCzCQKvDb75P90gxUMdr9XJSeTOpp9+6KHjNCxa5rNLFwlb3ROibylrRfEGTpfylL/ F6nnRSBl7iCd41E9Z/WrB36R6xqIKeWZmvBYSpsUNhXMoqK7ghuIVMb/MOPBxTekyHc4 pGh5uu6maSDyXOBzAjMb6dILNI6bSvZrESPNjWE8eQAqK92niDUYvdheksJngif20f6X XWIg== 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=G6e9bRQSJqszd1aQwd52ZOX8/ksTctU4pV8j86XTo3M=; b=w0T9YVpnhvxzn70xJHOM77G2zzjz71mGjuFMU9ZT/WaNcpQcTmNjcO+mojDt0CZiK5 5bG7Ynj4UMdasNs7lT29+YjxNQbZOQGLYS1I0RSyGeP/zKZtG2eNj18x9V7Hwjj6NP7u R11GxfhkpszKh01vivQQQwYhanRBRLoPxfaN5ZPTZzh0a2YDW0eMyRcdCJGJWCCwDNnn otH30/p07AHf24I4CvGzHNoeR1OeBRzqjXq2mddKebMimodYQAGm9tLyzQm+8EebrfYY FdAwJNZwabwJQMA6IGveq4GHPdS8Fi1YVd7mOd+2ZLtF2lRqvwFSLkLXdzftboyDgAwV kgFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=lzubIgKw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 5si1235993ott.186.2019.12.11.06.47.00; Wed, 11 Dec 2019 06:47:00 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=lzubIgKw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1730048AbfLKOq7 (ORCPT + 27 others); Wed, 11 Dec 2019 09:46:59 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:55239 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729481AbfLKOqx (ORCPT ); Wed, 11 Dec 2019 09:46:53 -0500 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20191211144650euoutp02947c0ff4532acb91e3c22e69975f7e0a~fWGr0dYU71029810298euoutp02K for ; Wed, 11 Dec 2019 14:46:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20191211144650euoutp02947c0ff4532acb91e3c22e69975f7e0a~fWGr0dYU71029810298euoutp02K DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1576075611; bh=G6e9bRQSJqszd1aQwd52ZOX8/ksTctU4pV8j86XTo3M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lzubIgKwZfy4HAX7lB01PSkFt3fBJBiHmnLe3JGi/tZ+mb/P15Ppr007AHVIkS1cp Ot6qG+dQYkjnLK/hM7Z6bo6DupRQXsNSk2UMyotVaW4i6a0Dc+mhI/sMIbfcy0+r2m yu8Opi5w15lTTHPwDYsqqm+fGrKSN0JaL0ynn1zY= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20191211144650eucas1p231d382044738e0fdbc83b784f98e5e90~fWGrO-Lbn0790307903eucas1p2r; Wed, 11 Dec 2019 14:46:50 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id E2.2F.61286.A5101FD5; Wed, 11 Dec 2019 14:46:50 +0000 (GMT) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20191211144649eucas1p2ec8ca5bec84c179a5cbf01a285e82837~fWGq4tLeb1014710147eucas1p2Q; Wed, 11 Dec 2019 14:46:49 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20191211144649eusmtrp29e7ed2584f7d5ea7a929a28493ec9685~fWGq39SQt0169801698eusmtrp27; Wed, 11 Dec 2019 14:46:49 +0000 (GMT) X-AuditID: cbfec7f2-ef1ff7000001ef66-90-5df1015aeb85 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id F0.AA.07950.95101FD5; Wed, 11 Dec 2019 14:46:49 +0000 (GMT) Received: from AMDC2765.digital.local (unknown [106.120.51.73]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20191211144649eusmtip1a62ee86c383fc63f9046d4477260ebca~fWGqQL9vk0730007300eusmtip1M; Wed, 11 Dec 2019 14:46:49 +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 , Bartlomiej Zolnierkiewicz Subject: [PATCH v2 3/4] ARM: dts: sun8i: a83t: Correct USB3503 GPIOs polarity Date: Wed, 11 Dec 2019 15:46:37 +0100 Message-Id: <20191211144638.24676-4-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191211144638.24676-1-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA0VSe0iTURzl7nu6WnxN04uFwsrAMG0ZdOkhGf3xZUQSQWBZLf1Qcz7YnGZB Pps5LCsMx9Cs+ShfUzfRNPONo0TnHIhUSj6oFDTNwhdofn5W/51z7jm/87uXS2PSVsKdjopN 4FSxCqWMFOMNPcu2gyFgPvSQZVGK+idWcVSnryFQb9ssjrJaC3GUUVxDIputlkLmiSECOZoL SOTIsAOkt7WKkLHsPoaqu0colJ7pj7TZZQSymLIotNxpE51i2OLFUYytHa8k2CbDCMWaK7JJ 9vNQC8m2FVZRrKUkhc1834azj+orALtg9ggWh4hPhHPKqERO5RdwQxw5aj0anyu+PbFUJ0oF jbQOONGQOQJLJmdIHRDTUuY1gCuDU4RAfgHYMZ+1RRYANOZN4DpAb0ZmC6IF/RWAL0ufE/yo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JD3t72EFsXgFbic0vz0Jtk5dYveEAM8hFnAJ2ElMO VoKEhYBK7k06xDaBkW8BI8MqRpHU0uLc9NxiI73ixNzi0rx0veT83E2MwMjZduznlh2MXe+C DzEKcDAq8fAu2P4+Vog1say4MvcQowQHs5II7/G2d7FCvCmJlVWpRfnxRaU5qcWHGE2BbprI LCWanA+M6rySeENTQ3MLS0NzY3NjMwslcd4OgYMxQgLpiSWp2ampBalFMH1MHJxSDYxzfysY lifYiR1q/Nn/p7Vduba9WTjLy0qsb3v+Cp5DmZKOS9c+Kny95GOA9830KOEb554cfGTKIX5+ aWu14c5ztl/3/bpqOVtb1WLn6t7E4vJtqx7el3/HkdnCMvWcmdKOtyXN0w5uz7bS3GJqsCNQ 2pXl02P3lv7Cv5fvT20+e/DTYtmgGfuVWIozEg21mIuKEwHzY67vsgIAAA== X-CMS-MailID: 20191211144649eucas1p2ec8ca5bec84c179a5cbf01a285e82837 X-Msg-Generator: CA X-RootMTR: 20191211144649eucas1p2ec8ca5bec84c179a5cbf01a285e82837 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20191211144649eucas1p2ec8ca5bec84c179a5cbf01a285e82837 References: <20191211144638.24676-1-m.szyprowski@samsung.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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/sun8i-a83t-cubietruck-plus.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 diff --git a/arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts b/arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts index fb928503ad45..d9be511f054f 100644 --- a/arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts +++ b/arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts @@ -101,7 +101,7 @@ initial-mode = <1>; /* initialize in HUB mode */ disabled-ports = <1>; intn-gpios = <&pio 7 5 GPIO_ACTIVE_HIGH>; /* PH5 */ - reset-gpios = <&pio 4 16 GPIO_ACTIVE_HIGH>; /* PE16 */ + reset-gpios = <&pio 4 16 GPIO_ACTIVE_LOW>; /* PE16 */ connect-gpios = <&pio 4 17 GPIO_ACTIVE_HIGH>; /* PE17 */ refclk-frequency = <19200000>; };