Skip to content

Commit f1b3f00

Browse files
danieldegrassecarlescufi
authored andcommitted
boards: remove pinmux usage for acmp peripheral
Remove pinmux usage for acmp peripheral on kinetis boards, as mcux_acmp driver supports pinctrl Signed-off-by: Daniel DeGrasse <[email protected]>
1 parent 31406c1 commit f1b3f00

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

boards/arm/twr_ke18f/pinmux.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,6 @@ static int twr_ke18f_pinmux_init(const struct device *dev)
3939
__ASSERT_NO_MSG(device_is_ready(porte));
4040
#endif
4141

42-
#if (DT_NODE_HAS_STATUS(DT_NODELABEL(adc0), okay) && CONFIG_ADC) || \
43-
(DT_NODE_HAS_STATUS(DT_NODELABEL(cmp2), okay) && CONFIG_MCUX_ACMP)
44-
/* Potentiometer */
45-
pinmux_pin_set(portc, 14, PORT_PCR_MUX(kPORT_PinDisabledOrAnalog));
46-
#endif
47-
4842
#if DT_NODE_HAS_STATUS(DT_NODELABEL(dac0), okay) && CONFIG_DAC
4943
pinmux_pin_set(porte, 9, PORT_PCR_MUX(kPORT_PinDisabledOrAnalog));
5044
#endif

samples/sensor/mcux_acmp/boards/twr_ke18f.overlay

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@
1717
&cmp2 {
1818
status = "okay";
1919
pinctrl-0 = <&cmp2_default>;
20+
pinctrl-names = "default";
2021
};

0 commit comments

Comments
 (0)