From patchwork Wed Nov 21 03:36:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 151631 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp1418868ljp; Tue, 20 Nov 2018 19:38:14 -0800 (PST) X-Google-Smtp-Source: AFSGD/WRPgdI8xtgRqSzQ+bySAP8vWBGOSvxEyrFB2NROIIWbo3vE1XOi1wpXd3F8Q0SLMAmk7fR X-Received: by 2002:a17:902:20c6:: with SMTP id v6mr4505225plg.156.1542771494501; Tue, 20 Nov 2018 19:38:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542771494; cv=none; d=google.com; s=arc-20160816; b=0mkniEAzHv4Ql6mdCsEzdB+Wd4j4sPRxriWOu1mJToJ/ClUD9UcCPipHjCFF8Zadsz CJUbrwX7MjRGpF1yb0TadgXi7pnpjkjAgPI0bH87OPhzPnuaAc2tM/oT6lP6H9nPQTBC MjvZgN3p2IeiQD/u5wFv0jIuRRr8HwJCjzk4DdDiwrp4ld0RdMBcKoMPpoPNsgz8LtSI 9uYAlkPo1IHwGhemdqMgRpwwU8bXbDqI38HH5+iXLPUkMvQau4YaKPuhXDZXArcwxjbU 9LR7aZ4a9e56xK5br/Gl5TUc0wnHroikNRSPKjmwPaLU7xHWZh4TU6T+1YH327jO5TCh SFjQ== 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=rkb6Vur4U4SNVlmfWr82lctyg9peW1saJEvXYDmJZJg=; b=hr0m1sYzdvjBXaBgF0eug8IiZn0cMJQxLHRgbT0hLSZ6k+/AzjJOZ4dvvDZ+7EGUe3 XH517a12O6Y755zBSS2khhNvg5pJTEV5F4bWKdf4uVrc5AytKmKmlpw/As2M3YDIpzdX jMY1CNJh455u/Y5DWMKsZkZgdIkWvEvGJTPUyjCpUl6bo2rytysOBEcoJmzls+I+sDbA Xxx3b39d6Ch+s+lWxuw/Ookd2BZ6hBIic4vm7luDgD4Qh/K/fY8qsYz9FBbRxtg+5oYj xVzG/wnrzanT7Iu2hKFnx7HLs0hhfI5YmVtjTusjOT6VBy4HD6ShZ37Ou1kiMw/cKWVm E16A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=isXAzGUM; 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 g7si25533389plq.336.2018.11.20.19.38.14; Tue, 20 Nov 2018 19:38:14 -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=isXAzGUM; 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 S1726671AbeKUOKr (ORCPT + 2 others); Wed, 21 Nov 2018 09:10:47 -0500 Received: from mail-pl1-f193.google.com ([209.85.214.193]:37690 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726149AbeKUOKr (ORCPT ); Wed, 21 Nov 2018 09:10:47 -0500 Received: by mail-pl1-f193.google.com with SMTP id b5so3386136plr.4 for ; Tue, 20 Nov 2018 19:38:13 -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=rkb6Vur4U4SNVlmfWr82lctyg9peW1saJEvXYDmJZJg=; b=isXAzGUMPrGvEmLT/EVW63npjfGPeZ3GX9Vh/DkvxH6TV5vkydusq1kUe1ddyIg/3D X2r8ZVgYUJww6By5Dt9uP25FpuGOKKELX5W8Isg/nK/9lItVzelhyPEs1JdJ+2mIlgsZ BHgUf3Wx0xQZlpFUajTu0WwwSPC2TUASAvkfw= 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=rkb6Vur4U4SNVlmfWr82lctyg9peW1saJEvXYDmJZJg=; b=nWnm689PRWhb1ln8GiifYGObwGsJurGnJkcrRtyhOwELguBcz6+i1RI+toagB155tj A7YOlAimkMtEFrUTUTn2+bS6N+PzFI4ywgnnnRYS5FOTT7sy0VFFY0jU+E+pb7unBAcn LPG0Cs54myM0YecfOHlRl97b1WjvajHVX/hNjVtIWS3ZhEaBzCy1kv9PuLyR6EfxHXfw EO5Gr/QgWSkvAo3KRnksy+RMLqWf5JCHuu9JLmGQ2ppfSgVaw7eFuDTG4uA8XbziyAMV 8xGKwITCmBMNS8iAIdxjJ4MGENm7JEV2MFbIegOFGCz9vC2xq053/AO0DqLRtDygf/iz vtdA== X-Gm-Message-State: AA+aEWYxLKhJtfwl9dlDINMZxKLNq3jfcZnv/+kr5Y/K3fues0lmryRL STqwFpoBe3M/DgvyRvcepVPd X-Received: by 2002:a63:ed15:: with SMTP id d21mr4388449pgi.305.1542771493024; Tue, 20 Nov 2018 19:38:13 -0800 (PST) Received: from localhost.localdomain ([2409:4072:98b:9501:106a:f751:df0d:9e68]) by smtp.gmail.com with ESMTPSA id z8sm72025095pgz.53.2018.11.20.19.38.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Nov 2018 19:38:12 -0800 (PST) From: Manivannan Sadhasivam To: olof@lixom.net, arnd@arndb.de, robh+dt@kernel.org, tglx@linutronix.de, jason@lakedaemon.net, marc.zyngier@arm.com, daniel.lezcano@linaro.org, gregkh@linuxfoundation.org, jslaby@suse.com Cc: 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, overseas.sales@unisoc.com, Manivannan Sadhasivam Subject: [PATCH v2 06/15] arm: dts: Add devicetree for OrangePi 2G IoT board Date: Wed, 21 Nov 2018 09:06:43 +0530 Message-Id: <20181121033652.12247-7-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181121033652.12247-1-manivannan.sadhasivam@linaro.org> References: <20181121033652.12247-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 | 40 +++++++++++++++++++ 2 files changed, 42 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..5e5bd0542e0c --- /dev/null +++ b/arch/arm/boot/dts/rda8810pl-orangepi-2g-iot.dts @@ -0,0 +1,40 @@ +// 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 = &uart0; + serial1 = &uart1; + serial2 = &uart2; + }; + + chosen { + stdout-path = "serial2:921600n8"; + }; + + memory@80000000 { + device_type = "memory"; + reg = <0x80000000 0x10000000>; + }; + + uart2_clk: uart2-clk { + compatible = "fixed-clock"; + clock-frequency = <921600>; + #clock-cells = <0>; + }; +}; + +&uart2 { + status = "okay"; + clocks = <&uart2_clk>; +};