From patchwork Tue Dec 18 08:05:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 154123 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp3412064ljp; Tue, 18 Dec 2018 00:06:24 -0800 (PST) X-Google-Smtp-Source: AFSGD/WqdLsoh9+Xl8oJO4z6udo7VsfTfMApol9s5Q1AzXjQyffyH04syovzaP/zLgQ4CZeC7zGN X-Received: by 2002:a17:902:66e6:: with SMTP id e93mr15173022plk.92.1545120384439; Tue, 18 Dec 2018 00:06:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545120384; cv=none; d=google.com; s=arc-20160816; b=YNFzcHAqkclvHTn6syH7yLMxLXFHsgrpeaS679xJ6A8NILeSM2YMy2Ce8zMBbOUBGU ZTPbwQ6LKvIA2c5Pk9RmD/Gh5We393pPbUrpgD+xsnlDG574a5GeqT6PS55Y6ZFSGYoh 1+m2kOZuCd6UsLpWlHwtA97UMBtoT4IVccj9uQcr/MX/ImjOMfs7rFYSeZG71XiCg1em tTScR5zKi/WDgPEBlJJbS9cj4Zkv3T4vyyIs6DUYty6ozuxWohe+/RtzYtTnTg3Z5Kox PQmVfMSTGfXZ8rZkE9ZRTi/gAeBW9EdCSCvH52JiBUCrqoFcxJXYnFNsIZm1VPQdMQhj 7KTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=jBeXaJXIkgLTVAea7CD+4QY6FweZRNu6qTHTVAB8x/Y=; b=fooe/xshthi7YtlvKZdASWHcMmKR2pRmIivJ54zy9QjCXl4Qd/I6W5ywC/2D6RpxDr NT7ipyx+o9IVUBKPsu3kfW6ZGd9/oAG3obFh6LcRKwH5HQUwjGlkde1hpZaD5Ws/bCR6 aPCbUnCVvq2wlna4Nrp414vYkdxEvTvVvTcDSgSQPkVODAR30frQhAyzzqsjat2vAN4k zjSTIA1NlzhhybL7x9iyaUpGh4cHn5eclETA6YKQnfbKM+ADNS+5Ke7+Z+Xer/cifGE8 5I9/2POoSid8hdyDvJt6ZWka0mpeKzk+hn/JcsrryDvYiPfgAvHwIRodiduZrQMf7nIm aB0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="O3h/8Wro"; spf=pass (google.com: best guess record for domain of linux-serial-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-serial-owner@vger.kernel.org; dmarc=pass (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 l66si11915982pga.151.2018.12.18.00.06.24; Tue, 18 Dec 2018 00:06:24 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-serial-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=@linaro.org header.s=google header.b="O3h/8Wro"; spf=pass (google.com: best guess record for domain of linux-serial-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-serial-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726580AbeLRIGX (ORCPT + 2 others); Tue, 18 Dec 2018 03:06:23 -0500 Received: from mail-pf1-f193.google.com ([209.85.210.193]:39351 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726546AbeLRIGX (ORCPT ); Tue, 18 Dec 2018 03:06:23 -0500 Received: by mail-pf1-f193.google.com with SMTP id r136so699942pfc.6 for ; Tue, 18 Dec 2018 00:06:23 -0800 (PST) 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 :mime-version:content-transfer-encoding; bh=jBeXaJXIkgLTVAea7CD+4QY6FweZRNu6qTHTVAB8x/Y=; b=O3h/8WrootvgLo6iq19RENYMSgRZXgcAimJmVbJ1apvTl0v088S7GX4+j8W4I1AWTU d6QGZUDdXG8lODI4a2XlfM9kWxlSZ1mfYCxShhmwuUDpJ8n+lIfjad/tMyTDmHaZoPqt oCcK89JeiKGxtLVa8rx5HzDxbciCXatzC81ac= 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:mime-version:content-transfer-encoding; bh=jBeXaJXIkgLTVAea7CD+4QY6FweZRNu6qTHTVAB8x/Y=; b=U/i6ROlElBCFyN1wtB+7GWCiSobcrxQgai7QSBXWqEa06ZPuKcdDQdRSZhBgCBNLkA FzxF4XsirdCehWIWyDaoYJVNgeIWsw9FYgGGNbx+2mztVq65U76ArFxRU59SBYY68uXO ugeQ1cXXSjnuXPfliyks9erRkw/0XTzeFiE94spV4U3IRodyqzHY7Mg2mbu1MUAiLJ0q s77VITFr8053V6YYgK4mN89XlQSL0fHjTtANxMDNsXXZ0XZpM2TC7CalvFFVhBjC+3om w87OMGAX0JXB+srVDA9ZeXFCmqpCerWa8fKSIkxN7WSMudXODgbvp4gBAMSpfJVRPdPN oCNg== X-Gm-Message-State: AA+aEWZHaRpvbR4+9hGhD5+eMO2Ws2UNGzB3isOnGaaaIi+WbIX65H9E jKD1Yxm5B2Lsz7NJr8stQie0 X-Received: by 2002:a65:55ca:: with SMTP id k10mr14788239pgs.448.1545120382887; Tue, 18 Dec 2018 00:06:22 -0800 (PST) Received: from localhost.localdomain ([2409:4072:702:382e:8c68:d268:ed20:5f25]) by smtp.gmail.com with ESMTPSA id 7sm45596888pfm.8.2018.12.18.00.06.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Dec 2018 00:06:21 -0800 (PST) From: Manivannan Sadhasivam To: olof@lixom.net, arnd@arndb.de, robh+dt@kernel.org, gregkh@linuxfoundation.org, jslaby@suse.com Cc: linux-unisoc@lists.infradead.org, afaerber@suse.de, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-serial@vger.kernel.org, amit.kucheria@linaro.org, linus.walleij@linaro.org, zhao_steven@263.net, Manivannan Sadhasivam Subject: [PATCH v6 05/11] ARM: dts: Add devicetree for OrangePi 2G IoT board Date: Tue, 18 Dec 2018 13:35:21 +0530 Message-Id: <20181218080527.10801-6-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181218080527.10801-1-manivannan.sadhasivam@linaro.org> References: <20181218080527.10801-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Sender: linux-serial-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org Add initial devicetree support for OrangePi 2G IoT board from Xunlong. Signed-off-by: Andreas Färber Signed-off-by: Manivannan Sadhasivam --- arch/arm/boot/dts/Makefile | 2 + .../boot/dts/rda8810pl-orangepi-2g-iot.dts | 50 +++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 arch/arm/boot/dts/rda8810pl-orangepi-2g-iot.dts -- 2.17.1 diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index b0e966d625b9..a0fdad8f10dd 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -806,6 +806,8 @@ dtb-$(CONFIG_ARCH_QCOM) += \ qcom-msm8974-sony-xperia-castor.dtb \ qcom-msm8974-sony-xperia-honami.dtb \ qcom-mdm9615-wp8548-mangoh-green.dtb +dtb-$(CONFIG_ARCH_RDA) += \ + rda8810pl-orangepi-2g-iot.dtb dtb-$(CONFIG_ARCH_REALVIEW) += \ arm-realview-pb1176.dtb \ arm-realview-pb11mp.dtb \ diff --git a/arch/arm/boot/dts/rda8810pl-orangepi-2g-iot.dts b/arch/arm/boot/dts/rda8810pl-orangepi-2g-iot.dts new file mode 100644 index 000000000000..98e34248ae80 --- /dev/null +++ b/arch/arm/boot/dts/rda8810pl-orangepi-2g-iot.dts @@ -0,0 +1,50 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2017 Andreas Färber + * Copyright (c) 2018 Manivannan Sadhasivam + */ + +/dts-v1/; + +#include "rda8810pl.dtsi" + +/ { + compatible = "xunlong,orangepi-2g-iot", "rda,8810pl"; + model = "Orange Pi 2G-IoT"; + + aliases { + serial0 = &uart1; + serial1 = &uart2; + serial2 = &uart3; + }; + + chosen { + stdout-path = "serial2:921600n8"; + }; + + memory@80000000 { + device_type = "memory"; + reg = <0x80000000 0x10000000>; + }; + + uart_clk: uart-clk { + compatible = "fixed-clock"; + clock-frequency = <921600>; + #clock-cells = <0>; + }; +}; + +&uart1 { + status = "okay"; + clocks = <&uart_clk>; +}; + +&uart2 { + status = "okay"; + clocks = <&uart_clk>; +}; + +&uart3 { + status = "okay"; + clocks = <&uart_clk>; +};