Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 22624b5

Browse files
committedMar 11, 2025·
H7 - ADC hack for D19,D20
1 parent 2469431 commit 22624b5

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed
 

‎loader/boards/arduino_portenta_h7_m7.overlay

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
compatible = "pwm-clock";
108108
clock-frequency = <0>;
109109
#clock-cells = <1>;
110-
pwms = <&pwm1 1 PWM_HZ(11000000) PWM_POLARITY_NORMAL>;
110+
pwms = <&pwm1 1 PWM_HZ(12000000) PWM_POLARITY_NORMAL>;
111111
//12mhz for 7670, default is also 12MHz
112112
};
113113
};
@@ -529,13 +529,15 @@
529529
<&gpioc 2 0>,
530530
<&gpioc 3 0>,
531531
<&gpioa 4 0>,
532-
<&gpioa 6 0>;
532+
<&gpioa 6 0>,
533+
<&gpioz 4 0>, /* Hack for D19 */
534+
<&gpioz 5 0>; /* Hack for D20 */
533535

534536
serials = <&cdc_acm_uart0>,<&usart6>, <&usart1>, <&uart4>;
535537
cdc-acm = <&cdc_acm_uart0>;
536538
i2cs = <&i2c3>, <&i2c1>, <&i2c4>;
537539
spis = <&spi2>;
538-
pwms = <&pwm1 1 PWM_HZ(11000000) PWM_POLARITY_NORMAL>, //12mhz default
540+
pwms = <&pwm1 1 PWM_HZ(12000000) PWM_POLARITY_NORMAL>, //12mhz default
539541
<&pwm3 1 PWM_HZ(500) PWM_POLARITY_NORMAL>,
540542
<&pwm3 2 PWM_HZ(500) PWM_POLARITY_NORMAL>,
541543
<&pwm1 2 PWM_HZ(5000) PWM_POLARITY_NORMAL>,
@@ -551,6 +553,8 @@
551553
<&adc1 12>,
552554
<&adc1 13>,
553555
<&adc1 18>,
554-
<&adc1 3>;
556+
<&adc1 3>,
557+
<&adc1 12>, /* Hack for D19 */
558+
<&adc1 13>; /* Hack for D20 */
555559
};
556560
};

0 commit comments

Comments
 (0)
Please sign in to comment.