Skip to content

Commit e00ad79

Browse files
bijudasgeertu
authored andcommitted
arm64: dts: renesas: rzg2l-smarc: Enable GPT on carrier board
The GPT4 IOs are available on the carrier board's PMOD0 connector (J1). Enable the GPT on the carrier board by adding the GPT pinmux and node on the carrier board dtsi file. Signed-off-by: Biju Das <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Link: https://lore.kernel.org/[email protected] Signed-off-by: Geert Uytterhoeven <[email protected]>
1 parent f2aa064 commit e00ad79

File tree

4 files changed

+27
-0
lines changed

4 files changed

+27
-0
lines changed

arch/arm64/boot/dts/renesas/r9a07g044l2-smarc.dts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@
2727
#error "Cannot set 1 to MTU3_COUNTER_Z_PHASE_SIGNAL as PMOD_MTU3=0"
2828
#endif
2929

30+
/*
31+
* To enable the GPT pins GTIOC4A(PMOD0_PIN7) and GTIOC4B(PMOD0_PIN10) on the
32+
* PMOD0 connector (J1), enable PMOD0_GPT by setting "#define PMOD0_GPT 1"
33+
* below.
34+
*/
35+
#define PMOD0_GPT 0
36+
3037
#include "r9a07g044l2.dtsi"
3138
#include "rzg2l-smarc-som.dtsi"
3239
#include "rzg2l-smarc-pinfunction.dtsi"

arch/arm64/boot/dts/renesas/r9a07g054l2-smarc.dts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@
2626
#error "Cannot set 1 to MTU3_COUNTER_Z_PHASE_SIGNAL as PMOD_MTU3=0"
2727
#endif
2828

29+
/*
30+
* To enable the GPT pins GTIOC4A(PMOD0_PIN7) and GTIOC4B(PMOD0_PIN10) on the
31+
* PMOD0 connector (J1), enable PMOD0_GPT by setting "#define PMOD0_GPT 1"
32+
* below.
33+
*/
34+
#define PMOD0_GPT 0
35+
2936
#include "r9a07g054l2.dtsi"
3037
#include "rzg2l-smarc-som.dtsi"
3138
#include "rzg2l-smarc-pinfunction.dtsi"

arch/arm64/boot/dts/renesas/rzg2l-smarc-pinfunction.dtsi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@
3838
line-name = "can1_stb";
3939
};
4040

41+
gpt_pins: gpt {
42+
pinmux = <RZG2L_PORT_PINMUX(43, 0, 2)>, /* GTIOC4A */
43+
<RZG2L_PORT_PINMUX(43, 1, 2)>; /* GTIOC4B */
44+
};
45+
4146
i2c0_pins: i2c0 {
4247
pins = "RIIC0_SDA", "RIIC0_SCL";
4348
input-enable;

arch/arm64/boot/dts/renesas/rzg2l-smarc.dtsi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,14 @@
104104
};
105105
};
106106

107+
#if PMOD0_GPT
108+
&gpt {
109+
pinctrl-0 = <&gpt_pins>;
110+
pinctrl-names = "default";
111+
status = "okay";
112+
};
113+
#endif /* PMOD0_GPT */
114+
107115
&i2c3 {
108116
pinctrl-0 = <&i2c3_pins>;
109117
pinctrl-names = "default";

0 commit comments

Comments
 (0)