From patchwork Sat Jan 26 04:10:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 156664 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp1120702jaa; Fri, 25 Jan 2019 20:11:10 -0800 (PST) X-Google-Smtp-Source: ALg8bN5ykhSw/Mzjb45IDM/zDXg6J/0JvsYO/eA0BkZKZGwGwwU0o6Pb33VQPp7LP6wP0CkAgFd2 X-Received: by 2002:a17:902:a58a:: with SMTP id az10mr14000705plb.10.1548475869943; Fri, 25 Jan 2019 20:11:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548475869; cv=none; d=google.com; s=arc-20160816; b=lp85ScmJhEOUOyy22X0jnsIoyymTs2OaedZ+ZmrTnVfdhmCaLiYtDenD8V4h7GDoko K7rZGKdr4HyLdBP1+8FSqDKMvr4LQxBlU02yT7xW6Fc66NwpswhWb/Zc0yGznyF/3zdm hvyh0qr+ciyFlKcFPfCW3hV61dlC5qqa+/QUbawl/BwY0RSdZnOZzWgfPo5cA1/HUNFA 08/nhtpBUnFu210tBT3ZuqN4c07h6rDreaAmC+ZjELh7fDBNMA5uc8Jhv406OrmqzESY G+F2DluqOFmHDQ/DYJc1hBguycaxdDJX1KBHx3KJvhpcSmhsRNfP8oIc7/eC2CMbEdS+ 6asw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=zwq/fMdcgA58BB2frt4nPrnsexnAJmLHano6hGtPJbI=; b=HFX51xzdVPyoRkKndMaPp4W1ORbZ9HeLYvQ/mfxMBSIgbT77orMBhWn2C9EmH5s9DE 98w7hr6sGozxQ7yWiFBgBILld2yWtHXojMbfNJbrJNnriExemD2MwlcxCRo55b/rkmjp oFVnjJygPJrnohUEF8unwuHz0ZATty2mn82YTYYwM1p1URjliy7FfN6sLJVYWvsWdxZ/ wQfDIF/Lkj4WaPrn6bJRu2Gchu0jG/pLt3CBSLsINjy34V8mahZyv5rvxQsvjuo0toRa NrK7kvr/sn/h1urYCN6J7wdnOMJTMOp6lLe2Fb4auZyLoY1BKMsopaAx7EXFj13n2RoN NzNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=G7oDI9X0; 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 27si5042690pgp.135.2019.01.25.20.11.09; Fri, 25 Jan 2019 20:11:09 -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=G7oDI9X0; 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 S1729647AbfAZELH (ORCPT + 31 others); Fri, 25 Jan 2019 23:11:07 -0500 Received: from mail-pg1-f195.google.com ([209.85.215.195]:37442 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729613AbfAZELH (ORCPT ); Fri, 25 Jan 2019 23:11:07 -0500 Received: by mail-pg1-f195.google.com with SMTP id c25so5012685pgb.4 for ; Fri, 25 Jan 2019 20:11:06 -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; bh=zwq/fMdcgA58BB2frt4nPrnsexnAJmLHano6hGtPJbI=; b=G7oDI9X02JXb5jWSWxHginc5z5PpTZe/xrxwjBKLhB78MYbePD8X7Bu+Z+tK1tTj2l lysZ3mIJrhkuxary1Sa7nAfEonzfZAHrZe92lsxyx3APOyZ55xBZfLAzKalDv2/IvBBg eEspoYqd7XF6MWuAHV6rJjGVCnHaVvVQ2U5k0= 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; bh=zwq/fMdcgA58BB2frt4nPrnsexnAJmLHano6hGtPJbI=; b=tYNVWicR1hva3bmbr6vN045gduvYle7d7rnYhZxARyvgE7oh6aBgFYsn9qJw8XIxU3 VucZyJupRolbeatv3xrMqekuSKet7TWBvCb4IkKljcAYubxx1aHpm1GX9x0cWx8R6PO3 iY8G+Hz+K4ZeDEnwyMcM6ymLJKVByF24jVp4kznO4BtTNpwLZmYjIcVmQWVW4qaB38IH E7Op7vW74hjy38bQBAGYB6izvh+Gay7z0RXNLyF6xwG607wqJPwxCCfqzR5kLSOz22Fg dIOnN4TyzP9HtfWv+YPLFN8PUSaMyV9aYJvfa3PKS70BLb/3tdWRo59YbMAhxinCaFlY sLZg== X-Gm-Message-State: AJcUukfBolH5hjfO1XL1W7czvi+5PxTTZjyAkTDDghLe7GmTWeRGrny/ y1/ZIIKVkrNW4xv1KBelJbpr X-Received: by 2002:a63:ec13:: with SMTP id j19mr12323766pgh.6.1548475866371; Fri, 25 Jan 2019 20:11:06 -0800 (PST) Received: from localhost.localdomain ([2409:4072:905:e69d:b1bd:9891:c622:302d]) by smtp.gmail.com with ESMTPSA id h129sm75099676pfb.110.2019.01.25.20.11.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 Jan 2019 20:11:05 -0800 (PST) From: Manivannan Sadhasivam To: robh+dt@kernel.org, arnd@arndb.de, linux-arm-kernel@lists.infradead.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, haitao.suo@bitmain.com, darren.tsao@bitmain.com, amit.kucheria@linaro.org, Manivannan Sadhasivam Subject: [PATCH 1/5] dt-bindings: arm: Document Bitmain BM1880 SoC Date: Sat, 26 Jan 2019 09:40:37 +0530 Message-Id: <20190126041041.13173-2-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190126041041.13173-1-manivannan.sadhasivam@linaro.org> References: <20190126041041.13173-1-manivannan.sadhasivam@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Document Bitmain BM1880 SoC from Bitmain Technologies Ltd along with the Sophon Edge board. Signed-off-by: Manivannan Sadhasivam --- .../devicetree/bindings/arm/bitmain.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/bitmain.yaml -- 2.17.1 diff --git a/Documentation/devicetree/bindings/arm/bitmain.yaml b/Documentation/devicetree/bindings/arm/bitmain.yaml new file mode 100644 index 000000000000..0efdb4ac028e --- /dev/null +++ b/Documentation/devicetree/bindings/arm/bitmain.yaml @@ -0,0 +1,18 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/arm/bitmain.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Bitmain platform device tree bindings + +maintainers: + - Manivannan Sadhasivam + +properties: + compatible: + items: + - enum: + - bitmain,sophon-edge + - const: bitmain,bm1880 +... From patchwork Sat Jan 26 04:10:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 156667 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp1120920jaa; Fri, 25 Jan 2019 20:11:28 -0800 (PST) X-Google-Smtp-Source: ALg8bN6nK4sV2/ozWJv2IDJXuoSkTcSYMJ5j4BuwgR+64ta6arLG1I9PZd7Oa2TFns/hYv0So7iR X-Received: by 2002:a17:902:1102:: with SMTP id d2mr13807590pla.138.1548475888847; Fri, 25 Jan 2019 20:11:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548475888; cv=none; d=google.com; s=arc-20160816; b=dKEMWcaM9ITlgyYtn+/PYyNyRU38QIsiHq9rDFx6NmlR659LwURdjmESzaY922kyTG Tt89zC+vg4ADdWgqFxSpiZxNFD74mx9aM2mRSMKfGJZGCLpPvT+8CgtM3E7dIhevUe4z WL0nq0dbSg+it7124LaEKNfJD8Yj4BeWgEELur2n+alD3dHXIgOacLpZVchYIbXdtBJ7 vPzz6f/RM8cGM9+5Uoj7lpHOCwJ2BtduAiy9XWj70BUpytFyQuYr8+Ai5fPVV7zK1iDV guevTgdZWXwqyjUum3ynEhaTvRRct04BvdleauVF5Ab12gxwXORMJZbVpCw/a2fIYV3u vR9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=/Dlsm30B9KuTOu0GLcpGbceT3Bf9eF5q8ffkTHhPK10=; b=kdIjiwnNqltIpmWoxzb4zTJNWko9ep6Ic0H9nUNBA+ngnsjAQ+HllBjQaJEMj2cvga sYaimsItmTbHm22kjI7eOLf5jdpwHxXB/1Q3TDWeDn63BFiiZCQMeDwg9bRcQdfN5ou2 yTPDvNOxw12E8+sDYwV3ttdZQwgpb+zFKKH3i8W/D3tt248AvklDa4dPbyc8/WL2UUU8 uZ5SMb5AjO4kyWnJaozqYj5bcrnqoHtu38EDoyFNXquuQSecEYEJvxXPT85/ZQSCaY+I ePHtOHqmjSno3TeEko+S3Vk9+0z7ml1Umu+x3KFWaSeRq9Kbg13ynlvxvTAqKwjznZnP nQ7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=R18l4W5O; 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 ca19si29424501plb.238.2019.01.25.20.11.28; Fri, 25 Jan 2019 20:11:28 -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=R18l4W5O; 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 S1729728AbfAZEL0 (ORCPT + 31 others); Fri, 25 Jan 2019 23:11:26 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:34465 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729653AbfAZEL0 (ORCPT ); Fri, 25 Jan 2019 23:11:26 -0500 Received: by mail-pg1-f193.google.com with SMTP id j10so5021271pga.1 for ; Fri, 25 Jan 2019 20:11:25 -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; bh=/Dlsm30B9KuTOu0GLcpGbceT3Bf9eF5q8ffkTHhPK10=; b=R18l4W5OI7MT0OK4nLJAsmi8khYt/36YKWTv5ckk2NTnitUlKl72fIqBCfmvsQN3as qBR872ibrOcIUJkPaiTAlt4BjlDOY+cc0IPemlJn5jr5bNKFoFI2i3DEvowPRV6Qsw34 e8SNnZ7+l3wPAp8E9Q3H1rDVkLzcNZCCB7cSo= 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; bh=/Dlsm30B9KuTOu0GLcpGbceT3Bf9eF5q8ffkTHhPK10=; b=MEcefgHMYPx4zlU+bYwBmcoVmZfZLEi5Kj46xJhx8/8raJI8PrhdM4cgS0IYic+lAJ kLw2pfcTk9H/Wxmq7DFGjhbIemFpONi9xaCsMQ1BlPIy1sXuvm3pFOUCBV9qO/v9PQTh aRgbfhvCMwu6PlHfAw3pk0u4sz0GLB7PDmPKPa0N9HJWVwrsUvyFH/BYxUNqWGR29x5v IfdvDuyFOtmBfTRKCBWKHwNgHLU3LFYbG5iA6htFDRhasg/PDa9a9Nlhbh64oQxlMucg X9TiJV53Xx23z5z3lB3SFgZloHUDv+Q4QErrEZUv5fI3bqCP1JTt8oDJXCC1YYn1Frvi MuUw== X-Gm-Message-State: AJcUukeTk78KsZDppsmPFGX30QsInLGyTiRJ0i2Vh6jE4P9x4Fjtg71T ylUdrzIqmL2rDO/B0TUNbmLn X-Received: by 2002:a63:4b60:: with SMTP id k32mr12318387pgl.186.1548475885231; Fri, 25 Jan 2019 20:11:25 -0800 (PST) Received: from localhost.localdomain ([2409:4072:905:e69d:b1bd:9891:c622:302d]) by smtp.gmail.com with ESMTPSA id h129sm75099676pfb.110.2019.01.25.20.11.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 Jan 2019 20:11:24 -0800 (PST) From: Manivannan Sadhasivam To: robh+dt@kernel.org, arnd@arndb.de, linux-arm-kernel@lists.infradead.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, haitao.suo@bitmain.com, darren.tsao@bitmain.com, amit.kucheria@linaro.org, Manivannan Sadhasivam Subject: [PATCH 4/5] arm64: dts: bitmain: Add Sophon Egde board support Date: Sat, 26 Jan 2019 09:40:40 +0530 Message-Id: <20190126041041.13173-5-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190126041041.13173-1-manivannan.sadhasivam@linaro.org> References: <20190126041041.13173-1-manivannan.sadhasivam@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add devicetree support for Sophon Edge board from Bitmain based on BM1880 SoC. This board is one of the 96Boards Consumer and AI platform. More information about this board can be found in 96Boards product page: https://www.96boards.org/documentation/consumer/sophon-edge/ Only UART peripheral support is enabled for now. Signed-off-by: Manivannan Sadhasivam --- arch/arm64/boot/dts/bitmain/Makefile | 3 ++ .../boot/dts/bitmain/bm1880-sophon-edge.dts | 50 +++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 arch/arm64/boot/dts/bitmain/Makefile create mode 100644 arch/arm64/boot/dts/bitmain/bm1880-sophon-edge.dts -- 2.17.1 diff --git a/arch/arm64/boot/dts/bitmain/Makefile b/arch/arm64/boot/dts/bitmain/Makefile new file mode 100644 index 000000000000..be90a6071be0 --- /dev/null +++ b/arch/arm64/boot/dts/bitmain/Makefile @@ -0,0 +1,3 @@ +# SPDX-License-Identifier: GPL-2.0+ + +dtb-$(CONFIG_ARCH_BITMAIN) += bm1880-sophon-edge.dtb diff --git a/arch/arm64/boot/dts/bitmain/bm1880-sophon-edge.dts b/arch/arm64/boot/dts/bitmain/bm1880-sophon-edge.dts new file mode 100644 index 000000000000..6a3255597138 --- /dev/null +++ b/arch/arm64/boot/dts/bitmain/bm1880-sophon-edge.dts @@ -0,0 +1,50 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2019 Linaro Ltd. + * Author: Manivannan Sadhasivam + */ + +/dts-v1/; + +#include "bm1880.dtsi" + +/ { + compatible = "bitmain,sophon-edge", "bitmain,bm1880"; + model = "Sophon Edge"; + + aliases { + serial0 = &uart0; + serial1 = &uart2; + serial2 = &uart1; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + memory@0 { + device_type = "memory"; + reg = <0x1 0x00000000 0x0 0x40000000>; // 1GB + }; + + uart_clk: uart-clk { + compatible = "fixed-clock"; + clock-frequency = <500000000>; + #clock-cells = <0>; + }; +}; + +&uart0 { + status = "okay"; + clocks = <&uart_clk>; +}; + +&uart1 { + status = "okay"; + clocks = <&uart_clk>; +}; + +&uart2 { + status = "okay"; + clocks = <&uart_clk>; +};