Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp509644imw; Thu, 14 Jul 2022 05:47:07 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vGmFu0Ia2lW4K2x9f6ocVIn1ubrujVkZsMea82jSmdSNpjjyk7M9kmcOAJWdhJyGMEhLUX X-Received: by 2002:a05:6402:5205:b0:43a:b520:c7de with SMTP id s5-20020a056402520500b0043ab520c7demr12428686edd.22.1657802827089; Thu, 14 Jul 2022 05:47:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657802827; cv=none; d=google.com; s=arc-20160816; b=dS9Qhz5asAV0U3VvQaq28GzkE21Cdcs4vtNq5eZernKqb6q/Z1+z7t5+A0nD1A5tXX +AnFq3UabYzToZCuXQctiXEX3UwTYSOclj8ZobJ1jVsMIo9rkrZMaIz5ykv0Fq8J1wZw JmnENpLK4lxwlXP1H6uhnKtlr0oOCoa7NlX9N4La/LkAiszSsYhKoNsjlzzS0icc/Vtr 0jlFSoDWV6VjTPGQg03v+31DgLHmMlIFyM6kCQm+1I2CyuU6SS1NKUEfC99u95XAnBnB aBXJpiIZ1umZpPxvbvSHH2840mm4BO7yJTCUVHznIRVuYPix8c0FAwHfeaZu8yXcec26 ITZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=Oxtm81fvZkVNXV+o0wQHrxuBWIjDqedQO1lxlKFkvLc=; b=JR05AajGOWbroP9Ftc09G1OPFOo9rs96tE7G9IBz6QsBYjEun/y6Y5WMG80HpOx9hV CdQZvizmtAKDyaMAnlNnKnBZ6ELIKa5Yj2dVf+b6TiJLfXTDLXBSQUmNP/4S2WeCawaa WjZZVfm5zko/siIwFdIQyFLIPpE/kD47VUCcRckEtjrOTSjwcabM1Qzp2gwMXf5m7zE5 B871cXH+HJ6PoZldSPevSlLJZn7r40cfADz96L5rxmO7nVl1lbbarO6YKK6K21LK0j++ 5GMIgTml9eKQq57tcUmrlnXzhrpQ+3KRUI6nZAejZduezCBKlwDSFCOxzLAONT+nBNti 1CUA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p9-20020a17090653c900b0072b64f0c355si2197297ejo.171.2022.07.14.05.46.41; Thu, 14 Jul 2022 05:47:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S239012AbiGNMXr (ORCPT + 99 others); Thu, 14 Jul 2022 08:23:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238976AbiGNMXp (ORCPT ); Thu, 14 Jul 2022 08:23:45 -0400 Received: from maillog.nuvoton.com (maillog.nuvoton.com [202.39.227.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A6EBB615B; Thu, 14 Jul 2022 05:23:43 -0700 (PDT) Received: from NTHCCAS01.nuvoton.com (NTHCCAS01.nuvoton.com [10.1.8.28]) by maillog.nuvoton.com (Postfix) with ESMTP id 2EB961C80F83; Thu, 14 Jul 2022 20:23:42 +0800 (CST) Received: from NTHCCAS01.nuvoton.com (10.1.8.28) by NTHCCAS01.nuvoton.com (10.1.8.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Thu, 14 Jul 2022 20:23:41 +0800 Received: from taln60.nuvoton.co.il (10.191.1.180) by NTHCCAS01.nuvoton.com (10.1.12.25) with Microsoft SMTP Server id 15.1.2375.7 via Frontend Transport; Thu, 14 Jul 2022 20:23:41 +0800 Received: by taln60.nuvoton.co.il (Postfix, from userid 10070) id CAE6F63A20; Thu, 14 Jul 2022 15:23:40 +0300 (IDT) From: Tomer Maimon To: , , , , , , , , , , CC: , , , , Tomer Maimon Subject: [PATCH v2 0/2] pinctrl: nuvoton: add pinmux and GPIO driver for NPCM8XX Date: Thu, 14 Jul 2022 15:23:20 +0300 Message-ID: <20220714122322.63663-1-tmaimon77@gmail.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=0.5 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FORGED_GMAIL_RCVD,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,NML_ADSP_CUSTOM_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch set adds pinmux and GPIO controller for the Arbel NPCM8XX Baseboard Management Controller (BMC). Arbel BMC NPCM8XX pinctrl driver based on Poleg NPCM7XX, except the pin mux mapping difference the NPCM8XX GPIO supports adjust debounce period time. Arbel BMC NPCM8XX Pinmux functions accessible only for pin groups and pin configuration parameters available only for individual pins. Arbel BMC NPCM8XX has eight identical GPIO modules, each module has 32 GPIO ports. Most of the GPIO ports are multiplexed with other system functions. The NPCM8XX pinctrl and GPIO driver were tested on NPCM845 evaluation board. Addressed comments from: - Andy Shevchenko : https://www.spinics.net/lists/devicetree/msg516573.html - Krzysztof Kozlowski: https://www.spinics.net/lists/kernel/msg4368955.html Changes since version 1: - Pin controller driver - Remove unnecessary debug prints and comments. - Use fwnode functions. - Remove Redundant 'else'. - Use switch case instead of else if. - Use GENMASK and BIT macros. - Use dev_err_probe in probe error. - Use callback GPIO range. - Add GCR phandle property. - Parameter order in reversed xmas - Pin controller dt-binding - Modify name from pin to mux. - Add phandle property. Tomer Maimon (2): dt-binding: pinctrl: Add NPCM8XX pinctrl and GPIO documentation pinctrl: nuvoton: add NPCM8XX pinctrl and GPIO driver .../pinctrl/nuvoton,npcm845-pinctrl.yaml | 213 ++ drivers/pinctrl/nuvoton/Kconfig | 13 + drivers/pinctrl/nuvoton/Makefile | 1 + drivers/pinctrl/nuvoton/pinctrl-npcm8xx.c | 2528 +++++++++++++++++ 4 files changed, 2755 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/nuvoton,npcm845-pinctrl.yaml create mode 100644 drivers/pinctrl/nuvoton/pinctrl-npcm8xx.c -- 2.33.0