From patchwork Fri Aug 31 13:41:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Radu Pirea X-Patchwork-Id: 10583743 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6C0BA1709 for ; Fri, 31 Aug 2018 13:40:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 55A9B2BE55 for ; Fri, 31 Aug 2018 13:40:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4977A2BE54; Fri, 31 Aug 2018 13:40:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D26162BE55 for ; Fri, 31 Aug 2018 13:40:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.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=FtsY53n+2VpTWcDuV4sfs2inGM6HeqVjtygluQEsztY=; b=JCpdo3klPGSDRi KA96Nl4zeL4zfHPfOE6gn1bAFYB6if1CFJFgGA+isgSgMyWSyvBEZHBlIPPpj5CPeKrzW6lRrre3r Aalih9H8F5yACxIbK6hlvs3k34yQqDs7wulTn1jSRocvYouoLUHNwod8rs+xgG+5iO9jSN1Z1rLwg w5ktNSfSUtrgR2PPzg+hHNiPzPzxKfBV6pNbEPGbADJm5reBhtRPMD/mI3jn5Ed1biSjcmu0DGqTO HtO1Ur+yBTCRX6jeYFqXE18Z5/xVJOhdmnimn3SDRHd+S7TFk/qhhm/6yc3nUSjfxoZIvr6Sfm6Be eXeEGDuoXwmnxMBlvUfQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fvjfE-0004vQ-5p; Fri, 31 Aug 2018 13:40:40 +0000 Received: from esa5.microchip.iphmx.com ([216.71.150.166]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fvjfA-0004u9-C3 for linux-arm-kernel@lists.infradead.org; Fri, 31 Aug 2018 13:40:38 +0000 X-IronPort-AV: E=Sophos;i="5.53,311,1531810800"; d="scan'208";a="16999747" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa5.microchip.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 31 Aug 2018 06:40:23 -0700 Received: from m19893.microchip.com (10.10.76.4) by chn-sv-exch02.mchp-main.com (10.10.76.38) with Microsoft SMTP Server id 14.3.352.0; Fri, 31 Aug 2018 06:40:22 -0700 From: Radu Pirea To: , , , , , , , , , Subject: [RESEND PATCH v11 0/6] Driver for at91 usart in spi mode Date: Fri, 31 Aug 2018 16:41:35 +0300 Message-ID: <20180831134141.9335-1-radu.pirea@microchip.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180831_064036_424642_86C07A72 X-CRM114-Status: GOOD ( 12.92 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, linux-serial@vger.kernel.org, Radu Pirea , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Hello, This is the 11th version of driver. I added a mfd driver which by default probes atmel_serial driver and if in dt is specified to probe the spi driver, then the spi-at91-usart driver will be probed. The compatible for atmel_serial is now the compatible for at91-usart mfd driver and compatilbe for atmel_serial driver was changed in order to keep the bindings for serial as they are. @Lee, could you take this patch series into your tree? I addressed all Mark remarks. In this resend I changed my email address from MAINTAINERS file. Changes in v11: - removed "depends on HAS_DMA" from drivers/spi/Kconfig because the driver has no dma support - changed "selects MFD_AT91_USART" to "depends on MFD_AT91_USART" in drivers/spi/Kconfig - changed comment style in spi-at91-usart.c Changes in v10: -fixed kbuild test robot warning Changes in v9: - minor changes - rebased on top of broonie/for-4.19 Changes in v8: - fixed passing an empty mfd cell if "atmel,usart-mode" value is invalid Changes in v7: - synced up SPDIX license with module license - numbering of usart modes starts from 0 insteand of 1 Changes in v6: - removed unused compatible strings from serial and spi drivers Changes in v5: - fixed usage of stdout-path property with atmel_serial driver Changes in v4: - modified the spi driver to use cs gpio support form spi subsystem - fixed dma transfers for serial driver - squashed binding for spi and serial and moved them to mfd/atmel-usart.txt Changes in v3: - fixed spi slaves probing Changes in v2: - added at91-usart mfd driver - modified spi-at91-usart driver to work as mfd driver child - modified atmel_serial driver to work as mfd driver child Changes in v1: - added spi-at91-usart driver Radu Pirea (6): MAINTAINERS: add at91 usart mfd driver dt-bindings: add binding for atmel-usart in SPI mode mfd: at91-usart: added mfd driver for usart MAINTAINERS: add at91 usart spi driver spi: at91-usart: add driver for at91-usart as spi tty/serial: atmel: change the driver to work under at91-usart mfd .../bindings/{serial => mfd}/atmel-usart.txt | 25 +- MAINTAINERS | 16 + drivers/mfd/Kconfig | 9 + drivers/mfd/Makefile | 1 + drivers/mfd/at91-usart.c | 71 +++ drivers/spi/Kconfig | 8 + drivers/spi/Makefile | 1 + drivers/spi/spi-at91-usart.c | 432 ++++++++++++++++++ drivers/tty/serial/Kconfig | 1 + drivers/tty/serial/atmel_serial.c | 42 +- include/dt-bindings/mfd/at91-usart.h | 17 + 11 files changed, 606 insertions(+), 17 deletions(-) rename Documentation/devicetree/bindings/{serial => mfd}/atmel-usart.txt (76%) create mode 100644 drivers/mfd/at91-usart.c create mode 100644 drivers/spi/spi-at91-usart.c create mode 100644 include/dt-bindings/mfd/at91-usart.h