diff mbox series

[v5,9/9] dt-bindings: serial: stm32: Use 'type: object' instead of false for 'additionalProperties'

Message ID 1616653162-19954-8-git-send-email-dillon.minfei@gmail.com
State Superseded
Headers show
Series ARM: STM32: add art-pi(stm32h750xbh6) board support | expand

Commit Message

Dillon Min March 25, 2021, 6:19 a.m. UTC
From: dillon min <dillon.minfei@gmail.com>

To use additional properties 'bluetooth' on serial, need replace false with
'type: object' for 'additionalProperties' to make it as a node, else will
run into dtbs_check warnings.

'arch/arm/boot/dts/stm32h750i-art-pi.dt.yaml: serial@40004800:
'bluetooth' does not match any of the regexes: 'pinctrl-[0-9]+'

Fixes: af1c2d81695b ("dt-bindings: serial: Convert STM32 UART to json-schema")
Reported-by: kernel test robot <lkp@intel.com>
Tested-by: Valentin Caron <valentin.caron@foss.st.com>
Signed-off-by: dillon min <dillon.minfei@gmail.com>
---

v5: accroding to rob's suggestion, replace false with 'type: object'
    of 'additionalProperties'.

 Documentation/devicetree/bindings/serial/st,stm32-uart.yaml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Valentin Caron March 25, 2021, 11:12 a.m. UTC | #1
Hi Dillon,

It's okay for me.

Regards,

Valentin

On 3/25/21 7:19 AM, dillon.minfei@gmail.com wrote:
> From: dillon min <dillon.minfei@gmail.com>

>

> To use additional properties 'bluetooth' on serial, need replace false with

> 'type: object' for 'additionalProperties' to make it as a node, else will

> run into dtbs_check warnings.

>

> 'arch/arm/boot/dts/stm32h750i-art-pi.dt.yaml: serial@40004800:

> 'bluetooth' does not match any of the regexes: 'pinctrl-[0-9]+'

>

> Fixes: af1c2d81695b ("dt-bindings: serial: Convert STM32 UART to json-schema")

> Reported-by: kernel test robot <lkp@intel.com>

> Tested-by: Valentin Caron <valentin.caron@foss.st.com>

> Signed-off-by: dillon min <dillon.minfei@gmail.com>

> ---

>

> v5: accroding to rob's suggestion, replace false with 'type: object'

>      of 'additionalProperties'.

>

>   Documentation/devicetree/bindings/serial/st,stm32-uart.yaml | 3 ++-

>   1 file changed, 2 insertions(+), 1 deletion(-)

>

> diff --git a/Documentation/devicetree/bindings/serial/st,stm32-uart.yaml b/Documentation/devicetree/bindings/serial/st,stm32-uart.yaml

> index 8631678283f9..865be05083c3 100644

> --- a/Documentation/devicetree/bindings/serial/st,stm32-uart.yaml

> +++ b/Documentation/devicetree/bindings/serial/st,stm32-uart.yaml

> @@ -80,7 +80,8 @@ required:

>     - interrupts

>     - clocks

>   

> -additionalProperties: false

> +additionalProperties:

> +  type: object

>   

>   examples:

>     - |
Dillon Min March 26, 2021, 1:53 a.m. UTC | #2
Hi Valentin

On Thu, Mar 25, 2021 at 7:12 PM Valentin CARON - foss
<valentin.caron@foss.st.com> wrote:
>

> Hi Dillon,

>

> It's okay for me.

>

> Regards,

>

> Valentin

Thanks for your test, and quick reply.
>

> On 3/25/21 7:19 AM, dillon.minfei@gmail.com wrote:

> > From: dillon min <dillon.minfei@gmail.com>

> >

> > To use additional properties 'bluetooth' on serial, need replace false with

> > 'type: object' for 'additionalProperties' to make it as a node, else will

> > run into dtbs_check warnings.

> >

> > 'arch/arm/boot/dts/stm32h750i-art-pi.dt.yaml: serial@40004800:

> > 'bluetooth' does not match any of the regexes: 'pinctrl-[0-9]+'

> >

> > Fixes: af1c2d81695b ("dt-bindings: serial: Convert STM32 UART to json-schema")

> > Reported-by: kernel test robot <lkp@intel.com>

> > Tested-by: Valentin Caron <valentin.caron@foss.st.com>

> > Signed-off-by: dillon min <dillon.minfei@gmail.com>

> > ---

> >

> > v5: accroding to rob's suggestion, replace false with 'type: object'

> >      of 'additionalProperties'.

> >

> >   Documentation/devicetree/bindings/serial/st,stm32-uart.yaml | 3 ++-

> >   1 file changed, 2 insertions(+), 1 deletion(-)

> >

> > diff --git a/Documentation/devicetree/bindings/serial/st,stm32-uart.yaml b/Documentation/devicetree/bindings/serial/st,stm32-uart.yaml

> > index 8631678283f9..865be05083c3 100644

> > --- a/Documentation/devicetree/bindings/serial/st,stm32-uart.yaml

> > +++ b/Documentation/devicetree/bindings/serial/st,stm32-uart.yaml

> > @@ -80,7 +80,8 @@ required:

> >     - interrupts

> >     - clocks

> >

> > -additionalProperties: false

> > +additionalProperties:

> > +  type: object

> >

> >   examples:

> >     - |
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/serial/st,stm32-uart.yaml b/Documentation/devicetree/bindings/serial/st,stm32-uart.yaml
index 8631678283f9..865be05083c3 100644
--- a/Documentation/devicetree/bindings/serial/st,stm32-uart.yaml
+++ b/Documentation/devicetree/bindings/serial/st,stm32-uart.yaml
@@ -80,7 +80,8 @@  required:
   - interrupts
   - clocks
 
-additionalProperties: false
+additionalProperties:
+  type: object
 
 examples:
   - |