Skip to content

Commit 1db8419

Browse files
Dat-NguyenDuycfriedt
authored andcommitted
tests: drivers: gpio_basic_api: support to run the test on NXP S32Z27
Add support to run the test on NXP S32Z27, the wiring connection is needed as describe in overlay file Signed-off-by: Dat Nguyen Duy <[email protected]>
1 parent da04197 commit 1db8419

File tree

2 files changed

+70
-0
lines changed

2 files changed

+70
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/*
2+
* Copyright 2022 NXP
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <nxp/s32/S32Z27-BGA594-pinctrl.h>
8+
9+
/ {
10+
/* Pin 1 and 3 of J69 must be connected on the board */
11+
resources {
12+
compatible = "test-gpio-basic-api";
13+
out-gpios = <&gpioa 11 0>;
14+
in-gpios = <&gpioa 12 0>;
15+
};
16+
};
17+
18+
&pinctrl {
19+
eirq0_default: eirq0_default {
20+
group1 {
21+
pinmux = <PA12_EIRQ_3>;
22+
input-enable;
23+
};
24+
};
25+
};
26+
27+
&eirq0 {
28+
pinctrl-0 = <&eirq0_default>;
29+
pinctrl-names = "default";
30+
status = "okay";
31+
};
32+
33+
&gpioa {
34+
status = "okay";
35+
};
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/*
2+
* Copyright 2022 NXP
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <nxp/s32/S32Z27-BGA594-pinctrl.h>
8+
9+
/ {
10+
/* Pin 1 and 3 of J69 must be connected on the board */
11+
resources {
12+
compatible = "test-gpio-basic-api";
13+
out-gpios = <&gpioa 11 0>;
14+
in-gpios = <&gpioa 12 0>;
15+
};
16+
};
17+
18+
&pinctrl {
19+
eirq0_default: eirq0_default {
20+
group1 {
21+
pinmux = <PA12_EIRQ_3>;
22+
input-enable;
23+
};
24+
};
25+
};
26+
27+
&eirq0 {
28+
pinctrl-0 = <&eirq0_default>;
29+
pinctrl-names = "default";
30+
status = "okay";
31+
};
32+
33+
&gpioa {
34+
status = "okay";
35+
};

0 commit comments

Comments
 (0)