Skip to content

Commit 87879e2

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

File tree

3 files changed

+259
-119
lines changed

3 files changed

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

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)