Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3816206imm; Mon, 30 Jul 2018 04:07:19 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcNFztL34YkxGjq27nLQHyCFB2tVI84/Fyo6FXDFNQxsiV3vsaIofb4JEAf9Apj32svXakE X-Received: by 2002:a17:902:4401:: with SMTP id k1-v6mr13996110pld.97.1532948839720; Mon, 30 Jul 2018 04:07:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532948839; cv=none; d=google.com; s=arc-20160816; b=ml5oqk7NfnGCjOzyx5DrQ34CeANdygmlXmTV+LbKlC4gL6Ftw0EkAyaOGcUnZcL7vX YVjZUTiLX12JWLkIT8nBw+74xAP5Kkc8Nz4cFrsGuzGvJRYLpL626XsK6aPtdmpBtmsD zk8+4Juy4Hyegu5aVWEtqSD6j7yg6poZl7jEoRRxCIKVcbJK+WwJoPRehiC24xsj8UUm 8jk8Do8J6+S96GwwLygCQmV2Zq6dpgygDB1QtkAi4xdR2Til7nX/mEjAFrh7iGUFKL70 kSTIcBqLqnxx/jZlEyVaqZbSEG/WCw/ELAU+zY0dtm2Rerbxhc/Xk7ICc9Yxth9/pfTg 3o+g== 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=jIt5j7LJx3pvHFlPDFU+55QgG8rl8T5cc8EcGOYwTU0=; b=UW55UFIUXTgoiocm7YZXfbrNUo6AxdbZSSgMvraTvDJ4I4HG+KxVvkeltyR6UzsMZ6 ByB9Lr9dCfWGxJBpauptpd8KDRyhVtiv/w0D76wsYtQGiJaavhbbHRiv7v4E/bUouI2k NJSyYkVocFOSykHAryCX6z8Ou/xJv5sMx+mUPvCJYjQ84y7/gPioyKmqTrxHUX5bbw7q 2wyDOuTIW+IqcujyEoPduUBsq13/ubH52sRAvXRe7UAabLIf8L3vdGJQs9XaEcVAMLIy Ceq1/YN19BOqOUuypFu5lFV9pJHPKEyyYFYXCTJEvEF4PT5VUkp0K0Ovf4IHxF8Fddc5 Lg6A== 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 a84-v6si10546560pfj.300.2018.07.30.04.07.05; Mon, 30 Jul 2018 04:07:19 -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 S1728798AbeG3MjR (ORCPT + 99 others); Mon, 30 Jul 2018 08:39:17 -0400 Received: from 212.199.177.27.static.012.net.il ([212.199.177.27]:51613 "EHLO herzl.nuvoton.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726530AbeG3MjR (ORCPT ); Mon, 30 Jul 2018 08:39: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 w6UAY8C3006522; Mon, 30 Jul 2018 13:34:09 +0300 Received: by taln60.nuvoton.co.il (Postfix, from userid 10070) id ED1C963129; Mon, 30 Jul 2018 14:04:07 +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 v4 0/2] pinctrl: nuvoton: add driver for NPCM7xx Date: Mon, 30 Jul 2018 14:04:04 +0300 Message-Id: <20180730110406.132729-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. this patch set depend on gpio: mmio: add inverted direction get_set io support approval. https://lore.kernel.org/patchwork/patch/968891/ without adding BGPIOF_INVERTED_REG_DIR to include/linux/gpio/driver.h the build will failed. Addressed comments from:. - kbuild test robot: https://www.spinics.net/lists/kernel/msg2868491.html conversion about it with Linus Walleij: - https://www.spinics.net/lists/devicetree/msg241973.html 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 | 2082 ++++++++++++++++++++ 6 files changed, 2316 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