From patchwork Wed Jun 14 08:23:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 105471 Delivered-To: patch@linaro.org Received: by 10.140.91.77 with SMTP id y71csp180231qgd; Wed, 14 Jun 2017 01:25:03 -0700 (PDT) X-Received: by 10.99.97.137 with SMTP id v131mr2996775pgb.235.1497428703779; Wed, 14 Jun 2017 01:25:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497428703; cv=none; d=google.com; s=arc-20160816; b=eKW8qYuvvsnAQzVLZaAjJSqI2jnJ2LQTumPDyFDWjWV9FbliOBDEgI5lUI+X4zkrjc XWT8tLItCXJw8CQgPC8qZKiEGKtdSSt2VzcFy6Z1+vdGTa0EkLN72gr1h2TpY/j81NOf qa51eKDeREU61LPPPjqu0m9QRA8EM1pJYGPma98TAieky/IDgCUHH72GGVj57CBPs+Xg iXSqTqD/G0GHODBz4I9iLZ6lZCP/Dc+TJbBRdDEINYaon7Pty/udrRIL2/IMYWmAFPfG EuHerHoqZ6zAZqFcwOAvWehvp+bvWYb98vOKvWSIL41VNjqYf78vlipto/cGT+EZ1G+z /xTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=FHeWWajBgn5Oyte4eDixXWKyaKbWrEJVO9kma8m0VGg=; b=f1Rg279JqaTzR2iOYC18EJUn+UwV84PVnrs+BsQxuGbA/c3/oYj329USqZ37MrmRBK wAO/OXm4u+XZW6czxnXRszq7671v+yXONk5s9wy0WuoB7lq8iCGoH+hQpqxOFQUllOzA 4cbK6KYKL1Zn0WaAIqJ0NmITyIVzubjNS+/gBVIKby7f8y5Mde0ody7TUVGTIH8NRiac ccLyP9PWX4bZcy4I41GKN6y2KfrfGGK3WhU4qpxMgwPhm99UaDwL8Np0MeVn1Hk6SNnO Ag3PaxNSltEkABn7Sh7ppCzicUflWlNolnEAvYivNzAtHutZzhCd6z58GTbHaNL2cgcj S95A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.b=hTbtloYa; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b74si170544pfc.93.2017.06.14.01.25.03; Wed, 14 Jun 2017 01:25:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.b=hTbtloYa; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754343AbdFNIYv (ORCPT + 7 others); Wed, 14 Jun 2017 04:24:51 -0400 Received: from mail-pg0-f42.google.com ([74.125.83.42]:32885 "EHLO mail-pg0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754635AbdFNIYr (ORCPT ); Wed, 14 Jun 2017 04:24:47 -0400 Received: by mail-pg0-f42.google.com with SMTP id f185so72592224pgc.0 for ; Wed, 14 Jun 2017 01:24:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=k8Ua5NW6C9wPym9b09CPYTT3lEpYCLQ1o8b+snEe/0M=; b=hTbtloYaa9BxdXXFDhLM0tA8iyQMIDyKG/vTjANxeBEnOMlub5VBLFEDQEeB9jgPEK jhFEQ7RC5ynYGTMYEmW+iGUXPnjS/9peurEaHYfFJpTVdHEXSgvUkt2spQ+8WjYOkBnd 1QlmPXGERoNP+UcRjGGRIq10lpZtNSlG+35/M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=k8Ua5NW6C9wPym9b09CPYTT3lEpYCLQ1o8b+snEe/0M=; b=geEverJiKXx6chuU86OtTZwmAv1l+Yt6Dod43AQsHfAnYRo6ymwU0wIBYmEY2KyUDT +VDi5I8ownZBG6Djm5AiXadH+JGn096Z+wkBJnKVHXiDIv+6p6gI4w9JHS6gtxTTMXLV 4qoSjfVNiC/zxysCPpQkrWLMb2SGbc5gAP9k5s88FFgzsc4mYBjk1lCsx2BF1VrogsRl gL+ffnJVBBLSudMAXo3/My0qGapqFSWojAtRhN+w6QMaJk8kMQq/thORCAfZxIul3thk 43J6bHRBj8iatU719H3gv6jdBkVJBOl2C+TfLypWpdd65Oo3mwXGPNg3/sThyvEFb5H1 /xuQ== X-Gm-Message-State: AKS2vOy9lntuAJn4p6onV+GaUHQLRxo3ymY7sQKdrkSt7sZu1D1WE6Q4 gTK/OHtKXZE/bU8p X-Received: by 10.84.232.8 with SMTP id h8mr3751617plk.278.1497428676272; Wed, 14 Jun 2017 01:24:36 -0700 (PDT) Received: from docularxu-ThinkPad-T440p.219.146.1.66 ([45.56.159.99]) by smtp.gmail.com with ESMTPSA id h14sm766802pfh.71.2017.06.14.01.24.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 14 Jun 2017 01:24:35 -0700 (PDT) From: Guodong Xu To: robh+dt@kernel.org, mark.rutland@arm.com, xuwei5@hisilicon.com, catalin.marinas@arm.com, will.deacon@arm.com, wangkefeng.wang@huawei.com, xuejiancheng@hisilicon.com, peter.griffin@linaro.org, puck.chen@hisilicon.com, lee.jones@linaro.org, ulf.hansson@linaro.org, bhelgaas@google.com, arnd@arndb.de Cc: zhangfei.gao@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mmc@vger.kernel.org, linux-pci@vger.kernel.org, Wang Xiaoyin , Guodong Xu Subject: [PATCH v3 07/21] arm64: dts: hi3660: Add uarts nodes Date: Wed, 14 Jun 2017 16:23:24 +0800 Message-Id: <20170614082338.15673-8-guodong.xu@linaro.org> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170614082338.15673-1-guodong.xu@linaro.org> References: <20170614082338.15673-1-guodong.xu@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Chen Feng Add nodes uart0 to uart4 and uart6 for hi3660 SoC. Enable uart3 and uart6, disable uart5, in hikey960 board dts. On HiKey960: - UART6 is used as default console, and is wired out through low speed expansion connector. - UART3 has RTS/CTS hardware handshake, and is wired out through low speed expansion connector. - UART5 is not used in commercial launched boards. So disable it. - UART4 is connected to Bluetooth, WL1837. Signed-off-by: Chen Feng Signed-off-by: Wang Xiaoyin Signed-off-by: Guodong Xu Reviewed-by: Zhangfei Gao --- arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts | 20 +++++- arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 74 +++++++++++++++++++++++ 2 files changed, 91 insertions(+), 3 deletions(-) -- 2.10.2 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts index 1a4d6c5..0a3f2e0 100644 --- a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts +++ b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts @@ -15,11 +15,17 @@ compatible = "hisilicon,hi3660-hikey960", "hisilicon,hi3660"; aliases { - serial5 = &uart5; /* console UART */ + serial0 = &uart0; + serial1 = &uart1; + serial2 = &uart2; + serial3 = &uart3; + serial4 = &uart4; + serial5 = &uart5; + serial6 = &uart6; }; chosen { - stdout-path = "serial5:115200n8"; + stdout-path = "serial6:115200n8"; }; memory@0 { @@ -51,6 +57,14 @@ status = "okay"; }; -&uart5 { +&uart3 { + /* On Low speed expansion */ + label = "LS-UART0"; + status = "okay"; +}; + +&uart6 { + /* On Low speed expansion */ + label = "LS-UART1"; status = "okay"; }; diff --git a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi index b03be4d..7a90c92 100644 --- a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi +++ b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi @@ -242,6 +242,66 @@ status = "disabled"; }; + uart0: serial@fdf02000 { + compatible = "arm,pl011", "arm,primecell"; + reg = <0x0 0xfdf02000 0x0 0x1000>; + interrupts = ; + clocks = <&crg_ctrl HI3660_CLK_MUX_UART0>, + <&crg_ctrl HI3660_PCLK>; + clock-names = "uartclk", "apb_pclk"; + pinctrl-names = "default"; + pinctrl-0 = <&uart0_pmx_func &uart0_cfg_func>; + status = "disabled"; + }; + + uart1: serial@fdf00000 { + compatible = "arm,pl011", "arm,primecell"; + reg = <0x0 0xfdf00000 0x0 0x1000>; + interrupts = ; + clocks = <&crg_ctrl HI3660_CLK_GATE_UART1>, + <&crg_ctrl HI3660_CLK_GATE_UART1>; + clock-names = "uartclk", "apb_pclk"; + pinctrl-names = "default"; + pinctrl-0 = <&uart1_pmx_func &uart1_cfg_func>; + status = "disabled"; + }; + + uart2: serial@fdf03000 { + compatible = "arm,pl011", "arm,primecell"; + reg = <0x0 0xfdf03000 0x0 0x1000>; + interrupts = ; + clocks = <&crg_ctrl HI3660_CLK_GATE_UART2>, + <&crg_ctrl HI3660_PCLK>; + clock-names = "uartclk", "apb_pclk"; + pinctrl-names = "default"; + pinctrl-0 = <&uart2_pmx_func &uart2_cfg_func>; + status = "disabled"; + }; + + uart3: serial@ffd74000 { + compatible = "arm,pl011", "arm,primecell"; + reg = <0x0 0xffd74000 0x0 0x1000>; + interrupts = ; + clocks = <&crg_ctrl HI3660_FACTOR_UART3>, + <&crg_ctrl HI3660_PCLK>; + clock-names = "uartclk", "apb_pclk"; + pinctrl-names = "default"; + pinctrl-0 = <&uart3_pmx_func &uart3_cfg_func>; + status = "disabled"; + }; + + uart4: serial@fdf01000 { + compatible = "arm,pl011", "arm,primecell"; + reg = <0x0 0xfdf01000 0x0 0x1000>; + interrupts = ; + clocks = <&crg_ctrl HI3660_CLK_GATE_UART4>, + <&crg_ctrl HI3660_CLK_GATE_UART4>; + clock-names = "uartclk", "apb_pclk"; + pinctrl-names = "default"; + pinctrl-0 = <&uart4_pmx_func &uart4_cfg_func>; + status = "disabled"; + }; + uart5: serial@fdf05000 { compatible = "arm,pl011", "arm,primecell"; reg = <0x0 0xfdf05000 0x0 0x1000>; @@ -249,6 +309,20 @@ clocks = <&crg_ctrl HI3660_CLK_GATE_UART5>, <&crg_ctrl HI3660_CLK_GATE_UART5>; clock-names = "uartclk", "apb_pclk"; + pinctrl-names = "default"; + pinctrl-0 = <&uart5_pmx_func &uart5_cfg_func>; + status = "disabled"; + }; + + uart6: serial@fff32000 { + compatible = "arm,pl011", "arm,primecell"; + reg = <0x0 0xfff32000 0x0 0x1000>; + interrupts = ; + clocks = <&crg_ctrl HI3660_CLK_UART6>, + <&crg_ctrl HI3660_PCLK>; + clock-names = "uartclk", "apb_pclk"; + pinctrl-names = "default"; + pinctrl-0 = <&uart6_pmx_func &uart6_cfg_func>; status = "disabled"; };