From patchwork Fri Nov 7 04:44:15 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Rowand X-Patchwork-Id: 5249521 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.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 8832D9F39B for ; Fri, 7 Nov 2014 04:47:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AAF6420145 for ; Fri, 7 Nov 2014 04:47:18 +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 D00C020138 for ; Fri, 7 Nov 2014 04:47:17 +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 1XmbPj-0006vY-6e; Fri, 07 Nov 2014 04:44:47 +0000 Received: from mail-lb0-x22e.google.com ([2a00:1450:4010:c04::22e]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XmbPg-0006ue-5x for linux-arm-kernel@lists.infradead.org; Fri, 07 Nov 2014 04:44:44 +0000 Received: by mail-lb0-f174.google.com with SMTP id z11so1610398lbi.33 for ; Thu, 06 Nov 2014 20:44:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:reply-to:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=/7Lwwx4KNFKFFl+d6p9g5E1gOF/mZmvh7PRoxw8zLnk=; b=NkxxYmDa4SdhB7V2vn1lyu8JNkRHcbwKLT6aJ2i8RGIRH1edKiE8YhbAt9DCf3AATd jvXFwB014NB3d1VkAZf1kw11Ql5hO9uzwPemMBjQa3WTTIDMEzObfJ/zqvUjfKKeypF2 SuFTBUph4u66dLo3h6MN6gMeCTNLtut5mslLam8j8j432trNQ9udQqBj2qliQv4NQKKo u3a1XDLwy/P/kp1czbrwnFvzW9h22IZOmS+pE9/ohsz9g1wwsIRF1SkyymiY+iRQhbCF G4UhYnGcEIDdESegkX66Kuhxh2kNvQ1G7c+6mnn1fLxKeKQwC0/jpOYWHMqG5hgk1NDj 24yg== X-Received: by 10.112.136.164 with SMTP id qb4mr9034176lbb.62.1415335459541; Thu, 06 Nov 2014 20:44:19 -0800 (PST) Received: from [172.26.77.43] ([64.211.224.253]) by mx.google.com with ESMTPSA id l7sm2934147lah.27.2014.11.06.20.44.17 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 06 Nov 2014 20:44:19 -0800 (PST) Message-ID: <545C4E1F.4060401@gmail.com> Date: Thu, 06 Nov 2014 20:44:15 -0800 From: Frank Rowand User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: Stephen Boyd Subject: Re: [PATCH] tty: serial: msm_serial: Use DT aliases References: <1414024381-12204-1-git-send-email-sboyd@codeaurora.org> In-Reply-To: <1414024381-12204-1-git-send-email-sboyd@codeaurora.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141106_204444_408070_DB2A97A6 X-CRM114-Status: UNSURE ( 8.28 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.8 (/) Cc: Greg Kroah-Hartman , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org 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: , Reply-To: frowand.list@gmail.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, T_DKIM_INVALID, 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 From: Frank Rowand Update devicetree binding for msm_serial to reflect msm_serial_probe() getting line id from the serial alias. Signed-off-by: Frank Rowand --- Documentation/devicetree/bindings/serial/qcom,msm-uartdm.txt | 15 +++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) Index: b/Documentation/devicetree/bindings/serial/qcom,msm-uartdm.txt =================================================================== --- a/Documentation/devicetree/bindings/serial/qcom,msm-uartdm.txt +++ b/Documentation/devicetree/bindings/serial/qcom,msm-uartdm.txt @@ -27,11 +27,18 @@ Optional properties: - dmas: Should contain dma specifiers for transmit and receive channels - dma-names: Should contain "tx" for transmit and "rx" for receive channels +Additional requirements: +- Each UART port must have an alias correctly numbered in "aliases" node. + Examples: A uartdm v1.4 device with dma capabilities. -serial@f991e000 { +aliases { + serial0 = &serial0; +}; + +serial0: serial@f991e000 { compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm"; reg = <0xf991e000 0x1000>; interrupts = <0 108 0x0>; @@ -43,7 +50,11 @@ serial@f991e000 { A uartdm v1.3 device without dma capabilities and part of a GSBI complex. -serial@19c40000 { +aliases { + serial0 = &serial0; +}; + +serial0: serial@19c40000 { compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm"; reg = <0x19c40000 0x1000>, <0x19c00000 0x1000>;