Skip to content

Commit 5d9d20a

Browse files
committed
drivers: pwm: renesas: Add input capture on gtiocb
This commit add support for input capture feature for PWM GPT on Renesas RA MCU on GTIOCB pin This use the combination of input capture interrupt B and overflow interrupt to get pulse and period information This commit also add modify to all impact device tree config using renesas,ra-pwm node Signed-off-by: Duy Nguyen <[email protected]>
1 parent 600cae6 commit 5d9d20a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+344
-154
lines changed

boards/arduino/uno_r4/arduino_uno_r4.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@
6565
&pwm7 {
6666
pinctrl-0 = <&pwm7_default>;
6767
pinctrl-names = "default";
68-
interrupts = <8 1>, <9 1>;
69-
interrupt-names = "gtioca", "overflow";
68+
interrupts = <8 1>, <9 1>, <14 1>;
69+
interrupt-names = "gtioca", "gtiocb", "overflow";
7070
status = "okay";
7171
};
7272

boards/renesas/ek_ra2a1/ek_ra2a1.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@
9191
&pwm0 {
9292
pinctrl-0 = <&pwm0_default>;
9393
pinctrl-names = "default";
94-
interrupts = <28 1>, <31 1>;
95-
interrupt-names = "gtioca", "overflow";
94+
interrupts = <28 1>, <31 1>, <32 1>;
95+
interrupt-names = "gtioca", "gtiocb", "overflow";
9696
status = "okay";
9797
};
9898

boards/renesas/ek_ra4e2/ek_ra4e2.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@
166166
&pwm1 {
167167
pinctrl-0 = <&pwm1_default>;
168168
pinctrl-names = "default";
169-
interrupts = <63 1>, <64 1>;
170-
interrupt-names = "gtioca", "overflow";
169+
interrupts = <63 1>, <64 1>, <65 1>;
170+
interrupt-names = "gtioca", "gtiocb", "overflow";
171171
divider = <RA_PWM_SOURCE_DIV_256>;
172172
status = "okay";
173173
};

boards/renesas/ek_ra4l1/ek_ra4l1.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@
160160
&pwm1 {
161161
pinctrl-0 = <&pwm1_default>;
162162
pinctrl-names = "default";
163-
interrupts = <8 1>, <9 1>;
164-
interrupt-names = "gtioca", "overflow";
163+
interrupts = <8 1>, <9 1>, <14 1>;
164+
interrupt-names = "gtioca", "gtiocb", "overflow";
165165
status = "okay";
166166
};
167167

boards/renesas/ek_ra4m1/ek_ra4m1.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@
120120
&pwm1 {
121121
pinctrl-0 = <&pwm1_default>;
122122
pinctrl-names = "default";
123-
interrupts = <8 1>, <9 1>;
124-
interrupt-names = "gtioca", "overflow";
123+
interrupts = <8 1>, <9 1>, <14 1>;
124+
interrupt-names = "gtioca", "gtiocb", "overflow";
125125
status = "okay";
126126
};
127127

boards/renesas/ek_ra4m2/ek_ra4m2.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@
142142
&pwm1 {
143143
pinctrl-0 = <&pwm1_default>;
144144
pinctrl-names = "default";
145-
interrupts = <63 1>, <64 1>;
146-
interrupt-names = "gtioca", "overflow";
145+
interrupts = <63 1>, <64 1>, <65 1>;
146+
interrupt-names = "gtioca", "gtiocb", "overflow";
147147
status = "okay";
148148
};
149149

boards/renesas/ek_ra4m3/ek_ra4m3.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@
142142
&pwm1 {
143143
pinctrl-0 = <&pwm1_default>;
144144
pinctrl-names = "default";
145-
interrupts = <63 1>, <64 1>;
146-
interrupt-names = "gtioca", "overflow";
145+
interrupts = <63 1>, <64 1>, <65 1>;
146+
interrupt-names = "gtioca", "gtiocb", "overflow";
147147
status = "okay";
148148
};
149149

boards/renesas/ek_ra4w1/ek_ra4w1.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@
104104
&pwm1 {
105105
pinctrl-0 = <&pwm1_default>;
106106
pinctrl-names = "default";
107-
interrupts = <8 1>, <9 1>;
108-
interrupt-names = "gtioca", "overflow";
107+
interrupts = <8 1>, <9 1>, <14 1>;
108+
interrupt-names = "gtioca", "gtiocb", "overflow";
109109
status = "okay";
110110
};
111111

boards/renesas/ek_ra6e2/ek_ra6e2.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,8 @@
163163
&pwm1 {
164164
pinctrl-0 = <&pwm1_default>;
165165
pinctrl-names = "default";
166-
interrupts = <63 1>, <64 1>;
167-
interrupt-names = "gtioca", "overflow";
166+
interrupts = <63 1>, <64 1>, <65 1>;
167+
interrupt-names = "gtioca", "gtiocb", "overflow";
168168
divider = <RA_PWM_SOURCE_DIV_256>;
169169
status = "okay";
170170
};

boards/renesas/ek_ra6m1/ek_ra6m1.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@
126126
&pwm1 {
127127
pinctrl-0 = <&pwm1_default>;
128128
pinctrl-names = "default";
129-
interrupts = <63 1>, <64 1>;
130-
interrupt-names = "gtioca", "overflow";
129+
interrupts = <63 1>, <64 1>, <65 1>;
130+
interrupt-names = "gtioca", "gtiocb", "overflow";
131131
status = "okay";
132132
};
133133

0 commit comments

Comments
 (0)