Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp819132imm; Wed, 19 Sep 2018 07:24:55 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYzwtzo4Ubtw1x0O2Ineqtw6OwazQTcgGuL7LVwUbueQA5ElHkVrOJX+RISAVBT4+hb5b+b X-Received: by 2002:a17:902:6b44:: with SMTP id g4-v6mr35100080plt.50.1537367095422; Wed, 19 Sep 2018 07:24:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537367095; cv=none; d=google.com; s=arc-20160816; b=swZ9Y//VXncELzTkyH6xShn8dW4cP7jZCqgpp0zPU98n/XF/j3eeWNY6w0fTmzcKIM V7HkdV+bJ/WmGpL/UxDleN7Ilf3zUaDQd4coeQ0EExwfH6TWjPpVllnyWWdi6R9ubHaT f7Kr6hmT8RsFbaX+Jdbf/obg4ZSZjb0BGlfSQFxf7T3jLdCXk0Fuidw2kn69TpBBX8W2 Lqg+hV80DUIlMkytnz/+Vj04nTatZEenD02nT9E63w9DPSfiSzhW/UBx8iQ2jnGGFAo0 CATAdejqqFS/O5iEj6AjBPfUhciBlqrVOKyPMGP7vMxdW/YG282CcxqcTOtmjJ4/Biq7 QWZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=OrvD/ATf8fwsnzkJyjfey3F49f85NauwZ9sBhywC85k=; b=m4U/VRCqMXKLfKkcmmWbd4irVHO3LFMTO7/wCfeqboeMXG9NHMKry0jEqAQ+Bt9vNh zNcbjOvheRoftKqCey2zxNrSoViOENNQ3C0Yx+64Wa/gPN0jlcp7TUSSsP5BevZJ5HlI s9dkHJiKWPmpdP9dztXHe+DVefius+LoYZvvOjP99/fIcldQ9MWwvtuK4u7x9+2HItBn fk50pfb1cf499rolGZx+iZ5hCmgxdmS8TvuLgswneSC+A8lJAu//y6nQdsT8VuM29AEW n9WMpi3eYI3upud+ZeRUjE18oc36K8bnLDYPxm3tfYXDXRtvRlahmB2AmEAeq77NBErB +qAA== 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 w3-v6si20883716plz.333.2018.09.19.07.24.38; Wed, 19 Sep 2018 07:24:55 -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 S1731778AbeISUCD (ORCPT + 99 others); Wed, 19 Sep 2018 16:02:03 -0400 Received: from relmlor4.renesas.com ([210.160.252.174]:50359 "EHLO relmlie3.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727825AbeISUCD (ORCPT ); Wed, 19 Sep 2018 16:02:03 -0400 Received: from unknown (HELO relmlir1.idc.renesas.com) ([10.200.68.151]) by relmlie3.idc.renesas.com with ESMTP; 19 Sep 2018 23:23:51 +0900 Received: from relmlii1.idc.renesas.com (relmlii1.idc.renesas.com [10.200.68.65]) by relmlir1.idc.renesas.com (Postfix) with ESMTP id 9B44C8F3B4; Wed, 19 Sep 2018 23:23:51 +0900 (JST) X-IronPort-AV: E=Sophos;i="5.53,394,1531753200"; d="scan'208";a="291360259" Received: from unknown (HELO vbox.ree.adwin.renesas.com) ([10.226.37.67]) by relmlii1.idc.renesas.com with ESMTP; 19 Sep 2018 23:23:48 +0900 From: Phil Edworthy To: Geert Uytterhoeven , Laurent Pinchart , Rob Herring , Mark Rutland Cc: Jacopo Mondi , Linus Walleij , Simon Horman , linux-gpio@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Phil Edworthy Subject: [PATCH v4 0/3] Renesas R9A06G032 PINCTRL Driver Date: Wed, 19 Sep 2018 15:23:43 +0100 Message-Id: <20180919142346.25468-1-phil.edworthy@renesas.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This implements the pinctrl driver for the RZ/N1 family of devices, including the R9A06G032 (RZ/N1D) device. This series was originally written by Michel Pollet whilst at Renesas, and I have taken over this work. Main changes: v4: - Address Jacopo's comments - Add alternative way to use the pinmux prop. - Remove mention of gpios. - Implement pin_config_group_get() - Fix function to get pin configs, i.e. return -EINVAL when disabled. v3: - Use standard DT props instead of proprietary ones. - Replace virtual pins used for MDIO muxing with extra funcs. - Use pinctrl_utils funcs to handle the maps. - Remove the dbg functions to keep things simple. - Change the way the functions are defined so it is easy to check against the hardware numbering. v2: - Change to generic rzn1 family driver, instead of device specific. - Review comments fixed. - Fix error handling during probe Phil Edworthy (3): dt-bindings: pinctrl: renesas,rzn1-pinctrl: documentation pinctrl: renesas: Renesas RZ/N1 pinctrl driver ARM: dts: r9a06g032: Add pinctrl node .../bindings/pinctrl/renesas,rzn1-pinctrl.txt | 153 +++ arch/arm/boot/dts/r9a06g032.dtsi | 8 + drivers/pinctrl/Kconfig | 10 + drivers/pinctrl/Makefile | 1 + drivers/pinctrl/pinctrl-rzn1.c | 951 ++++++++++++++++++ include/dt-bindings/pinctrl/rzn1-pinctrl.h | 141 +++ 6 files changed, 1264 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/renesas,rzn1-pinctrl.txt create mode 100644 drivers/pinctrl/pinctrl-rzn1.c create mode 100644 include/dt-bindings/pinctrl/rzn1-pinctrl.h -- 2.17.1