]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: mediatek: mt7986: add sram node
authorFrank Wunderlich <frank-w@public-files.de>
Wed, 9 Jul 2025 11:09:43 +0000 (13:09 +0200)
committerMatthias Brugger <matthias.bgg@gmail.com>
Tue, 9 Sep 2025 12:52:29 +0000 (14:52 +0200)
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 <frank-w@public-files.de>
Link: https://lore.kernel.org/r/20250709111147.11843-8-linux@fw-web.de
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
arch/arm64/boot/dts/mediatek/mt7986a.dtsi

index 559990dcd1d1790b2f985dda29e6bd2ebdfd08c0..550f569451fb93a7b7f712de3ffefb57d70654d8 100644 (file)
 
                eth: ethernet@15100000 {
                        compatible = "mediatek,mt7986-eth";
-                       reg = <0 0x15100000 0 0x80000>;
+                       reg = <0 0x15100000 0 0x40000>;
                        interrupts = <GIC_SPI 196 IRQ_TYPE_LEVEL_HIGH>,
                                     <GIC_SPI 197 IRQ_TYPE_LEVEL_HIGH>,
                                     <GIC_SPI 198 IRQ_TYPE_LEVEL_HIGH>,
                                          <&topckgen CLK_TOP_SGM_325M_SEL>;
                        assigned-clock-parents = <&apmixedsys CLK_APMIXED_NET2PLL>,
                                                 <&apmixedsys CLK_APMIXED_SGMPLL>;
+                       sram = <&eth_sram>;
                        #address-cells = <1>;
                        #size-cells = <0>;
                        mediatek,ethsys = <&ethsys>;
                        status = "disabled";
                };
 
+               /*15100000+0x40000*/
+               eth_sram: sram@15140000 {
+                       compatible = "mmio-sram";
+                       reg = <0 0x15140000 0 0x40000>;
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+                       ranges = <0 0x15140000 0 0x40000>;
+               };
+
                wo_ccif0: syscon@151a5000 {
                        compatible = "mediatek,mt7986-wo-ccif", "syscon";
                        reg = <0 0x151a5000 0 0x1000>;