diff mbox series

[1/2] dt-bindings: serial: pl011: Delete an incorrect compatible string

Message ID 20210520115440.8259-2-thunder.leizhen@huawei.com
State New
Headers show
Series dt-bindings: serial: pl011: Avoid matching device tree nodes of variant pl011 drivers | expand

Commit Message

Zhen Lei May 20, 2021, 11:54 a.m. UTC
The compatible strings "zte,zx296702-uart" and "arm,primecell" are a
combination, but commit 89d4f98ae90d ("ARM: remove zte zx platform")
removes only the former. It is incorrect to match driver pl011 based only
on the remaining "arm,primecell". Delete it.

Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
---
 Documentation/devicetree/bindings/serial/pl011.yaml | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

Comments

Rob Herring May 21, 2021, 6:56 p.m. UTC | #1
On Thu, May 20, 2021 at 6:54 AM Zhen Lei <thunder.leizhen@huawei.com> wrote:
>
> The compatible strings "zte,zx296702-uart" and "arm,primecell" are a
> combination, but commit 89d4f98ae90d ("ARM: remove zte zx platform")
> removes only the former. It is incorrect to match driver pl011 based only
> on the remaining "arm,primecell". Delete it.
>
> Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
> ---
>  Documentation/devicetree/bindings/serial/pl011.yaml | 9 +++------
>  1 file changed, 3 insertions(+), 6 deletions(-)

Reviewed-by: Rob Herring <robh@kernel.org>
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/serial/pl011.yaml b/Documentation/devicetree/bindings/serial/pl011.yaml
index 142187337c76..5ea00f8a283d 100644
--- a/Documentation/devicetree/bindings/serial/pl011.yaml
+++ b/Documentation/devicetree/bindings/serial/pl011.yaml
@@ -24,12 +24,9 @@  select:
 
 properties:
   compatible:
-    oneOf:
-      - items:
-          - const: arm,pl011
-          - const: arm,primecell
-      - items:
-          - const: arm,primecell
+    items:
+      - const: arm,pl011
+      - const: arm,primecell
 
   reg:
     maxItems: 1