From nobody Sun Dec 14 06:20:49 2025 Received: from mxout4.routing.net (mxout4.routing.net [134.0.28.9]) (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 CD7E928D8E4; Wed, 9 Jul 2025 11:12:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=134.0.28.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752059528; cv=none; b=stvdi72bUp8ztG0Lv75OfL0dIGIXNDIzlhjrqftASuyAoPAPEy7pJ9A2x9kZkQfzJ337WtGQ3cO6lg5PL1GtdWwJrm/xhdKXWyuhXHrF0LV/gWE4WdKR7xWwf44WfxVLj8C3ELQXcRMY55tleRZcE04xEMvPvMQpyPADrQzLRpQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752059528; c=relaxed/simple; bh=CObOU1nPBTDZB7mIJgDVNzak8Lzgdng0yMMxU3zsrmg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=vGVbYINkiGvq7d4JvOT56BOv4zadpyA2NvVgk4Arly5W8Gf14ZheT55Bpcm42WU1uPAa1+Xuv6r5gXZfcCmOy7MR9wo5/cplAGNRt6JWq0c7XTmgc7phZ6mP+DADIS6eCYM/dQPJZlpkNWecTpgni0u5jPHlMpKoNlZ0fy0yz5I= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de; spf=pass smtp.mailfrom=fw-web.de; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b=qSlqOF4l; arc=none smtp.client-ip=134.0.28.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fw-web.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b="qSlqOF4l" Received: from mxbulk.masterlogin.de (unknown [192.168.10.85]) by mxout4.routing.net (Postfix) with ESMTP id 20E831008E0; Wed, 9 Jul 2025 11:11:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1752059519; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=MnTvkXnLPnEsvcW3pJgPQSCioz7Knyu5VGFT/VMkz+g=; b=qSlqOF4lz0CDSZ1vHo349SAGdLFIJeKBU8e/U06hL1eUlc8BDTtkLkOAojH3JuPafkL0gD yGEZMpQudM81sWcM7HXIZDZv9o8dx0vDf94YoppkyimDJveOIt3JOdRBAWDTBWgIGTP8LP IcJcS0+ctJIT/fo9afDXdD8D1HXfjAo= Received: from frank-u24.. (fttx-pool-217.61.157.99.bambit.de [217.61.157.99]) by mxbulk.masterlogin.de (Postfix) with ESMTPSA id BA1F01226CC; Wed, 9 Jul 2025 11:11:58 +0000 (UTC) From: Frank Wunderlich To: MyungJoo Ham , Kyungmin Park , Chanwoo Choi , Georgi Djakov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andrew Lunn , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno , Johnson Wang , =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= , Landen Chao , DENG Qingfang , Sean Wang , Daniel Golle , Lorenzo Bianconi , Felix Fietkau Cc: Frank Wunderlich , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH v9 07/13] arm64: dts: mediatek: mt7986: add sram node Date: Wed, 9 Jul 2025 13:09:43 +0200 Message-ID: <20250709111147.11843-8-linux@fw-web.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250709111147.11843-1-linux@fw-web.de> References: <20250709111147.11843-1-linux@fw-web.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Frank Wunderlich Currently sram is allocated in driver via offset from reg of ethernet node. Change it to use a dedicated sram node like mt7988. Signed-off-by: Frank Wunderlich --- arch/arm64/boot/dts/mediatek/mt7986a.dtsi | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/mediatek/mt7986a.dtsi b/arch/arm64/boot/dt= s/mediatek/mt7986a.dtsi index 559990dcd1d1..550f569451fb 100644 --- a/arch/arm64/boot/dts/mediatek/mt7986a.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7986a.dtsi @@ -523,7 +523,7 @@ wed1: wed@15011000 { =20 eth: ethernet@15100000 { compatible =3D "mediatek,mt7986-eth"; - reg =3D <0 0x15100000 0 0x80000>; + reg =3D <0 0x15100000 0 0x40000>; interrupts =3D , , , @@ -553,6 +553,7 @@ eth: ethernet@15100000 { <&topckgen CLK_TOP_SGM_325M_SEL>; assigned-clock-parents =3D <&apmixedsys CLK_APMIXED_NET2PLL>, <&apmixedsys CLK_APMIXED_SGMPLL>; + sram =3D <ð_sram>; #address-cells =3D <1>; #size-cells =3D <0>; mediatek,ethsys =3D <ðsys>; @@ -562,6 +563,15 @@ eth: ethernet@15100000 { status =3D "disabled"; }; =20 + /*15100000+0x40000*/ + eth_sram: sram@15140000 { + compatible =3D "mmio-sram"; + reg =3D <0 0x15140000 0 0x40000>; + #address-cells =3D <1>; + #size-cells =3D <1>; + ranges =3D <0 0x15140000 0 0x40000>; + }; + wo_ccif0: syscon@151a5000 { compatible =3D "mediatek,mt7986-wo-ccif", "syscon"; reg =3D <0 0x151a5000 0 0x1000>; --=20 2.43.0