From patchwork Sun Jul 29 18:25:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: saravanan sekar X-Patchwork-Id: 10548275 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 C2A50112E for ; Sun, 29 Jul 2018 18:27:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B431128867 for ; Sun, 29 Jul 2018 18:27:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A661A296D2; Sun, 29 Jul 2018 18:27: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 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 451E028867 for ; Sun, 29 Jul 2018 18:27: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=quJ35UEMKeHjtnRazXZfuTOjDq4lmhHT2faFuEY2DEQ=; b=HnF a7HoNLw7Z/lweeynupuf6LPGTxw3ucKHy9k6FL1bWmcKQdros1zGIXtIzJCbiIBzLcA4n3TLaAbzq pF7fjGhLc0WXIidNoRRUkqtD1SXg2vVXC/INAOI47RTgAMJy/RY9X6iSepQ8YNTF67RPTcYe3qGGr ymA3k6qSi90p05FG5s15zL/W5csWXQGjqKf4flNpMSX/ThrLtg3YUyd+W6xJcj50ivX9BSgLXl8pK sZ99OkcNmp46eiJ93ti8xbfx0wu78kctnQGZybN2qPAQVTrSmZ2DrqBDSPyOrqrc8WlbsvD1lnGN5 RbCxpQEM9Jassz7bD2mTQ8WSoo2TPrw==; 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 1fjqPC-000602-Hf; Sun, 29 Jul 2018 18:26:58 +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 1fjqP2-0005o7-0S for linux-arm-kernel@lists.infradead.org; Sun, 29 Jul 2018 18:26:50 +0000 Received: by mail-wm0-x244.google.com with SMTP id l2-v6so6501991wme.1 for ; Sun, 29 Jul 2018 11:26:37 -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=Tj43NRWwO0pqgC1FeTFRBEe9+4k0aBlHopCe7Wz5ysM=; b=aE08xj7zvCfSZzNAKSky9/m7kAmDNIO7nu6zxTRQy+tYO0z/WLsDBvD83NrLj5d8t0 OnVA0hgbJRfbtEyf8X6DjC6s9uNKsnLfW+9oiXNCKGiaGt18UkcYJEq0CExC4Pkv9YvW BVX7fj51xS0p2+DKKncTiIp3x3D/q+j0b0iIyC3ZoU0MssaSrtc1vQWKq/GQYdnDtaUI oW5w2NaAWqNfwRCQYxhgIvAPtIO98w5xGR8hJYwLSyt7XUmAdK3w8FjxQ5GyYcNbPKvi TBSgwuID/ENIW7zNufgHV13Y5+b227hKGDqU1yj3OHimZVv/Mkt4eErijFonRw69B7bi OT5w== 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=Tj43NRWwO0pqgC1FeTFRBEe9+4k0aBlHopCe7Wz5ysM=; b=cPctHDzydmTVEXlE3ZYN3vS7LVjxPf0HAIksMdrvPcRlgiC4cWDwAtS5RttiH6D2DM eA04OCHLOZ6+uIBb8S5dtuMDSBxv4X+34tCtW9kw5vK86nBNRPSEF4TzmdldBNRu03MK ay8M3W0sB2Z5MBaevI8hIWGLfE1XguGSSMwcYrgX7wGLppPI/LFo7u/WLQz5q2SW5yEL NFIOtUFHU6BlcHBWGz5AWW1MQhoVWQdO3nMgKmKtC0yMZBB9kBJ0FnOVzLXoR9tA0nkl GPD3Ka7F7SOy9RUC4FYFY2hTWq1pQ8i7bvpwLqVsc4B19+inpQwDkAK5ZQ6tfRwu1jKK uNSQ== X-Gm-Message-State: AOUpUlHjHkiRv2OUbhST6HLMFw6gZYIfQPCsWJr77N+sC2xDsprui52r l3JGtsGy12WOnFLPk3yJDG0= X-Google-Smtp-Source: AAOMgpfOzF9i7JrGjhmhaQQchwnTrcSaSC41yiBW6/TJi3LlGbAMH/GXsVy+kYj9LHp1NLk8qMoXnA== X-Received: by 2002:a1c:3b05:: with SMTP id i5-v6mr12698479wma.57.1532888795851; Sun, 29 Jul 2018 11:26:35 -0700 (PDT) Received: from localhost.localdomain (p5DCFE1FB.dip0.t-ipconnect.de. [93.207.225.251]) by smtp.gmail.com with ESMTPSA id f6-v6sm8985217wrp.30.2018.07.29.11.26.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 29 Jul 2018 11:26:34 -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 v2 0/5] Add Actions Semi S700 pinctrl support Date: Sun, 29 Jul 2018 20:25:46 +0200 Message-Id: <20180729182551.19383-1-sravanhome@gmail.com> X-Mailer: git-send-email 2.18.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180729_112648_054397_202605A8 X-CRM114-Status: GOOD ( 11.73 ) 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/ 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