Skip to content

Commit 13e27d7

Browse files
gmalysapamolloy
authored andcommitted
board: adi: Add support for SC594
This adds support for the Analog Devices SC594 SOM and configurations for using it with both the SOMCRR-EZKIT and SOMCRR-EZLITE. Signed-off-by: Vasileios Bimpikas <[email protected]> Signed-off-by: Utsav Agarwal <[email protected]> Signed-off-by: Arturs Artamonovs <[email protected]> Signed-off-by: Nathan Barrett-Morrison <[email protected]> Signed-off-by: Caleb Ethridge <[email protected]> Signed-off-by: Philip Molloy <[email protected]> Signed-off-by: Greg Malysa <[email protected]> Signed-off-by: Philip Molloy <[email protected]> Link: https://lore.kernel.org/u-boot/[email protected]/
1 parent 7210fc6 commit 13e27d7

File tree

10 files changed

+638
-15
lines changed

10 files changed

+638
-15
lines changed

arch/arm/dts/sc594-som-ezkit.dts

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,129 @@
1111
model = "ADI SC594-SOM-EZKIT";
1212
compatible = "adi,sc594-som-ezkit", "adi,sc59x";
1313
};
14+
15+
&i2c2 {
16+
gpio_expander2: mcp23017@22 {
17+
compatible = "microchip,mcp23017";
18+
reg = <0x22>;
19+
gpio-controller;
20+
#gpio-cells = <2>;
21+
bootph-pre-ram;
22+
23+
eeprom {
24+
gpio-hog;
25+
gpios = <0 GPIO_ACTIVE_HIGH>;
26+
output-low;
27+
line-name = "eeprom-en";
28+
bootph-pre-ram;
29+
};
30+
31+
pushbutton {
32+
gpio-hog;
33+
gpios = <1 GPIO_ACTIVE_HIGH>;
34+
output-low;
35+
line-name = "pushbutton-en";
36+
bootph-pre-ram;
37+
};
38+
39+
microsd {
40+
gpio-hog;
41+
gpios = <2 GPIO_ACTIVE_LOW>;
42+
output-low;
43+
line-name = "microsd-spi";
44+
bootph-pre-ram;
45+
};
46+
47+
adau-reset {
48+
gpio-hog;
49+
gpios = <5 GPIO_ACTIVE_LOW>;
50+
output-low;
51+
line-name = "adau-reset";
52+
bootph-pre-ram;
53+
};
54+
55+
adau1962 {
56+
gpio-hog;
57+
gpios = <6 GPIO_ACTIVE_LOW>;
58+
output-high;
59+
line-name = "adau1962-en";
60+
bootph-pre-ram;
61+
};
62+
63+
adau1979 {
64+
gpio-hog;
65+
gpios = <7 GPIO_ACTIVE_LOW>;
66+
output-high;
67+
line-name = "adau1979-en";
68+
bootph-pre-ram;
69+
};
70+
71+
octal {
72+
gpio-hog;
73+
gpios = <8 GPIO_ACTIVE_HIGH>;
74+
output-low;
75+
line-name = "octal-spi-cs-en";
76+
bootph-pre-ram;
77+
};
78+
79+
spdif-dig {
80+
gpio-hog;
81+
gpios = <9 GPIO_ACTIVE_LOW>;
82+
output-low;
83+
line-name = "spdif-digital-en";
84+
bootph-pre-ram;
85+
};
86+
87+
spdif-opt {
88+
gpio-hog;
89+
gpios = <10 GPIO_ACTIVE_LOW>;
90+
output-low;
91+
line-name = "spdif-optical-en";
92+
bootph-pre-ram;
93+
};
94+
95+
audio-jack {
96+
gpio-hog;
97+
gpios = <11 GPIO_ACTIVE_HIGH>;
98+
output-high;
99+
line-name = "audio-jack-sel";
100+
bootph-pre-ram;
101+
};
102+
103+
mlb {
104+
gpio-hog;
105+
gpios = <12 GPIO_ACTIVE_HIGH>;
106+
output-high;
107+
line-name = "~mlb-en";
108+
bootph-pre-ram;
109+
};
110+
111+
eth1 {
112+
gpio-hog;
113+
gpios = <13 GPIO_ACTIVE_LOW>;
114+
output-high;
115+
line-name = "eth1-en";
116+
bootph-pre-ram;
117+
};
118+
119+
eth1-reset {
120+
gpio-hog;
121+
gpios = <14 GPIO_ACTIVE_LOW>;
122+
/*
123+
* USB0 lines are shared with Eth1 so Eth PHY must be held in reset
124+
* when using the USB
125+
*/
126+
output-high;
127+
line-name = "eth1-reset";
128+
bootph-pre-ram;
129+
};
130+
131+
gige-reset {
132+
gpio-hog;
133+
gpios = <15 GPIO_ACTIVE_HIGH>;
134+
output-high;
135+
line-name = "gige-reset";
136+
bootph-pre-ram;
137+
};
138+
};
139+
};

arch/arm/dts/sc594-som-ezlite.dts

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,86 @@
1111
model = "ADI SC594-SOM-EZLITE";
1212
compatible = "adi,sc594-som-ezlite", "adi,sc59x";
1313
};
14+
15+
&i2c2 {
16+
gpio_expander: adp5588@30 {
17+
compatible = "adi,adp5588";
18+
reg = <0x30>;
19+
gpio-controller;
20+
#gpio-cells = <2>;
21+
bootph-pre-ram;
22+
23+
usb-spi0 {
24+
gpio-hog;
25+
gpios = <8 GPIO_ACTIVE_LOW>;
26+
output-low;
27+
line-name = "usb_spi0_en";
28+
bootph-pre-ram;
29+
};
30+
31+
usb-spi1 {
32+
gpio-hog;
33+
gpios = <9 GPIO_ACTIVE_LOW>;
34+
output-low;
35+
line-name = "usb_spi1_en";
36+
bootph-pre-ram;
37+
};
38+
39+
usb-qspi-en {
40+
gpio-hog;
41+
gpios = <10 GPIO_ACTIVE_LOW>;
42+
output-low;
43+
line-name = "usb_qspi_en";
44+
bootph-pre-ram;
45+
};
46+
47+
usb-qspi-reset {
48+
gpio-hog;
49+
gpios = <11 GPIO_ACTIVE_LOW>;
50+
output-high;
51+
line-name = "usb_qspi_reset";
52+
bootph-pre-ram;
53+
};
54+
55+
eth0-reset {
56+
gpio-hog;
57+
gpios = <12 GPIO_ACTIVE_LOW>;
58+
output-high;
59+
line-name = "eth0-reset";
60+
bootph-pre-ram;
61+
};
62+
63+
adau1372-pwrdwn {
64+
gpio-hog;
65+
gpios = <13 GPIO_ACTIVE_LOW>;
66+
output-high;
67+
line-name = "adau1372_pwrdwn";
68+
bootph-pre-ram;
69+
};
70+
71+
led1 {
72+
gpio-hog;
73+
gpios = <15 GPIO_ACTIVE_LOW>;
74+
output-high;
75+
line-name = "led1-en";
76+
bootph-pre-ram;
77+
};
78+
79+
led2 {
80+
gpio-hog;
81+
gpios = <16 GPIO_ACTIVE_LOW>;
82+
output-high;
83+
line-name = "led2-en";
84+
bootph-pre-ram;
85+
};
86+
87+
led3 {
88+
gpio-hog;
89+
gpios = <17 GPIO_ACTIVE_LOW>;
90+
output-high;
91+
line-name = "led3-en";
92+
bootph-pre-ram;
93+
};
94+
95+
};
96+
};

0 commit comments

Comments
 (0)