From patchwork Wed Aug 29 08:24:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: saravanan sekar X-Patchwork-Id: 10579649 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 D356B14E1 for ; Wed, 29 Aug 2018 08:25:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B9BAC285D1 for ; Wed, 29 Aug 2018 08:25:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AC9B12954D; Wed, 29 Aug 2018 08:25:03 +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,RCVD_IN_DNSWL_NONE 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 40E38285D1 for ; Wed, 29 Aug 2018 08:25:03 +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: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:In-Reply-To: References:List-Owner; bh=/cucGexnDGiQUr0X9euYOL3w+g9KYILeXGexAcS4bYw=; b=tmM AhxQqRCH4jt3IV69+0RgEsZ8NJZk7ZBRs7hiENkRwhZxredS4I8oClmJKrdboyqmUW8ES6bu3Ji/e Oq0jbfcAOw9RADHHkgBrACvK43MA1aZ82O3TMt4IoildcJvuVFQ60e693AwRzqbqLqung5FM43HPp gb6WG0oZZbV4Ole2+wUH4VA6oi1XP8eEevFGzj6h7WsFWc3uKBiL48pH7ERR4TIFOUeVY57OyAOzO Nlx6kqiafO0le7/F1F8H7Tv3ecCDTSDqQ1p0oVkDZIS4yk71bX4IY/bjpZmjhspais+SeHEnT3hPP dAO0vrxlWF6xW914KxDd4o7dgeiSDxA==; 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 1fuvmR-00083t-AE; Wed, 29 Aug 2018 08:24:47 +0000 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fuvmM-00080p-6k for linux-arm-kernel@lists.infradead.org; Wed, 29 Aug 2018 08:24:44 +0000 Received: by mail-wr1-x443.google.com with SMTP id g33-v6so3942758wrd.1 for ; Wed, 29 Aug 2018 01:24:31 -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; bh=XtYRjlhiKvEpjJetczLkLlsMnUaCN4xaDfrvFFQKH9o=; b=gMzbE7Tx9iuQCtTcb8B3FPVab6qz0YdA6Vh2LHz7OawXSrCvDAY0SMdB/4PyVZRe8T cFEaqqqvjBRIAFa3rJVKY8FvkrNqSSQHjs8fk1uePT05jYG1OxSEOpw7NUmFqMdZjcs8 fMJrj2qiOu4JFNRBnhQzNIOa2zO8XwEoub0+DXPOWe4P+XNVyI6Zn+lv+GxLSMipgSvx P1Vx9OtAPShNkyrlHGoNDox5bDN0uPMt9UhZHPf93IsY+MSAZp/UYekff5VGbRs8Vytg ZdIcPHbvI1gHvHj0nHqx14w3nEzUlHKlHRGTY4izIcVX8Se5Vc5Q/uPdyR8mN41Ki0ZE 8uiA== 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; bh=XtYRjlhiKvEpjJetczLkLlsMnUaCN4xaDfrvFFQKH9o=; b=S9PQ0yMhIetGfUn8flUPsItaJsuytEGDlZrXdvTc0SqBMoACynaoc7T412vGgn4/bf l/h3XEMX1FmIm4TuHTR7yIeT2oujQ5liZoFWBkRHI8i1L+JoIqHgLcp7ZdmEzT6DZayr LjhAq3J/WdfzQKftZ3y8/+004z5m8nAi5TO/1zRfBA5cFSa5Q/MgRV/7dBMfAl7QsdIp uOpPwc586nJ0qaH4DBFMysnjSI4nN525Q/hpkOk0TVc/gMeJwW7zvd8hlspwj/4O21T1 60nFIlasdRuUlwe55jeIljtTP0gBa0mSGq7yRKB77l7Haf9p+QZmFmFaz8CjHc/QLbPp 3fHQ== X-Gm-Message-State: APzg51BPy0yU3dFHJEmxEGEeJyM85fLUFXOROrhT0cQZhemBPbuiiX93 TguhujJrFuLNp7yTp2huXnM= X-Google-Smtp-Source: ANB0VdaTcllByKNPkdAiByLvgPOMvSAcGXQ1pjA7pzt+dUMjyzw8bZf5azahG1eQL62rc/w2Lvrxug== X-Received: by 2002:adf:b609:: with SMTP id f9-v6mr3367905wre.14.1535531070215; Wed, 29 Aug 2018 01:24:30 -0700 (PDT) Received: from xpert.denx.de ([62.91.23.180]) by smtp.gmail.com with ESMTPSA id g7-v6sm3013025wrw.30.2018.08.29.01.24.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 29 Aug 2018 01:24:29 -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 v5 0/5] Add Actions Semi S700 pinctrl support Date: Wed, 29 Aug 2018 10:24:08 +0200 Message-Id: <20180829082413.2512005-1-sravanhome@gmail.com> X-Mailer: git-send-email 2.14.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180829_012442_275961_EAB571D2 X-CRM114-Status: GOOD ( 12.66 ) 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 Chnagelog in v5 - Rebase to mainline 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