Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2567493lqp; Mon, 25 Mar 2024 02:55:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU45JhBnMoBDt32VR6mfHp61uXeRDDX4aP+2Ej5PywMyt6bwSpVbYydWTvDlK/V9qqYV4ffxJjxEeEHrg57XSaA+ATWpaCbAbLM81eRjg== X-Google-Smtp-Source: AGHT+IERttAHGb4OVMtVwrRk1KyOZIGNbbZeNyxbtn6upzJo44vaBY0ZYbCiwjKqtt6ZU8pBhuVp X-Received: by 2002:a17:903:32c8:b0:1e0:2e8b:f4b with SMTP id i8-20020a17090332c800b001e02e8b0f4bmr5897839plr.2.1711360501072; Mon, 25 Mar 2024 02:55:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711360501; cv=pass; d=google.com; s=arc-20160816; b=QdeLwbEG9mbsNcmBXO8UePNTUoeW19XqSiYRo2+E2hxB0XWkz3S5sPIFA059KCxgGg D9z/M2cMPM7rkERTcqz45hWJuyziFV/OrUNnL/4nRzh+el9PnAwBqNTWR0pUpz5GVmjb veku1C/Gfu/d4mFmU1hNg/myeP+bapK3XAfMaYOn80IZpzyTM1hIBSOtFYMGrf1BbXfH Y4t9oUuZSp4ZfLqBCi6WcylatoU1OsYvuZMxraWy/miTqH8vC1O2YcVb2djKpxJWA8Mg nRJDZd4fjcuHt2xr5QX1zyc01Cbmt5oiolDSBMUv0mkK1VZaExZjhU9OIa5w0sa42C+/ GtgA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=Mc7nPEAAAQPD9nppkYp4cSBixiMJT1zncNM6luV0jgs=; fh=h9tqZrIY1jCVSYoJrVY/bmY7ZtM2d1NPJbEHGF3pyfQ=; b=Z8ZAdmH3m9dznliYMPMLuvxurCZGi3W2LGxfdIqOu8WimcELb49T8OIRR9yEQmdkHl NQYXg8GNDCnBuU4KLfD+7Ct+BDW2YKNMjAsQm0EoN5a+jz1IMrQw9aKHMomrOw7ATQUW GNbhSns3d34Iqjq7kybQzA/Ct6DTf6JWU1xvdbxGMNTJrOCFDKbRkS0Wv+YeQM6F45Ni I6pIsnHKivMsAd0OFDdVIzV9RA4+38nHM/LfpCMNe4bdPVPE6wERn4DHGaQBGmOFG/bM +bs4IxNHFORGT2eqJbgVrNj9fdPl6fy0jsu1VfDZXNzgSNa5IboCb0IP1mMYB7tVhkpg pp1A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gGM05f1t; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-115900-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-115900-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id e11-20020a17090301cb00b001dca843f0bcsi5017087plh.443.2024.03.25.02.55.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 02:55:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-115900-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gGM05f1t; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-115900-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-115900-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id A1BEC29E561 for ; Mon, 25 Mar 2024 09:43:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 01AF7387917; Mon, 25 Mar 2024 03:03:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="gGM05f1t" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A1D841474BC; Sun, 24 Mar 2024 23:14:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711322093; cv=none; b=iJBLWq/0JsTnglSpiapOtbFg6QNtdezu7aZ6c0Z37gcTViJLDYHUjIYQCZACIkI/edCfZhh0F+LMuVl6/+EKi/n+/0l6w0Y3dnPVde7SjFe8booAgOSCsRIsp2EuNE8siBl7qlq4lFBNSvfT4rQSXxpC+9AhEonM2xdJtWFHb4o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711322093; c=relaxed/simple; bh=FX5rddj2jLbKEjw8+QS8+C25+/szd9CZojMeF1VNv5o=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=DDhIKoZvMH4tgrDpP4CS8OMFdWZIYoO0J78r+3hYbtRDvWLP0wc05xotouFVgNeta9UwzjBPPQV7Uq2tp3U40POs89RlxIHkUXqR8pNyBtbw8VCkDrvTnKp2qCxrZ2hcOwuIR2c4VvHkJ58U28UTuzEtFPaCVS4PTUvRiVj8/jM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=gGM05f1t; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id DD2A9C43394; Sun, 24 Mar 2024 23:14:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711322092; bh=FX5rddj2jLbKEjw8+QS8+C25+/szd9CZojMeF1VNv5o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gGM05f1tAUI75Ra8kBlZdp+HUZWA5hAL15WmzhOdqHQGSd1N5oMpGk5OsjKo0gk2c GVnP9jAcuQIasHJ8ff8Zf4r+jFThSO8mAsWH97DqyiL80MrEUH4GCQBBE+M1OCMJ7E ZCqV485bCzRsYn3aBl7vnQBpO0Uq7DVjTtpiuDoqVSaYDwjMY6LGWSLlj2hX1pa6Vj 6Hx/mXOA9CCWt0zh27oSdHg2D4JLrKjpzPlI0jTx5WQZDsXoCdaB/fYP/EVTQALvwL mVL96Xq1W8oXs4npftB+vVo4q1axadtlr6KJ7STLh6kqfVMGFp2v9RjdnLN98Smxz3 e2QOGi4rGWo4A== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Lad Prabhakar , Geert Uytterhoeven , Sasha Levin Subject: [PATCH 6.1 166/451] arm64: dts: renesas: r9a07g043: Split out RZ/G2UL SoC specific parts Date: Sun, 24 Mar 2024 19:07:22 -0400 Message-ID: <20240324231207.1351418-167-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324231207.1351418-1-sashal@kernel.org> References: <20240324231207.1351418-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Lad Prabhakar [ Upstream commit b9a0be2054964026aa58966ce9724b672f210835 ] Move RZ/G2UL SoC specific parts to r9a07g043u.dtsi so that r9a07g043.dtsi can be shared with RZ/Five (RISC-V SoC). Below are the changes due to which SoC specific parts are moved to r9a07g043u.dtsi: - RZ/G2UL has Cortex-A55 (ARM64) whereas RZ/Five has AX45MP (RISC-V), - RZ/G2UL has GICv3 as interrupt controller whereas RZ/Five has PLIC, - RZ/G2UL has interrupts for SYSC block whereas interrupts are missing for SYSC block on RZ/Five, - RZ/G2UL has armv8-timer whereas RZ/Five has riscv-timer, - RZ/G2UL has PSCI whereas RZ/Five have OpenSBI. Signed-off-by: Lad Prabhakar Link: https://lore.kernel.org/r/20221025220629.79321-3-prabhakar.mahadev-lad.rj@bp.renesas.com Signed-off-by: Geert Uytterhoeven Stable-dep-of: 14fe225dd5fc ("arm64: dts: renesas: rzg2l: Add missing interrupts to IRQC nodes") Signed-off-by: Sasha Levin --- arch/arm64/boot/dts/renesas/r9a07g043.dtsi | 54 +------------------ arch/arm64/boot/dts/renesas/r9a07g043u.dtsi | 60 +++++++++++++++++++++ 2 files changed, 61 insertions(+), 53 deletions(-) diff --git a/arch/arm64/boot/dts/renesas/r9a07g043.dtsi b/arch/arm64/boot/dts/renesas/r9a07g043.dtsi index a4738842f0646..7f88395ff7997 100644 --- a/arch/arm64/boot/dts/renesas/r9a07g043.dtsi +++ b/arch/arm64/boot/dts/renesas/r9a07g043.dtsi @@ -1,6 +1,6 @@ // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) /* - * Device Tree Source for the RZ/G2UL SoC + * Device Tree Source for the RZ/Five and RZ/G2UL SoCs * * Copyright (C) 2022 Renesas Electronics Corp. */ @@ -68,36 +68,8 @@ opp-1000000000 { }; }; - cpus { - #address-cells = <1>; - #size-cells = <0>; - - cpu0: cpu@0 { - compatible = "arm,cortex-a55"; - reg = <0>; - device_type = "cpu"; - #cooling-cells = <2>; - next-level-cache = <&L3_CA55>; - enable-method = "psci"; - clocks = <&cpg CPG_CORE R9A07G043_CLK_I>; - operating-points-v2 = <&cluster0_opp>; - }; - - L3_CA55: cache-controller-0 { - compatible = "cache"; - cache-unified; - cache-size = <0x40000>; - }; - }; - - psci { - compatible = "arm,psci-1.0", "arm,psci-0.2"; - method = "smc"; - }; - soc: soc { compatible = "simple-bus"; - interrupt-parent = <&gic>; #address-cells = <2>; #size-cells = <2>; ranges; @@ -545,12 +517,6 @@ cpg: clock-controller@11010000 { sysc: system-controller@11020000 { compatible = "renesas,r9a07g043-sysc"; reg = <0 0x11020000 0 0x10000>; - interrupts = , - , - , - ; - interrupt-names = "lpm_int", "ca55stbydone_int", - "cm33stbyr_int", "ca55_deny"; status = "disabled"; }; @@ -603,16 +569,6 @@ dmac: dma-controller@11820000 { dma-channels = <16>; }; - gic: interrupt-controller@11900000 { - compatible = "arm,gic-v3"; - #interrupt-cells = <3>; - #address-cells = <0>; - interrupt-controller; - reg = <0x0 0x11900000 0 0x40000>, - <0x0 0x11940000 0 0x60000>; - interrupts = ; - }; - sdhi0: mmc@11c00000 { compatible = "renesas,sdhi-r9a07g043", "renesas,rcar-gen3-sdhi"; @@ -893,12 +849,4 @@ target: trip-point { }; }; }; - - timer { - compatible = "arm,armv8-timer"; - interrupts-extended = <&gic GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_LOW)>, - <&gic GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_LOW)>, - <&gic GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_LOW)>, - <&gic GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_LOW)>; - }; }; diff --git a/arch/arm64/boot/dts/renesas/r9a07g043u.dtsi b/arch/arm64/boot/dts/renesas/r9a07g043u.dtsi index 96f935bc2d4d1..b8bf06b512351 100644 --- a/arch/arm64/boot/dts/renesas/r9a07g043u.dtsi +++ b/arch/arm64/boot/dts/renesas/r9a07g043u.dtsi @@ -10,3 +10,63 @@ #define SOC_PERIPHERAL_IRQ(nr) GIC_SPI nr #include "r9a07g043.dtsi" + +/ { + cpus { + #address-cells = <1>; + #size-cells = <0>; + + cpu0: cpu@0 { + compatible = "arm,cortex-a55"; + reg = <0>; + device_type = "cpu"; + #cooling-cells = <2>; + next-level-cache = <&L3_CA55>; + enable-method = "psci"; + clocks = <&cpg CPG_CORE R9A07G043_CLK_I>; + operating-points-v2 = <&cluster0_opp>; + }; + + L3_CA55: cache-controller-0 { + compatible = "cache"; + cache-unified; + cache-size = <0x40000>; + }; + }; + + psci { + compatible = "arm,psci-1.0", "arm,psci-0.2"; + method = "smc"; + }; + + timer { + compatible = "arm,armv8-timer"; + interrupts-extended = <&gic GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_LOW)>, + <&gic GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_LOW)>, + <&gic GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_LOW)>, + <&gic GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_LOW)>; + }; +}; + +&soc { + interrupt-parent = <&gic>; + + gic: interrupt-controller@11900000 { + compatible = "arm,gic-v3"; + #interrupt-cells = <3>; + #address-cells = <0>; + interrupt-controller; + reg = <0x0 0x11900000 0 0x40000>, + <0x0 0x11940000 0 0x60000>; + interrupts = ; + }; +}; + +&sysc { + interrupts = , + , + , + ; + interrupt-names = "lpm_int", "ca55stbydone_int", + "cm33stbyr_int", "ca55_deny"; +}; -- 2.43.0