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: 148438 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp4020760lji; Mon, 8 Oct 2018 12:14:32 -0700 (PDT) X-Google-Smtp-Source: ACcGV61YeU26Cnd/ByHGtQ2EMATiltpKTnXROphoZGSbiZpaT7epfEvP5YvW4mrGf8GMhwGJw56Q X-Received: by 2002:a65:44c6:: with SMTP id g6-v6mr12692162pgs.350.1539026072835; Mon, 08 Oct 2018 12:14:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539026072; cv=none; d=google.com; s=arc-20160816; b=uyl5DW4IFhfSWBMPFBSKokEZbfMyKZVx2VueG44Cexst3Wc2qAjgpXQB8tW76wsXHt qeky14UWJ8iwAQH2mFhad9LITpXfqHeby6a28/qgJ7uqmoD+SqX0EFEyosJ0Y6t4IgKO vyGd2eMdQw0fVEI5yBAISyO6aa4nD6MBfdwEeJQOG+OexDg0pbhMVNOAyM30cCKkklxk Ezsd6UIu4YqkTgdtUdlUwn/8r7c64MPMdjxMIPFb0E+FmHJwfsAYBfgZdVqUBd+M7mcT oWyhL2urNEJZhbJeAp0YPdSWCJikGGYvEB0GfXtXWfKmHtqXtweHlkW2JocqNQGXpdMu h32Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=D1Fso1WTOfCgA486lBMa6IWQvrNF27QUPQhpIjOG/4o=; b=h0ypFm8xbw8SSx83JUxCipqM6m7iVgb659H+2/PoqE8jEaSfmQel6YWONsx78ukB0q IpglpmuGo3lC97eRB7K0SrJGnc6ncpBdBJHiwj+eb2Fcxz6qADht/B5zqqwZJr1WzPho v9SIIz4LJ1u5UAVIxX8WhVdG0pkgSaDxCd/xqgySAQLjK8v78odZ9BjkkgHPGXCUvKud EpYcuB+ET+YZSPTSGdnaNyk9KGE5IdOJgAiUjioIkIOzzzLSmeNYA9FzG2/xsPA+Ry86 dt5RRXck4QgU9czBg+6AdzYiWjOp2AVzJrJ8ns4Y7h/y8BDESqsMJgS+hlUg1eDazuvr Hamg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cjTCXaOf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o10-v6si19069497pfk.10.2018.10.08.12.14.32; Mon, 08 Oct 2018 12:14:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cjTCXaOf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727316AbeJIC1o (ORCPT + 32 others); Mon, 8 Oct 2018 22:27:44 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:34468 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726697AbeJIC1o (ORCPT ); Mon, 8 Oct 2018 22:27:44 -0400 Received: by mail-pf1-f194.google.com with SMTP id k19-v6so8819766pfi.1 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=lTFDi7RS9ozgVXgARwlywTFd72vknO4D0msfBTWkq7sZu3vB0icwpKCg3/N4UC2agD 08FKK1QX5Zs3IoyW8UQ4ABLKdj9HbaZ/ojY2pqlpMaPhajTqlX1ZWb2ErbhunYchRhaL j0mWWmDXzx/ki01wb8y+8Fny+N5sFA2na5lse8e2kI0ZVdCIL3gR0whlWoBnol5afbFw y7qwfrnYB3SNS+6njCND9GUAsObF/VZeuMYVSyRzLUE7cCPAX7/SRkvEnudvVyPsyW14 JjIsVxmR0iQW96tsm5NKXDLb4RbsnzC78IgoPyj3otlXfJsCPFQcTAPyLSFvNQ51jTdC LSjg== X-Gm-Message-State: ABuFfoiQqxTYF0keHgxseKAyiw1FBWlcC1tPbLyeRGQ8xSOqgWPpYpOJ jitCwItY57ojPStz3iK3inwrvHYP+A== 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 Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, amit.kucheria@linaro.org, Manivannan Sadhasivam 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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- 2.17.1