Message ID | 20190114172930.7508-2-robh@kernel.org |
---|---|
State | Not Applicable, archived |
Headers | show |
Series | [v2,1/2] dt-bindings: serial: Convert snps, dw-apb-uart to json-schema | expand |
Context | Check | Description |
---|---|---|
robh/checkpatch | warning | "total: 0 errors, 2 warnings, 11 lines checked" |
Hi Rob, On Mon, Jan 14, 2019 at 6:30 PM Rob Herring <robh@kernel.org> wrote: > The renesas,rzn1-uart binding only differs in compatible string from the > snps-dw-apb-uart binding. Move it there, converting it to json-schema in > the process. > > Cc: Phil Edworthy <phil.edworthy@renesas.com> > Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> > Cc: linux-serial@vger.kernel.org > Reviewed-by: Simon Horman <horms+renesas@verge.net.au> > Signed-off-by: Rob Herring <robh@kernel.org> > --- a/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml > +++ b/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml > @@ -15,6 +15,11 @@ allOf: > properties: > compatible: > oneOf: > + - items: > + - enum: > + - renesas,r9a06g032-uart > + - renesas,r9a06g033-uart > + - const: renesas,rzn1-uart > - items: > - enum: > - rockchip,px30-uart With ARCH=arm and shmobile_defconfig, "make dtbs_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml" complains: arch/arm/boot/dts/r9a06g032-rzn1d400-db.dt.yaml: compatible: ['renesas,r9a06g032-uart', 'renesas,rzn1-uart', 'snps,dw-apb-uart'] is not valid under any of the given schemas arch/arm/boot/dts/r9a06g032-rzn1d400-db.dt.yaml: compatible: ['renesas,r9a06g032-uart', 'renesas,rzn1-uart', 'snps,dw-apb-uart'] is not valid under any of the given schemas arch/arm/boot/dts/r9a06g032-rzn1d400-db.dt.yaml: compatible: ['renesas,r9a06g032-uart', 'renesas,rzn1-uart', 'snps,dw-apb-uart'] is not valid under any of the given schemas Do you know what's wrong? Thanks! Gr{oetje,eeting}s, Geert
On Fri, Oct 25, 2019 at 7:56 AM Geert Uytterhoeven <geert@linux-m68k.org> wrote: > > Hi Rob, > > On Mon, Jan 14, 2019 at 6:30 PM Rob Herring <robh@kernel.org> wrote: > > The renesas,rzn1-uart binding only differs in compatible string from the > > snps-dw-apb-uart binding. Move it there, converting it to json-schema in > > the process. > > > > Cc: Phil Edworthy <phil.edworthy@renesas.com> > > Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> > > Cc: linux-serial@vger.kernel.org > > Reviewed-by: Simon Horman <horms+renesas@verge.net.au> > > Signed-off-by: Rob Herring <robh@kernel.org> > > > --- a/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml > > +++ b/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml > > @@ -15,6 +15,11 @@ allOf: > > properties: > > compatible: > > oneOf: > > + - items: > > + - enum: > > + - renesas,r9a06g032-uart > > + - renesas,r9a06g033-uart > > + - const: renesas,rzn1-uart > > - items: > > - enum: > > - rockchip,px30-uart > > With ARCH=arm and shmobile_defconfig, "make dtbs_check > DT_SCHEMA_FILES=Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml" > complains: > > arch/arm/boot/dts/r9a06g032-rzn1d400-db.dt.yaml: compatible: > ['renesas,r9a06g032-uart', 'renesas,rzn1-uart', 'snps,dw-apb-uart'] is > not valid under any of the given schemas > arch/arm/boot/dts/r9a06g032-rzn1d400-db.dt.yaml: compatible: > ['renesas,r9a06g032-uart', 'renesas,rzn1-uart', 'snps,dw-apb-uart'] is > not valid under any of the given schemas > arch/arm/boot/dts/r9a06g032-rzn1d400-db.dt.yaml: compatible: > ['renesas,r9a06g032-uart', 'renesas,rzn1-uart', 'snps,dw-apb-uart'] is > not valid under any of the given schemas > > Do you know what's wrong? The addition doesn't allow for "snps,dw-apb-uart". Guess I relied on the binding doc being accurate. So we need to either drop it from dts files if the generic compatible is never useful (maybe simple cases like earlycon?) or add it here. Rob
diff --git a/Documentation/devicetree/bindings/serial/renesas,rzn1-uart.txt b/Documentation/devicetree/bindings/serial/renesas,rzn1-uart.txt deleted file mode 100644 index 8b9e0d4dc2e4..000000000000 --- a/Documentation/devicetree/bindings/serial/renesas,rzn1-uart.txt +++ /dev/null @@ -1,10 +0,0 @@ -Renesas RZ/N1 UART - -This controller is based on the Synopsys DesignWare ABP UART and inherits all -properties defined in snps-dw-apb-uart.txt except for the compatible property. - -Required properties: -- compatible : The device specific string followed by the generic RZ/N1 string. - Therefore it must be one of: - "renesas,r9a06g032-uart", "renesas,rzn1-uart" - "renesas,r9a06g033-uart", "renesas,rzn1-uart" diff --git a/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml b/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml index 3e90c790d720..b42002542690 100644 --- a/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml +++ b/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml @@ -15,6 +15,11 @@ allOf: properties: compatible: oneOf: + - items: + - enum: + - renesas,r9a06g032-uart + - renesas,r9a06g033-uart + - const: renesas,rzn1-uart - items: - enum: - rockchip,px30-uart