Skip to content

Commit 1c6bfac

Browse files
committed
ARM: dts: adi: add Rev E support to SC598-SOM
Signed-off-by: Ozan Durgut <[email protected]>
1 parent 844d5e4 commit 1c6bfac

File tree

3 files changed

+261
-119
lines changed

3 files changed

+261
-119
lines changed
Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
/*
2+
* Copyright (c) 2025 Analog Devices Incorporated
3+
* Author: Ozan Durgut <[email protected]>
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+
bootph-pre-ram;
17+
drive-pullups;
18+
19+
led-ds1 {
20+
gpio-hog;
21+
gpios = <0 GPIO_ACTIVE_HIGH>;
22+
output-high;
23+
line-name = "led1-en";
24+
bootph-pre-ram;
25+
};
26+
27+
led-ds2 {
28+
gpio-hog;
29+
gpios = <1 GPIO_ACTIVE_HIGH>;
30+
output-high;
31+
line-name = "led-ds2";
32+
bootph-pre-ram;
33+
};
34+
35+
led-ds3 {
36+
gpio-hog;
37+
gpios = <2 GPIO_ACTIVE_HIGH>;
38+
output-high;
39+
line-name = "led-ds3";
40+
bootph-pre-ram;
41+
};
42+
43+
som-flash-d2d3 {
44+
gpio-hog;
45+
gpios = <3 GPIO_ACTIVE_LOW>;
46+
output-high;
47+
line-name = "som-flash-d2d3-en";
48+
bootph-pre-ram;
49+
};
50+
51+
som-flash-cs {
52+
gpio-hog;
53+
gpios = <4 GPIO_ACTIVE_LOW>;
54+
output-high;
55+
line-name = "som-flash-cs-en";
56+
bootph-pre-ram;
57+
};
58+
59+
uart0 {
60+
gpio-hog;
61+
gpios = <5 GPIO_ACTIVE_LOW>;
62+
output-high;
63+
line-name = "uart0-en";
64+
bootph-pre-ram;
65+
};
66+
67+
uart0-flow-en {
68+
gpio-hog;
69+
gpios = <6 GPIO_ACTIVE_LOW>;
70+
output-low;
71+
line-name = "uart0-flow-en";
72+
bootph-pre-ram;
73+
};
74+
75+
som-emmc {
76+
gpio-hog;
77+
gpios = <8 GPIO_ACTIVE_LOW>;
78+
output-high;
79+
line-name = "som-emmc-en";
80+
bootph-pre-ram;
81+
};
82+
83+
crr-sdcard {
84+
gpio-hog;
85+
gpios = <9 GPIO_ACTIVE_LOW>;
86+
output-low;
87+
line-name = "crr-sdcard-en";
88+
bootph-pre-ram;
89+
};
90+
};
91+
};
92+
93+
&spi2 {
94+
som_flash: is25lp512@1 {
95+
#address-cells = <1>;
96+
#size-cells = <1>;
97+
compatible = "jedec,spi-nor", "is25lp512";
98+
reg = <1>;
99+
spi-rx-bus-width = <4>;
100+
spi-max-frequency = <25000000>;
101+
bootph-pre-ram;
102+
103+
partitions {
104+
compatible = "fixed-partitions";
105+
#address-cells = <1>;
106+
#size-cells = <1>;
107+
108+
qspi_0@0 {
109+
label = "U-Boot SPL";
110+
reg = <0x00000000 0x00040000>;
111+
};
112+
113+
qspi_1@40000 {
114+
label = "U-Boot Proper";
115+
reg = <0x00040000 0x000C0000>;
116+
};
117+
118+
qspi_2@100000 {
119+
label = "U-Boot Environment";
120+
reg = <0x00100000 0x00020000>;
121+
};
122+
123+
qspi_3@120000 {
124+
label = "FIT Image";
125+
reg = <0x00120000 0x00600000>;
126+
};
127+
128+
qspi_4@720000 {
129+
label = "JFFS2 Formatted RFS";
130+
reg = <0x00720000 0x038E0000>;
131+
};
132+
};
133+
};
134+
};
Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
/*
2+
* Copyright (c) 2025 Analog Devices Incorporated
3+
* Author: Ozan Durgut <[email protected]>
4+
*/
5+
6+
/dts-v1/;
7+
8+
#include "sc598-som.dtsi"
9+
10+
&i2c2 {
11+
gpio_expander1: adp5587@34 {
12+
compatible = "adi,adp5587";
13+
reg = <0x34>;
14+
gpio-controller;
15+
#gpio-cells = <2>;
16+
bootph-pre-ram;
17+
18+
uart0 {
19+
gpio-hog;
20+
gpios = <0 GPIO_ACTIVE_LOW>;
21+
output-high;
22+
line-name = "uart0-en";
23+
bootph-pre-ram;
24+
};
25+
26+
uart0-flow {
27+
gpio-hog;
28+
gpios = <1 GPIO_ACTIVE_LOW>;
29+
output-low;
30+
line-name = "uart0-flow-en";
31+
bootph-pre-ram;
32+
};
33+
34+
som-flash-d2d3 {
35+
gpio-hog;
36+
gpios = <2 GPIO_ACTIVE_LOW>;
37+
output-high;
38+
line-name = "som-flash-d2d3-en";
39+
};
40+
41+
som-flash-cs {
42+
gpio-hog;
43+
gpios = <3 GPIO_ACTIVE_LOW>;
44+
output-high;
45+
line-name = "som-flash-cs-en";
46+
};
47+
48+
som-emmc {
49+
gpio-hog;
50+
gpios = <8 GPIO_ACTIVE_LOW>;
51+
output-high;
52+
line-name = "som-emmc-en";
53+
};
54+
55+
crr-sdcard {
56+
gpio-hog;
57+
gpios = <9 GPIO_ACTIVE_LOW>;
58+
output-low;
59+
line-name = "crr-sdcard-en";
60+
};
61+
62+
led-ds3 {
63+
gpio-hog;
64+
gpios = <15 GPIO_ACTIVE_LOW>;
65+
output-high;
66+
line-name = "led-ds3";
67+
bootph-pre-ram;
68+
};
69+
70+
led-ds2 {
71+
gpio-hog;
72+
gpios = <16 GPIO_ACTIVE_LOW>;
73+
output-high;
74+
line-name = "led-ds2";
75+
};
76+
77+
led-ds1 {
78+
gpio-hog;
79+
gpios = <17 GPIO_ACTIVE_LOW>;
80+
output-high;
81+
line-name = "led-ds1";
82+
};
83+
};
84+
};
85+
86+
&spi2 {
87+
som_flash: is25lp01g@1 {
88+
#address-cells = <1>;
89+
#size-cells = <1>;
90+
compatible = "jedec,spi-nor", "is25lp01g";
91+
reg = <0>;
92+
spi-rx-bus-width = <4>;
93+
spi-max-frequency = <25000000>;
94+
bootph-pre-ram;
95+
96+
partitions {
97+
compatible = "fixed-partitions";
98+
#address-cells = <1>;
99+
#size-cells = <1>;
100+
101+
qspi_0@0 {
102+
label = "U-Boot SPL";
103+
reg = <0x00000000 0x00040000>;
104+
};
105+
106+
qspi_1@40000 {
107+
label = "U-Boot Proper";
108+
reg = <0x00040000 0x000C0000>;
109+
};
110+
111+
qspi_2@100000 {
112+
label = "U-Boot Environment";
113+
reg = <0x00100000 0x00020000>;
114+
};
115+
116+
qspi_3@120000 {
117+
label = "FIT Image";
118+
reg = <0x00120000 0x00F00000>;
119+
};
120+
121+
qspi_4@1020000 {
122+
label = "JFFS2 Formatted RFS";
123+
reg = <0x01020000 0x06FE0000>;
124+
};
125+
};
126+
};
127+
};

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

Lines changed: 0 additions & 119 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 {
@@ -252,88 +215,6 @@
252215

253216
&i2c2 {
254217
status = "okay";
255-
pinctrl-names = "default";
256-
pinctrl-0 = <&i2c2_pins>;
257-
258-
ssw0: 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 = <&ssw0pullups>;
267-
268-
ssw0pullups: 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_HIGH>;
277-
output-high;
278-
line-name = "led1-en";
279-
};
280-
281-
led2 {
282-
gpio-hog;
283-
gpios = <1 GPIO_ACTIVE_HIGH>;
284-
output-high;
285-
line-name = "led2-en";
286-
};
287-
288-
led3 {
289-
gpio-hog;
290-
gpios = <2 GPIO_ACTIVE_HIGH>;
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-
};
337218
};
338219

339220
&mmc0{

0 commit comments

Comments
 (0)