From patchwork Tue Dec 18 15:02:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 154154 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp3814768ljp; Tue, 18 Dec 2018 07:03:38 -0800 (PST) X-Google-Smtp-Source: AFSGD/URdfkdeLvctHyVTlB5dwXbXpDw8SNXxN90X2DT/YfiGdohU5HETAeVyXmDDnYX8NmjVBJV X-Received: by 2002:a17:902:f81:: with SMTP id 1mr16133013plz.174.1545145418706; Tue, 18 Dec 2018 07:03:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545145418; cv=none; d=google.com; s=arc-20160816; b=0Tce9Rqv3P7JEbt2cWUmrZZyXb+qbpL4wPIYIRSgFB/1NNRu5vSw1ewFx4Dw6MMHJM V24VXv0hVxJOFde/jVA0/LKhEEJa6lGJVTPp41h0CF/F2vs7ngZ0aM9WLvuXH2wFy7N6 XCOQj+QbMW6U3xcPVtGnG1owadg+PCId2MqRdzXjjVO7RDMd/8IEnw2gjTIQppxr8Rt/ gNyrxaiBG4h1aRsycbUyHfGI2T+hsbCUOCnPALZljAh44MlWX+el5ECOSPRb2usmekK4 dgq9TKQ1BTSeJRm6UXtzd8Fu5/a6Fmop1RN8Ggwy+CjONxhfq4FN1jJWUukDrVYZYBCk wMxw== 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=Auk2XhMMEToip2KKbDHncAZfukq8/UgpgNfIt0Pzr7k=; b=BpsQ0MWwrH6av3C+Ui2xCIAEbNcMVllzZsneB/OZqtyrj/mYEaO9CZnVuErm1vVfVB czg82a1SzwxqemRr+XPUF7uyegRVEju89CBy/HCFcQ0YwFatWjVl4zQZPWTxPgz5CphJ trDILk3PrrdqmSS7X5Lt8Fd1rWaU0tRJ3xRse+EhcuHnU2ORRUtcK05tqlrwCAENuldm M4Lrqh8kfbdKrGs+C3Xc2371d6PAwyocMg/iJuFuAz9QdrgBYXUsx98TPLw0cF5Vj5WT 4CYZegX76ZxebDuFc9TsIgyqqHd5fXpCnwFzddUrInnwh6wgUDyGiJ2aPWi8X7y+9u7h OZqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eD+V7KxZ; 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 h129si12392121pfb.253.2018.12.18.07.03.38; Tue, 18 Dec 2018 07:03:38 -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=eD+V7KxZ; 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 S1726870AbeLRPDi (ORCPT + 2 others); Tue, 18 Dec 2018 10:03:38 -0500 Received: from mail-pf1-f196.google.com ([209.85.210.196]:44422 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726849AbeLRPDh (ORCPT ); Tue, 18 Dec 2018 10:03:37 -0500 Received: by mail-pf1-f196.google.com with SMTP id u6so8252406pfh.11 for ; Tue, 18 Dec 2018 07:03:37 -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=Auk2XhMMEToip2KKbDHncAZfukq8/UgpgNfIt0Pzr7k=; b=eD+V7KxZyfplaiikOGHEny17DLB002K4PPJd22DBzjlyRGHLiWc4KzF61xHvSji3zM lkEbs2K4r464GiJx9nkp8lydkKTl8UzKwdcXjHPu/+xKzPxYo1ORcdt7QgDbWvQqnCin 2h7ZgxhFlv336oNVWV+FKF5sEuXTmlykTV/EQ= 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=Auk2XhMMEToip2KKbDHncAZfukq8/UgpgNfIt0Pzr7k=; b=IlRJrvNvsqV4hwh6wWmIEIDga8vLvSP9fRPbtkydiagmHnknJd8HbJj8shL9AWFHgc 0RxFkRz4XR1VjLPkN2tweOyl8Jje2MeROtREzJREzLyClKp7aY0TfCX5uqKaSFYgJVIS 90XNrL0TDWFU1nzebarD8Ky291V13vmWd/v7vRklXi1UuebfmLyONXxCqGIwL6zOJd6K 6R1oqXnl/cyXx6mW1oCTA0XCjTKM6ZgOJfJiZJNUx30wBMJt6weeHqY53+Re6jIYQ/pG bTNcitxtRVznYDT0bzUyeNW6oTPtGpijZNt+Isoh9LAMpUV0+Syh4Jjg6J8oO84IddTC 7ujg== X-Gm-Message-State: AA+aEWbpWtJrmrfLPbhtfMp4WfyKbEgHe7XEv3HYv4d+syJ6n0ehl8/7 Pjb3XmhLALHV41Ew5blOLRDAyTwk8w== X-Received: by 2002:a62:cd1:: with SMTP id 78mr1804653pfm.219.1545145416963; Tue, 18 Dec 2018 07:03:36 -0800 (PST) Received: from localhost.localdomain ([2409:4072:702:382e:8c68:d268:ed20:5f25]) by smtp.gmail.com with ESMTPSA id m198sm28798688pga.10.2018.12.18.07.03.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Dec 2018 07:03:36 -0800 (PST) From: Manivannan Sadhasivam To: olof@lixom.net, arnd@arndb.de, arm@kernel.org, linux-arm-kernel@lists.infradead.org Cc: robh+dt@kernel.org, gregkh@linuxfoundation.org, jslaby@suse.com, linux-unisoc@lists.infradead.org, afaerber@suse.de, 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 v7 05/11] ARM: dts: Add devicetree for OrangePi 2G IoT board Date: Tue, 18 Dec 2018 20:32:32 +0530 Message-Id: <20181218150238.23010-6-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181218150238.23010-1-manivannan.sadhasivam@linaro.org> References: <20181218150238.23010-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 Acked-by: Arnd Bergmann --- 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>; +};