Skip to content

Commit

Permalink
dts: arm: nordic: Move sw_pwm node to nrf_common.dtsi
Browse files Browse the repository at this point in the history
Since the pwm_nrf_sw driver can now be used on all nRF SoCs, add its
corresponding DT node in the common file included by all those SoCs.

Signed-off-by: Andrzej Głąbek <[email protected]>
  • Loading branch information
anangl authored and carlescufi committed Aug 16, 2023
1 parent 88ab153 commit 839769e
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 64 deletions.
8 changes: 0 additions & 8 deletions dts/arm/nordic/nrf51822.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -316,14 +316,6 @@
port = <0>;
};
};

sw_pwm: sw-pwm {
compatible = "nordic,nrf-sw-pwm";
status = "disabled";
generator = <&timer1>;
clock-prescaler = <0>;
#pwm-cells = <3>;
};
};

&nvic {
Expand Down
8 changes: 0 additions & 8 deletions dts/arm/nordic/nrf52805.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -312,14 +312,6 @@
port = <0>;
};
};

sw_pwm: sw-pwm {
compatible = "nordic,nrf-sw-pwm";
status = "disabled";
generator = <&timer2>;
clock-prescaler = <0>;
#pwm-cells = <3>;
};
};

&nvic {
Expand Down
8 changes: 0 additions & 8 deletions dts/arm/nordic/nrf52810.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -338,14 +338,6 @@
port = <0>;
};
};

sw_pwm: sw-pwm {
compatible = "nordic,nrf-sw-pwm";
status = "disabled";
generator = <&timer2>;
clock-prescaler = <0>;
#pwm-cells = <3>;
};
};

&nvic {
Expand Down
8 changes: 0 additions & 8 deletions dts/arm/nordic/nrf52811.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -373,14 +373,6 @@
port = <0>;
};
};

sw_pwm: sw-pwm {
compatible = "nordic,nrf-sw-pwm";
status = "disabled";
generator = <&timer2>;
clock-prescaler = <0>;
#pwm-cells = <3>;
};
};

&nvic {
Expand Down
8 changes: 0 additions & 8 deletions dts/arm/nordic/nrf52820.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -382,14 +382,6 @@
port = <0>;
};
};

sw_pwm: sw-pwm {
compatible = "nordic,nrf-sw-pwm";
status = "disabled";
generator = <&timer2>;
clock-prescaler = <0>;
#pwm-cells = <3>;
};
};

&nvic {
Expand Down
8 changes: 0 additions & 8 deletions dts/arm/nordic/nrf52832.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -465,14 +465,6 @@
port = <0>;
};
};

sw_pwm: sw-pwm {
compatible = "nordic,nrf-sw-pwm";
status = "disabled";
generator = <&timer2>;
clock-prescaler = <0>;
#pwm-cells = <3>;
};
};

&nvic {
Expand Down
8 changes: 0 additions & 8 deletions dts/arm/nordic/nrf52833.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -531,14 +531,6 @@
port = <1>;
};
};

sw_pwm: sw-pwm {
compatible = "nordic,nrf-sw-pwm";
status = "disabled";
generator = <&timer2>;
clock-prescaler = <0>;
#pwm-cells = <3>;
};
};

&nvic {
Expand Down
8 changes: 0 additions & 8 deletions dts/arm/nordic/nrf52840.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -549,14 +549,6 @@
};
};
};

sw_pwm: sw-pwm {
compatible = "nordic,nrf-sw-pwm";
status = "disabled";
generator = <&timer2>;
clock-prescaler = <0>;
#pwm-cells = <3>;
};
};

&nvic {
Expand Down
8 changes: 8 additions & 0 deletions dts/arm/nordic/nrf_common.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@
compatible = "zephyr,bt-hci-entropy";
status = "okay";
};

sw_pwm: sw-pwm {
compatible = "nordic,nrf-sw-pwm";
status = "disabled";
generator = <&timer1>;
clock-prescaler = <0>;
#pwm-cells = <3>;
};
};

&systick {
Expand Down

0 comments on commit 839769e

Please sign in to comment.