Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1048588imm; Fri, 15 Jun 2018 10:19:07 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLYkHEffTSeJrftQVNwfZ4GkLQW0AbmVuvZ3vMyVeZAs7Khw9NzhFqXnSeT/l7/aESELNZg X-Received: by 2002:a63:6485:: with SMTP id y127-v6mr2399569pgb.126.1529083147756; Fri, 15 Jun 2018 10:19:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529083147; cv=none; d=google.com; s=arc-20160816; b=D0SVbhDZVsI+HV0t8sEcAx4hRZAg37LcOEOIsFirigwtT2j0JNDaWTYON8NIfjf/DZ +1supjSBV4kaU3cyjvCPUPK6lzB0KD+YlyxdGwYsqR0b9GcApEFT1EgqqVhYkv09sHNt ScEXkC+lPnOKwwY7aH1s7IKAaP3z93nxw51ppH1MLTuqpio1BmZaoZmezB3zOKyNipOp 9cUeQsgohyIRZEqtEQvl6oDaav/+yDlp7H1DSBjWkG+TMEH6gowT4txvWQ5bw4OfaBn+ 9AM//HSlieK3GUqTA/tfZeNHqM2hbhypjYlZX1DaczHUIM+bxIKJNM+HjPoAt43htrSc t1xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=87/lMDZ4STPvHSeGh//+BsWrrQTaJA3u8kEj7y2UDxk=; b=k5YnxaDkHgSKsPLZ3Q+SRKQgxYl5Uv35ymMK2rA37PywB299TPnpx5FfFsYp7wy/+p Mx8rakoKOQJva3E/Q0P+pTUWzlzehi23O+ohuj+J2KoYn5zo9OKoU3pCpdxJdDZyttab K27BAPAoyvI6qDsm8BBtnPq4bBjVjGFwzpTg7D3KDi4/KEMGgQbRB9Y8et77p8Obiogk GSzPHiKfMZ9oB4NZR8M8BXXtNjuP/OFZUIRCJSmcZ/GRtt+Yo+St/RFW9x5guQkKbRWO q8GCU3Ff4Skiqu3dY5QhogWJdWLxjBCjoqjIaFtltf5FGQtwNkqN3f7727ufPwicgPEX AZPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=IJuSbhIJ; 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 a10-v6si8488960pls.480.2018.06.15.10.18.53; Fri, 15 Jun 2018 10:19:07 -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=IJuSbhIJ; 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 S936377AbeFORSb (ORCPT + 99 others); Fri, 15 Jun 2018 13:18:31 -0400 Received: from lelnx194.ext.ti.com ([198.47.27.80]:37800 "EHLO lelnx194.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934312AbeFORS3 (ORCPT ); Fri, 15 Jun 2018 13:18:29 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by lelnx194.ext.ti.com (8.15.1/8.15.1) with ESMTP id w5FHI1JA007609; Fri, 15 Jun 2018 12:18:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1529083081; bh=87/lMDZ4STPvHSeGh//+BsWrrQTaJA3u8kEj7y2UDxk=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=IJuSbhIJ5F1x8QPoS6dBZeN5xc8FTGBLs17sND5YAYTii9TMMChK1r0B7tCmdlHh3 qvioOyGRm3n+WPCkifBF1+6NLBkCoUh6mv7Jr+6nCzLO/yS+QldphNgW+ULje0voTS J+N+B8C73+9gD1h3N17gKjoH93s1ZbnGF+Funx1o= Received: from DLEE104.ent.ti.com (dlee104.ent.ti.com [157.170.170.34]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w5FHI1Va020209; Fri, 15 Jun 2018 12:18:01 -0500 Received: from DLEE108.ent.ti.com (157.170.170.38) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Fri, 15 Jun 2018 12:18:00 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DLEE108.ent.ti.com (157.170.170.38) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Fri, 15 Jun 2018 12:18:00 -0500 Received: from [172.24.190.172] (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id w5FHHrMo013097; Fri, 15 Jun 2018 12:17:54 -0500 Subject: Re: [RFC PATCH 3/6] serial: 8250_omap: Add support for AM654 UART controller To: Rob Herring , Nishanth Menon CC: Santosh Shilimkar , Will Deacon , Catalin Marinas , Greg Kroah-Hartman , Mark Rutland , , , , , Tony Lindgren , Vignesh R , Tero Kristo , Russell King , Sudeep Holla References: <20180605060125.9518-1-nm@ti.com> <20180605060125.9518-4-nm@ti.com> <20180612210640.GA20728@rob-hp-laptop> From: Sekhar Nori Message-ID: <8c553dcc-e352-6e69-e08c-4e6237555ea7@ti.com> Date: Fri, 15 Jun 2018 22:47:53 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <20180612210640.GA20728@rob-hp-laptop> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit 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 Hi Rob, On Wednesday 13 June 2018 02:36 AM, Rob Herring wrote: > On Tue, Jun 05, 2018 at 01:01:22AM -0500, Nishanth Menon wrote: >> 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(+) >> >> 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 > > Not compatible with any existing TI 8250 UARTs? Curious on why you asked about this. Are you suggesting why not: "ti,-uart", "ti,-uart" or you are asking why introduce "ti,-uart" unless there is clear demonstrable need for using it in driver code. In general, I think "ti,-uart", "ti,-uart" in device-tree (and by extension in binding document) is better even in there are no _known_ incompatibilities at the time of initial driver submission. The reason is silicon integration and process differences many times spill over into driver. Of course, the idea is not to go postal and create a new compatible for every pin-compatible part number that gets created, but probably a new compatible should be created for a new silicon die. We have just started introducing support for this SoC, and since it reuses many IPs, this question is likely to come up again. In this particular case though, Nishanth is perfectly right in not saying compatible : should be "ti,am654-uart", "ti,omap4-uart" Because we *know* UART DMA integration is different and a match against omap4 would result in non-working UART once DMA is enabled by default. Thanks, Sekhar