From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C7BD8C4363D for ; Tue, 6 Oct 2020 14:25:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7055C20760 for ; Tue, 6 Oct 2020 14:25:44 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="Ke6i5n6u" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725906AbgJFOZo (ORCPT ); Tue, 6 Oct 2020 10:25:44 -0400 Received: from esa4.microchip.iphmx.com ([68.232.154.123]:61308 "EHLO esa4.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725902AbgJFOZo (ORCPT ); Tue, 6 Oct 2020 10:25:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1601994343; x=1633530343; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=piCMffCqgDvqxBLu6OvrQGya1ZdRTDuoxFoRit67Um4=; b=Ke6i5n6u/W0DCdpEDlaD7pgvGAA0+Gzprl1+Y6tqnSWIqdXWGsfoulpA 6cd6RDNsI1LF68vM8cHewzTjRDx88l/SrAwjzQ5xXQIkp1mMnNI5B27dT Ss0VXXci+hnIWDFI5Qxjr5ka6SVnNGq8ppVyhVLgSqVSeGeyvjdsfQOQZ qLAHEfFMm7dzL7opJFV3iCpDOOc6kb+yya37G5GWkcDco9JsUPndG0xh0 /9EBHlYnGk9Y4HUF6mkt5jVOGcWRqmpw0UvBGKPiCShHuIb9vsoBBZtmU P2DZESSafQ1d+VBEjnZdK6gYAU2Az//Q984N1qe52rzLTbwKmTx3QzrE5 g==; IronPort-SDR: JJpepf66G2coFgPizfHi1RJZM7sy5/50YwlQwFnsejh7kIFiyFN5T+XvTD7nHB5uye8AHRDItx GpNIPzGW7lgIIvbBu8xv2xkgHSLFaM69JBTJLAOEo+MdWwKOLp9C1W5x4hLoWeIdLOf+u7tWSr 1myEps6/zrexaQIXl5GCTPA6/qIjfRW9zK6/15SYrzaMFmtEfNBfjM12ojm+wZ5XxSTA3XpR0r vBMyko/086x0tKxcbiIFezshickDmk3PG5PX7iBctIv2wlL/XDxiBf45mMIjqIoatjtrUuZUT0 0MQ= X-IronPort-AV: E=Sophos;i="5.77,343,1596524400"; d="scan'208";a="89278213" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 06 Oct 2020 07:25:43 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1979.3; Tue, 6 Oct 2020 07:25:31 -0700 Received: from soft-dev10.microsemi.net (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.1979.3 via Frontend Transport; Tue, 6 Oct 2020 07:25:30 -0700 From: Lars Povlsen To: Linus Walleij CC: Lars Povlsen , Microchip Linux Driver Support , , , , , Alexandre Belloni Subject: [RESEND PATCH v3 0/3] pinctrl: Adding support for Microchip/Microsemi serial GPIO controller Date: Tue, 6 Oct 2020 16:25:29 +0200 Message-ID: <20201006142532.2247515-1-lars.povlsen@microchip.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org The series add support for the serial GPIO controller used by Microchip Sparx5, as well as (MSCC) ocelot/jaguar2 SoCs. The driver now register two separate banks (per instance), one for input pins (the first) and one for output direction. This eliminates the need for specifying the direction as part of the gpio arguments. The (fixed) direction is thus inherent from the gpio handle. v3 changes: - Renamed all usage of "mchp" abbrevation with "microchip". - Split the in/output directions into (two) separate banks. - Eliminated the bindings include file (from above) - Changed SPDX license to "GPL-2.0-or-later" - Change -ENOTSUPP to -EOPNOTSUPP - Minor type/symbol naming changes v2 changes: - Adds both in and output modes. - Use direct adressing of the individual banks (#gpio-cells = <4>), also osoleting need for addressing macros in bindings include file. - Property 'microchip,sgpio-ports' (uint32, bitmask) replaced by proper range set (array of [start,end]) 'microchip,sgpio-port-ranges'. - Fixes whitespace issues in Kconfig file Lars Povlsen (3): dt-bindings: pinctrl: Add bindings for pinctrl-mchp-sgpio driver pinctrl: pinctrl-mchp-sgpio: Add pinctrl driver for Microsemi Serial GPIO arm64: dts: sparx5: Add SGPIO devices .../pinctrl/microchip,sparx5-sgpio.yaml | 127 ++++ MAINTAINERS | 1 + arch/arm64/boot/dts/microchip/sparx5.dtsi | 91 +++ .../boot/dts/microchip/sparx5_pcb125.dts | 5 + .../dts/microchip/sparx5_pcb134_board.dtsi | 262 +++++++ .../dts/microchip/sparx5_pcb135_board.dtsi | 57 ++ drivers/pinctrl/Kconfig | 18 + drivers/pinctrl/Makefile | 1 + drivers/pinctrl/pinctrl-microchip-sgpio.c | 676 ++++++++++++++++++ 9 files changed, 1238 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/microchip,sparx5-sgpio.yaml create mode 100644 drivers/pinctrl/pinctrl-microchip-sgpio.c -- 2.25.1 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7177AC4363D for ; Tue, 6 Oct 2020 14:27:12 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id EB6D32054F for ; Tue, 6 Oct 2020 14:27:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="hDGNxRz6"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="YBKOtqcG" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EB6D32054F Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=microchip.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=G8YAkZnRqkZrKOigOxbuW8otHuxOJ19bii/jfXh8iIs=; b=hDGNxRz6M+sCgYPGfoD4JozHVH 1DZJUHQHtiPEjNhIfXooulKkQ/h3JW2Ok0F7r3FlrJ8cmid+zq2FZbQbRYd9u7R+HBG3/CCgG9WXj I4BjdmeeCRrJE4SDDhbocNz+I4fgOnUdQ2SXZDBjbojMJt3y3fMD0xtvQ2d5r+CzlILEMg9WSf42I 0TwwJauSVJ6beM/TqOqL59UCqsoqvqEXgQTOSkgg0lhZSHQl/Qy3l3QWflsFXIfxwsrQAmxRoogPc WGlL8vH9AiUsHiGXzU6TJJ596KOrqWFMA6BaViiAru664OQ0O8/ASeklLeqvLnxJMwf0CHEX5YEde feFTsHeA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kPnuV-0004Sw-10; Tue, 06 Oct 2020 14:25:47 +0000 Received: from esa4.microchip.iphmx.com ([68.232.154.123]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kPnuS-0004SR-A9 for linux-arm-kernel@lists.infradead.org; Tue, 06 Oct 2020 14:25:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1601994344; x=1633530344; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=piCMffCqgDvqxBLu6OvrQGya1ZdRTDuoxFoRit67Um4=; b=YBKOtqcGv6RXDZu97CDKb6oN8dAfM/Kc/DWxuRSr32JBXUAJTRrp4EKu R6wvWVpSWYrPzD0my4QJa4Z7J0f/KRDDDhwkMfaKm5uehJmRFows7mQV7 H7B0EpWzaDWCAhvyRe/qP1xMBZayku86MmcSwUfAcfL1Draeg1lZdvGR0 8SIIAoxqE9RMwmfIsm7TCQEPISs7prULxW0rHt+qn8KiJELwyOkIk3leV enufYoSJM37TwM4OtYJ4LqGnmhvAFgEV1TGdK49WfKaPMTxvHvsrJ7QPf n+9wInTKjISot2MQs4eOzvmBJTL/O0lSE6rjWcI9aAq50pa8jnJVS4Wrz Q==; IronPort-SDR: JJpepf66G2coFgPizfHi1RJZM7sy5/50YwlQwFnsejh7kIFiyFN5T+XvTD7nHB5uye8AHRDItx GpNIPzGW7lgIIvbBu8xv2xkgHSLFaM69JBTJLAOEo+MdWwKOLp9C1W5x4hLoWeIdLOf+u7tWSr 1myEps6/zrexaQIXl5GCTPA6/qIjfRW9zK6/15SYrzaMFmtEfNBfjM12ojm+wZ5XxSTA3XpR0r vBMyko/086x0tKxcbiIFezshickDmk3PG5PX7iBctIv2wlL/XDxiBf45mMIjqIoatjtrUuZUT0 0MQ= X-IronPort-AV: E=Sophos;i="5.77,343,1596524400"; d="scan'208";a="89278213" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 06 Oct 2020 07:25:43 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1979.3; Tue, 6 Oct 2020 07:25:31 -0700 Received: from soft-dev10.microsemi.net (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.1979.3 via Frontend Transport; Tue, 6 Oct 2020 07:25:30 -0700 From: Lars Povlsen To: Linus Walleij Subject: [RESEND PATCH v3 0/3] pinctrl: Adding support for Microchip/Microsemi serial GPIO controller Date: Tue, 6 Oct 2020 16:25:29 +0200 Message-ID: <20201006142532.2247515-1-lars.povlsen@microchip.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201006_102544_518486_43E2C424 X-CRM114-Status: GOOD ( 12.44 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Alexandre Belloni , linux-kernel@vger.kernel.org, Microchip Linux Driver Support , linux-gpio@vger.kernel.org, Lars Povlsen , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The series add support for the serial GPIO controller used by Microchip Sparx5, as well as (MSCC) ocelot/jaguar2 SoCs. The driver now register two separate banks (per instance), one for input pins (the first) and one for output direction. This eliminates the need for specifying the direction as part of the gpio arguments. The (fixed) direction is thus inherent from the gpio handle. v3 changes: - Renamed all usage of "mchp" abbrevation with "microchip". - Split the in/output directions into (two) separate banks. - Eliminated the bindings include file (from above) - Changed SPDX license to "GPL-2.0-or-later" - Change -ENOTSUPP to -EOPNOTSUPP - Minor type/symbol naming changes v2 changes: - Adds both in and output modes. - Use direct adressing of the individual banks (#gpio-cells = <4>), also osoleting need for addressing macros in bindings include file. - Property 'microchip,sgpio-ports' (uint32, bitmask) replaced by proper range set (array of [start,end]) 'microchip,sgpio-port-ranges'. - Fixes whitespace issues in Kconfig file Lars Povlsen (3): dt-bindings: pinctrl: Add bindings for pinctrl-mchp-sgpio driver pinctrl: pinctrl-mchp-sgpio: Add pinctrl driver for Microsemi Serial GPIO arm64: dts: sparx5: Add SGPIO devices .../pinctrl/microchip,sparx5-sgpio.yaml | 127 ++++ MAINTAINERS | 1 + arch/arm64/boot/dts/microchip/sparx5.dtsi | 91 +++ .../boot/dts/microchip/sparx5_pcb125.dts | 5 + .../dts/microchip/sparx5_pcb134_board.dtsi | 262 +++++++ .../dts/microchip/sparx5_pcb135_board.dtsi | 57 ++ drivers/pinctrl/Kconfig | 18 + drivers/pinctrl/Makefile | 1 + drivers/pinctrl/pinctrl-microchip-sgpio.c | 676 ++++++++++++++++++ 9 files changed, 1238 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/microchip,sparx5-sgpio.yaml create mode 100644 drivers/pinctrl/pinctrl-microchip-sgpio.c -- 2.25.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel