Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp45973rwj; Thu, 22 Dec 2022 04:51:17 -0800 (PST) X-Google-Smtp-Source: AMrXdXs00VndzphE7A4GSfDdi822T6WPOjrdhsAKqT8V0GZctFmgH+x1N/IV5Y9N2kqJwD1lxLhY X-Received: by 2002:a17:906:76c9:b0:7c0:ee31:d8df with SMTP id q9-20020a17090676c900b007c0ee31d8dfmr4509199ejn.63.1671713477618; Thu, 22 Dec 2022 04:51:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671713477; cv=none; d=google.com; s=arc-20160816; b=q100EBeUPgB9lcDXPqX7QnwSEaHEvGUrNNFR2LYD4710onCkP8JIZkhAnzRz7okAYd u60fO1lwYOH8FREpC5yVUR125spn02hTsWBPBIIEgG2IH2SQuDrb/TXwYfiAzhu8+1N3 ZQYzHu8NDomZmouNHOwKFwG5PAwCKY+ZmZlfQHwKW1YvNXYeI+UZttNd2eusnYLFf2xa lasteqk4EWGSfyLUf0g2/m3UXJIwHoJUWzJxu/+x5G1hDM2flFqP4gDst0LOmbbAC9l2 w35M74zC5yk3BpsWIQAyZ+t7nWIzIACLwkpyTApmFtuA5UyH2/aDAP6yLGfWuTVZFwbx oPug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=KFfTw9DY/s6g8W/9pkSODXItctigT79ujNcauC/j/5k=; b=Wi0qN7IvtivuQ0NHZn6Dt04VqORrIB4cFP+PVt4GmTtWMoDis2YKeGQsfU432kRnSJ jch4lxueg8l6xwAT4ROWfCpogDsqGoSvjSGeJwqh7Yz09NEeA88fn/Vhk5rruK5SakBQ rGAkPJW7oDhut+BZoJd8Ys0zRHs0KFgx54uLPBn2XQCVWm9p+NC68AIlqmAA7ASnltw2 PPl9aZlZrCVhr4qwyOpCQ1va4fpm4FTHvHEu0DT19meNxifSmwAf/N2DRScj8JfS1oxZ RN1V3iMiSdP0cHnZsFZRDR04W2TqjA8Re+RWVR+uT3Aia/nH/sONxKpbN4h/9qVxteuA u6Xw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s5-20020a056402520500b004677d91cdeasi682299edd.244.2022.12.22.04.51.02; Thu, 22 Dec 2022 04:51:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235678AbiLVMd0 (ORCPT + 67 others); Thu, 22 Dec 2022 07:33:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235493AbiLVMdI (ORCPT ); Thu, 22 Dec 2022 07:33:08 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D7D4222523; Thu, 22 Dec 2022 04:33:01 -0800 (PST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B07152F4; Thu, 22 Dec 2022 04:33:42 -0800 (PST) Received: from e126835.arm.com (unknown [10.57.87.234]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 0C08C3FA32; Thu, 22 Dec 2022 04:32:56 -0800 (PST) From: Emekcan Aras To: Rob Herring , Krzysztof Kozlowski , Liviu Dudau , Lorenzo Pieralisi , Sudeep Holla , Miguel Silva Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Emekcan Aras Subject: [PATCH v3 1/2] arm: dts: arm: add arm corstone500 device tree Date: Thu, 22 Dec 2022 12:32:43 +0000 Message-Id: <20221222123244.147238-2-emekcan.aras@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221222123244.147238-1-emekcan.aras@arm.com> References: <20221222123244.147238-1-emekcan.aras@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Corstone500[0] is a platform from arm, which includes Cortex-A cores and ideal starting point for feature rich System on Chip (SoC) designs based on the Cortex-A5 core. These device trees contains the necessary bits to support the Corstone 500 FVP (Fixed Virtual Platform) and the FPGA MPS3 board. 0: https://developer.arm.com/documentation/102262/0000 Signed-off-by: Emekcan Aras --- arch/arm/boot/dts/Makefile | 3 +- arch/arm/boot/dts/corstone500.dts | 182 ++++++++++++++++++++++++++++++ 2 files changed, 184 insertions(+), 1 deletion(-) create mode 100644 arch/arm/boot/dts/corstone500.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 6aa7dc4db2fc..4dc4df0707dc 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -1465,7 +1465,8 @@ dtb-$(CONFIG_ARCH_VEXPRESS) += \ vexpress-v2p-ca5s.dtb \ vexpress-v2p-ca9.dtb \ vexpress-v2p-ca15-tc1.dtb \ - vexpress-v2p-ca15_a7.dtb + vexpress-v2p-ca15_a7.dtb \ + corstone500.dtb dtb-$(CONFIG_ARCH_VIRT) += \ xenvm-4.2.dtb dtb-$(CONFIG_ARCH_VT8500) += \ diff --git a/arch/arm/boot/dts/corstone500.dts b/arch/arm/boot/dts/corstone500.dts new file mode 100644 index 000000000000..bcca7d736c85 --- /dev/null +++ b/arch/arm/boot/dts/corstone500.dts @@ -0,0 +1,182 @@ +// SPDX-License-Identifier: GPL-2.0 or MIT +/* + * Copyright (c) 2022, Arm Limited. All rights reserved. + * + */ + + +#include + +/ { + model = "ARM Corstone500"; + compatible = "arm,corstone500"; + interrupt-parent = <&gic>; + #address-cells = <1>; + #size-cells = <1>; + + aliases { + serial0 = &uart0; + serial1 = &uart1; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + psci { + compatible = "arm,psci-1.0"; + method = "smc"; + cpu_on = <0x84000003>; + }; + + cpus { + #address-cells = <1>; + #size-cells = <0>; + enable-method = "psci"; + + cpu@0 { + device_type = "cpu"; + compatible = "arm,cortex-a5"; + reg = <0>; + next-level-cache = <&L2>; + }; + + cpu@1 { + device_type = "cpu"; + compatible = "arm,cortex-a5"; + reg = <1>; + next-level-cache = <&L2>; + }; + + cpu@2 { + device_type = "cpu"; + compatible = "arm,cortex-a5"; + reg = <2>; + next-level-cache = <&L2>; + }; + + cpu@3 { + device_type = "cpu"; + compatible = "arm,cortex-a5"; + reg = <3>; + next-level-cache = <&L2>; + }; + }; + + memory@80000000 { + device_type = "memory"; + reg = <0x80000000 0x7f000000>; + }; + + L2: cache-controller@1c010000 { + compatible = "arm,pl310-cache"; + reg = <0x1c010000 0x1000>; + interrupts = ; + cache-level = <2>; + cache-unified; + arm,data-latency = <1 1 1>; + arm,tag-latency = <1 1 1>; + }; + + refclk7500khz: clock-refclk7500khz { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <7500000>; + clock-output-names = "apb_pclk"; + }; + + refclk24mhz: clock-refclk24mhz { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <24000000>; + clock-output-names = "apb_pclk"; + }; + + smbclk: clock-refclk24mhzx2 { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <48000000>; + clock-output-names = "smclk"; + }; + + + gic: interrupt-controller@1c001000 { + compatible = "arm,cortex-a5-gic"; + #interrupt-cells = <3>; + #address-cells = <0>; + interrupt-controller; + reg = <0x1c001000 0x1000>, + <0x1c000100 0x100>; + interrupts = ; + }; + + soc{ + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <1>; + clock_frequency = <50000000>; + interrupt-parent = <&gic>; + ranges; + + uart0: serial@1a200000 { + compatible = "arm,pl011", "arm,primecell"; + reg = <0x1a200000 0x1000>; + interrupts = ; + clocks = <&refclk7500khz>; + clock-names = "apb_pclk"; + }; + + uart1: serial@1a210000 { + compatible = "arm,pl011", "arm,primecell"; + reg = <0x1a210000 0x1000>; + interrupts = ; + clocks = <&refclk7500khz>; + clock-names = "apb_pclk"; + }; + + timer0: timer@1a040000 { + compatible = "arm,armv7-timer-mem"; + reg = <0x1a040000 0x1000>; + clock-frequency = <7500000>; + + frame@1a050000 { + frame-number = <0>; + interrupts = ; + reg = <0x1a050000 0x1000>; + }; + }; + + smsc: ethernet@4020000 { + compatible = "smsc,lan9220", "smsc,lan9115"; + reg = <0x40200000 0x10000>; + interrupts = ; + reg-io-width = <4>; + phy-mode = "mii"; + smsc,irq-active-high; + vdd33a-supply = <&v2m_fixed_3v3>; + vddvario-supply = <&v2m_fixed_3v3>; + }; + + rtc@1a220000 { + compatible = "arm,pl031", "arm,primecell"; + reg = <0x1a220000 0x1000>; + clocks = <&refclk24mhz>; + interrupts = ; + clock-names = "apb_pclk"; + }; + }; + + v2m_fixed_3v3: regulator-0 { + compatible = "regulator-fixed"; + regulator-name = "3V3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; +}; -- 2.25.1