Commit 527a2258 authored by Michal Smola's avatar Michal Smola Committed by Anas Nashif
Browse files

boards: frdm_mcxc242: Add counters support



mcxc242 has lptmr, pit and rtc counters, but it is not documented and
not listed in frdm_mcxc242.yaml.
Add the counters to board documentation, to the yaml file, and enable
it explicitly in board dts. Set rtc clock to 32 kHz oscillator.

Signed-off-by: default avatarMichal Smola <michal.smola@nxp.com>
parent 8a674e15
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -70,6 +70,12 @@ The ``frdm_mcxc242`` board target supports the following hardware features:
+-----------+------------+-------------------------------------+
| ADC       | on-chip    | adc                                 |
+-----------+------------+-------------------------------------+
| LPTMR     | on-chip    | counter                             |
+-----------+------------+-------------------------------------+
| PIT       | on-chip    | counter                             |
+-----------+------------+-------------------------------------+
| RTC       | on-chip    | counter                             |
+-----------+------------+-------------------------------------+


Targets available
+21 −1
Original line number Diff line number Diff line
@@ -87,7 +87,7 @@

&sim {
	pllfll-select = <KINETIS_SIM_PLLFLLSEL_MCGPLLCLK>;
	er32k-select = <KINETIS_SIM_ER32KSEL_LPO1KHZ>;
	er32k-select = <KINETIS_SIM_ER32KSEL_OSC32KCLK>;
};

&cpu0 {
@@ -153,3 +153,23 @@ i2c1: &i2c1 {
	pinctrl-0 = <&pinmux_adc0>;
	pinctrl-names = "default";
};

&lptmr0 {
	status = "okay";
};

&rtc {
	status = "okay";
};

&pit0 {
	status = "okay";
};

&pit0_channel0 {
	status = "okay";
};

&pit0_channel1 {
	status = "okay";
};
+1 −0
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@ supported:
  - i2c
  - pwm
  - adc
  - counter
testing:
  ignore_tags:
    - net