Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp540177imm; Fri, 31 Aug 2018 07:04:00 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdab6rC3M9S4bKkLmFdYJGp5SymoYwNJluE4H5Qcr+x8FDx9UxsAAYAIDvdzjQA/QnI65OxY X-Received: by 2002:a17:902:3fa5:: with SMTP id a34-v6mr11591057pld.244.1535724240912; Fri, 31 Aug 2018 07:04:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535724240; cv=none; d=google.com; s=arc-20160816; b=HrbRjezBWqcyvWSK/c1ED51KVGgmLDySgGZklcDetdW8rXZY6yuK0yRByU0LnuJeFh tQ2Yjz3NvQgtfq07n83q563I6HEHDQ9ct1s6RXMJJPi5XT5oSyOhq384gjiMA2ODpfdt B/iqO44c8JlhWd1rxyfr/FOyg6dULqO6NGDWyDgFrrnjiNIZ+h5TzXtepuABHeXewoFB M5DQ1E9xwDm2vQu841SBa0E7LDhhOEjJ/tykFTwk+J5HS4gxeepZWGc0AVyvlmvQvQW9 v7rs1BddocMJ4T4xSBfxNB1t+w0qT0RUY3qYv23kznT3GFHNX8uOfI5Ph2ZNorEfHSya 6bQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=TKg2sDM6rebLXZR0vUsn1heVprX6HunF8TSEiKif+M8=; b=i+OJOOc2YhBM/mdEbGJsFZyDcMWD/djluXYiIH63KAJcHYTgi7nhxKQB6XOWDoQoP9 IlgPnO+K0PfSaEG4KBdNuSCv90zM8OaN4roNw+Yfadx/euoyaRh+Goh+R6l7L6i5aXaK rgKmRh6CAm+a2JlGB6Vky2DydEsnX3maAVGsQSJIb7qrQ49NYyGMQQntbS5l/fpLCkAx otyzIlmNAlk//k2jrq84f17bBn+dZ96S5gyGb467RONLMc3Wq7qNcoa00DVz1XMdcoGB FQRk/wUQXlab4qlMQloHYWU6CMpwa8ywRCQYwRQdBChuoN4CskzPmQz77FmpfLXw6unO jr4g== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p21-v6si9729885pgd.56.2018.08.31.07.03.46; Fri, 31 Aug 2018 07:04:00 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728478AbeHaRr5 (ORCPT + 99 others); Fri, 31 Aug 2018 13:47:57 -0400 Received: from esa5.microchip.iphmx.com ([216.71.150.166]:58936 "EHLO esa5.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727475AbeHaRr4 (ORCPT ); Fri, 31 Aug 2018 13:47:56 -0400 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: , , , , , , , , , CC: , , , , , Radu Pirea 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 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- 2.18.0