dts: introduce shared binding for the NXP FlexTimer

Do not assume in the SoC level device trees that NXP Kinetis FlexTimer
nodes will always be configured as PWM. Instead, configure FlexTimer
nodes for PWM at the board level for NXP Kinetis boards.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
This commit is contained in:
Henrik Brix Andersen 2020-04-19 22:36:45 +02:00 committed by Maureen Helm
commit 9ceb29ac56
19 changed files with 87 additions and 105 deletions

View file

@ -25,10 +25,6 @@
pinmux-c = &portc;
pinmux-d = &portd;
pinmux-e = &porte;
pwm-0 = &ftm0;
pwm-1 = &ftm1;
pwm-2 = &ftm2;
pwm-3 = &ftm3;
spi-0 = &spi0;
spi-1 = &spi1;
spi-2 = &spi2;
@ -387,44 +383,40 @@
label = "WDT_0";
};
ftm0: pwm@40038000{
ftm0: ftm@40038000{
compatible = "nxp,kinetis-ftm";
reg = <0x40038000 0x98>;
interrupts = <42 0>;
clocks = <&mcg KINETIS_MCG_FIXED_FREQ_CLK>;
label = "PWM_0";
label = "FTM_0";
status = "disabled";
#pwm-cells = <3>;
};
ftm1: pwm@40039000{
ftm1: ftm@40039000{
compatible = "nxp,kinetis-ftm";
reg = <0x40039000 0x98>;
interrupts = <43 0>;
clocks = <&mcg KINETIS_MCG_FIXED_FREQ_CLK>;
label = "PWM_1";
label = "FTM_1";
status = "disabled";
#pwm-cells = <3>;
};
ftm2: pwm@4003a000{
ftm2: ftm@4003a000{
compatible = "nxp,kinetis-ftm";
reg = <0x4003a000 0x98>;
interrupts = <44 0>;
clocks = <&mcg KINETIS_MCG_FIXED_FREQ_CLK>;
label = "PWM_2";
label = "FTM_2";
status = "disabled";
#pwm-cells = <3>;
};
ftm3: pwm@400b9000{
ftm3: ftm@400b9000{
compatible = "nxp,kinetis-ftm";
reg = <0x400b9000 0x98>;
interrupts = <71 0>;
clocks = <&mcg KINETIS_MCG_FIXED_FREQ_CLK>;
label = "PWM_3";
label = "FTM_3";
status = "disabled";
#pwm-cells = <3>;
};
adc0: adc@4003b000{