From patchwork Thu Nov 1 06:19:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 10663517 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 ED56313B5 for ; Thu, 1 Nov 2018 06:19:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B61ED2B949 for ; Thu, 1 Nov 2018 06:19:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A75D32BA07; Thu, 1 Nov 2018 06:19:36 +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_SIGNED, DKIM_VALID,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 25B9E2B949 for ; Thu, 1 Nov 2018 06:19:36 +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=SmzCj8PZfqkkg98OqHT2KdWZ4nHxVJE/mTzrVElkOpk=; b=c9J SadYsKlxu74uwGM3e0ybaA4twv7/4EoUgn8c2smzKltiP8vGtfvAIK/npdk2pgD88vPuOLNpy+fIl 11Zzi9qg5PIUaMCaELBDqEq3HOj1M6HAq97uAMV+yfDFgoKvSDiYK89zi3V+lzmsjz1QwYOVJBwQI pZsYP+mp8cb9ZTN3+t/xKDJfbo8ANES5Weh/jdjZ8ux2dvei1H2gv++7NkCIz1KU4wNTEtJskHNJU d0fF2n+mksi8FpLD3osYDjULWVoUfsTUomyI+QzFkKXj+MxmbKORtoqJ5wP9EdnE3vNGgNR77dG/N Y+tTfT8XRjt6FjaEpPRRf2a+T9br6sw==; 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 1gI6KN-000733-IC; Thu, 01 Nov 2018 06:19:35 +0000 Received: from mail-pl1-x643.google.com ([2607:f8b0:4864:20::643]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gI6KL-00071Z-1d for linux-mediatek@lists.infradead.org; Thu, 01 Nov 2018 06:19:34 +0000 Received: by mail-pl1-x643.google.com with SMTP id p7-v6so8443074plk.5 for ; Wed, 31 Oct 2018 23:19:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=moyvFdCAg/Y6GiKMyRNN1D/UT2U6l2UAq61V8B6ZMuA=; b=Cf4aHiYDKHHtJWfXJHrAjD3oQARam/fgEIkIIAgoE1jMHvfLerUf5cyE3dZijB1MrD 2R/11mwQFTDQIz1TZaPl7HeZCEIb445zvSyTTUDNidDanH/J/KyKbb6o+ACfVMdKCkZw 290kko8Iga43mJSbvIAOVPLBChphBBp/+t/TY= 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=moyvFdCAg/Y6GiKMyRNN1D/UT2U6l2UAq61V8B6ZMuA=; b=IMuVGSKGxa517Kn6kOX7WEIotzXVO5SmD2TRBHjAtiC3Zs9mgpEQD2n6Q5aVPaiMID 4z31RKw2RcKRdvEiWtJ/6HV6bU5ofjb9rP8JF58KeLmE+ZKeVov0r0QQZGwHwTsJ1jo7 nS5FJYfhGo8Wx93rbGPI1lDmvXTrf3Og+K0+EFQ2D86dS6Wb2LBfe8XUbChDpLhiCuVx XWfNs1M/Ov9NRVlEsdketaXn2XfsxjC2wruleTvUS0lfH8+hspgstCQze1ao+gIRclEc AeUOK9W8yBGszIK+Yuls9ewNWqeY34KYDk8xQZEhxf1ugG/kssZCLUnXs/5q5zzpK50i HyQQ== X-Gm-Message-State: AGRZ1gL7eFAkpoS/XDjd/7fa1z8vcbbYMUxuoOn4tfdgOmcq/G/FMhRc uHssgbzjaoCdM9//D+akURWa X-Google-Smtp-Source: AJdET5eGbhHhZRMC7vTm/nSPxLa1wce7hfCfhtic4y2MSm0AJxRBPSbkuoQclORqeFYnc87QSfykfA== X-Received: by 2002:a17:902:780f:: with SMTP id p15-v6mr6285926pll.197.1541053161777; Wed, 31 Oct 2018 23:19:21 -0700 (PDT) Received: from localhost.localdomain ([2409:4072:900:77c6:7824:4800:6aa6:75b4]) by smtp.gmail.com with ESMTPSA id u190-v6sm71346726pgu.3.2018.10.31.23.19.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 31 Oct 2018 23:19:21 -0700 (PDT) From: Manivannan Sadhasivam To: sean.wang@mediatek.com, linus.walleij@linaro.org, matthias.bgg@gmail.com, robh+dt@kernel.org Subject: [PATCH v2 0/4] Add initial pinctrl support for MT6797 SoC Date: Thu, 1 Nov 2018 11:49:03 +0530 Message-Id: <20181101061907.20224-1-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181031_231933_088049_EE448DAD X-CRM114-Status: GOOD ( 11.02 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, amit.kucheria@linaro.org, linux-gpio@vger.kernel.org, linux-mediatek@lists.infradead.org, Manivannan Sadhasivam , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patchset adds initial pinctrl support for Mediatek MT6797 SoC. The pinctrl driver is based on the vendor binding as like MT6765 and implements only GPIO and pinmux functionalities. The devicetree binding document consists of pinmux, pinconf and interrupt functionalities documented since the binding should describe what the hardware is capable of rather than what the driver offers. This patchset has been tested on 96Boards MediatekX20 development board. Thanks, Mani Changes in v2: * Added devicetree bindings for Pin Controller * Dropped the applied warning fix patch * Added Tested-by tag from Matthias Brugger * Added Acked-by tag from Sean Wang Manivannan Sadhasivam (4): dt-bindings: pinctrl: Add devicetree bindings for MT6797 SoC Pinctrl arm64: dts: mediatek: mt6797: Add pinctrl support arm64: dts: mediatek: x20: Add pinmux support for UART1 pinctrl: mediatek: Add initial pinctrl driver for MT6797 SoC .../bindings/pinctrl/pinctrl-mt6797.txt | 74 + .../boot/dts/mediatek/mt6797-x20-dev.dts | 2 + arch/arm64/boot/dts/mediatek/mt6797.dtsi | 21 + drivers/pinctrl/mediatek/Kconfig | 7 + drivers/pinctrl/mediatek/Makefile | 1 + drivers/pinctrl/mediatek/pinctrl-mt6797.c | 82 + drivers/pinctrl/mediatek/pinctrl-mtk-mt6797.h | 2430 +++++++++++++++++ include/dt-bindings/pinctrl/mt6797-pinfunc.h | 1368 ++++++++++ 8 files changed, 3985 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/pinctrl-mt6797.txt create mode 100644 drivers/pinctrl/mediatek/pinctrl-mt6797.c create mode 100644 drivers/pinctrl/mediatek/pinctrl-mtk-mt6797.h create mode 100644 include/dt-bindings/pinctrl/mt6797-pinfunc.h