Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp174071imm; Thu, 26 Jul 2018 16:23:12 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeRwNSsArF3CYWR6U19s0blh2vT2SzBxEpfCm3BMSUT9s9wD/B+eEDKsYWYuj7+VA1Af2vC X-Received: by 2002:a65:6203:: with SMTP id d3-v6mr3728826pgv.420.1532647392332; Thu, 26 Jul 2018 16:23:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532647392; cv=none; d=google.com; s=arc-20160816; b=ULJhILfrD5vLaHo+CxNG742OdfTOOga+Fd5FJBRc6PHjmV7GAytVbvcK6cvJXb6FUS 1977pSAeUxng2G6Pzh+6wYr0/49GSRBmNhg4ACTLwuaiWLwCRks0S/R0QiahSdgbgj55 q29o4c2Z5l6OBtb3zRQhcPgq3ZYkZfImB8NiX0/HdQHWkZ+jDMNcx/QanRXN4wbXL+3X LxOOvlq6jtqDt42PQQNrr6qm/ldQGNtEhYFlBvUQVXBB4BFzsNyYkdzo1G7pwv4I5AKs 6VXdt27a7sWHLsmm6B3ZL/OOamJW0RAwZrPcBRAEm8HZSEVi2EObVjd/JKARakX7IwJC k9lA== 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=P58p5YvCOoqab3L0SNWnVXk31cXqXZdHT/zzaJ84sfc=; b=Ug87pndXMi2rkTBDUvPz7j4ibz5ozTMd02M/p6Fg8rBpaAdKxKJDfS0HagkHACfgxo 1zmDahziyPmgAmv9zpxa6XamzguqYSFpr9HMHauIL5qqQIAJF8OQXHTNlePgAn1BW6bV jeb/Vj8qV5JcXBiBq0zBJYHOq2BDA5UUth6S2hkoXZWwMsdahCf/ef1Bf2hFIzu4BIGv P5IS1ssBZc0XdYYAyk7XxohcBnEls8Xfy6jGhF12JBXOHbWwl6rnsoTaFB99J0TwuhF2 Y+6FCDHB4khmrfA5+ofeo4EaOLABzYYzD6X3Rdp/XEDUgCs7khXvgRvUq6TzRgL24T3u cSuw== 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 w11-v6si2190715plz.333.2018.07.26.16.22.54; Thu, 26 Jul 2018 16:23:12 -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 S1731774AbeG0Akj (ORCPT + 99 others); Thu, 26 Jul 2018 20:40:39 -0400 Received: from 212.199.177.27.static.012.net.il ([212.199.177.27]:51348 "EHLO herzl.nuvoton.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731405AbeG0Akj (ORCPT ); Thu, 26 Jul 2018 20:40:39 -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 w6QMp7UL003665; Fri, 27 Jul 2018 01:51:07 +0300 Received: by taln60.nuvoton.co.il (Postfix, from userid 10070) id 22A7D6312B; Fri, 27 Jul 2018 02:21:06 +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 v3 0/2] pinctrl: nuvoton: add driver for NPCM7xx Date: Fri, 27 Jul 2018 02:21:01 +0300 Message-Id: <20180726232103.64625-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/msg239043.html 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 | 13 + drivers/pinctrl/nuvoton/Makefile | 4 + drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c | 2127 ++++++++++++++++++++ 6 files changed, 2362 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