Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4025372ybl; Mon, 3 Feb 2020 11:05:29 -0800 (PST) X-Google-Smtp-Source: APXvYqyaTOwwP5+uOTlVY79yXV/fnQmNz4zJowlI6wqzgHkvJhVfF6ozfdoZ4646tiLVnNil/g9p X-Received: by 2002:a05:6830:11:: with SMTP id c17mr18595437otp.360.1580756729296; Mon, 03 Feb 2020 11:05:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580756729; cv=none; d=google.com; s=arc-20160816; b=RSI3wg1Oa3yRo8FYrvQlFRNmpjcyiZKpJQz8Hp5ATJqiorhTMzp6M0MC/APb0bYugS sDEH9y4TUdH4pQqfpfalDQctqnoPE1oR/ooo06f3Cf0N3FZ7gwOW6T2OTcXfFwMoHpGi 9Fj41n4vZdpvVBD6pX2arhAbiYt+XM7YSEGWo+WCHHpICzDnFWzudDHWjd7p/Pry2dUx id08Y2qxs1+Pk3yL3G5bEDhmvtEc24H522N14Fo+WU59BJu64v0QWHUJpf5KCDxVdsPH BMkUFWubOb5bq2ejd3fMgr6ghAkEeZBqNiEx+67R5BfzMOmVxgoQtEgDxVAIaD/Ya33w IOzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=CBWV3evXLl0Fv9qwZTF8zEoCmQzbtH3Pxc/+e7Oj4oA=; b=AVG4NB2UkTj+LEcvwA4wZtguytF0fWMr2w3M+EX/YtxI1m9+UPvCIRthE4oeQQUVAB OPn5VqWkgQP6+JX7njY7aD9EALNJJ1pU5saRHC5A5VVm7aBT8q/AfBt8D+An3bNVhPhK YfD/gtKxKiDt7/noRoAoUrvNNRcA98XCcWxLGbF0oAvnX5B6PI4dX146kRQj3nLGGU+j vkVZPXgoLV/O7kOh8L3okNF7pCMphkDZKSnyUWQQ0RyI/H5aSXIcxmpkM3rPP/4JaflQ Gw7IIOPtwE6NLLvVlzlA1bkEz6eMP2yvSCTLVIPdzWETX72TEIK8R3h2S9ZG9dFYKwtX S7mA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=UIofZpYN; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d28si9754232otc.123.2020.02.03.11.05.16; Mon, 03 Feb 2020 11:05:29 -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=@kernel.org header.s=default header.b=UIofZpYN; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729813AbgBCQ3e (ORCPT + 99 others); Mon, 3 Feb 2020 11:29:34 -0500 Received: from mail.kernel.org ([198.145.29.99]:41448 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729790AbgBCQ32 (ORCPT ); Mon, 3 Feb 2020 11:29:28 -0500 Received: from localhost (unknown [104.132.45.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9F4292080C; Mon, 3 Feb 2020 16:29:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1580747368; bh=etC/B8dEpS/6lnY1kBW+7QBYg5mcAEoucXW2nGYOFC0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UIofZpYNYCkv1B6XC8DMD22OsFBLZIuN1QPH8hIZ8h/stZt/se/6nnz2p3ZWLAyx8 k01/SVGsWuh4W222vvZPtEmHZkZsk6VkpHxOwpgWnE/uFsep8zD0l3B/Tm3m/e7TwN 74P7LAgBvBkOnVIMc7WXGKBdOFCfZkqzVBvcgyZ4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Marek Szyprowski , Maxime Ripard , Sasha Levin Subject: [PATCH 4.14 53/89] ARM: dts: sun8i: a83t: Correct USB3503 GPIOs polarity Date: Mon, 3 Feb 2020 16:19:38 +0000 Message-Id: <20200203161923.881988686@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200203161916.847439465@linuxfoundation.org> References: <20200203161916.847439465@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Marek Szyprowski [ Upstream commit 1c226017d3ec93547b58082bdf778d9db7401c95 ] 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 Signed-off-by: Maxime Ripard Signed-off-by: Sasha Levin --- arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts b/arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts index 716a205c6dbbe..1fed3231f5c18 100644 --- a/arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts +++ b/arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts @@ -90,7 +90,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>; }; -- 2.20.1