From patchwork Wed Nov 28 13:50:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 152259 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp1114262ljp; Wed, 28 Nov 2018 05:52:25 -0800 (PST) X-Google-Smtp-Source: AFSGD/UYEssBD2SEqNZt+c2ePP9Re+wnYZWmNFtjTpiCTW7xGgZnWsFWse+0i3YvZPCoVfQ3zUte X-Received: by 2002:a17:902:ac8f:: with SMTP id h15mr35800785plr.245.1543413145316; Wed, 28 Nov 2018 05:52:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543413145; cv=none; d=google.com; s=arc-20160816; b=AV4WeVP8wYWK78BWYuVU+v/aOZA/0Ze6jxqqzouxCVlxk99ttfrz7B0IIEHgBhbUjV joIZXWv0kwxhgUfYeDCxGU1xBhN2l6rqGMa1EMMqrvz+vGVsM5J5ZIgjQLnN0HU3BtBv TL4gLj8w3RNpOjYoJvEStgm9G+RUAaFBo5Gb0VRO3nKXiZu3oD8IM3ZzPKXagb75X3Rw rymkJxZCBSsN4qTlx5LYYUkIV8XsgN78zHD2ldPFJaUnAOlVfx0HoRGQrys2T/xKkXUQ hoDy3D5JMJVS2ySmw2xSgPKhX5d981V6DignghJ+Y0OwxcSrm1GypuxlkLeCZpPtOsfJ CKZw== 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=Pct8S+sybimhZWfwcsAszRgQ6liAQWzr8H45ZiaK0fX4S8dMfYYsC9Fzjum+s4M6ov ldS+V3/ebfgaCMq2+p3eunzAgLIWvPQg0Mq4ha1DU1MWvVdozY4Vx1K1JO04NMfgT7af o88xaXvew9J1wUsnEXxqmox4o6DS630HtBvxmZqL9PdsDjoQJBWGu1/3PusX/nWGGfDT ycz1vBjvkjjyRqJmrHfDZGDpL5/AK6HQuLy6pBAkXkS48f7kdM2Cd9ECFowQ2Ert8Sgj FqaMeZ4HVjZDoT5J5vk6/mCAN6nln6yn37Fg775C35cPfOedv5J8VgeZcd4VDgjkLNG0 YaSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FGAYE8vh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 q2si7747709plh.261.2018.11.28.05.52.25; Wed, 28 Nov 2018 05:52:25 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=FGAYE8vh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1728743AbeK2AyG (ORCPT + 32 others); Wed, 28 Nov 2018 19:54:06 -0500 Received: from mail-pg1-f195.google.com ([209.85.215.195]:37787 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728345AbeK2AyF (ORCPT ); Wed, 28 Nov 2018 19:54:05 -0500 Received: by mail-pg1-f195.google.com with SMTP id 80so9543251pge.4 for ; Wed, 28 Nov 2018 05:52:22 -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=FGAYE8vh1xMSQlswPqbr7GfPbAFJaT6mEHeU37XgF2ceeWlfEIH4RIBdA53v53LB4A jQbAo/q283FUNpD3nppzIXa39GCGVLPHyR7c0DmSimUZWnhI2XLzAV9LoDRP4BXWzVQs lxGxfH/7OVuTltlVuABc0IEfL+iyEpb+oNXSA= 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=E1jNLdiO0iH6Gt+uAJ/5VvE09y3PUuBzZEHu9c+rApMWHXks0kJqsMxte6lzPM8fXA PBbv1JTBWw1yHpNwSHxYhbeMKaBaAtGJPyrwj6W/uziwhaZ8nlPbHN51etMQyvZBHzxY ee5Q/9gRyjZL5fJmxVTH3d4rWhQrQdsKBDLNz1u2Fn9tleZHZjCRZ6EYx9FDJtfqafcK QuZZ4x5Fv4A1+LaovD8Zb6dcNpKyR96J4Dw8zRfnXJptR/84NcoWsvSlfVA+Grejq2q7 UAAtdLS+RaNO/b0PxfSAm3+z1QRDFrxrW/6GvSq7C7uWsK1bvDSM1edA4o7l8radMN2e 6gKw== X-Gm-Message-State: AA+aEWaKWlEJ6Uv8rpPUlgPt5BS29hdPByPeyRBHENrJ+3ovIw4HaT2V ubIvFdrDZ6oJglLvFc9AU+TS X-Received: by 2002:a63:8c0d:: with SMTP id m13mr33438068pgd.422.1543413141755; Wed, 28 Nov 2018 05:52:21 -0800 (PST) Received: from localhost.localdomain ([2409:4072:90a:a93f:b481:6fae:6692:c3ee]) by smtp.gmail.com with ESMTPSA id c4sm22049854pfm.151.2018.11.28.05.52.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Nov 2018 05:52:21 -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 v3 06/15] arm: dts: Add devicetree for OrangePi 2G IoT board Date: Wed, 28 Nov 2018 19:20:57 +0530 Message-Id: <20181128135106.9255-7-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181128135106.9255-1-manivannan.sadhasivam@linaro.org> References: <20181128135106.9255-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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>; +};