From patchwork Fri Mar 17 05:51:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chunyan Zhang X-Patchwork-Id: 9629851 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A543060245 for ; Fri, 17 Mar 2017 05:57:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9518528695 for ; Fri, 17 Mar 2017 05:57:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 87AA728698; Fri, 17 Mar 2017 05:57:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 014F228695 for ; Fri, 17 Mar 2017 05:57:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=6iMHSWrArQXcBDCGeqk3As49Fk/JgESroP4ZU34Ms1s=; b=KFL5MKRD2EcawF bnJ8CbbC3W3FhBs3vnTFndp9E/mD/DvgKriyrEQtSvY9pZx33/ozWyHGtZLmST0NBQw4I7y3AfQsG /+/YXfbNR8D3nhXrJZbb5zOUYqZE3CPaFmgD4Nl6st9qp9+CwRj+6kURmIDzupdznGJM+R49U5o0P yAUT9Cqs4r/h14qKb4fxOQVjIAq+fM9AcNkE2dxN6ooKzYPJrQkk8nXy9FeIJ1ZBjmfmIVyUPDAHy 8U/dspK1Um55OKlzboNkOtdpgjwxj82a6VrZBVeWHT31FcQc5+ZDTRj9DyxVqffSU30TP0QLP+alF lSidsJCEI+ZSMklUZzfA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1coksm-0001zE-7t; Fri, 17 Mar 2017 05:57:00 +0000 Received: from [222.66.158.135] (helo=SHSQR01.spreadtrum.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1coksN-0001Tt-77 for linux-arm-kernel@lists.infradead.org; Fri, 17 Mar 2017 05:56:38 +0000 Received: from ig2.spreadtrum.com (shcas02.spreadtrum.com [10.0.1.202]) by SHSQR01.spreadtrum.com with ESMTP id v2H5s3Sq029079 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO); Fri, 17 Mar 2017 13:54:03 +0800 (CST) (envelope-from Chunyan.Zhang@spreadtrum.com) Received: from SHCAS02.spreadtrum.com (10.0.1.202) by SHMBX03.spreadtrum.com (10.0.1.208) with Microsoft SMTP Server (TLS) id 15.0.847.32; Fri, 17 Mar 2017 13:54:03 +0800 Received: from localhost (10.0.73.143) by SHCAS02.spreadtrum.com (10.0.1.250) with Microsoft SMTP Server (TLS) id 15.0.847.32 via Frontend Transport; Fri, 17 Mar 2017 13:54:02 +0800 From: Chunyan Zhang To: , , , , , Subject: [PATCH V4 3/4] dt-bindings: serial: add a new compatible string for SC9860 Date: Fri, 17 Mar 2017 13:51:37 +0800 Message-ID: <1489729898-774-4-git-send-email-chunyan.zhang@spreadtrum.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1489729898-774-1-git-send-email-chunyan.zhang@spreadtrum.com> References: <1489729898-774-1-git-send-email-chunyan.zhang@spreadtrum.com> MIME-Version: 1.0 X-MAIL: SHSQR01.spreadtrum.com v2H5s3Sq029079 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170316_225635_730480_2A9BBD33 X-CRM114-Status: UNSURE ( 8.37 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, orson.zhai@spreadtrum.com, mathieu.poirier@linaro.org, zhang.lyra@gmail.com, linux-kernel@vger.kernel.org, sudeep.holla@arm.com, chunyan.zhang@spreadtrum.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP SC9860 use the same serial device which SC9836 uses, so added a new compatible string to support SC9860 as well, also added an example of how to describe this serial device in DT. Signed-off-by: Chunyan Zhang Acked-by: Rob Herring --- Documentation/devicetree/bindings/serial/sprd-uart.txt | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/serial/sprd-uart.txt b/Documentation/devicetree/bindings/serial/sprd-uart.txt index 2aff0f2..1db5d6f 100644 --- a/Documentation/devicetree/bindings/serial/sprd-uart.txt +++ b/Documentation/devicetree/bindings/serial/sprd-uart.txt @@ -1,7 +1,19 @@ * Spreadtrum serial UART Required properties: -- compatible: must be "sprd,sc9836-uart" +- compatible: must be one of: + * "sprd,sc9836-uart" + * "sprd,sc9860-uart", "sprd,sc9836-uart" + - reg: offset and length of the register set for the device - interrupts: exactly one interrupt specifier - clocks: phandles to input clocks. + +Example: + uart0: serial@000000 { + compatible = "sprd,sc9860-uart", + "sprd,sc9836-uart"; + reg = <0x000000 0x100>; + interrupts = ; + clocks = <&ext_26m>; + };