From patchwork Mon Oct 8 19:14:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 10631321 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 E07AF13BB for ; Mon, 8 Oct 2018 19:16:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D103A2848B for ; Mon, 8 Oct 2018 19:16:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C4F1C29A57; Mon, 8 Oct 2018 19:16:43 +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 4561E2848B for ; Mon, 8 Oct 2018 19:16: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: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=LX8gQLwDb1Sd9zOuU+ne3uMxj8CesmepRobQi4CZh4E=; b=FtN 25gpyRoXzA6tzMT3+0Xwn99WuIApctW4d8+HKFEWzCmlObnTKr9rk7wHEBShC5reI0LSpWndLV+6r 9G9J7EKV0/sradQzbF2uDfPGSDNUfBnTnBimNJ/3pxKqu9dMmG82ns3UP/ESVujJnh64zP/nABdhU nTNEkLyihMtgXSbqFu1rxYS0i1iGEWEs3r/ReOMkk8JM8v3YB/QHp5r6aaYP131Isis1EZxCYzruv Hfe/M4szjuaqDx4SQ6y8NOnxHwXRyya8onAY5acg/NQQlgKczT5OL1Jy4ludX9f/8yNbQMBgGwD2X /NIoR9/dhG3SIlrhAKjkyPPX+1I8T6Q==; 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 1g9b18-0004GJ-Ae; Mon, 08 Oct 2018 19:16:34 +0000 Received: from mail-pg1-x541.google.com ([2607:f8b0:4864:20::541]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g9azI-0002C1-HM for linux-mediatek@lists.infradead.org; Mon, 08 Oct 2018 19:14:42 +0000 Received: by mail-pg1-x541.google.com with SMTP id n31-v6so8248617pgm.7 for ; Mon, 08 Oct 2018 12:14:30 -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=D1Fso1WTOfCgA486lBMa6IWQvrNF27QUPQhpIjOG/4o=; b=cjTCXaOf9jei7LtBWh+OH2svB+9ryaJE9mxYHVWdNcgigI2+ePywLfUeE8Q7XHmSwN oYar70YtC+1XyKkcLEZPKtl+h2O3ebyUyYMsjub53sEObpa2niBn2RuYB7xk0HCSJBce 4ycFKbdvJyM23V/sf0BTm0O+RDWouO5GinXYw= 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=D1Fso1WTOfCgA486lBMa6IWQvrNF27QUPQhpIjOG/4o=; b=pcFi+M+rYb1Zjf96bvxZpTagLuyOFRljP2FVIalRqz4hMszKRqDaq+if8MxLC+P54w XnS5Rx1gKJkdgzeBHTt2xlotZ1egQSY8s5VJtKUr0UJc1UFO0Dq6pgSL6bZ4lK65qbqJ uugXowGpms4CnaIb+UAo0hM2dWF5L+Nr/EBK8sRyZuY4QiDwJqATEdW3Z8cJYYSMH6jI TYUsJ15+Jz8H1IisF8sAuExpvk1Gxv12zq9YTlv/LekF+0Bk8DLSxxeGqZRguvMZMxnN vIAm6MLeWNKallYPhf94uBCGnAQMW6W+dNMlbA/kAnhazZpNTVyg8qjwEdUoqZg4PWdg bB6Q== X-Gm-Message-State: ABuFfohcsOpkP5eg+SWC12MwOq54Ntc7jgJGTRqbQ9T8s5V08N1e8sPT KVK0s8xQ8bsQNP+IXe8APZnO X-Google-Smtp-Source: ACcGV61V6t0E46F4XOY9/IjLf01giqGrnZVxMQZG0S762fNp9dsaD2zVgA9i3S7lMJpS4N6KD73SCg== X-Received: by 2002:a62:1dca:: with SMTP id d193-v6mr7136962pfd.157.1539026069754; Mon, 08 Oct 2018 12:14:29 -0700 (PDT) Received: from localhost.localdomain ([2405:204:73c6:20ea:9fd:1785:d893:1e98]) by smtp.gmail.com with ESMTPSA id a15-v6sm15648035pff.8.2018.10.08.12.14.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 Oct 2018 12:14:28 -0700 (PDT) From: Manivannan Sadhasivam To: sean.wang@mediatek.com, linus.walleij@linaro.org, matthias.bgg@gmail.com, robh+dt@kernel.org Subject: [PATCH 0/5] Add initial pinctrl support for MT6797 SoC Date: Tue, 9 Oct 2018 00:44:06 +0530 Message-Id: <20181008191411.32555-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-20181008_121440_971260_E1A325CA X-CRM114-Status: GOOD ( 12.85 ) 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 doc is not added because it does not exist for MT6765 and I'm not sure about the structure of it. This patchset has been tested on 96Boards MediatekX20 development board. Thanks, Mani Manivannan Sadhasivam (5): dt-bindings: pinctrl: Add devicetree constants for MT6797 SoC arm64: dts: mediatek: mt6797: Add pinctrl support arm64: dts: mediatek: x20: Add pinmux support for UART1 pinctrl: mediatek: pinctrl-mtk-common-v2: Make eint_m u16 pinctrl: mediatek: Add initial pinctrl driver for MT6797 SoC .../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 + .../pinctrl/mediatek/pinctrl-mtk-common-v2.h | 2 +- drivers/pinctrl/mediatek/pinctrl-mtk-mt6797.h | 2430 +++++++++++++++++ include/dt-bindings/pinctrl/mt6797-pinfunc.h | 1368 ++++++++++ 8 files changed, 3912 insertions(+), 1 deletion(-) 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