From patchwork Mon Dec 10 17:35:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 153321 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp3819848ljp; Mon, 10 Dec 2018 09:36:57 -0800 (PST) X-Google-Smtp-Source: AFSGD/X/Qqw4zmc+HVwckE4dPUswpZZxhZVfkYpmxwixOyoQgwn/osdvExYXfMpKnIIHnTa/iGfA X-Received: by 2002:a17:902:3064:: with SMTP id u91mr12651599plb.325.1544463417361; Mon, 10 Dec 2018 09:36:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544463417; cv=none; d=google.com; s=arc-20160816; b=YtceMxwsXuLAHfkJJZzuGsvGAmoAtl++ql4M5wqG4xvn/qJ818YRZXhTjpQE5Fxfj+ uvrrotYOCiZ3hORBWPJe++Q346jwIpAMepOr4SrR9ayT5GAeDNEsKUswabtppLBbvUKV f+/R1JFPJJzMKmIr0k5cMHMvJDuri9y627bnDH9HXPUAp04NtjjHz6iSI+rXkg34FXLX Qj/cHD+ByawnRkQfD4dd1Z8BtrZ1SmNfx3BlUpw4CBNYvf3JDrOAxrcP+DsfN1styD2t 1LGkhWCWBHC7laLYw5B8r4jfMIqs/zCdh5pfkcHwZpLqOqFaUkq7F4ZZ9Yx/nSguFda8 2V3Q== 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=v3DDSAfdUjpxc+kWiWl/kQ1YIhzsV7ZUuiIL5vAIVxHT9s8p1to+FCoX23HZ2UENoF 6DkMP5a4iqjDE8KfOhRIbKxXTZzzC0+9mu4fl9xTgMm8Hpe1IoxrZ0rf97RwLV59HQ3q xTIVWb1DnEMEOi5mb2donhwW9aQ1FhKBc0bMVtFsQBrkvmOC7TT+BCy3Xq9n/gcqTbX1 lj5MfJJMQ7WBH5XDZKksEVyggSuLvqF0Ts2T5ysa4+MdcSXzZbk9WDaR3gpW09g8nNOg 2/IyWAzWYBnY1gWEjb3hwV2aQNSbqrmVtZvzdT5QyHJFJrzvD6dWuZ/Cd+BhOWOGci6i mgVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HnWTjtv6; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 c1si7585182pld.194.2018.12.10.09.36.57; Mon, 10 Dec 2018 09:36:57 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=HnWTjtv6; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 S1728340AbeLJRg4 (ORCPT + 6 others); Mon, 10 Dec 2018 12:36:56 -0500 Received: from mail-pf1-f194.google.com ([209.85.210.194]:35579 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727283AbeLJRg4 (ORCPT ); Mon, 10 Dec 2018 12:36:56 -0500 Received: by mail-pf1-f194.google.com with SMTP id z9so5734685pfi.2 for ; Mon, 10 Dec 2018 09:36:55 -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=HnWTjtv6Hy7K1s4CYLo0CNcASjpB/ucXs+JDazjHumFysvFqK+VJ8QJWG1urZqaYjt Y0afPttIx8MIBlO/YhK5H0I0R0rKCJkRuKDTyP6KaboVBdzD6WwvGny6ncV5PmcmUjnz wDw+4l/6qUiEcd1nEANt24gSD+Rqcm5Y1pUQk= 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=cvjwu59emi2JaiL/YleBFe0eYVo8Td5cvMUcWVUir9AxlpsM9vXiROvP28ZbEBpjcT CyI0BOLWzSc5rwYiq/AbDEviTz6PS0cHLVrGo1XA/Nn29o0IhUm2y+VHMH9gPl1X4xRx r3ZFlvP0Yu7/puz2MOPds5b7P3CQOrAY0emqVpXgHPFR3thokTyq3F+wSUUOX8jC+2Ce okDlpgSqag2dkzRPJoDGDd88p0F9GQn0zm682+GQb2rlDMe/oEEJsAxA2Gv9XWW3VNWH 6LaVenaNOJIpU5bSgp1o3A6h/r2niJFyco5yyFGcni8ZLp315+drBK3gZq88cxC57xC1 /oyg== X-Gm-Message-State: AA+aEWby53TmJLBbdeGsuJEgzpVtKNBytxmUJb7dLIY/JSyOowP1iuow UO2sXbZHI3GfqNFgy4N7AV5k X-Received: by 2002:a63:6c48:: with SMTP id h69mr11056458pgc.139.1544463415247; Mon, 10 Dec 2018 09:36:55 -0800 (PST) Received: from localhost.localdomain ([2409:4072:91e:2c01:40e1:a028:b090:9e12]) by smtp.gmail.com with ESMTPSA id q1sm15998396pfb.96.2018.12.10.09.36.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Dec 2018 09:36:54 -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: 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 v4 06/15] ARM: dts: Add devicetree for OrangePi 2G IoT board Date: Mon, 10 Dec 2018 23:05:41 +0530 Message-Id: <20181210173550.29643-7-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181210173550.29643-1-manivannan.sadhasivam@linaro.org> References: <20181210173550.29643-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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>; +};