Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp602460imm; Wed, 8 Aug 2018 02:27:20 -0700 (PDT) X-Google-Smtp-Source: AA+uWPx1Y+I3sfj6mnW5zeOE+dtzhjrEwrXILPRy3Raa1cNlhumd3ThQhLZoIJIcnqRcYCqiWboa X-Received: by 2002:a17:902:8ecb:: with SMTP id x11-v6mr1871888plo.308.1533720440644; Wed, 08 Aug 2018 02:27:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533720440; cv=none; d=google.com; s=arc-20160816; b=0nM0vegRc5s2Z4AL55Bv+6cAmY8hcqroWbe1MvmxDCI5DJzWsB+pU07hm13I82Dqrb WpagJkrlK8D7Cuih1UcofHQRnuMUen4CT1wvTp2ZVMRxetmaHQXp06lOWpVpnrgwCdDe J678jp6OLchGw0nC9rkqNXCG8DmwwQJcR7qCAfAqrA7zXOP4kWuyoLZPOM0dDpFGUKOQ QVazuYIu9HSuXfjmKPuw6kzJByqvyftWVGEZitfjWU2sBDUs9IIMsIZVuG+L5hwwJPXE lWHLTDG7cAMPDyMq00155QPugGybtEPMiRU+alDdShO1IB1a0N9CL+I9pw1vcAliZlYE SB1w== 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=xb4ybZ/g7A3mJB9lKQgsbGvhHczvAqEfD41dib3F2pg=; b=QjzZmUIVqdb1cMW+Fe1h1ZJ4RnYPMoXzXWPeoxYaSLUizk6CuCgeffJS2TMUMJzVyw 7igKqp06bQje5HU8oZ+pUUDLqlPRMl5u30xG0vgXcK4TS7/mFEXmZUYgIvHfs+8yrr0m 4Umug4WFRqDF1VLo55ZvGi83/2ybZw0i9A0gWYyxL44Da3WuKWCGtAtuvCcXBMk5qQ6G bMA04WOR9QQc1ysgOsFw5ChHczjd7ODhaR9L0VejhjWg2AcNu7EgME1hrU84UCwXpsQR 1Lm8XMkOrQ0FYohz0ZEeMITuzv0jgLdAAu3DDHFbGp7hJcUzvbokx2wI5Jk4npz7Zif4 lbYg== 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 c38-v6si3905855pgb.489.2018.08.08.02.27.02; Wed, 08 Aug 2018 02:27:20 -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 S1727571AbeHHLoy (ORCPT + 99 others); Wed, 8 Aug 2018 07:44:54 -0400 Received: from 212.199.177.27.static.012.net.il ([212.199.177.27]:52148 "EHLO herzl.nuvoton.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727187AbeHHLoy (ORCPT ); Wed, 8 Aug 2018 07:44:54 -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 w788tS2f032067; Wed, 8 Aug 2018 11:55:28 +0300 Received: by taln60.nuvoton.co.il (Postfix, from userid 10070) id 7249862EDE; Wed, 8 Aug 2018 12:25:27 +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 v6 0/2] pinctrl: nuvoton: add driver for NPCM7xx Date: Wed, 8 Aug 2018 12:25:24 +0300 Message-Id: <20180808092526.87405-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. Changes since version 5: - Remove link to unsupported GPIO_GENERIC free function. - Add child device node to each gpio chip. - dt-binding reviewed-by Rob Herring. 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 | 2072 ++++++++++++++++++++ 6 files changed, 2306 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