Skip to content
Permalink
Browse files

dts: pwm: nxp: Fixup bindings and dtsi so they build

With the new DT checks the dts bindings for "nxp,flexpwm" and
"nxp,imx-pwm" had old conventions that we now treat as build errors.

Additionally fix the number of #pwm-cells for "nxp,imx-pwm" to be 1.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
  • Loading branch information...
galak committed Aug 7, 2019
1 parent b785ded commit ade6cc633cd931e346754f54776f02c12066b519
Showing with 16 additions and 21 deletions.
  1. +16 −16 dts/arm/nxp/nxp_rt.dtsi
  2. +0 −2 dts/bindings/pwm/nxp,flexpwm.yaml
  3. +0 −3 dts/bindings/pwm/nxp,imx-pwm.yaml
@@ -341,31 +341,31 @@
index = <0>;
label = "FLEXPWM1_PWM0";
interrupts = <102 0>;
#pwm-cells = <2>;
#pwm-cells = <1>;
};

flexpwm1_pwm1: pwm1 {
compatible = "nxp,imx-pwm";
index = <1>;
label = "FLEXPWM1_PWM1";
interrupts = <103 0>;
#pwm-cells = <2>;
#pwm-cells = <1>;
};

flexpwm1_pwm2: pwm2 {
compatible = "nxp,imx-pwm";
index = <2>;
label = "FLEXPWM1_PWM2";
interrupts = <104 0>;
#pwm-cells = <2>;
#pwm-cells = <1>;
};

flexpwm1_pwm3: pwm3 {
compatible = "nxp,imx-pwm";
index = <3>;
label = "FLEXPWM1_PWM3";
interrupts = <105 0>;
#pwm-cells = <2>;
#pwm-cells = <1>;
};
};

@@ -379,31 +379,31 @@
index = <0>;
label = "FLEXPWM2_PWM0";
interrupts = <137 0>;
#pwm-cells = <2>;
#pwm-cells = <1>;
};

flexpwm2_pwm1: pwm1 {
compatible = "nxp,imx-pwm";
index = <1>;
label = "FLEXPWM2_PWM1";
interrupts = <138 0>;
#pwm-cells = <2>;
#pwm-cells = <1>;
};

flexpwm2_pwm2: pwm2 {
compatible = "nxp,imx-pwm";
index = <2>;
label = "FLEXPWM2_PWM2";
interrupts = <139 0>;
#pwm-cells = <2>;
#pwm-cells = <1>;
};

flexpwm2_pwm3: pwm3 {
compatible = "nxp,imx-pwm";
index = <3>;
label = "FLEXPWM2_PWM3";
interrupts = <140 0>;
#pwm-cells = <2>;
#pwm-cells = <1>;
};
};

@@ -417,31 +417,31 @@
index = <0>;
label = "FLEXPWM3_PWM0";
interrupts = <142 0>;
#pwm-cells = <2>;
#pwm-cells = <1>;
};

flexpwm3_pwm1: pwm1 {
compatible = "nxp,imx-pwm";
index = <1>;
label = "FLEXPWM3_PWM1";
interrupts = <143 0>;
#pwm-cells = <2>;
#pwm-cells = <1>;
};

flexpwm3_pwm2: pwm2 {
compatible = "nxp,imx-pwm";
index = <2>;
label = "FLEXPWM3_PWM2";
interrupts = <144 0>;
#pwm-cells = <2>;
#pwm-cells = <1>;
};

flexpwm3_pwm3: pwm3 {
compatible = "nxp,imx-pwm";
index = <3>;
label = "FLEXPWM3_PWM3";
interrupts = <145 0>;
#pwm-cells = <2>;
#pwm-cells = <1>;
};
};

@@ -455,31 +455,31 @@
index = <0>;
label = "FLEXPWM4_PWM0";
interrupts = <147 0>;
#pwm-cells = <2>;
#pwm-cells = <1>;
};

flexpwm4_pwm1: pwm1 {
compatible = "nxp,imx-pwm";
index = <1>;
label = "FLEXPWM4_PWM1";
interrupts = <148 0>;
#pwm-cells = <2>;
#pwm-cells = <1>;
};

flexpwm4_pwm2: pwm2 {
compatible = "nxp,imx-pwm";
index = <2>;
label = "FLEXPWM4_PWM2";
interrupts = <149 0>;
#pwm-cells = <2>;
#pwm-cells = <1>;
};

flexpwm4_pwm3: pwm3 {
compatible = "nxp,imx-pwm";
index = <3>;
label = "FLEXPWM4_PWM3";
interrupts = <150 0>;
#pwm-cells = <2>;
#pwm-cells = <1>;
};
};

@@ -1,6 +1,4 @@
---
title: MCUX PWM
version: 0.1

description: >
This binding gives a base representation of the NXP eFLEX PWM module which
@@ -1,6 +1,4 @@
---
title: MCUX PWM
version: 0.1

description: >
This binding gives a base representation of the NXP MCUX PWM
@@ -15,7 +13,6 @@ properties:
index:
type: int
description: flexpwm submodule index
generation: define
category: required

interrupts:

0 comments on commit ade6cc6

Please sign in to comment.
You can’t perform that action at this time.