From patchwork Thu Mar 19 17:37:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tony Lindgren X-Patchwork-Id: 203086 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=-3.8 required=3.0 tests=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 DE762C4332B for ; Thu, 19 Mar 2020 17:38:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BA9D120836 for ; Thu, 19 Mar 2020 17:38:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728015AbgCSRiB (ORCPT ); Thu, 19 Mar 2020 13:38:01 -0400 Received: from muru.com ([72.249.23.125]:60920 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726867AbgCSRiB (ORCPT ); Thu, 19 Mar 2020 13:38:01 -0400 Received: from hillo.muru.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTP id 1278180A5; Thu, 19 Mar 2020 17:38:44 +0000 (UTC) From: Tony Lindgren To: Greg Kroah-Hartman , Rob Herring Cc: Alan Cox , Lee Jones , Jiri Slaby , Johan Hovold , Merlijn Wajer , Pavel Machek , Peter Hurley , Sebastian Reichel , linux-serial@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org Subject: [PATCHv5 0/4] n_gsm serdev support and protocol driver for droid4 modem Date: Thu, 19 Mar 2020 10:37:51 -0700 Message-Id: <20200319173755.65082-1-tony@atomide.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Hi all, Here's v4 set of n_gsm serdev support patches, and the related protocol driver for the modem found on Motorola Mapphone phones and tablets like droid4. This series only adds basic character device support for the serdev driver. Other serdev consumer drivers for specific devices will be posted separately. The patches are against v5.6-rc series. Regards, Tony Changes since v4: - Use drivers/tty/serdev/protocol directory for the driver instead of drivers/mfd as discussed on the lists for v3 set of patches - Fix remove to call kfree only after removing device from the list Changes since v3: - Update list of folks in Cc, looks like I sent v3 only to Lee and lkml - Init privdata before motmdm_register_dlci calls gsm_serdev_register_dlci - Update binding based on Rob's comments for license and "allOf" Changes since v2: - Drop useless send_command indirection, use static motmdm_send_command Changes since v1: - Simplified usage and got rid of few pointless inline functions - Added consumer MFD driver, devicetree binding, and dts changes Tony Lindgren (4): tty: n_gsm: Add support for serdev drivers serdev: ngsm-motmdm: Add Motorola TS 27.010 serdev modem driver for droid4 dt-bindings: mfd: motmdm: Add binding for motorola-mdm ARM: dts: omap4-droid4: Enable basic modem support .../serdev/motorola,mapphone-mdm6600.yaml | 34 + .../boot/dts/motorola-mapphone-common.dtsi | 6 + drivers/tty/n_gsm.c | 372 +++++ drivers/tty/serdev/Kconfig | 3 + drivers/tty/serdev/Makefile | 2 + drivers/tty/serdev/protocol/Kconfig | 14 + drivers/tty/serdev/protocol/Makefile | 3 + .../tty/serdev/protocol/serdev-ngsm-motmdm.c | 1200 +++++++++++++++++ include/linux/serdev-gsm.h | 168 +++ 9 files changed, 1802 insertions(+) create mode 100644 Documentation/devicetree/bindings/serdev/motorola,mapphone-mdm6600.yaml create mode 100644 drivers/tty/serdev/protocol/Kconfig create mode 100644 drivers/tty/serdev/protocol/Makefile create mode 100644 drivers/tty/serdev/protocol/serdev-ngsm-motmdm.c create mode 100644 include/linux/serdev-gsm.h