Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2482008ybd; Mon, 24 Jun 2019 07:12:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqw8cQ9Ovq2AhkaqemOB4hdHiGyvkfshTN1BQpzRen57cxSwYPmkKm8DqWZsJU6Cv1zyh00a X-Received: by 2002:a17:90a:9291:: with SMTP id n17mr24649760pjo.66.1561385523006; Mon, 24 Jun 2019 07:12:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561385523; cv=none; d=google.com; s=arc-20160816; b=WUF55LHESSxh9AHVFP0lKb+IbXsdiojDLK6ofDWP6YmaAJ3q1drJPz3f7b6YpDbXyG Ul7CL42XBA/u61kLXBJxArW/YYC4LGIFMCYoWcbE+732lBhzUBjMBs6MA/2ZZE3Enzf9 SQsQva5F/yFuX9csa+gKOTg22JxWhzm1nN8zsuB8JUHE3RCNzgNj3aANflP+H5YlwoCQ DY4NKeN56yLJCj+wk2KkZSqlHU57bIOn+aBH80+/koYBlfu08rX1VmHTGMiAuKDwUJmd e2FYX0qcwQtEp344k5sriCBhCazwYFB+FMjsS4ru1eFZ9WXRPtfXQH2AwBqHsLOMPukL +KUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=P0KtLowxDgUXlcIqnmDdW+hwziorAG14byIysW8QQ1E=; b=qJcLKbK3xkl/klKPZRrbuqlnk+FcJ4ECFw8JhcSTOftrDNfykB2/k7zTVpFpIdxL2f Tn7uzTmBkI9Jvd3uwjBB/99p4UhP/LZCtwhROQzPPI9Du6Tg0OYW4BpFeIr4yPJhQHRi iM2+mOFvlmOxCnqbnNHEvpB7KwHdLtuGlduSKvUfolEKISjTt8ZmkTGHX0Kf7A7GWu9h 6LhBKD4qHkBY5zjHCW6ZiwzktVTQwnZ7PHHlQ4p/0LBEIaKLNyy51LdHDgVhY65D0aoQ Soma4qxrUdXR7IXN1wx5xr1ypXO+/NoY9sOuQwWvCNPV6kBdShwqUiLIQzb5Q0NDy7IN hczw== ARC-Authentication-Results: i=1; mx.google.com; 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 j93si10401171plb.32.2019.06.24.07.11.47; Mon, 24 Jun 2019 07:12:02 -0700 (PDT) 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; 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 S1727950AbfFXMk0 (ORCPT + 99 others); Mon, 24 Jun 2019 08:40:26 -0400 Received: from relay11.mail.gandi.net ([217.70.178.231]:36429 "EHLO relay11.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727659AbfFXMk0 (ORCPT ); Mon, 24 Jun 2019 08:40:26 -0400 Received: from localhost (aaubervilliers-681-1-41-156.w90-88.abo.wanadoo.fr [90.88.16.156]) (Authenticated sender: maxime.ripard@bootlin.com) by relay11.mail.gandi.net (Postfix) with ESMTPSA id 285C810000F; Mon, 24 Jun 2019 12:40:20 +0000 (UTC) Date: Mon, 24 Jun 2019 14:40:19 +0200 From: Maxime Ripard To: Icenowy Zheng Cc: Rob Herring , Chen-Yu Tsai , Linus Walleij , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org, linux-sunxi@googlegroups.com Subject: Re: [PATCH v3 1/9] pinctrl: sunxi: v3s: introduce support for V3 Message-ID: <20190624124019.o6acnnkjikekshl5@flea> References: <20190623043801.14040-1-icenowy@aosc.io> <20190623043801.14040-2-icenowy@aosc.io> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="2wajni7mcz7mizzf" Content-Disposition: inline In-Reply-To: <20190623043801.14040-2-icenowy@aosc.io> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --2wajni7mcz7mizzf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sun, Jun 23, 2019 at 12:37:53PM +0800, Icenowy Zheng wrote: > Introduce the GPIO pins that is only available on V3 (not on V3s) to the > V3s pinctrl driver. > > Signed-off-by: Icenowy Zheng > --- > Changes in v3: > - Fixed code alignment. > - Fixed LVDS function number. > > Changes in v2: > - Dropped the driver rename patch and apply the changes directly on V3s > driver. > > drivers/pinctrl/sunxi/pinctrl-sun8i-v3s.c | 473 +++++++++++++++++----- > drivers/pinctrl/sunxi/pinctrl-sunxi.h | 2 + > 2 files changed, 366 insertions(+), 109 deletions(-) > > diff --git a/drivers/pinctrl/sunxi/pinctrl-sun8i-v3s.c b/drivers/pinctrl/sunxi/pinctrl-sun8i-v3s.c > index 6704ce8e5e3d..721c997d472b 100644 > --- a/drivers/pinctrl/sunxi/pinctrl-sun8i-v3s.c > +++ b/drivers/pinctrl/sunxi/pinctrl-sun8i-v3s.c > @@ -1,5 +1,5 @@ > /* > - * Allwinner V3s SoCs pinctrl driver. > + * Allwinner V3/V3s SoCs pinctrl driver. > * > * Copyright (C) 2016 Icenowy Zheng > * > @@ -28,235 +28,433 @@ static const struct sunxi_desc_pin sun8i_v3s_pins[] = { > SUNXI_PIN(SUNXI_PINCTRL_PIN(B, 0), > SUNXI_FUNCTION(0x0, "gpio_in"), > SUNXI_FUNCTION(0x1, "gpio_out"), > - SUNXI_FUNCTION(0x2, "uart2"), /* TX */ > - SUNXI_FUNCTION_IRQ_BANK(0x6, 0, 0)), /* PB_EINT0 */ > + SUNXI_FUNCTION(0x2, "uart2"), /* TX */ > + SUNXI_FUNCTION_IRQ_BANK(0x6, 0, 0)), /* PB_EINT0 */ I'm not sure why all that churn is needed. Looks good otherwise. Maxime -- Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --2wajni7mcz7mizzf Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXRDEswAKCRDj7w1vZxhR xcUqAP96jDUQxD5ktA8bJadn0csZC5zu80WvAEMGgbNIXKKLTAD/U+6znAbbceG1 7MaO9SVfGDrn45QzR2JTKu4r3t/2VAw= =tGMg -----END PGP SIGNATURE----- --2wajni7mcz7mizzf--