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: 5249481 Return-Path: X-Original-To: patchwork-linux-arm-msm@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 488589F39B for ; Fri, 7 Nov 2014 04:44:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5248220149 for ; Fri, 7 Nov 2014 04:44:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 721AB20145 for ; Fri, 7 Nov 2014 04:44:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751401AbaKGEoW (ORCPT ); Thu, 6 Nov 2014 23:44:22 -0500 Received: from mail-lb0-f180.google.com ([209.85.217.180]:34905 "EHLO mail-lb0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751348AbaKGEoV (ORCPT ); Thu, 6 Nov 2014 23:44:21 -0500 Received: by mail-lb0-f180.google.com with SMTP id u10so2092221lbd.11 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 Reply-To: frowand.list@gmail.com 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 CC: Greg Kroah-Hartman , linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-serial@vger.kernel.org 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> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable 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(-) -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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>;