From patchwork Tue Jan 27 04:50:08 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring (Arm)" X-Patchwork-Id: 5714421 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 239B39F1D6 for ; Tue, 27 Jan 2015 04:52:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AD21C201B9 for ; Tue, 27 Jan 2015 04:52:55 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DC5B3201CE for ; Tue, 27 Jan 2015 04:52:54 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YFy7V-0006dj-9s; Tue, 27 Jan 2015 04:51:21 +0000 Received: from mail-oi0-x22a.google.com ([2607:f8b0:4003:c06::22a]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YFy7M-0006ar-Ax for linux-arm-kernel@lists.infradead.org; Tue, 27 Jan 2015 04:51:12 +0000 Received: by mail-oi0-f42.google.com with SMTP id i138so10714246oig.1 for ; Mon, 26 Jan 2015 20:50:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=CzEHqn8Bnz5m2XlJOY8VVfaw5EQWzLTQKBBUqA7/QfE=; b=QwbSaFA89o3//Qa3O7/sz3uLgVMVhxtQ6qLv1dGhMZzSW0SsswdtOioGG40/O64WSp Ij1Da65QWcVGNyRk9niGiuuxmUn9Ob2ZYPj1IRsoZTUDpjMZBnctwvyu2lOIeOmiRM1l KKxCBVZ/HeIqkmpTplfPmqK/KohMZD3CE8Zf0nOZ9TJ1F0i+lPjjlD7//Ewwd1J3M5Ys mQBlBfbL1W6mP34dUEbZGtmKw8c3gM/3rdNI9H0M6dUyL9XqMRdIVQ/qFNC9Lx+eYZyR GfOQimsnnYhKnsARvchmvieWgf6xCc8QrmHjxA6P4UHc6Jq7krcRGufoRfmFf9gN0eCK tPRQ== X-Received: by 10.182.73.131 with SMTP id l3mr14853012obv.45.1422334251095; Mon, 26 Jan 2015 20:50:51 -0800 (PST) Received: from rob-laptop.herring.priv (72-48-98-129.dyn.grandenetworks.net. [72.48.98.129]) by mx.google.com with ESMTPSA id v187sm109780oie.2.2015.01.26.20.50.49 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 26 Jan 2015 20:50:50 -0800 (PST) From: Rob Herring To: linux-serial@vger.kernel.org Subject: [PATCH 2/3] tty/serial: of_serial: add support for PXA/MMP uarts Date: Mon, 26 Jan 2015 22:50:08 -0600 Message-Id: <1422334209-23125-2-git-send-email-robh@kernel.org> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1422334209-23125-1-git-send-email-robh@kernel.org> References: <1422334209-23125-1-git-send-email-robh@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150126_205112_430345_75A2C554 X-CRM114-Status: GOOD ( 10.74 ) X-Spam-Score: -0.4 (/) Cc: Rob Herring , Jiri Slaby , linux-arm-kernel@lists.infradead.org, Greg Kroah-Hartman X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add mrvl,pxa-uart and mrvl,mmp-uart compatible strings for the of_serial driver. These are 8250 variants which have a port type of PORT_XSCALE. There is also the serial driver pxa.c with these compatible strings already. However, it can be replaced with the common 8250 driver. It has some issues like it cannot coexist with the 8250 driver due to tty name collision. That also means adding these compatible strings here should not case a problem. Signed-off-by: Rob Herring Cc: Greg Kroah-Hartman Cc: Jiri Slaby Cc: linux-serial@vger.kernel.org --- drivers/tty/serial/of_serial.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/tty/serial/of_serial.c b/drivers/tty/serial/of_serial.c index 3194b42..fbb719c 100644 --- a/drivers/tty/serial/of_serial.c +++ b/drivers/tty/serial/of_serial.c @@ -335,6 +335,10 @@ static struct of_device_id of_platform_serial_table[] = { .data = (void *)PORT_ALTR_16550_F64, }, { .compatible = "altr,16550-FIFO128", .data = (void *)PORT_ALTR_16550_F128, }, + { .compatible = "mrvl,mmp-uart", + .data = (void *)PORT_XSCALE, }, + { .compatible = "mrvl,pxa-uart", + .data = (void *)PORT_XSCALE, }, #ifdef CONFIG_SERIAL_OF_PLATFORM_NWPSERIAL { .compatible = "ibm,qpace-nwp-serial", .data = (void *)PORT_NWPSERIAL, },