Skip to content

Commit ed07d82

Browse files
arm64: dts: ti: k3-am62p-j722s: Move SoC-specific node properties
Certain device-tree node properties of shared device-tree nodes are different between the AM62P and J722S SoCs. To avoid overriding the properties and to avoid redefining the nodes in the k3-{soc}-main.dtsi having such SoC specific properties, move the properties to the SoC specific k3-{soc}-main.dtsi files. Signed-off-by: Siddharth Vadapalli <s-vadapalli@ti.com> Acked-by: Roger Quadros <rogerq@kernel.org> Link: https://lore.kernel.org/r/20240615081600.3602462-9-s-vadapalli@ti.com Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
1 parent 485705d commit ed07d82

4 files changed

Lines changed: 34 additions & 24 deletions

File tree

arch/arm64/boot/dts/ti/k3-am62p-j722s-common-main.dtsi

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@
88
&cbass_main {
99
oc_sram: sram@70000000 {
1010
compatible = "mmio-sram";
11-
reg = <0x00 0x70000000 0x00 0x10000>;
1211
#address-cells = <1>;
1312
#size-cells = <1>;
14-
ranges = <0x00 0x00 0x70000000 0x10000>;
1513
};
1614

1715
gic500: interrupt-controller@1800000 {
@@ -92,7 +90,6 @@
9290
msi-controller;
9391
ti,sci = <&dmsc>;
9492
ti,sci-dev-id = <28>;
95-
ti,interrupt-ranges = <5 69 35>;
9693
ti,unmapped-event-sources = <&main_bcdma>, <&main_pktdma>;
9794
};
9895

@@ -539,7 +536,6 @@
539536
<193>, <194>, <195>;
540537
interrupt-controller;
541538
#interrupt-cells = <2>;
542-
ti,ngpio = <92>;
543539
ti,davinci-gpio-unbanked = <0>;
544540
power-domains = <&k3_pds 77 TI_SCI_PD_EXCLUSIVE>;
545541
clocks = <&k3_clks 77 0>;
@@ -556,7 +552,6 @@
556552
<183>, <184>, <185>;
557553
interrupt-controller;
558554
#interrupt-cells = <2>;
559-
ti,ngpio = <52>;
560555
ti,davinci-gpio-unbanked = <0>;
561556
power-domains = <&k3_pds 78 TI_SCI_PD_EXCLUSIVE>;
562557
clocks = <&k3_clks 78 0>;

arch/arm64/boot/dts/ti/k3-am62p-main.dtsi

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,20 @@
3232
};
3333
};
3434
};
35+
36+
&oc_sram {
37+
reg = <0x00 0x70000000 0x00 0x10000>;
38+
ranges = <0x00 0x00 0x70000000 0x10000>;
39+
};
40+
41+
&inta_main_dmss {
42+
ti,interrupt-ranges = <5 69 35>;
43+
};
44+
45+
&main_gpio0 {
46+
ti,ngpio = <92>;
47+
};
48+
49+
&main_gpio1 {
50+
ti,ngpio = <52>;
51+
};

arch/arm64/boot/dts/ti/k3-j722s-main.dtsi

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,3 +171,20 @@
171171
reg = <0x4070 0x4>;
172172
};
173173
};
174+
175+
&oc_sram {
176+
reg = <0x00 0x70000000 0x00 0x40000>;
177+
ranges = <0x00 0x00 0x70000000 0x40000>;
178+
};
179+
180+
&inta_main_dmss {
181+
ti,interrupt-ranges = <7 71 21>;
182+
};
183+
184+
&main_gpio0 {
185+
ti,ngpio = <87>;
186+
};
187+
188+
&main_gpio1 {
189+
ti,ngpio = <73>;
190+
};

arch/arm64/boot/dts/ti/k3-j722s.dtsi

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -232,22 +232,3 @@
232232

233233
/* Include J722S specific peripherals */
234234
#include "k3-j722s-main.dtsi"
235-
236-
/* Main domain overrides */
237-
238-
&inta_main_dmss {
239-
ti,interrupt-ranges = <7 71 21>;
240-
};
241-
242-
&main_gpio0 {
243-
ti,ngpio = <87>;
244-
};
245-
246-
&main_gpio1 {
247-
ti,ngpio = <73>;
248-
};
249-
250-
&oc_sram {
251-
reg = <0x00 0x70000000 0x00 0x40000>;
252-
ranges = <0x00 0x00 0x70000000 0x40000>;
253-
};

0 commit comments

Comments
 (0)