Skip to content

Commit 6beb314

Browse files
ozan956pamolloy
authored andcommitted
ARM: dts: adi: add Rev E support to SC598-SOM
Add revision-specific DTS files layered on top of sc598-som.dtsi to support Rev D and E. Signed-off-by: Ozan Durgut <[email protected]>
1 parent 7eaf7e4 commit 6beb314

File tree

5 files changed

+243
-119
lines changed

5 files changed

+243
-119
lines changed

arch/arm64/boot/dts/adi/sc598-som-ezkit.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
/dts-v1/;
77

8-
#include "sc598-som.dtsi"
8+
#include "sc598-som-revE.dtsi"
99

1010
/ {
1111
model = "ADI 64-bit SC598 SOM EZ Kit";

arch/arm64/boot/dts/adi/sc598-som-ezlite.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
/dts-v1/;
77

8-
#include "sc598-som.dtsi"
8+
#include "sc598-som-revE.dtsi"
99

1010
/ {
1111
model = "ADI 64-bit SC598 SOM EZ Lite";
Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
// SPDX-License-Identifier: GPL-2.0
2+
/*
3+
* Copyright (c) 2025 Analog Devices Incorporated
4+
*/
5+
6+
/dts-v1/;
7+
8+
#include "sc598-som.dtsi"
9+
10+
&i2c2 {
11+
som_gpio_expander: mcp23018@20 {
12+
compatible = "microchip,mcp23018";
13+
reg = <0x20>;
14+
gpio-controller;
15+
#gpio-cells = <2>;
16+
drive-pullups;
17+
18+
led-ds1 {
19+
gpio-hog;
20+
gpios = <0 GPIO_ACTIVE_LOW>;
21+
output-high;
22+
line-name = "led1-en";
23+
};
24+
25+
led-ds2 {
26+
gpio-hog;
27+
gpios = <1 GPIO_ACTIVE_LOW>;
28+
output-high;
29+
line-name = "led-ds2";
30+
};
31+
32+
led-ds3 {
33+
gpio-hog;
34+
gpios = <2 GPIO_ACTIVE_LOW>;
35+
output-high;
36+
line-name = "led-ds3";
37+
};
38+
39+
som-flash-d2d3 {
40+
gpio-hog;
41+
gpios = <3 GPIO_ACTIVE_LOW>;
42+
output-high;
43+
line-name = "som-flash-d2d3-en";
44+
};
45+
46+
som-flash-cs {
47+
gpio-hog;
48+
gpios = <4 GPIO_ACTIVE_LOW>;
49+
output-high;
50+
line-name = "som-flash-cs-en";
51+
};
52+
53+
uart0 {
54+
gpio-hog;
55+
gpios = <5 GPIO_ACTIVE_LOW>;
56+
output-high;
57+
line-name = "uart0-en";
58+
};
59+
60+
uart0-flow-en {
61+
gpio-hog;
62+
gpios = <6 GPIO_ACTIVE_LOW>;
63+
output-low;
64+
line-name = "uart0-flow-en";
65+
};
66+
67+
som-emmc {
68+
gpio-hog;
69+
gpios = <8 GPIO_ACTIVE_LOW>;
70+
output-high;
71+
line-name = "som-emmc-en";
72+
};
73+
74+
crr-sdcard {
75+
gpio-hog;
76+
gpios = <9 GPIO_ACTIVE_LOW>;
77+
output-low;
78+
line-name = "crr-sdcard-en";
79+
};
80+
};
81+
};
82+
83+
&spi2 {
84+
som_flash: is25lp512@0 {
85+
compatible = "jedec,spi-nor", "is25lp512";
86+
reg = <0>;
87+
spi-rx-bus-width = <4>;
88+
spi-max-frequency = <25000000>;
89+
90+
partitions {
91+
compatible = "fixed-partitions";
92+
#address-cells = <1>;
93+
#size-cells = <1>;
94+
95+
qspi_0@0 {
96+
label = "u-boot-spl";
97+
reg = <0x00000000 0x00040000>;
98+
};
99+
100+
qspi_1@40000 {
101+
label = "u-boot";
102+
reg = <0x00040000 0x000C0000>;
103+
};
104+
105+
qspi_2@100000 {
106+
label = "dtb";
107+
reg = <0x00100000 0x00010000>;
108+
};
109+
110+
qspi_3@110000 {
111+
label = "kernel";
112+
reg = <0x00110000 0x02000000>;
113+
};
114+
115+
qspi_4@2110000 {
116+
label = "rootfs";
117+
reg = <0x02110000 0x01EF0000>;
118+
};
119+
};
120+
};
121+
};
Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
// SPDX-License-Identifier: GPL-2.0
2+
/*
3+
* Copyright (c) 2025 Analog Devices Incorporated
4+
*/
5+
6+
/dts-v1/;
7+
8+
#include "sc598-som.dtsi"
9+
10+
&i2c2 {
11+
som_gpio_expander: adp5587@34 {
12+
compatible = "adi,adp5587";
13+
reg = <0x34>;
14+
gpio-controller;
15+
#gpio-cells = <2>;
16+
17+
uart0 {
18+
gpio-hog;
19+
gpios = <0 GPIO_ACTIVE_LOW>;
20+
output-high;
21+
line-name = "uart0-en";
22+
};
23+
24+
uart0-flow {
25+
gpio-hog;
26+
gpios = <1 GPIO_ACTIVE_LOW>;
27+
output-low;
28+
line-name = "uart0-flow-en";
29+
};
30+
31+
som-flash-d2d3 {
32+
gpio-hog;
33+
gpios = <2 GPIO_ACTIVE_LOW>;
34+
output-high;
35+
line-name = "som-flash-d2d3-en";
36+
};
37+
38+
som-flash-cs {
39+
gpio-hog;
40+
gpios = <3 GPIO_ACTIVE_LOW>;
41+
output-high;
42+
line-name = "som-flash-cs-en";
43+
};
44+
45+
som-emmc {
46+
gpio-hog;
47+
gpios = <8 GPIO_ACTIVE_LOW>;
48+
output-high;
49+
line-name = "som-emmc-en";
50+
};
51+
52+
crr-sdcard {
53+
gpio-hog;
54+
gpios = <9 GPIO_ACTIVE_LOW>;
55+
output-low;
56+
line-name = "crr-sdcard-en";
57+
};
58+
59+
led-ds3 {
60+
gpio-hog;
61+
gpios = <15 GPIO_ACTIVE_LOW>;
62+
output-high;
63+
line-name = "led-ds3";
64+
};
65+
66+
led-ds2 {
67+
gpio-hog;
68+
gpios = <16 GPIO_ACTIVE_LOW>;
69+
output-high;
70+
line-name = "led-ds2";
71+
};
72+
73+
led-ds1 {
74+
gpio-hog;
75+
gpios = <17 GPIO_ACTIVE_LOW>;
76+
output-high;
77+
line-name = "led-ds1";
78+
};
79+
};
80+
};
81+
82+
&spi2 {
83+
som_flash: is25lp01g@0 {
84+
compatible = "jedec,spi-nor", "is25lp01g";
85+
reg = <0>;
86+
spi-rx-bus-width = <4>;
87+
spi-max-frequency = <25000000>;
88+
89+
partitions {
90+
compatible = "fixed-partitions";
91+
#address-cells = <1>;
92+
#size-cells = <1>;
93+
94+
qspi_0@0 {
95+
label = "u-boot-spl";
96+
reg = <0x00000000 0x00040000>;
97+
};
98+
99+
qspi_1@40000 {
100+
label = "u-boot";
101+
reg = <0x00040000 0x000C0000>;
102+
};
103+
104+
qspi_2@100000 {
105+
label = "dtb";
106+
reg = <0x00100000 0x00010000>;
107+
};
108+
109+
qspi_3@110000 {
110+
label = "kernel";
111+
reg = <0x00110000 0x02000000>;
112+
};
113+
114+
qspi_4@2110000 {
115+
label = "rootfs";
116+
reg = <0x02110000 0x05EF0000>;
117+
};
118+
};
119+
};
120+
};

arch/arm64/boot/dts/adi/sc598-som.dtsi

Lines changed: 0 additions & 117 deletions
Original file line numberDiff line numberDiff line change
@@ -203,43 +203,6 @@
203203
pinctrl-0 = <&spi2_quad>;
204204
status = "okay";
205205
cs-gpios = <&gpa 5 GPIO_ACTIVE_LOW>;
206-
207-
flash: is25lp512@0 {
208-
#address-cells = <1>;
209-
#size-cells = <1>;
210-
compatible = "is25lp512", "jedec,spi-nor";
211-
reg = <0>;
212-
spi-cpha;
213-
spi-cpol;
214-
spi-max-frequency = <25000000>;
215-
spi-rx-bus-width = <4>;
216-
217-
qspi_0: partition@0 {
218-
label = "U-Boot SPL";
219-
reg = <0x0 0x40000>;
220-
};
221-
222-
qspi_1: partition@1 {
223-
label = "U-Boot Proper";
224-
reg = <0x40000 0xC0000>;
225-
};
226-
227-
qspi_2: partition@2 {
228-
label = "U-Boot Environment";
229-
reg = <0x100000 0x20000>;
230-
};
231-
232-
qspi_3: partition@3 {
233-
label = "FIT Image";
234-
reg = <0x120000 0xF00000>;
235-
};
236-
237-
qspi_4: partition@4 {
238-
label = "JFFS2 Formatted RFS";
239-
reg = <0x1020000 0x2FE0000>;
240-
};
241-
242-
};
243206
};
244207

245208
&i2c0 {
@@ -254,86 +217,6 @@
254217
status = "okay";
255218
pinctrl-names = "default";
256219
pinctrl-0 = <&i2c2_pins>;
257-
258-
som_gpio_expander: gpio@20 {
259-
compatible = "microchip,mcp23018";
260-
gpio-controller;
261-
#gpio-cells = <2>;
262-
reg = <0x20>;
263-
status = "okay";
264-
265-
pinctrl-names = "default";
266-
pinctrl-0 = <&som_gpio_expanderpullups>;
267-
268-
som_gpio_expanderpullups: pinmux {
269-
bias-pull-up;
270-
pins = "gpio0", "gpio1", "gpio2", "gpio3",
271-
"gpio4", "gpio5", "gpio6", "gpio8", "gpio9";
272-
};
273-
274-
led1 {
275-
gpio-hog;
276-
gpios = <0 GPIO_ACTIVE_LOW>;
277-
output-high;
278-
line-name = "led1-en";
279-
};
280-
281-
led2 {
282-
gpio-hog;
283-
gpios = <1 GPIO_ACTIVE_LOW>;
284-
output-high;
285-
line-name = "led2-en";
286-
};
287-
288-
led3 {
289-
gpio-hog;
290-
gpios = <2 GPIO_ACTIVE_LOW>;
291-
output-high;
292-
line-name = "led3-en";
293-
};
294-
295-
spi2d2-d3 {
296-
gpio-hog;
297-
gpios = <3 GPIO_ACTIVE_LOW>;
298-
output-high;
299-
line-name = "spi2d2-d3-en";
300-
};
301-
302-
spi2flash-cs {
303-
gpio-hog;
304-
gpios = <4 GPIO_ACTIVE_LOW>;
305-
output-high;
306-
line-name = "spi2flash-cs";
307-
};
308-
309-
uart0 {
310-
gpio-hog;
311-
gpios = <5 GPIO_ACTIVE_LOW>;
312-
output-high;
313-
line-name = "uart0-en";
314-
};
315-
316-
uart0-flow-en {
317-
gpio-hog;
318-
gpios = <6 GPIO_ACTIVE_LOW>;
319-
output-low;
320-
line-name = "uart0-flow-en";
321-
};
322-
323-
emmc {
324-
gpio-hog;
325-
gpios = <8 GPIO_ACTIVE_LOW>;
326-
output-high;
327-
line-name = "emmc-en";
328-
};
329-
330-
emmc-som-en {
331-
gpio-hog;
332-
gpios = <9 GPIO_ACTIVE_LOW>;
333-
output-low;
334-
line-name = "emmc-som-en";
335-
};
336-
};
337220
};
338221

339222
&mmc0{

0 commit comments

Comments
 (0)