From patchwork Tue Jun 5 06:01:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nishanth Menon X-Patchwork-Id: 137668 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp545341lji; Mon, 4 Jun 2018 23:02:31 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKieE+/qB45nnrjhhMfigAQ6WgtpsUYW4tlzm+dq2JHTqvUb/z3ptRQFiHoAAFokYol/HxJ X-Received: by 2002:a17:902:2805:: with SMTP id e5-v6mr25211825plb.55.1528178551135; Mon, 04 Jun 2018 23:02:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528178551; cv=none; d=google.com; s=arc-20160816; b=dEULpCH0F+crs+g+ZoOxST97gb3U8rVEulmk2zeyBa+BYRCKyRHg6aUMfNFCR9x9QJ AxdLTaY07CCoU9FEye56YS5oenka1Y/bFW4mDHfkW1m9Gg9CZqdRDUyYjCa3XV3dk0Aq 1sb8vRAww7/B5SkocCq2M6/KVUR6wppr6+IYguIGWDuV4UVKfpUMXqeWjz9ztIyiiKI1 C0iGnmD8mXs1BNmC8Is9PJLHnUmy3rhGemgdxIULXuxP0yM7yaS87bMCyv3qv+zq61xy zlAp4cX3UmJt4zUwmuJ3zcb3Iq/jWLfOip/mBX/JkGTJSSF+HsZIzITouPyVCbW1KxWB OuqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=1v9ZeZmD/hSn3eg8pEPrFndhCq8wE7Qcjpl9b4I81c8=; b=HSF/F/wAqqeSLBm5q6UN+KwAwfPVao4M8fu43ziobCONrWfibBZpDyoVq5WMtZVBLn c3UarpEO7Io0p5JVz0LVgGBk+IljiiC8Z5UGz5beQ4uCMaehFHMMmDWPGceZrtQWroZz BKw0CknkmFDni4803ii49v4fwf0iEMinD+LTVvZAcRR5zL2//nLvu3Ubc+Ei2g4mUD9x xse2YGxvTaB9ho5S4nAeFFqmgVO6H6xUt3eZt+vuZ9eUGsDEdQw61Docq81mNonqKT1L Rv7Dse4zkusXAll8lNlNipqYd/b5bBf2uVKI72ppoNTc1yEILtBTzKICdVW9gpHgZxUH 0ysA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=OLGZSoe8; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h91-v6si47083646pld.132.2018.06.04.23.02.30; Mon, 04 Jun 2018 23:02:31 -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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=OLGZSoe8; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751805AbeFEGC3 (ORCPT + 30 others); Tue, 5 Jun 2018 02:02:29 -0400 Received: from fllnx209.ext.ti.com ([198.47.19.16]:15465 "EHLO fllnx209.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751729AbeFEGCZ (ORCPT ); Tue, 5 Jun 2018 02:02:25 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by fllnx209.ext.ti.com (8.15.1/8.15.1) with ESMTP id w5561k8F004804; Tue, 5 Jun 2018 01:01:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1528178506; bh=1v9ZeZmD/hSn3eg8pEPrFndhCq8wE7Qcjpl9b4I81c8=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=OLGZSoe8Uw2rXNxqPdUOcA9RjQRJv19Zoc71+oATQQ4SUhkkdOlnEWPo+zY/EL7BZ r3ayxY98HG9uEx9T3ZTtt/+HrWWeHROtfxc3raRDvLoIyZCi/UJoFIY0OqyzY2k8J+ /jUKM1BWz21xfmoqPixITyLpzcZJGcpoXjTRf3SU= Received: from DFLE107.ent.ti.com (dfle107.ent.ti.com [10.64.6.28]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w5561kJK022896; Tue, 5 Jun 2018 01:01:46 -0500 Received: from DFLE100.ent.ti.com (10.64.6.21) by DFLE107.ent.ti.com (10.64.6.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Tue, 5 Jun 2018 01:01:46 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Tue, 5 Jun 2018 01:01:46 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id w5561kN0007704; Tue, 5 Jun 2018 01:01:46 -0500 From: Nishanth Menon To: Santosh Shilimkar , Will Deacon , Catalin Marinas , Greg Kroah-Hartman , Mark Rutland , Rob Herring CC: , , , , Tony Lindgren , Vignesh R , Tero Kristo , Russell King , Sudeep Holla , Nishanth Menon , Sekhar Nori Subject: [RFC PATCH 3/6] serial: 8250_omap: Add support for AM654 UART controller Date: Tue, 5 Jun 2018 01:01:22 -0500 Message-ID: <20180605060125.9518-4-nm@ti.com> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180605060125.9518-1-nm@ti.com> References: <20180605060125.9518-1-nm@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org AM654 uses a UART controller that is compatible (partially) with existing 8250 UART, however, has a few differences with respect to DMA support and control paths. Introduce a base definition that allows us to build up the differences in follow on patches. Cc: Sekhar Nori Cc: Vignesh R Signed-off-by: Nishanth Menon --- Documentation/devicetree/bindings/serial/omap_serial.txt | 1 + drivers/tty/serial/8250/8250_omap.c | 1 + 2 files changed, 2 insertions(+) -- 2.15.1 diff --git a/Documentation/devicetree/bindings/serial/omap_serial.txt b/Documentation/devicetree/bindings/serial/omap_serial.txt index 4b0f05adb228..c35d5ece1156 100644 --- a/Documentation/devicetree/bindings/serial/omap_serial.txt +++ b/Documentation/devicetree/bindings/serial/omap_serial.txt @@ -1,6 +1,7 @@ OMAP UART controller Required properties: +- compatible : should be "ti,am654-uart" for AM654 controllers - compatible : should be "ti,omap2-uart" for OMAP2 controllers - compatible : should be "ti,omap3-uart" for OMAP3 controllers - compatible : should be "ti,omap4-uart" for OMAP4 controllers diff --git a/drivers/tty/serial/8250/8250_omap.c b/drivers/tty/serial/8250/8250_omap.c index 1b337fee07ed..a019286f8bb6 100644 --- a/drivers/tty/serial/8250/8250_omap.c +++ b/drivers/tty/serial/8250/8250_omap.c @@ -1115,6 +1115,7 @@ static const u8 am3352_habit = OMAP_DMA_TX_KICK | UART_ERRATA_CLOCK_DISABLE; static const u8 dra742_habit = UART_ERRATA_CLOCK_DISABLE; static const struct of_device_id omap8250_dt_ids[] = { + { .compatible = "ti,am654-uart" }, { .compatible = "ti,omap2-uart" }, { .compatible = "ti,omap3-uart" }, { .compatible = "ti,omap4-uart", .data = &omap4_habit, },