From patchwork Sun Feb 5 00:57:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jayachandran C X-Patchwork-Id: 9555821 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id BF2A560236 for ; Sun, 5 Feb 2017 01:08:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9B95E2684F for ; Sun, 5 Feb 2017 01:08:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7ECB926B41; Sun, 5 Feb 2017 01:08:31 +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=-1.8 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.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 D6AFA2684F for ; Sun, 5 Feb 2017 01:08:30 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1caBJd-0000Sg-9l; Sun, 05 Feb 2017 01:08:29 +0000 Received: from mail-dm3nam03on0050.outbound.protection.outlook.com ([104.47.41.50] helo=NAM03-DM3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1caB9r-0003LB-Kp for linux-arm-kernel@lists.infradead.org; Sun, 05 Feb 2017 00:58:27 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=i69XlQp9gqB95wEsqVZc31IuGcYPz5/ivY/96eNoNoA=; b=EIOOeqfbc5NTve8jxlfR56amGAs+a3Kc/1t+DVyxjAkRi2pJpsSuU0t5lssazYryFO8UqVx3XvRTsbmciIw+KRaN4DotM6NM7cPJs5aYefKxDFcjtneRuKuCtKVUviOl+M97U4vPWWM3TIHzy/7Zvo0eNGn2jMrFwzrE7p5NRsc= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jayachandran.Nair@cavium.com; Received: from vulcan.caveonetworks.com (50.233.148.156) by BN1PR07MB216.namprd07.prod.outlook.com (10.242.216.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.860.13; Sun, 5 Feb 2017 00:57:56 +0000 From: Jayachandran C To: Subject: [PATCH v2 3/5] arm64: dts: add device trees for ARCH_THUNDER2 Date: Sun, 5 Feb 2017 00:57:04 +0000 Message-ID: <1486256226-43889-4-git-send-email-jnair@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1486256226-43889-1-git-send-email-jnair@caviumnetworks.com> References: <1486256226-43889-1-git-send-email-jnair@caviumnetworks.com> MIME-Version: 1.0 X-Originating-IP: [50.233.148.156] X-ClientProxiedBy: MWHPR1201CA0023.namprd12.prod.outlook.com (10.174.253.33) To BN1PR07MB216.namprd07.prod.outlook.com (10.242.216.151) X-MS-Office365-Filtering-Correlation-Id: aec18888-a81d-42d2-ee50-08d44d62063e X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BN1PR07MB216; X-Microsoft-Exchange-Diagnostics: 1; BN1PR07MB216; 3:vmxcQWAKCf7MvedptlLaj+wGjnxtZrze5OQjHeBvPwBgFFGufHF123st5Nz3sbIqLu0XN0Ypy+LflrgF+kubbI1j8tBcsxqVvbOPVdb2FMA0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SpqUWcD7y6xK28UwNoQuUB/2F8j4IYeFxEZFr+LJIUDE6x5If4OGDS39QZ0Y6PRX/kZVECXnlR8jjr6MNfc/2+9TMJUtIvEFTyP/jZwyA1h0ynr07lyZs2CZ1KmEbNOThIaws0KO1L7KTo24qg3frP+bBpdq7i7zwewfE1P2n0TuTVe/9LaoubLG2cRZNc6QRP/sQKDGt688nx/0epSlhCsAin6zs/tWYGhHIKhQBowROgPrE0seA45HzRRsP3/V4eWSANltQeuMPZHEVYiiOWFDi4TuNTjbBEFxw+f03TLotrPvHpuDTMrF96hLmnkqKMvExt1nnyFOJUir50AGi4oGiiWH1aND4BuukFCzpEOkEYQeQPd04MkwwOBorT9beSwxKBZ/1hYEZ/82lQFXmBkmm80MRZvd8+IfMfFJHjRlyuFyu9vU2MdPQTboAnLZ6HQbF5V3hFzewXhhvKUPq1o8dZ7TyyGMlE= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(158342451672863); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(6041248)(20161123560025)(20161123564025)(20161123555025)(20161123558025)(20161123562025)(6072148); SRVR:BN1PR07MB216; BCL:0; PCL:0; RULEID:; SRVR:BN1PR07MB216; X-Microsoft-Exchange-Diagnostics: 1; BN1PR07MB216; 4:3FRmn/XjjW1bhwiLx4TYGL0ubG8OOKBI4xIwTWyV8M3nG7jxZStuoNr2mYgi3ehhqEdSsMzIPc9X1KSA7wGSWojMeOylwmqXyMv47R8YqaDRUwWyd88r2l24/5uERtq1pD+UODiWyaNSur/+u/Qs5m2K2Mja19h0LtfzESL5fh64SDY1+A7DT2vn4bKAlLwojUIjVGN/4XwLY4qx88duBCjp7q3icZq+6uf+X3i4GG3dLvxrub4VH3NmG6fxN6Y729fMeo13Yzqg28hLrOA2xNCAUuYSL118KvbyiaRhkazXZm8esDrsqaOx8mDtNhPJo9i6DmOPYJym+1qRLoin2N1fcFvfikQ78jyHJJDYFOAktRSqNJLqGXRKyC5f9k+zVlw3275GRJkYCcmuAuNuc9aGCUGURzGbbuV6Pdbm8H45fKwbqInQQuTyIpXTJ3vqsoYQ+aYtIFodzL+Xxt+iCjicJNGxGSxHrupN54zQJdvVyPHKHYas3mwDiv6/md1SMEz/TohC9ZpRl/zl7bwLVVHdIGWT2NrbklwTSQGAo607H9IDBBnCMf4Wc0EqfROWQ4DvAEG/m3ZCurn2dPzOtNUBI/xssomPvn/bbIyrZTVLmrCTbB1vnJnKeIG4zpIXOWs2PBF39apj8p2tD5EueA== X-Forefront-PRVS: 0209425D0A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(7916002)(39450400003)(199003)(189002)(6512007)(50986999)(2950100002)(53416004)(38730400001)(47776003)(42186005)(3846002)(4326007)(97736004)(92566002)(5660300001)(2351001)(53936002)(2906002)(54906002)(110136003)(66066001)(6916009)(42882006)(76176999)(68736007)(48376002)(6486002)(50466002)(6666003)(6506006)(189998001)(101416001)(106356001)(105586002)(81156014)(81166006)(36756003)(69596002)(5003940100001)(50226002)(6116002)(7736002)(33646002)(305945005)(25786008)(8676002)(2004002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN1PR07MB216; H:vulcan.caveonetworks.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN1PR07MB216; 23:Wx7JnnTernlEkOYisZUPwmqhD6kSCnkKtcz8beqPiU?= =?us-ascii?Q?4GTV8rtZn9hnUNIVWBZjn5R1uwrl76FSpE88Y/C0TiwEksg+K6pemgs3iEuj?= =?us-ascii?Q?kyuLXtaiAe7PbVFyQZi8+pZ+tw+amh8Dwl+L+68EIaHMvh7lVu77+4EgdjEh?= =?us-ascii?Q?dC1vjAvn8fy8q+7LvOohLVsmN1PMmFsY926EJSM8jT8m7hDH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KobOGdT6K0un2R7D/gmeFDjj7kr?= =?us-ascii?Q?4kIV+SvLOLRaX2d3bchqKwILAneR8QVbWj+eK7W9Qki/x3vmZFymMoYqzRhz?= =?us-ascii?Q?TaaRhxL2nWyS4PErIWm6GR3W2G9nERm6ep?= X-Microsoft-Exchange-Diagnostics: 1; BN1PR07MB216; 6:B8QcVFRqAZ5vIIjAPcLjkR3Giqwxq1qq8XJmvB0A3KoHCGv4UfZuhkuIQ0yDyxKnh0WFVGxfJEgOku8krQr+H7wIXPQ3ch76NP6BHTzdlERMDK/lv/oUDclQEGwwRWU1RDA2MRQ2nyaJ0IKVuu5r7L6byFso7Ulg+EhnTfFUKR+2LwR5l7Sm9dzA7uDs0QJS2pUbeVBNwRDSp/3r3cdpxWNyszZTYHBsxUS1cUk9uIKhOF848mz0wUnZ1BplMaI8Sl7NFL1D/nhyds3G1tSu5y5/Lq565+hRZUhOmDeHpzlIXe4pt0JDTU0+/LxzHG8+BuIHtTEeJXstp4CXfflzDebkKAvQ6h1qwioa9zV9nFeBTnR8y93N9a+ugeiRP25Mhmz+83GkTozH8jfgldCtXg==; 5:nX9lZcmmjIII68Pu4OcJ2ba52kt6blAk/Ws1RGrBthdh2X5YC8HrcREZ1P1piJTYRUBVaovtIh2zg0w4ALZ5BfjrowyAgCPueUozCbA0Vaf1qdi49RW50BgUcmT3HKJTSQKew+kMpUApPIkV8ISeWw==; 24:pGn9YsGew1lbJmN1ZjT2cYgwa7Wpb2egkUkeCJoVPqhXd9lUyH1QpJGXZwcWe7QV8eV13brhy/Cg3eOFaYx4tIo6RhXU9NOZeGKz3FcCItE= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN1PR07MB216; 7:HO3w4gusMN/YKaaT56PY86OCoJtK8hQjz4mdCVRWNA2t0t2VONfBtwICov5dl0dzQXo4JCXt+JFvvNLX/otiuNECHFY6S70slLYGeUeNdSNctTvqi4Xa0KjIrFuptb2vlIIYdiRcV6GJaMy54FFfFqNg/MMe3jcS6an/Qxwt88vgt95qCzuftXTuHFiqEL70/h8ailbbe2NNfFVkCEN1v3ShZ11Plgu78XWRfs3LCgGJfRMCTQ2/ja1rnH0zhO5jWz2s2XsGWBj8k6PSq/XxePR4DnviDjfWNUJMMLxWI7GRBFROVK8a2goqN05xp9xRrc32/Ne03dKgCqxs+dqdGfOgA5v5jJPCxUO7aMlJuBdIadJQTHHffnpoZ2P2QWEjd5YaAv/JESNAWWIqmnqbA439wxnryHytu8hLGKFF5/IT58RRuzmVTZGbtJm1PterQvKy9g1jVK5qVLzWF9nVtiorqtjH6wo/3wFoipXKuhllmFavYuAG7+vI8QFU/9Z7mmDj+K18Hklrtw2Yw077FA== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Feb 2017 00:57:56.3019 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN1PR07MB216 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170204_165823_900905_9D3D2D19 X-CRM114-Status: GOOD ( 16.25 ) 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, Arnd Bergmann , Catalin Marinas , Will Deacon , Rob Herring , Jayachandran C , linux-arm-kernel@lists.infradead.org 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 device tree files for Cavium's ThunderX2 CN99XX arm64 server processors. The file cavium/thunder-99xx.dtsi has been added for the CPU and on-chip devices, and cavium/thunder-99xx.dts has been added for the evaluation board using the chip. Update the Makefile to build the thunder-99xx.dtb when the ARCH_THUNDER2 option is selected. Signed-off-by: Jayachandran C --- arch/arm64/boot/dts/cavium/Makefile | 1 + arch/arm64/boot/dts/cavium/thunder-99xx.dts | 34 +++++++ arch/arm64/boot/dts/cavium/thunder-99xx.dtsi | 147 +++++++++++++++++++++++++++ 3 files changed, 182 insertions(+) create mode 100644 arch/arm64/boot/dts/cavium/thunder-99xx.dts create mode 100644 arch/arm64/boot/dts/cavium/thunder-99xx.dtsi diff --git a/arch/arm64/boot/dts/cavium/Makefile b/arch/arm64/boot/dts/cavium/Makefile index e34f89d..557c8be 100644 --- a/arch/arm64/boot/dts/cavium/Makefile +++ b/arch/arm64/boot/dts/cavium/Makefile @@ -1,4 +1,5 @@ dtb-$(CONFIG_ARCH_THUNDER) += thunder-88xx.dtb +dtb-$(CONFIG_ARCH_THUNDER2) += thunder-99xx.dtb always := $(dtb-y) subdir-y := $(dts-dirs) diff --git a/arch/arm64/boot/dts/cavium/thunder-99xx.dts b/arch/arm64/boot/dts/cavium/thunder-99xx.dts new file mode 100644 index 0000000..ed6715a --- /dev/null +++ b/arch/arm64/boot/dts/cavium/thunder-99xx.dts @@ -0,0 +1,34 @@ +/* + * dts file for Cavium ThunderX2 CN99XX based Evaluation Boards + * + * Copyright (c) 2017 Cavium Inc. + * Copyright (c) 2013-2016 Broadcom + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of + * the License, or (at your option) any later version. + */ + +/dts-v1/; + +#include "thunder-99xx.dtsi" + +/ { + model = "Cavium ThunderX2 CN99XX"; + compatible = "cavium,thunder-99xx"; + + memory { + device_type = "memory"; + reg = <0x00000000 0x80000000 0x0 0x80000000>, /* 2G @ 2G */ + <0x00000008 0x80000000 0x0 0x80000000>; /* 2G @ 34G */ + }; + + aliases { + serial0 = &uart0; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; +}; diff --git a/arch/arm64/boot/dts/cavium/thunder-99xx.dtsi b/arch/arm64/boot/dts/cavium/thunder-99xx.dtsi new file mode 100644 index 0000000..1c07732 --- /dev/null +++ b/arch/arm64/boot/dts/cavium/thunder-99xx.dtsi @@ -0,0 +1,147 @@ +/* + * dtsi file for Cavium ThunderX2 CN99XX processor + * + * Copyright (c) 2017 Cavium Inc. + * Copyright (c) 2013-2016 Broadcom + * Author: Zi Shen Lim + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of + * the License, or (at your option) any later version. + */ + +#include + +/ { + model = "Cavium ThunderX2 CN99xx"; + compatible = "cavium,thunder-99xx"; + interrupt-parent = <&gic>; + #address-cells = <2>; + #size-cells = <2>; + + /* just 4 cpus now, 128 needed in full config */ + cpus { + #address-cells = <0x2>; + #size-cells = <0x0>; + + cpu@0 { + device_type = "cpu"; + compatible = "cavium,thunder2", "arm,armv8"; + reg = <0x0 0x0>; + enable-method = "psci"; + }; + + cpu@1 { + device_type = "cpu"; + compatible = "cavium,thunder2", "arm,armv8"; + reg = <0x0 0x1>; + enable-method = "psci"; + }; + + cpu@2 { + device_type = "cpu"; + compatible = "cavium,thunder2", "arm,armv8"; + reg = <0x0 0x2>; + enable-method = "psci"; + }; + + cpu@3 { + device_type = "cpu"; + compatible = "cavium,thunder2", "arm,armv8"; + reg = <0x0 0x3>; + enable-method = "psci"; + }; + }; + + psci { + compatible = "arm,psci-0.2"; + method = "smc"; + }; + + gic: interrupt-controller@400080000 { + compatible = "arm,gic-v3"; + #interrupt-cells = <3>; + #address-cells = <2>; + #size-cells = <2>; + ranges; + interrupt-controller; + #redistributor-regions = <1>; + reg = <0x04 0x00080000 0x0 0x20000>, /* GICD */ + <0x04 0x01000000 0x0 0x1000000>; /* GICR */ + interrupts = ; + + gicits: gic-its@40010000 { + compatible = "arm,gic-v3-its"; + msi-controller; + reg = <0x04 0x00100000 0x0 0x20000>; /* GIC ITS */ + }; + }; + + timer { + compatible = "arm,armv8-timer"; + interrupts = , + , + , + ; + }; + + pmu { + compatible = "arm,armv8-pmuv3"; + interrupts = ; /* PMU overflow */ + }; + + clk125mhz: uart_clk125mhz { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <125000000>; + clock-output-names = "clk125mhz"; + }; + + pci { + compatible = "pci-host-ecam-generic"; + device_type = "pci"; + #interrupt-cells = <1>; + #address-cells = <3>; + #size-cells = <2>; + + /* ECAM at 0x3000_0000 - 0x4000_0000 */ + reg = <0x0 0x30000000 0x0 0x10000000>; + reg-names = "PCI ECAM"; + + /* + * PCI ranges: + * IO no supported + * MEM 0x4000_0000 - 0x6000_0000 + * MEM64 pref 0x40_0000_0000 - 0x60_0000_0000 + */ + ranges = + <0x02000000 0 0x40000000 0 0x40000000 0 0x20000000 + 0x43000000 0x40 0x00000000 0x40 0x00000000 0x20 0x00000000>; + interrupt-map-mask = <0 0 0 7>; + interrupt-map = + /* addr pin ic icaddr icintr */ + <0 0 0 1 &gic 0 0 GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH + 0 0 0 2 &gic 0 0 GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH + 0 0 0 3 &gic 0 0 GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH + 0 0 0 4 &gic 0 0 GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>; + msi-parent = <&gicits>; + dma-coherent; + }; + + soc { + compatible = "simple-bus"; + #address-cells = <2>; + #size-cells = <2>; + ranges; + + uart0: serial@402020000 { + compatible = "arm,pl011", "arm,primecell"; + reg = <0x04 0x02020000 0x0 0x1000>; + interrupt-parent = <&gic>; + interrupts = ; + clocks = <&clk125mhz>; + clock-names = "apb_pclk"; + }; + }; +};