dts: nordic: Add #pwm-cells property to Nordic PWM nodes
Add #pwm-cells property in bindings for Nordic PWMs and add this property with a suitable value assigned to all PWM nodes in dts files for Nordic SoCs. Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
This commit is contained in:
parent
4b59690330
commit
e2ac56f55b
8 changed files with 32 additions and 8 deletions
|
@ -234,4 +234,5 @@
|
|||
ppi-base = <7>;
|
||||
gpiote-base = <0>;
|
||||
status = "okay";
|
||||
#pwm-cells = <1>;
|
||||
};
|
||||
|
|
|
@ -123,6 +123,7 @@
|
|||
interrupts = <28 1>;
|
||||
status = "disabled";
|
||||
label = "PWM_0";
|
||||
#pwm-cells = <1>;
|
||||
};
|
||||
|
||||
qdec: qdec@40012000 {
|
||||
|
@ -224,4 +225,5 @@
|
|||
clock-prescaler = <0>;
|
||||
ppi-base = <14>;
|
||||
gpiote-base = <0>;
|
||||
#pwm-cells = <1>;
|
||||
};
|
||||
|
|
|
@ -130,6 +130,7 @@
|
|||
interrupts = <28 1>;
|
||||
status = "disabled";
|
||||
label = "PWM_0";
|
||||
#pwm-cells = <1>;
|
||||
};
|
||||
|
||||
qdec: qdec@40012000 {
|
||||
|
@ -248,4 +249,5 @@
|
|||
clock-prescaler = <0>;
|
||||
ppi-base = <14>;
|
||||
gpiote-base = <0>;
|
||||
#pwm-cells = <1>;
|
||||
};
|
||||
|
|
|
@ -148,6 +148,7 @@
|
|||
interrupts = <28 1>;
|
||||
status = "disabled";
|
||||
label = "PWM_0";
|
||||
#pwm-cells = <1>;
|
||||
};
|
||||
|
||||
pwm1: pwm@40021000 {
|
||||
|
@ -156,6 +157,7 @@
|
|||
interrupts = <33 1>;
|
||||
status = "disabled";
|
||||
label = "PWM_1";
|
||||
#pwm-cells = <1>;
|
||||
};
|
||||
|
||||
pwm2: pwm@40022000 {
|
||||
|
@ -164,6 +166,7 @@
|
|||
interrupts = <34 1>;
|
||||
status = "disabled";
|
||||
label = "PWM_2";
|
||||
#pwm-cells = <1>;
|
||||
};
|
||||
|
||||
qdec: qdec@40012000 {
|
||||
|
@ -325,4 +328,5 @@
|
|||
clock-prescaler = <0>;
|
||||
ppi-base = <14>;
|
||||
gpiote-base = <0>;
|
||||
#pwm-cells = <1>;
|
||||
};
|
||||
|
|
|
@ -174,6 +174,7 @@
|
|||
interrupts = <28 1>;
|
||||
status = "disabled";
|
||||
label = "PWM_0";
|
||||
#pwm-cells = <1>;
|
||||
};
|
||||
|
||||
pwm1: pwm@40021000 {
|
||||
|
@ -182,6 +183,7 @@
|
|||
interrupts = <33 1>;
|
||||
status = "disabled";
|
||||
label = "PWM_1";
|
||||
#pwm-cells = <1>;
|
||||
};
|
||||
|
||||
pwm2: pwm@40022000 {
|
||||
|
@ -190,6 +192,7 @@
|
|||
interrupts = <34 1>;
|
||||
status = "disabled";
|
||||
label = "PWM_2";
|
||||
#pwm-cells = <1>;
|
||||
};
|
||||
|
||||
pwm3: pwm@4002d000 {
|
||||
|
@ -198,6 +201,7 @@
|
|||
interrupts = <45 1>;
|
||||
status = "disabled";
|
||||
label = "PWM_3";
|
||||
#pwm-cells = <1>;
|
||||
};
|
||||
|
||||
qdec: qdec@40012000 {
|
||||
|
@ -397,4 +401,5 @@
|
|||
clock-prescaler = <0>;
|
||||
ppi-base = <14>;
|
||||
gpiote-base = <0>;
|
||||
#pwm-cells = <1>;
|
||||
};
|
||||
|
|
|
@ -270,6 +270,7 @@ pwm0: pwm@21000 {
|
|||
interrupts = <33 1>;
|
||||
status = "disabled";
|
||||
label = "PWM_0";
|
||||
#pwm-cells = <1>;
|
||||
};
|
||||
|
||||
pwm1: pwm@22000 {
|
||||
|
@ -278,6 +279,7 @@ pwm1: pwm@22000 {
|
|||
interrupts = <34 1>;
|
||||
status = "disabled";
|
||||
label = "PWM_1";
|
||||
#pwm-cells = <1>;
|
||||
};
|
||||
|
||||
pwm2: pwm@23000 {
|
||||
|
@ -286,6 +288,7 @@ pwm2: pwm@23000 {
|
|||
interrupts = <35 1>;
|
||||
status = "disabled";
|
||||
label = "PWM_2";
|
||||
#pwm-cells = <1>;
|
||||
};
|
||||
|
||||
pwm3: pwm@24000 {
|
||||
|
@ -294,6 +297,7 @@ pwm3: pwm@24000 {
|
|||
interrupts = <36 1>;
|
||||
status = "disabled";
|
||||
label = "PWM_3";
|
||||
#pwm-cells = <1>;
|
||||
};
|
||||
|
||||
gpio0: gpio@842500 {
|
||||
|
|
|
@ -5,15 +5,12 @@ description: >
|
|||
|
||||
compatible: "nordic,nrf-pwm"
|
||||
|
||||
include: base.yaml
|
||||
include: [pwm-controller.yaml, base.yaml]
|
||||
|
||||
properties:
|
||||
reg:
|
||||
required: true
|
||||
|
||||
label:
|
||||
required: true
|
||||
|
||||
center-aligned:
|
||||
type: boolean
|
||||
description: Use center-aligned (up and down) counter mode
|
||||
|
@ -58,3 +55,9 @@ properties:
|
|||
type: boolean
|
||||
description: Channel 3 inverted
|
||||
required: false
|
||||
|
||||
"#pwm-cells":
|
||||
const: 1
|
||||
|
||||
pwm-cells:
|
||||
- channel
|
||||
|
|
|
@ -5,12 +5,9 @@ description: >
|
|||
|
||||
compatible: "nordic,nrf-sw-pwm"
|
||||
|
||||
include: base.yaml
|
||||
include: [pwm-controller.yaml, base.yaml]
|
||||
|
||||
properties:
|
||||
label:
|
||||
required: true
|
||||
|
||||
timer-instance:
|
||||
type: int
|
||||
description: Timer instance to use for generating the PWM output signals
|
||||
|
@ -35,3 +32,9 @@ properties:
|
|||
type: int
|
||||
description: GPIOTE base used for GPIOTE index calculation used for PWM output generation
|
||||
required: true
|
||||
|
||||
"#pwm-cells":
|
||||
const: 1
|
||||
|
||||
pwm-cells:
|
||||
- channel
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue