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:
parent
4f868cd9fa
commit
0d58960abb
10 changed files with 34 additions and 15 deletions
|
@ -221,7 +221,7 @@
|
|||
};
|
||||
|
||||
&sw_pwm {
|
||||
timer-instance = <2>;
|
||||
generator = <&timer2>;
|
||||
channel-count = <3>;
|
||||
clock-prescaler = <0>;
|
||||
ppi-base = <14>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue