Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1306999imm; Fri, 15 Jun 2018 14:57:12 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLtWbHiso3AzJwubt/U8Rehy/FazbRfCv69gJ1RuvtD2BfYyg7KC4UMsX5jwt/ls19Bt2GI X-Received: by 2002:a17:902:7d89:: with SMTP id a9-v6mr3934749plm.238.1529099832515; Fri, 15 Jun 2018 14:57:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529099832; cv=none; d=google.com; s=arc-20160816; b=hJseFXNSMp9eLRz031RK1d28UjvNkErSsmK6Km7VPOZtz9pOhNEwjLEoWm38qUtbRm W0DueFm6f0dNanqKOxjosDCogKJLN4VWv9oxU2pTOYe0+hF1DJTl6puuSBhORUqxsOwV bRccZFM+es5jmlCfM90zbXG3xNPp7HhRRr2L5gLW3MeJwgOPceNxJjZviNO5p0/uUzhn aw6jLZXPXXIRWgzkMxGIBgTPrXVJ+0IU0cb7Nw70sN7v6+k/A9DPKqefNauQhjQHJ89P SkBDvRa9uwm9uEm4qhSpDWw2XlgRPGLEOx8pNqaWE/H2rsplBHOvP+5oTz7F5k/0wGlY S2qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=zTw+9OfyPqdHtlTRwJDNsHS1ehb9sj8R52SDk090Avg=; b=gtoSVl2Vaq6xIb1Z4CMW35TP4hVn7qv4KNVymAY8Wg3Z9375Y+1yDyu1dxEdCrIMep bSy8e6JlBqq1EBOdC5rcQKJztp6/bA3/XVMTWXSHmQ6x0dSKBYzCOxE9BFDUDW0yyEpR dwopdoXdQPxdPCWZ3jrewyBmcS0xB2ZGy5r1yJEWFrl7BBC1aDxGaN89/qLt8IrWB7jd YZqoeTnvmwVSDGYBmYJHQVLbgu0+a1rzgnJ+6p94eGQLAlFHSKbxWZ4dvxGf/MS41K3E lgukVVWf2mcof2GAtvA4m1HMVTg9fRjf+LvMgkak6705D6jF+kdvZNjs0ZEhpmu/I6Gi 2CUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=nnZrYzHA; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t27-v6si7180749pgo.566.2018.06.15.14.56.57; Fri, 15 Jun 2018 14:57:12 -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=@kernel.org header.s=default header.b=nnZrYzHA; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756623AbeFOV4c (ORCPT + 99 others); Fri, 15 Jun 2018 17:56:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:47538 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756434AbeFOV4a (ORCPT ); Fri, 15 Jun 2018 17:56:30 -0400 Received: from mail-it0-f50.google.com (mail-it0-f50.google.com [209.85.214.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7495220896; Fri, 15 Jun 2018 21:56:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1529099789; bh=0swY2uwf7VPyfAK2qghJx8fY/SnuzZHZRMXpAufV4F4=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=nnZrYzHAggqgQR+PoDeaotj6Esga3w8GslW1TXQmWwgDvcEYu+SiGmdkGob5pEbdq eNu+1Vll8uhG3svrJjR2o/ctwx3JM+F2PA2HPMmz6s8iENQki7IZWPp8zDhaApUAJD nKY9vIu9tMOOHP01HCYrkV3aacepJv811DVz+VaI= Received: by mail-it0-f50.google.com with SMTP id a3-v6so4740157itd.0; Fri, 15 Jun 2018 14:56:29 -0700 (PDT) X-Gm-Message-State: APt69E1vsiT2Z98PbJOA6N7dunu+rPtGqTWYuyYBy22cNF3qffw85D1n SMiRfLkxQ9R1TORX9vrISPG1MTehl69aD6IkhQ== X-Received: by 2002:a24:f04e:: with SMTP id p14-v6mr2784712iti.106.1529099788881; Fri, 15 Jun 2018 14:56:28 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a4f:6403:0:0:0:0:0 with HTTP; Fri, 15 Jun 2018 14:56:08 -0700 (PDT) In-Reply-To: <8c553dcc-e352-6e69-e08c-4e6237555ea7@ti.com> References: <20180605060125.9518-1-nm@ti.com> <20180605060125.9518-4-nm@ti.com> <20180612210640.GA20728@rob-hp-laptop> <8c553dcc-e352-6e69-e08c-4e6237555ea7@ti.com> From: Rob Herring Date: Fri, 15 Jun 2018 15:56:08 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC PATCH 3/6] serial: 8250_omap: Add support for AM654 UART controller To: Sekhar Nori Cc: Nishanth Menon , Santosh Shilimkar , Will Deacon , Catalin Marinas , Greg Kroah-Hartman , Mark Rutland , "open list:SERIAL DRIVERS" , "linux-kernel@vger.kernel.org" , devicetree@vger.kernel.org, "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , Tony Lindgren , Vignesh R , Tero Kristo , Russell King , Sudeep Holla Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 15, 2018 at 11:17 AM, Sekhar Nori wrote: > 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" Correct. > 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. Yes, and chip designers can't be trusted. ;) > 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. Yes, that's the criteria I would use too. That's sometimes hard if it's not the chip vendor doing the DT bindings. > 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. Okay, makes sense. I'd suggest rewording the commit message to include this. The "compatible to 8250 except for DMA" part I would have applied to all TI UARTs rather than DMA differences with other TI UARTs. Rob