Skip to content

Commit e831260

Browse files
committed
GIGA: Remove Arduino pins 11-13 from PWM list to fix SPI1
resolves: #64 Removed the pins logical Arduino pins 11-13 from the PWM pin list, plus their defines for the timers. With these defines in place, the pins Alternate Function settings were set to that of the timers versus the SPI value (5) Note: This was done by @mjs513 and myself.
1 parent 7715962 commit e831260

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

Diff for: loader/boards/arduino_giga_r1_m7.overlay

+3-16
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363

6464
pwm1: pwm {
6565
status = "okay";
66-
pinctrl-0 = <&tim1_ch3_pj9 &tim1_ch1_pk1 &tim1_ch2_pj11>;
66+
pinctrl-0 = <&tim1_ch3_pj9 &tim1_ch1_pk1>;
6767
pinctrl-names = "default";
6868
};
6969
};
@@ -107,21 +107,11 @@
107107

108108
pwm8: pwm {
109109
status = "okay";
110-
pinctrl-0 = <&tim8_ch1_pj8 &tim8_ch2_pj10>;
110+
pinctrl-0 = <&tim8_ch1_pj8>;
111111
pinctrl-names = "default";
112112
};
113113
};
114114

115-
&timers12 {
116-
status = "okay";
117-
st,prescaler = <100>;
118-
119-
pwm12: pwm {
120-
status = "okay";
121-
pinctrl-0 = <&tim12_ch1_ph6>;
122-
pinctrl-names = "default";
123-
};
124-
};
125115

126116
&pwm1 {
127117
/* Use the pwmclock node to start the clock generation */
@@ -518,10 +508,7 @@
518508
<&pwm3 1 PWM_HZ(500) PWM_POLARITY_NORMAL>,
519509
<&pwm4 3 PWM_HZ(500) PWM_POLARITY_NORMAL>,
520510
<&pwm4 4 PWM_HZ(500) PWM_POLARITY_NORMAL>,
521-
<&pwm1 1 PWM_HZ(5000) PWM_POLARITY_NORMAL>,
522-
<&pwm8 2 PWM_HZ(500) PWM_POLARITY_NORMAL>,
523-
<&pwm1 2 PWM_HZ(5000) PWM_POLARITY_NORMAL>,
524-
<&pwm12 1 PWM_HZ(500) PWM_POLARITY_NORMAL>;
511+
<&pwm1 1 PWM_HZ(5000) PWM_POLARITY_NORMAL>;
525512

526513
io-channels = <&adc1 4>,
527514
<&adc1 8>,

0 commit comments

Comments
 (0)