boards: frdm_k82f: Enable adc instance and pinmux

Enables the adc instance and pinmux associated with arduino header pin
A2 on the frdm_k82 board. Adds adc to the board yaml to ensure we build
adc samples/tests for this board in CI.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
This commit is contained in:
Maureen Helm 2020-05-20 15:34:51 -05:00 committed by Carles Cufí
commit 7197e7c8fc
3 changed files with 10 additions and 0 deletions

View file

@ -106,6 +106,10 @@
};
};
&adc0 {
status = "okay";
};
&gpioa {
status = "okay";
};

View file

@ -9,6 +9,7 @@ toolchain:
ram: 192
flash: 256
supported:
- adc
- arduino_gpio
- gpio
- i2c

View file

@ -77,6 +77,11 @@ static int frdm_k82f_pinmux_init(struct device *dev)
pinmux_pin_set(portc, 15, PORT_PCR_MUX(kPORT_MuxAlt3));
#endif
#if DT_NODE_HAS_STATUS(DT_NODELABEL(adc0), okay)
/* ADC0_SE15 */
pinmux_pin_set(portc, 1, PORT_PCR_MUX(kPORT_PinDisabledOrAnalog));
#endif
return 0;
}