From patchwork Tue Dec 18 03:41:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 154043 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp3228737ljp; Mon, 17 Dec 2018 19:42:41 -0800 (PST) X-Google-Smtp-Source: AFSGD/XJLIuL3U9MZrruBqp0ePL05YYISIpb3d89tYczu8MjupylxMIm7XPKTtrz9nuBtEHNHNsI X-Received: by 2002:a17:902:7d90:: with SMTP id a16mr14352436plm.249.1545104561083; Mon, 17 Dec 2018 19:42:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545104561; cv=none; d=google.com; s=arc-20160816; b=WebEhz1CDvg03t2fBpkQwC3scWsrQQx+8JQbkt1mV24qsTTPGv3I4V2lYcD+uZV75t nt7O4ylO8KEpjSCZpTBfF4PgSrNNHX91GMFuwlHl0uoQse7XFXrMWSoV3P5ik6ylpuLH pmKUd6moKpUEkN2uo48WKRKnRXqxkp3ZgKrIuRI6PZWxj7YUMOt7E/NjfK+2A2U4TfVv 0RlDO8kZO1WBmDKEue+lkG/dPE7pw8ZTBEG+mnO2ArXxvJR60noHrzy/tYXBymHZoTGo cL/TUz/WyLAgb3XTnOPIZIAlAf0T3iR4OeOE9qBwhvWkvh2DRJFivZP54LELWVN2ssUJ d7FQ== 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=OqWlI56PTw6fXaZULsSRvWRiSOBKx0EEoCN8NR+mtPndRat0ah0AVGjp1DRvGg2lI8 f7MFquSFY9IISvi7ocvER4UINMlFCe7lXjsmp+HQcuo++RZ6fkvNUHGs0+sCZ9OuTPOo /dhc9FW3XF03Q3EDzsr3eaCT94ECABgF9Lv6hyVnvooU3z6NzXyJWsjvlaAjtoYWsBRM XZy7TgPxfgIHdRT+AwVVzJsF3VyX71PdirS7dLo3RZrrZxp2SqZ9nLN+xSj4uGhY1DIS k3xfK2AvdV7vdISiiPM33HZKPT9U6MfKF8KGZ5j2kMVqf00HzKKSAsDIsVAEnNOMweNN wEGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=C74OyDly; 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 f90si12674141plb.362.2018.12.17.19.42.40; Mon, 17 Dec 2018 19:42:41 -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=C74OyDly; 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 S1726679AbeLRDmk (ORCPT + 2 others); Mon, 17 Dec 2018 22:42:40 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:41381 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726420AbeLRDmk (ORCPT ); Mon, 17 Dec 2018 22:42:40 -0500 Received: by mail-pf1-f195.google.com with SMTP id b7so7420799pfi.8 for ; Mon, 17 Dec 2018 19:42:39 -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=C74OyDly/NiDSVigsP5oCcyhH/+431l8v+3wMLcDmTTt4/7sWUZudzf3bJVdGVJE+S oZEnZdjdZUhN9/ortEfDl6NF7rWEYgAP2n0hhJ0TK354X4xeKA0SIafrrrB5iyV1PK/3 j+WYI7zOtJBaLAeUsumyexl9kNs0EAVKboO1I= 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=a7SX3o0U6svzHF6hPNCY0E0Mpw+gs0z5uocNODFabFh+nIrbDA8ByOgfYyf06wpBNt gwT5mmcFsWshEUnMFsC7BjNzUpJgj520YG2IaOUQIwApS0/6EJ0Z6yWszyHH/SsFhjvg feskLkkSEJUoFu57hIizbL5tv1cGmlvx1QuykLIYowGgeUkXlu+oCR7xsyDat9ran2A3 ds5wHEgphkrhgfFW1PhBS+ku3rudXabUYc6g5dov/X/MBNi+eCoJdEjecDi8/8Q33Kk3 +1rPhH0EuYfqzfNJqHihdDMVnrKNxjuTU9r46X0PXQLBukxNpv1RFW/rU1uklabBNjSc T/Zg== X-Gm-Message-State: AA+aEWYUR2B4S4OA/6bxrmylZEUPtnpyAwi8zjpHdEoNBrpM5c6YOcJQ lW0/yyMKFB5sqC4hyRE88M1s X-Received: by 2002:a62:e30d:: with SMTP id g13mr15084079pfh.151.1545104559121; Mon, 17 Dec 2018 19:42:39 -0800 (PST) Received: from localhost.localdomain ([2409:4072:702:382e:8c68:d268:ed20:5f25]) by smtp.gmail.com with ESMTPSA id b202sm25255422pfb.88.2018.12.17.19.42.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Dec 2018 19:42:38 -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 v5 05/11] ARM: dts: Add devicetree for OrangePi 2G IoT board Date: Tue, 18 Dec 2018 09:11:26 +0530 Message-Id: <20181218034132.5070-6-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181218034132.5070-1-manivannan.sadhasivam@linaro.org> References: <20181218034132.5070-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>; +};