From patchwork Mon Nov 19 17:09:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 10688943 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2482E13B5 for ; Mon, 19 Nov 2018 17:12:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 07F522A310 for ; Mon, 19 Nov 2018 17:12:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F09442A31E; Mon, 19 Nov 2018 17:12:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8DF8B2A31C for ; Mon, 19 Nov 2018 17:12:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=MzlM0RbbRWtMF3xYnn2IB1jrDDY2vmU3e3acldD+fzk=; b=d1qAhrdHwok0Ca lIIDMgP37whCF70vgEJO0iSI/PHnfk0XDZpjGoBY6OTHnUOk55Ww/RC1s/BSA0fRY+y0vFUQlGmjJ l7UEHoa8skTPzS6yGJl6DBBqKJQVp39e5l9/2WYkQONhquKiOw7z9VYZURp0j9nKY+fZwQqr5OOue z4ysaH+nhGX0Vw8LW2nHXkxAO7/za4ALF6PodIDj8hJ6eGCDw0VmZNylVbgbCVn60z4eXANGJpHUu CCFtsjKPb2x6WZZPl7kXWaCkdDwO8WP+LXcSOmKDDns+H3Evm3dBlSw5fwwIrT6yd0lPnql9MukQO dutI7RkNQ1bUrlB/7XbA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gOn69-0002BJ-Kz; Mon, 19 Nov 2018 17:12:33 +0000 Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gOn5I-00013Z-A8 for linux-arm-kernel@lists.infradead.org; Mon, 19 Nov 2018 17:11:42 +0000 Received: by mail-pg1-x542.google.com with SMTP id w7so14089617pgp.13 for ; Mon, 19 Nov 2018 09:11:30 -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=lovS/nwfxXz2YQe0/HUnsKL9fcLTGfnOgEY8rFfiAyU=; b=CddQCmjcYAEaTSt498fRfW4QuqE5SMdherwu6BY/7EDDv0VSDQ9/LFXfnRby/YcqFs VLUMEtKHQv3+nbARCSpN68eXQKRN/O0Fsd2QXHuPAHbmmYesAnCKmNWr4+Wzc7bdYtVs FMWYNp7GKqEF+caL+ZtcQF407J3d9ntN+K9ac= 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=lovS/nwfxXz2YQe0/HUnsKL9fcLTGfnOgEY8rFfiAyU=; b=o/cOS5yThUoOW4Lq93CNfYZW0qhG55astckYNu2/xWX/LocW6sDpDF/ehMDeUa6X6S yTYoHCwHdVHJXOdJYbbWlueHrSgEUnfRHR0PcW5XTJ42zk1FAYM1OId0fjNfYlN87G4T xOECF9NVCQ2si4P+uaP9BeFTv547Qm7+VgfDdaQGz2g2uDyTPi+bHagzBmRFAwqG7Xs0 6Apoo4dGYJptw08hBNTjdLcFURbSVic54+wcuUTE7j6L9vjzEChksBWqshF4KNNfwc1f y21doamMBjfk/2nl+TqNS6dnAdJWMJQMIBaldngqe1lUGD0/uiQP7kQsA+F2ubdIkdZh tBMQ== X-Gm-Message-State: AGRZ1gIhas7N/30xYE2dtr6BDne6UIlkG1VclO4ZtLKJ14rKQVfczaUq 6lKFiw5DYXj9K5Rmp4NNcbPI X-Google-Smtp-Source: AJdET5fgBhwcR8YQuSASyKwl4zwuC089789aAuuJwH65n7CQ4LuKCcNpDddiC/MKYqaFLZuIwdhtOg== X-Received: by 2002:a62:e30d:: with SMTP id g13mr12105001pfh.151.1542647489171; Mon, 19 Nov 2018 09:11:29 -0800 (PST) Received: from localhost.localdomain ([2409:4072:631b:44eb:3905:6402:e2fb:2d7]) by smtp.gmail.com with ESMTPSA id 186-v6sm46175458pfe.39.2018.11.19.09.11.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Nov 2018 09:11:28 -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 Subject: [PATCH 05/16] arm: dts: Add devicetree for OrangePi 2G IoT board Date: Mon, 19 Nov 2018 22:39:28 +0530 Message-Id: <20181119170939.19153-6-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181119170939.19153-1-manivannan.sadhasivam@linaro.org> References: <20181119170939.19153-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181119_091140_379383_3391F3E9 X-CRM114-Status: GOOD ( 14.78 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linus.walleij@linaro.org, service@rdamicro.com, linux-kernel@vger.kernel.org, amit.kucheria@linaro.org, Manivannan Sadhasivam , =?utf-8?q?Andreas?= =?utf-8?q?_F=C3=A4rber?= , linux-arm-kernel@lists.infradead.org, zhao_steven@263.net Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 | 35 +++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 arch/arm/boot/dts/rda8810pl-orangepi-2g-iot.dts 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..4b49a7424b6a --- /dev/null +++ b/arch/arm/boot/dts/rda8810pl-orangepi-2g-iot.dts @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2017 Andreas Färber + * Copyright (c) 2018 Manivannan Sadhasivam + * + * SPDX-License-Identifier: (GPL-2.0+ OR MIT) + */ + +/dts-v1/; + +#include "rda8810pl.dtsi" + +/ { + compatible = "xunlong,orangepi-2g-iot", "rda,8810pl"; + model = "Orange Pi 2G-IoT"; + + 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>; +};