From patchwork Tue Jul 31 19:47:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: saravanan sekar X-Patchwork-Id: 10551229 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9079E157D for ; Tue, 31 Jul 2018 19:48:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7EBB42B19B for ; Tue, 31 Jul 2018 19:48:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 721522B19E; Tue, 31 Jul 2018 19:48:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 15AB92B19B for ; Tue, 31 Jul 2018 19:48:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=a3IfAJssSrm+lwNcDjyhmFD3YWOhD0DpiSGu9fBjBM8=; b=JWtp2x6lMtdzfV/7xVIRB1SV9C 7Ln++yVLIfxF+terJGFVzJThmfmnKsdRMMRiXqTeCa8FNtneGsdYxVhQb9e8lWNFSr8kOjp9ZcQsm yjO+TtBYSsQqPhsqNfsWtVhjrzuO+Cf7jK2uIvuBa87nGggIe8m3osO4uNM0xfBAxgzmwXgKqgeXP Xejp7jTxwX/6oNuKYGWfsfiHikFXyHZBtpAogBR6qVUcpE+Zk7FyDx52Vnl275tYtIEpiPg9KOwsK ooJvrqUi2vBho0VsTwf9N91++WAIB1+iVqfnakyFmHuhGuO0mbqvMYefsF4/8WOGxFkiIEqHzePHm mYvF+9uw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fkadJ-0005JG-Eb; Tue, 31 Jul 2018 19:48:37 +0000 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fkadF-00057O-Vb for linux-arm-kernel@lists.infradead.org; Tue, 31 Jul 2018 19:48:35 +0000 Received: by mail-wm0-x244.google.com with SMTP id o11-v6so4343763wmh.2 for ; Tue, 31 Jul 2018 12:48:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=bWdqMld/i5K3K1vegGZzaqGIvZRP5WuoGPzyJw7Lts8=; b=TTYim38qzTTwCIvWtqThg8V1srfHQbJKoPA25FM6zCgIUwaVStbZX9DOGn5OEoq7Cx 28q4W/FSs0nZBn8/OD7iapBZSwWWdF/Wl9PZXGb+p/R4rP4z8aEDFSNO0fG8J1uaTJR7 oG0RjJduQ3NIp7RmLXzfz2gaykQXj2pB+vSu3yi/43gto3CLM3E5gj7LJZEBwSO3VYw0 QHfabBQJqViwRTNmDx/G89fgzqXi28v4hb67AFJSEwCuoI8B3HGXyRaEBViwmNVMl2yS s1MhSGQXP0hS800FcuX7B0hxsjZtKBV9sMuESIRgIi0JOsfEpTiKlbrLo1fQ2XxVjy1I VPMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=bWdqMld/i5K3K1vegGZzaqGIvZRP5WuoGPzyJw7Lts8=; b=nl7ACl+NOBs0NNDSvkc0loYUBpC16OfZQTi6h6PVJrA5Jt5n+7qtjFiLRyOXPUtMDG fhlhcQcBdmPm0810jJQuj7bVp5LU0LERMaDNKWanBJjB9rC1MG5n9c+U6XddycUagqIm oUOT3pRoRrh6y4a4K4d4PFEJxzDemoejqjBOSQ8DTcM2PDqOH1uciT12TMbdV5fMD21A f6Zen/nUw5jiZUYvsDcJbfbzOtMK+K/HJQYrnZOipOgc6fFdzo8wYunBl0FQZpKla7Op 9cfnOu5HiXjTgf+rAwkYahXPIF6Ufq/Ms9zivPnZdOHfvVq/mZ6Ynz/QoYF0LQb6sqEr EfCw== X-Gm-Message-State: AOUpUlHIGmk75f9xALuM9VWBctdXruTvKTEEZvX4MAzOy3megaVYSiwb ZOrMTVb6DN1SjvLYDCoLck8= X-Google-Smtp-Source: AAOMgpdO26pSJGKA046fpCJDm9a1zuTGpxR7z1J1I1JtPHsVwTv7NQLBfRTJgrwkQht5/amvRSvk1Q== X-Received: by 2002:a1c:148f:: with SMTP id 137-v6mr650096wmu.61.1533066501808; Tue, 31 Jul 2018 12:48:21 -0700 (PDT) Received: from localhost.localdomain (p5B3F73FD.dip0.t-ipconnect.de. [91.63.115.253]) by smtp.gmail.com with ESMTPSA id z1-v6sm2444829wmf.5.2018.07.31.12.48.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Jul 2018 12:48:20 -0700 (PDT) From: Saravanan Sekar To: manivannan.sadhasivam@linaro.org, linus.walleij@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, afaerber@suse.de, catalin.marinas@arm.com, will.deacon@arm.com Subject: [PATCH v4 0/5] Add Actions Semi S700 pinctrl support Date: Tue, 31 Jul 2018 21:47:38 +0200 Message-Id: <20180731194743.13678-1-sravanhome@gmail.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <0180729200038.11795-1-sravanhome@gmail.com> References: <0180729200038.11795-1-sravanhome@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180731_124834_024983_01BB18B3 X-CRM114-Status: GOOD ( 12.75 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux@cubietech.com, Saravanan Sekar , jeff.chen@actions-semi.com, linux-kernel@vger.kernel.org, thomas.liau@actions-semi.com, linux-gpio@vger.kernel.org, mp-cs@actions-semi.com, pn@denx.de, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patchset adds pinctrl support for Actions Semi S700 SoC. Pinmux functions are only accessible for pin groups while pinconf parameters are available for both pin groups and individual pins. pinctrl driver is verified using the Cubieboard7. common functionalities from s900 is moved for all Actions Semi SoC's usage. Common pad control configurations are moved to SoC specific dts entry for pinctrl depends on clock driver which is still under review: https://patchwork.kernel.org/patch/10533959/ Thanks, Saravanan Parthiban Changelog in v2 - GPIO Interrupt support is added - Device tree entry for GPIO and Interrupt configured - GPIO and pinctrl define reorder, commit message findings fixed depends on owl GPIO Interrupt support https://patchwork.kernel.org/patch/10483477/ Chnagelog in v3 - Fixed 0-DAY bisectibility error Chnagelog in v4 - Fixed 0-DAY sparse warnings on static declaration Saravanan Sekar (5): pinctrl: actions: define constructor generic to Actions Semi SoC's pinctrl: actions: define pad control configurtion to SoC specific dt-bindings: pinctrl: Add bindings for Actions Semi S700 SoC pinctrl: actions: Add Actions Semi S700 pinctrl driver arm64: dts: actions: Add pinctrl node for Actions Semi S700 .../bindings/pinctrl/actions,s700-pinctrl.txt | 170 ++ arch/arm64/boot/dts/actions/s700.dtsi | 16 + drivers/pinctrl/actions/Kconfig | 6 + drivers/pinctrl/actions/Makefile | 1 + drivers/pinctrl/actions/pinctrl-owl.c | 71 +- drivers/pinctrl/actions/pinctrl-owl.h | 142 +- drivers/pinctrl/actions/pinctrl-s700.c | 1925 +++++++++++++++++ drivers/pinctrl/actions/pinctrl-s900.c | 205 +- 8 files changed, 2337 insertions(+), 199 deletions(-) create mode 100644 Documentation/devicetree/bindings/pinctrl/actions,s700-pinctrl.txt create mode 100644 drivers/pinctrl/actions/pinctrl-s700.c