drivers: pwm: nrf_sw: convert to timer phandle instead instance number

So far 'timer-instance' DT property was the way to configure TIMER which
was used for generating PWM signal. Replace that by using 'generator'
phandle, so we get prepared for supporting RTC instances as PWM signal
generator.

Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
This commit is contained in:
Marcin Niestroj 2020-11-11 15:01:54 +01:00 committed by Carles Cufí
commit 0d58960abb
10 changed files with 34 additions and 15 deletions

View file

@ -221,7 +221,7 @@
};
&sw_pwm {
timer-instance = <2>;
generator = <&timer2>;
channel-count = <3>;
clock-prescaler = <0>;
ppi-base = <14>;