Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3658630imm; Mon, 6 Aug 2018 08:26:49 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf6sGmV3pK353K7tBW5rqmp+k14WFiyiQg7WEU/ZBbJKdLZd0b9kCkeolDHhqnOUgsmzmH5 X-Received: by 2002:a17:902:6907:: with SMTP id j7-v6mr14359869plk.323.1533569209377; Mon, 06 Aug 2018 08:26:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533569209; cv=none; d=google.com; s=arc-20160816; b=KlUZmX2CzpRBqvZkbck19FwMxs7zuFqF6F6vrDaZc4IehLKggW2qria/1yTkbGC6sI nABJU3IjsUhAcFWVE20RcFjJu680xc/DFQX6agfeAyrWJmvugdM3Zk7twCn7KEPNviKL 6xm9CDiyA/Bt148fB7WlmXxDMxpLpNVcBdT+CZZNM35oP70ewyBYhyqEBwjrc/OC35A6 9Rvqw33zeESPyulYVhLDYPgExxoqSq/edV3wPPhziv1Xg2nSJaEkG4Ry7GPRXREff69V ZpGfIgJLDvJDOsWu/gnkoy7et84djtc21KV4nD4Q197CmGbi//25mXWIkGMYW6D4ydn2 ilYA== 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 :arc-authentication-results; bh=0TSnlEwSIeOzbU56UbpDTTX5zw2yLRcCvNfYBjjN2xc=; b=ha+MjVBEgvXTJr2BUaYnWVJfjOAVH7NnwNeZjHtv4J5kdis3pd9DH7xoa6FvjJfR4O t5wDg4QHaJh+I9naR/CTQVPpMD5gPilS5saWE56pyjvnC8wlooR5js9Up6uDtx1vKQeq ifzhF6nouCFl1mFEWOEFqlXj/duogTgHGUGQqfpbQXUrhyyzjsg1JE55tKmSi3I8vTEu u7ISBqEUPRadCNm9psNs/wyXfNK/7S1I9j+r6POQqbwRVsT0Zo04RQXckGAXvTdUNdlK 0RHgJ3k0BRLyvmQLd9QnoLbJ+kPwriAyoKjpwLXetltCYMwR/nYLhizv1TaMkmPpEWBp U1jQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x21-v6si10710602pll.24.2018.08.06.08.26.32; Mon, 06 Aug 2018 08:26:49 -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; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732872AbeHFReR (ORCPT + 99 others); Mon, 6 Aug 2018 13:34:17 -0400 Received: from 212.199.177.27.static.012.net.il ([212.199.177.27]:51869 "EHLO herzl.nuvoton.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1732478AbeHFReR (ORCPT ); Mon, 6 Aug 2018 13:34:17 -0400 Received: from taln60.nuvoton.co.il (ntil-fw [212.199.177.25]) by herzl.nuvoton.co.il (8.13.8/8.13.8) with ESMTP id w76Ervpb012900; Mon, 6 Aug 2018 17:53:57 +0300 Received: by taln60.nuvoton.co.il (Postfix, from userid 10070) id 6772062E7B; Mon, 6 Aug 2018 18:23:56 +0300 (IDT) From: Tomer Maimon To: linus.walleij@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, yuenn@google.com, venture@google.com, brendanhiggins@google.com, avifishman70@gmail.com, joel@jms.id.au Cc: devicetree@vger.kernel.org, openbmc@lists.ozlabs.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, Tomer Maimon Subject: [PATCH v5 0/2] pinctrl: nuvoton: add driver for NPCM7xx Date: Mon, 6 Aug 2018 18:23:52 +0300 Message-Id: <20180806152354.340380-1-tmaimon77@gmail.com> X-Mailer: git-send-email 2.14.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch set adds pinmux and GPIO controller for the Nuvoton NPCM750/730/715/705 Baseboard Management Controller (BMC). The Nuvoton BMC NPCM750/730/715/705 Pinmux functions accessible only for pin groups and pinconf parameters available only for individual pins. The Nuvoton BMC NPCM750/730/715/705 has eight identical GPIO modules, each module has 32 GPIO ports. Most of the GPIO ports are multiplexed with other system functions. The NPCM7xx pinctrl and GPIO driver tested on NPCM750 evaluation board. Addressed comments from:. - Linus Walleij: https://www.spinics.net/lists/devicetree/msg243012.html conversion about it with Linus Walleij: - https://www.spinics.net/lists/devicetree/msg241973.html Changes since version 4: - Use direct access read and write functions. - Modify the probe GPIO and pinctrl order. - Remove unsupported BGPIOF_INVERTED_REG_DIR flag. - dt-binding documentation haven't changed. Changes since version 3: - Remove Kconfig MFD_SYSCON dependency. - Add BGPIOF_INVERTED_REG_DIR flag. - dt-binding documentation haven't changed. Changes since version 2: - Using GPIO_GENERIC (mmio). - Add Kconfig MFD_SYSCON dependency. - Remove unnecessary code from the direction output function. - dt-binding documentation haven't changed. Changes since version 1: - Remove Kconfig MFD_SYSCON dependency. - Modify setfunc function. - Modify dt-binding documentation according Rob comments. Tomer Maimon (2): dt-binding: pinctrl: Add NPCM7xx pinctrl and GPIO documentation pinctrl: nuvoton: add NPCM7xx pinctrl and GPIO driver .../bindings/pinctrl/nuvoton,npcm7xx-pinctrl.txt | 216 ++ drivers/pinctrl/Kconfig | 1 + drivers/pinctrl/Makefile | 1 + drivers/pinctrl/nuvoton/Kconfig | 12 + drivers/pinctrl/nuvoton/Makefile | 4 + drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c | 2076 ++++++++++++++++++++ 6 files changed, 2310 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/nuvoton,npcm7xx-pinctrl.txt create mode 100644 drivers/pinctrl/nuvoton/Kconfig create mode 100644 drivers/pinctrl/nuvoton/Makefile create mode 100644 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c -- 2.14.1