Skip to content

Commit 8de31ae

Browse files
committed
Update the PWM pin numbers so the numbers and indexes are in sync
1 parent c2f829b commit 8de31ae

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

loader/boards/arduino_portenta_h7_m7.overlay

+8-8
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646

4747
pwm1: pwm {
4848
status = "okay";
49-
pinctrl-0 = <&tim1_ch1_pk1 &tim1_ch2_pj11>;
49+
pinctrl-0 = <&tim1_ch1_pa8 &tim1_ch2_pj11>;
5050
pinctrl-names = "default";
5151
};
5252
};
@@ -91,7 +91,8 @@
9191
compatible = "pwm-clock";
9292
clock-frequency = <0>;
9393
#clock-cells = <1>;
94-
pwms = <&pwm1 2 PWM_HZ(12000000) PWM_POLARITY_NORMAL>;
94+
pwms = <&pwm1 1 PWM_HZ(11000000) PWM_POLARITY_NORMAL>;
95+
//12mhz for 7670, default is also 12MHz
9596
};
9697
};
9798

@@ -451,12 +452,12 @@
451452
<&gpiok 6 GPIO_ACTIVE_LOW>,
452453
<&gpiok 7 GPIO_ACTIVE_LOW>;
453454

454-
pwm-pin-gpios = //<&gpioa 8 0>,
455+
pwm-pin-gpios = <&gpioa 8 0>,
455456
<&gpioc 6 0>,
456457
<&gpioc 7 0>,
457458
//<&gpiog 7 0>,
458459
<&gpioj 11 0>,
459-
<&gpiok 1 0>,
460+
//<&gpiok 1 0>,
460461
<&gpioh 15 0>,
461462
<&gpioj 7 0>,
462463
<&gpioj 10 0>,
@@ -475,13 +476,12 @@
475476
cdc-acm = <&cdc_acm_uart0>;
476477
i2cs = <&i2c3>, <&i2c1>, <&i2c4>;
477478
spis = <&spi2>;
478-
pwms = //<&pwm8 1 PWM_HZ(500) PWM_POLARITY_NORMAL>,
479+
pwms = <&pwm1 1 PWM_HZ(11000000) PWM_POLARITY_NORMAL>, //12mhz default
479480
<&pwm3 1 PWM_HZ(500) PWM_POLARITY_NORMAL>,
480481
<&pwm3 2 PWM_HZ(500) PWM_POLARITY_NORMAL>,
481-
<&pwm1 2 PWM_HZ(12000000) PWM_POLARITY_NORMAL>,
482-
<&pwm1 1 PWM_HZ(5000) PWM_POLARITY_NORMAL>,
483-
<&pwm8 1 PWM_HZ(500) PWM_POLARITY_INVERTED>,
482+
<&pwm1 2 PWM_HZ(5000) PWM_POLARITY_NORMAL>,
484483
<&pwm8 3 PWM_HZ(500) PWM_POLARITY_INVERTED>,
484+
<&pwm8 2 PWM_HZ(500) PWM_POLARITY_INVERTED>,
485485
<&pwm8 2 PWM_HZ(500) PWM_POLARITY_NORMAL>,
486486
<&pwm12 1 PWM_HZ(500) PWM_POLARITY_NORMAL>;
487487

0 commit comments

Comments
 (0)