Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1793997imm; Thu, 14 Jun 2018 04:06:00 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKJDL31N8tK5LLIwyKiPtt4upDzAPeaIQWjgluTcApIyMIJSqR/RCbxG8uHCGd+8sSc0POO X-Received: by 2002:a17:902:b494:: with SMTP id y20-v6mr2472714plr.136.1528974360460; Thu, 14 Jun 2018 04:06:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528974360; cv=none; d=google.com; s=arc-20160816; b=Auq+kkL6uxcK4gNfvtNMWsdtWoH15kcpFVO1v/N33Fs9pqnEClUpGJ5LRS+edNFoxh ZtExTLnVpshbEfHUgsAf3hiPGZfruwKMcwiC+F2eUlY8l1LJvKws7ndUX0qktddgrnOe qZkciDbYGprrgwpHQ3sGzBWoiiUd8SeZwf1MsWLXrXXF1RRYBuiNFSvNrRR4HWUPbkml BaL4yWqCbvkWwjaFzlqCicQVUdGvLgnIEmnr8yWcqNI+cVoecPdp6u37eKU2pxveO6hj CZLCJfn6Vb+lfXzgdodv91d3KAPBQw0wa9dApbA8CGijvD9tYpA7StzmMSGzxVZdtrnI 4/eA== 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 :arc-authentication-results; bh=ZyvzkeBXt5PHkCTkSGUZBodxq5D4MpNDks/gS80xmo0=; b=uZFTvZTVvwbcLz6xsY1MV5oifdr5HS4LfuU8IBBcEeFb8yu0cysrpJFhV4hwbBaZwu TBnMEyrKnK3wIzRGPcMP7a0XaODYidQDJ/5a4H/wn44pPQTWmbjCPq0Cvswiw90Kp9jH tON+TQj4iMrI1bBnQ780c+Egn9H8Zp9RuzqhMQgGR++USP1gA0pO3z5DYBhJ3l+t7hnW ICFbyCcKJ61IjaM8wLRSztQVS/fQ1h2ycQ/bwOetUaa6Sj89Fv3dHDPQjNH3AVWRxfm/ oIi/+TRip4PL6aRSCW+IHxML0pF0TZWJwx/ePhNxUorJBUr8B8ZBUs/1mCK/M1jFmDHV pHPQ== 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 x15-v6si4942299pfk.25.2018.06.14.04.05.46; Thu, 14 Jun 2018 04:06:00 -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 S1755184AbeFNLFX (ORCPT + 99 others); Thu, 14 Jun 2018 07:05:23 -0400 Received: from relmlor4.renesas.com ([210.160.252.174]:15754 "EHLO relmlie3.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755180AbeFNLFU (ORCPT ); Thu, 14 Jun 2018 07:05:20 -0400 Received: from unknown (HELO relmlir1.idc.renesas.com) ([10.200.68.151]) by relmlie3.idc.renesas.com with ESMTP; 14 Jun 2018 20:05:19 +0900 Received: from relmlii1.idc.renesas.com (relmlii1.idc.renesas.com [10.200.68.65]) by relmlir1.idc.renesas.com (Postfix) with ESMTP id 106287549B; Thu, 14 Jun 2018 20:05:19 +0900 (JST) X-IronPort-AV: E=Sophos;i="5.51,222,1526310000"; d="scan'208";a="282525840" Received: from unknown (HELO be1yocto.ree.adwin.renesas.com) ([172.29.43.62]) by relmlii1.idc.renesas.com with ESMTP; 14 Jun 2018 20:05:16 +0900 From: Michel Pollet To: linux-renesas-soc@vger.kernel.org, Simon Horman Cc: phil.edworthy@renesas.com, Michel Pollet , Michel Pollet , Linus Walleij , Rob Herring , Mark Rutland , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 0/5] Renesas R9A06G032 PINCTRL Driver Date: Thu, 14 Jun 2018 12:00:16 +0100 Message-Id: <1528974029-29617-1-git-send-email-michel.pollet@bp.renesas.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org *WARNING* -- this requires: + R9A06G032 base patch v9 + R9A06G032 SMP patch v5 This implements the pinctrl driver for the R9A06G032. Apart from the file names, I had to keep using RZN1_ as the headers etc are already extensively in use -- u-boot, vmworks, cm3 code and threadx use these constants and the base support to implement pinmux on this SoC. Also, there is an existing pretty extensive webapp that allows configuring the pinmux externally that generates either source code (for non DT based OSes) or an included .dtsi file for board specific configs. Note, I used renesas,rzn1-pinmux node to specify the pinmux constants, and I also don't use some of the properties documented in pinctrl-bindings.txt on purpose, as they are too limited for my use (I need to be able to set, clear, ignore or reset level, pull up/down and function as the pinmux might be set by another OS/core running concurently). v1 + Just supports fhe UART0 on the DB board. Michel Pollet (5): dt-bindings: Add the r9a06g032-pinctrl.h file dt-bindings: clock: renesas,r9a06g032-pinctrl: documentation pinctrl: renesas: Renesas R9A06G032 pinctrl driver ARM: dts: Renesas R9A06G032 pinctrl node ARM: dts: Renesas RZN1D-DB Board: Add UART0 pinmux node .../bindings/pinctrl/renesas,r9a06g032-pinctrl.txt | 124 +++ arch/arm/boot/dts/r9a06g032-rzn1d400-db.dts | 13 + arch/arm/boot/dts/r9a06g032.dtsi | 8 + drivers/pinctrl/Kconfig | 10 + drivers/pinctrl/Makefile | 1 + drivers/pinctrl/pinctrl-r9a06g032.c | 890 +++++++++++++++++++++ include/dt-bindings/pinctrl/r9a06g032-pinctrl.h | 191 +++++ 7 files changed, 1237 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/renesas,r9a06g032-pinctrl.txt create mode 100644 drivers/pinctrl/pinctrl-r9a06g032.c create mode 100644 include/dt-bindings/pinctrl/r9a06g032-pinctrl.h -- 2.7.4