From patchwork Sun Jul 29 20:00:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: saravanan sekar X-Patchwork-Id: 10548289 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 B26F91751 for ; Sun, 29 Jul 2018 20:01:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A2B5629715 for ; Sun, 29 Jul 2018 20:01:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 95F2F2971F; Sun, 29 Jul 2018 20:01:39 +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 2C4F629715 for ; Sun, 29 Jul 2018 20:01:39 +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=S51lb1+x1JE6zH1n/DIh2YI+oFBY4K0bjGRY/3aTNLw=; b=XEoFmkuOo9agMc3BSl9m6IO61h pJKJR2Frw30whdT7IeIoK75ZP54Q1MemVDuiSIIuPkYLTT4r7+6AoIxLprrI757QbvnUMmxNrKb7y /qrH7DUZ0wIGdpS8KRdlPUIABlImhPj44XnJDxmonIYgotw3GX/r/c2oz3mM7YBljPeC6c3X7mTAy WKFhGp7ic2uwDXDdPJYb28oMb9ZfyX5VA0DPABPIHreqUq6x/Z5leiaZ1TAyqjrzKpjFZOVHQWqxI 50LEyI1u0VjjT9ykXmVnRuJFH0sA/9Gtj2nPMTO5JhtUahtphFo9JQpZutBoBIZQ4iP4eCIbl5fNR uwW5n2ZA==; 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 1fjrsi-00067z-NW; Sun, 29 Jul 2018 20:01:32 +0000 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fjrse-000647-Qk for linux-arm-kernel@lists.infradead.org; Sun, 29 Jul 2018 20:01:30 +0000 Received: by mail-wm0-x243.google.com with SMTP id n11-v6so11312253wmc.2 for ; Sun, 29 Jul 2018 13:01:15 -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=1e/Z6iDtW29Zz88e4CLIZEz9d8fpoppz46fhoPYktZo=; b=KS+ypCvRgNfR5zrpJzYy46CCbOZ0q52V7XhqspB8qNzmYFC9Yxv9o64HRqrkxcw73y nT1xFlxTkMK39Vq02L3LDMKraFwdLagAovb72+CUo1aWgnGMgpybNcXe0djgoBmVUHym 16mOfzHYbgRvslCxrLUFiYpG38Ysisx0L8H5om+8KIoWe7nLW2Pqbmq4aVyW/NYFFFvI tYTLrUcTZ6qChAwVoUwMdM251POdz7MqfwCUtIBID2oz1j+5lrlP0JsA7AKK9Ywnem6M ZRiBjR4mKNu2P6g2r1pqwumJVf0g0gviPkFtLCNM+i17PJbyfoZ42o6w44AW27nz+sU+ lIkQ== 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=1e/Z6iDtW29Zz88e4CLIZEz9d8fpoppz46fhoPYktZo=; b=Uwj+AzRRD47k0VePMQGUMCgCYnfUfRKgW9QWb5JgmoiXFpC6H/3FWeJs52/UNi43UH dmWBQlH2UD/ZakEiI+TnaneXWsX2+iJPKK2v9g7ta9fWGEQntW+Inqi95wlTtH5+jbgy 2+ouVkxfqCe8eT2QWlX2jRbaOLuNXluQ5m7ARcnX9xTHRYY6dM6/Q424k+J4lslAhAp3 iWifJf4JR6BWGSmN9W12MZOranpn643mwkpik1FGqeZn3YHNAkvvJYS42CESrnjxmDVG Mji2ADWmWSyyUr1zeFeDRXfO4voloaX/CV3+4WDgSyIj4wl1srOZCKaVC1u0+hkm9IjT pm5g== X-Gm-Message-State: AOUpUlFFPdQZueS8UStc/ncDCy9bg23i/7f78CfUixoAqFwd0bITCLXE NknzSRjr5lWtyCdMi6Vx8Nf2pOMskb4= X-Google-Smtp-Source: AAOMgpewoh4/G6k1RISZVW/tEf1s45NBM9Mjz9HtDIvKI2g0y+Hu2TdIEJWoEAYrmUQdmdZBckVMCA== X-Received: by 2002:a1c:4d16:: with SMTP id o22-v6mr12115483wmh.49.1532894474666; Sun, 29 Jul 2018 13:01:14 -0700 (PDT) Received: from localhost.localdomain (p5DCFE1FB.dip0.t-ipconnect.de. [93.207.225.251]) by smtp.gmail.com with ESMTPSA id g15-v6sm12334213wrh.48.2018.07.29.13.01.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 29 Jul 2018 13:01:13 -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 v3 0/5] Add Actions Semi S700 pinctrl support Date: Sun, 29 Jul 2018 22:00:33 +0200 Message-Id: <20180729200038.11795-1-sravanhome@gmail.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180729182551.19383-1-sravanhome@gmail.com> References: <20180729182551.19383-1-sravanhome@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180729_130128_874243_4EBEA4E7 X-CRM114-Status: GOOD ( 13.10 ) 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 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