Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp454074imd; Wed, 31 Oct 2018 23:20:28 -0700 (PDT) X-Google-Smtp-Source: AJdET5ejlUbBw8BIFsMgbDJn2nyn42H6bOUuUFo6cUHxunFQyppeviweK7ttPOsxpnVLBF9gQHSB X-Received: by 2002:a62:6383:: with SMTP id x125-v6mr6434181pfb.13.1541053228597; Wed, 31 Oct 2018 23:20:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541053228; cv=none; d=google.com; s=arc-20160816; b=M9vhEg556u9jd096KWp/kWt+jn1FftEew1Jsm/oyrgKttupOig0r3kjOZMgt53Gjy8 6dfHl1q3x7XUCCDs0zdMPimVH2/HALb8wRLGy7PLxGeb+SmwZwZ9hcmQ+DLb4TYOGezV ocjIjhPB911KtynXk+6bzJxXDMZxj1KuzCSzToVJBHLA7QP4btVvklIZ2hxXJcRiZTU4 uD+0xI4b4wXSvINkkwxO3dPa3YGjGLKyEPYxZPq+6VMJIYt3apDwwWGHpLeIbwQ5dBzk tLb9xC4AQHky/aIGN8GObkuI9ohvea4NHEiUK7NCo2VJ2ejoghNH24F6frKQHg7bWsvd /i4w== 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=moyvFdCAg/Y6GiKMyRNN1D/UT2U6l2UAq61V8B6ZMuA=; b=jLiiLUPurBnEs5MiYo6igoKhBOPk9iRuTs4s0+0HfD5o1yfFnY+oP3usVca74mJkhj 3Iqfmef89dCFuwHV/tXBPJ9M+z3rHNewA0U4Q6N8ENtFbS0p/3wru4pRGC3JHvKEpuRQ p53N6axdYsyNAwwOFOLWt2og0+NSlZuTPD1pRz4lKrJVsWjppGLW5cCnZVJBFYEMK4Dx TfnFCJdc7gMTqL/n/vUlh+FufWk2VVm//4Y3onDCEHVVWEg3D4BaIlV1EYXs69QoTT8g jzN/UPfvYhsyQp0LfCgQGLJzI4sCWxtdJq+qKvs3NNGkvBx6LgZIIAh/V4LCs+Rjub+R lWwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Cf4aHiYD; 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 j2-v6si17159545pfg.10.2018.10.31.23.20.00; Wed, 31 Oct 2018 23:20:28 -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=Cf4aHiYD; 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 S1727750AbeKAPU4 (ORCPT + 99 others); Thu, 1 Nov 2018 11:20:56 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:37150 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727666AbeKAPU4 (ORCPT ); Thu, 1 Nov 2018 11:20:56 -0400 Received: by mail-pl1-f193.google.com with SMTP id bh10-v6so8440264plb.4 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=fM+YT2Edqau1K4yk3V/qShInd7sUHUfUznEp/nbpTg49IO8f2TUrOGGmqw9HoqrxCv L6m6yhjG5wngVeyoBNRfwIXQUITpjijj8pTxGL1gGTy8L5I788YnokEaO9y9NucJARR1 ZniTlFh7vxUbfy9bqbI/6dGXBC2qX06LGHVt9PQZCTCE3WIB/aP55BZ7E8hrpCEMcxfN SzzRI3DD771/EUWv5lWzgAmF7uF3fI8QH56pidWZyh1iya7mJiTo4Q5MhEUwLFPyqm3y yr/2fCmDySP/qwoGq0j5MleIr33IEcQncviA2FxqNGDfhXL2KmCS24rKC0jseD6FtM8P vBGA== X-Gm-Message-State: AGRZ1gJ3vDOscQVzzqK2kRnHJZuhmCNSVYVbXUZkgIpfpHeTfGHg1/UD 2c1OFzXunXTCUxqQKSPHPlz2 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 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 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 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 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 -- 2.17.1