Skip to content

Commit 3804be1

Browse files
committed
arm64: dts: s32g: add common 'S32G-EVB' and 'S32G-RDB' board support
JIRA: https://issues.redhat.com/browse/RHEL-116642 commit 81a97af Author: Ciprian Marian Costea <ciprianmarian.costea@oss.nxp.com> Date: Mon Jan 13 13:05:11 2025 +0200 arm64: dts: s32g: add common 'S32G-EVB' and 'S32G-RDB' board support Create common part, s32gxxa-evb.dtsi and s32gxxa-rdb.dtsi, for S32G2/S32G3 RDB2\3 and EVB G2/G3 boards to avoid copy duplicate part in boards dts file. Prepare to add other modules such as FlexCAN, DSPI easily in the future. Signed-off-by: Ciprian Marian Costea <ciprianmarian.costea@oss.nxp.com> Reviewed-by: Matthias Brugger <mbrugger@suse.com> Reviewed-by: Frank Li <Frank.Li@nxp.com> Signed-off-by: Shawn Guo <shawnguo@kernel.org> Signed-off-by: Jared Kangas <jkangas@redhat.com>
1 parent a7d39a9 commit 3804be1

File tree

5 files changed

+275
-0
lines changed

5 files changed

+275
-0
lines changed

arch/arm64/boot/dts/freescale/s32g274a-evb.dts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
/dts-v1/;
88

99
#include "s32g2.dtsi"
10+
#include "s32gxxxa-evb.dtsi"
1011

1112
/ {
1213
model = "NXP S32G2 Evaluation Board (S32G-VNP-EVB)";

arch/arm64/boot/dts/freescale/s32g274a-rdb2.dts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
/dts-v1/;
88

99
#include "s32g2.dtsi"
10+
#include "s32gxxxa-rdb.dtsi"
1011

1112
/ {
1213
model = "NXP S32G2 Reference Design Board 2 (S32G-VNP-RDB2)";

arch/arm64/boot/dts/freescale/s32g399a-rdb3.dts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
/dts-v1/;
99

1010
#include "s32g3.dtsi"
11+
#include "s32gxxxa-rdb.dtsi"
1112

1213
/ {
1314
model = "NXP S32G3 Reference Design Board 3 (S32G-VNP-RDB3)";
Lines changed: 150 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,150 @@
1+
// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
2+
/*
3+
* Copyright 2024 NXP
4+
*
5+
* Authors: Ciprian Marian Costea <ciprianmarian.costea@oss.nxp.com>
6+
* Ghennadi Procopciuc <ghennadi.procopciuc@oss.nxp.com>
7+
* Larisa Grigore <larisa.grigore@nxp.com>
8+
*/
9+
10+
&pinctrl {
11+
i2c0_pins: i2c0-pins {
12+
i2c0-grp0 {
13+
pinmux = <0x101>, <0x111>;
14+
drive-open-drain;
15+
output-enable;
16+
input-enable;
17+
slew-rate = <133>;
18+
};
19+
20+
i2c0-grp1 {
21+
pinmux = <0x2352>, <0x2362>;
22+
};
23+
};
24+
25+
i2c0_gpio_pins: i2c0-gpio-pins {
26+
i2c0-gpio-grp0 {
27+
pinmux = <0x100>, <0x110>;
28+
drive-open-drain;
29+
output-enable;
30+
input-enable;
31+
slew-rate = <133>;
32+
};
33+
34+
i2c0-gpio-grp1 {
35+
pinmux = <0x2350>, <0x2360>;
36+
};
37+
};
38+
39+
i2c1_pins: i2c1-pins {
40+
i2c1-grp0 {
41+
pinmux = <0x131>, <0x141>;
42+
drive-open-drain;
43+
output-enable;
44+
input-enable;
45+
slew-rate = <133>;
46+
};
47+
48+
i2c1-grp1 {
49+
pinmux = <0x2cd2>, <0x2ce2>;
50+
};
51+
};
52+
53+
i2c1_gpio_pins: i2c1-gpio-pins {
54+
i2c1-gpio-grp0 {
55+
pinmux = <0x130>, <0x140>;
56+
drive-open-drain;
57+
output-enable;
58+
input-enable;
59+
slew-rate = <133>;
60+
};
61+
62+
i2c1-gpio-grp1 {
63+
pinmux = <0x2cd0>, <0x2ce0>;
64+
};
65+
};
66+
67+
i2c2_pins: i2c2-pins {
68+
i2c2-grp0 {
69+
pinmux = <0x151>, <0x161>;
70+
drive-open-drain;
71+
output-enable;
72+
input-enable;
73+
slew-rate = <133>;
74+
};
75+
76+
i2c2-grp1 {
77+
pinmux = <0x2cf2>, <0x2d02>;
78+
};
79+
};
80+
81+
i2c2_gpio_pins: i2c2-gpio-pins {
82+
i2c2-gpio-grp0 {
83+
pinmux = <0x150>, <0x160>;
84+
drive-open-drain;
85+
output-enable;
86+
input-enable;
87+
slew-rate = <133>;
88+
};
89+
90+
i2c2-gpio-grp1 {
91+
pinmux = <0x2cf0>, <0x2d00>;
92+
};
93+
};
94+
95+
i2c4_pins: i2c4-pins {
96+
i2c4-grp0 {
97+
pinmux = <0x211>, <0x222>;
98+
drive-open-drain;
99+
output-enable;
100+
input-enable;
101+
slew-rate = <133>;
102+
};
103+
104+
i2c4-grp1 {
105+
pinmux = <0x2d43>, <0x2d33>;
106+
};
107+
};
108+
109+
i2c4_gpio_pins: i2c4-gpio-pins {
110+
i2c4-gpio-grp0 {
111+
pinmux = <0x210>, <0x220>;
112+
drive-open-drain;
113+
output-enable;
114+
input-enable;
115+
slew-rate = <133>;
116+
};
117+
118+
i2c4-gpio-grp1 {
119+
pinmux = <0x2d40>, <0x2d30>;
120+
};
121+
};
122+
};
123+
124+
&i2c0 {
125+
pinctrl-names = "default", "gpio";
126+
pinctrl-0 = <&i2c0_pins>;
127+
pinctrl-1 = <&i2c0_gpio_pins>;
128+
status = "okay";
129+
};
130+
131+
&i2c1 {
132+
pinctrl-names = "default", "gpio";
133+
pinctrl-0 = <&i2c1_pins>;
134+
pinctrl-1 = <&i2c1_gpio_pins>;
135+
status = "okay";
136+
};
137+
138+
&i2c2 {
139+
pinctrl-names = "default", "gpio";
140+
pinctrl-0 = <&i2c2_pins>;
141+
pinctrl-1 = <&i2c2_gpio_pins>;
142+
status = "okay";
143+
};
144+
145+
&i2c4 {
146+
pinctrl-names = "default", "gpio";
147+
pinctrl-0 = <&i2c4_pins>;
148+
pinctrl-1 = <&i2c4_gpio_pins>;
149+
status = "okay";
150+
};
Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
2+
/*
3+
* Copyright 2024 NXP
4+
*
5+
* Authors: Ciprian Marian Costea <ciprianmarian.costea@oss.nxp.com>
6+
* Ghennadi Procopciuc <ghennadi.procopciuc@oss.nxp.com>
7+
* Larisa Grigore <larisa.grigore@nxp.com>
8+
*/
9+
10+
&pinctrl {
11+
i2c0_pins: i2c0-pins {
12+
i2c0-grp0 {
13+
pinmux = <0x1f2>, <0x201>;
14+
drive-open-drain;
15+
output-enable;
16+
input-enable;
17+
slew-rate = <133>;
18+
};
19+
20+
i2c0-grp1 {
21+
pinmux = <0x2353>, <0x2363>;
22+
};
23+
};
24+
25+
i2c0_gpio_pins: i2c0-gpio-pins {
26+
i2c0-gpio-grp0 {
27+
pinmux = <0x1f0>, <0x200>;
28+
drive-open-drain;
29+
output-enable;
30+
input-enable;
31+
slew-rate = <133>;
32+
};
33+
34+
i2c0-gpio-grp1 {
35+
pinmux = <0x2350>, <0x2360>;
36+
};
37+
};
38+
39+
i2c2_pins: i2c2-pins {
40+
i2c2-grp0 {
41+
pinmux = <0x151>, <0x161>;
42+
drive-open-drain;
43+
output-enable;
44+
input-enable;
45+
slew-rate = <133>;
46+
};
47+
48+
i2c2-grp1 {
49+
pinmux = <0x2cf2>, <0x2d02>;
50+
};
51+
};
52+
53+
i2c2_gpio_pins: i2c2-gpio-pins {
54+
i2c2-gpio-grp0 {
55+
pinmux = <0x2cf0>, <0x2d00>;
56+
};
57+
58+
i2c2-gpio-grp1 {
59+
pinmux = <0x150>, <0x160>;
60+
drive-open-drain;
61+
output-enable;
62+
input-enable;
63+
slew-rate = <133>;
64+
};
65+
};
66+
67+
i2c4_pins: i2c4-pins {
68+
i2c4-grp0 {
69+
pinmux = <0x211>, <0x222>;
70+
drive-open-drain;
71+
output-enable;
72+
input-enable;
73+
slew-rate = <133>;
74+
};
75+
76+
i2c4-grp1 {
77+
pinmux = <0x2d43>, <0x2d33>;
78+
};
79+
};
80+
81+
i2c4_gpio_pins: i2c4-gpio-pins {
82+
i2c4-gpio-grp0 {
83+
pinmux = <0x210>, <0x220>;
84+
drive-open-drain;
85+
output-enable;
86+
input-enable;
87+
slew-rate = <133>;
88+
};
89+
90+
i2c4-gpio-grp1 {
91+
pinmux = <0x2d40>, <0x2d30>;
92+
};
93+
};
94+
};
95+
96+
&i2c0 {
97+
pinctrl-names = "default", "gpio";
98+
pinctrl-0 = <&i2c0_pins>;
99+
pinctrl-1 = <&i2c0_gpio_pins>;
100+
status = "okay";
101+
102+
pcal6524: gpio-expander@22 {
103+
compatible = "nxp,pcal6524";
104+
reg = <0x22>;
105+
gpio-controller;
106+
#gpio-cells = <2>;
107+
};
108+
};
109+
110+
&i2c2 {
111+
pinctrl-names = "default", "gpio";
112+
pinctrl-0 = <&i2c2_pins>;
113+
pinctrl-1 = <&i2c2_gpio_pins>;
114+
status = "okay";
115+
};
116+
117+
&i2c4 {
118+
pinctrl-names = "default", "gpio";
119+
pinctrl-0 = <&i2c4_pins>;
120+
pinctrl-1 = <&i2c4_gpio_pins>;
121+
status = "okay";
122+
};

0 commit comments

Comments
 (0)