Skip to contentSkip to conversation

dt-binding: can: add common CAN controller bindings to existing CAN driver bindings

PATCH In review Marc Kleine-Budde 2 participants 10 messages Jan 25, 2022 – Feb 9, 2022

Subsystems (6)
lore
Share & tools
lore

Marc Kleine-Budde

author maintainer
#0 lore raw

cover dt-binding: can: add common CAN controller bindings to existing CAN driver bindings

Hello,

this series adds the common CAN controller binding to the existing CAN driver bindings.

regards,
Marc

author maintainer
#1 lore raw

PATCH 1/4 dt-binding: can: mcp251xfd: include common CAN controller bindings

Since commit

| 1f9234401ce0 ("dt-bindings: can: add can-controller.yaml")

there is a common CAN controller binding. Add this to the mcp251xfd binding.

Cc Manivannan Sadhasivam <[email protected]>
Cc Thomas Kopp <[email protected]>
---
 .../devicetree/bindings/net/can/microchip,mcp251xfd.yaml       | 3 +++
 1 file changed, 3 insertions(+)
Documentation/devicetree/bindings/net/can/microchip,mcp251xfd.yaml +3 -0
index 2a884c1fe0e0..b3826af6bd6e 100644
@@ -11,6 +11,9 @@ title:
 maintainers:
   - Marc Kleine-Budde <[email protected]>
 
+allOf:
+  - $ref: can-controller.yaml#
+
 properties:
   compatible:
     oneOf:
Signature · 1 line
2.34.1
maintainer Acked-by on v1 1/4
#2 lore raw

Re: [PATCH net-next 1/4] dt-binding: can: mcp251xfd: include common CAN controller bindings

Quoted 7 lines · Marc Kleine-Budde

Since commit

| 1f9234401ce0 ("dt-bindings: can: add can-controller.yaml")

there is a common CAN controller binding. Add this to the mcp251xfd binding.

Quoted 7 lines
Cc Manivannan Sadhasivam <[email protected]>
Cc Thomas Kopp <[email protected]>
---
 .../devicetree/bindings/net/can/microchip,mcp251xfd.yaml       | 3 +++
 1 file changed, 3 insertions(+)
author maintainer
#3 lore raw

PATCH 2/4 dt-binding: can: sun4i_can: include common CAN controller bindings

In reply to Marc Kleine-Budde

Since commit

| 1f9234401ce0 ("dt-bindings: can: add can-controller.yaml")

there is a common CAN controller binding. Add this to the sun4i_can binding.

Cc Evgeny Boger <[email protected]>
Cc Gerhard Bertelsmann <[email protected]>
---
 .../devicetree/bindings/net/can/allwinner,sun4i-a10-can.yaml   | 3 +++
 1 file changed, 3 insertions(+)
Documentation/devicetree/bindings/net/can/allwinner,sun4i-a10-can.yaml +3 -0
index c93fe9d3ea82..3c51b2d02957 100644
@@ -10,6 +10,9 @@ maintainers:
   - Chen-Yu Tsai <[email protected]>
   - Maxime Ripard <[email protected]>
 
+allOf:
+  - $ref: can-controller.yaml#
+
 properties:
   compatible:
     oneOf:
Signature · 1 line
2.34.1
maintainer Acked-by on v1 2/4
#4 lore raw

Re: [PATCH net-next 2/4] dt-binding: can: sun4i_can: include common CAN controller bindings

Quoted 7 lines · Marc Kleine-Budde

Since commit

| 1f9234401ce0 ("dt-bindings: can: add can-controller.yaml")

there is a common CAN controller binding. Add this to the sun4i_can binding.

Quoted 7 lines
Cc Evgeny Boger <[email protected]>
Cc Gerhard Bertelsmann <[email protected]>
---
 .../devicetree/bindings/net/can/allwinner,sun4i-a10-can.yaml   | 3 +++
 1 file changed, 3 insertions(+)
author maintainer
#5 lore raw

PATCH 3/4 dt-binding: can: m_can: include common CAN controller bindings

In reply to Marc Kleine-Budde

Since commit

| 1f9234401ce0 ("dt-bindings: can: add can-controller.yaml")

there is a common CAN controller binding. Add this to the m_can binding.

Cc Chandrasekar Ramakrishnan <[email protected]>
---
 Documentation/devicetree/bindings/net/can/bosch,m_can.yaml | 3 +++
 1 file changed, 3 insertions(+)
Documentation/devicetree/bindings/net/can/bosch,m_can.yaml +3 -0
index fb547e26c676..710880dc7594 100644
@@ -11,6 +11,9 @@ description: Bosch MCAN controller for CAN bus
 maintainers:
   - Sriram Dash <[email protected]>
 
+allOf:
+  - $ref: can-controller.yaml#
+
 properties:
   compatible:
     const: bosch,m_can
Signature · 1 line
2.34.1
maintainer Acked-by on v1 3/4
#6 lore raw

Re: [PATCH net-next 3/4] dt-binding: can: m_can: include common CAN controller bindings

Quoted 4 lines · Marc Kleine-Budde

Since commit

| 1f9234401ce0 ("dt-bindings: can: add can-controller.yaml")

Quoted 9 lines

there is a common CAN controller binding. Add this to the m_can binding.

Cc Chandrasekar Ramakrishnan <[email protected]>
---
 Documentation/devicetree/bindings/net/can/bosch,m_can.yaml | 3 +++
 1 file changed, 3 insertions(+)
author maintainer
#7 lore raw

PATCH 4/4 dt-binding: can: rcar-can: include common CAN controller bindings

In reply to Marc Kleine-Budde

Since commit

| 1f9234401ce0 ("dt-bindings: can: add can-controller.yaml")

there is a common CAN controller binding. Add this to the rcar-can binding.

Cc Yoshihiro Shimoda <[email protected]>
Cc lrich Hecht <[email protected]>
---
 .../devicetree/bindings/net/can/renesas,rcar-can.yaml          | 3 +++
 1 file changed, 3 insertions(+)
Documentation/devicetree/bindings/net/can/renesas,rcar-can.yaml +3 -0
index fadc871fd6b0..64247d3635e9 100644
@@ -9,6 +9,9 @@ title: Renesas R-Car CAN Controller
 maintainers:
   - Sergei Shtylyov <[email protected]>
 
+allOf:
+  - $ref: can-controller.yaml#
+
 properties:
   compatible:
     oneOf:
Signature · 1 line
2.34.1
maintainer
#8 lore raw

Re: [PATCH net-next 4/4] dt-binding: can: rcar-can: include common CAN controller bindings

Quoted 7 lines · Marc Kleine-Budde

Since commit

| 1f9234401ce0 ("dt-bindings: can: add can-controller.yaml")

there is a common CAN controller binding. Add this to the rcar-can binding.

Quoted 7 lines
Cc Yoshihiro Shimoda <[email protected]>
Cc lrich Hecht <[email protected]>
---
 .../devicetree/bindings/net/can/renesas,rcar-can.yaml          | 3 +++
 1 file changed, 3 insertions(+)

My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check' on your patch (DT_CHECKER_FLAGS is new in v5.13):

yamllint warnings/errors:
./Documentation/devicetree/bindings/net/can/renesas,rcar-can.yaml:102:1: [error] duplication of key "allOf" in mapping (key-duplicates)

dtschema/dtc warnings/errors:
make[1]: *** Deleting file 'Documentation/devicetree/bindings/net/can/renesas,rcar-can.example.dts' Documentation/devicetree/bindings/net/can/renesas,rcar-can.yaml: found duplicate key "allOf" with value "[]" (original value: "[]") make[1]: *** [Documentation/devicetree/bindings/Makefile:25: Documentation/devicetree/bindings/net/can/renesas,rcar-can.example.dts] Error 1 make[1]: *** Waiting for unfinished jobs....
Traceback (most recent call last):
File "/usr/local/bin/dt-doc-validate", line 25, in check_doc
testtree = dtschema.load(filename, line_number=line_number)
File "/usr/local/lib/python3.8/dist-packages/dtschema/lib.py", line 661, in load
return yaml.load(f.read())
File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/main.py", line 434, in load
return constructor.get_single_data()
File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", line 121, in get_single_data
return self.construct_document(node)
File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", line 131, in construct_document
for _dummy in generator:
File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", line 674, in construct_yaml_map
value = self.construct_mapping(node)
File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", line 445, in construct_mapping
return BaseConstructor.construct_mapping(self, node, deep=deep)
File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", line 263, in construct_mapping
if self.check_mapping_key(node, key_node, mapping, key, value):
File "/usr/local/lib/python3.8/dist-packages/ruamel/yaml/constructor.py", line 294, in check_mapping_key
raise DuplicateKeyError(*args)
ruamel.yaml.constructor.DuplicateKeyError: while constructing a mapping
in "<unicode string>", line 4, column 1
found duplicate key "allOf" with value "[]" (original value: "[]")
in "<unicode string>", line 102, column 1

To suppress this check see:
http://yaml.readthedocs.io/en/latest/api.html#duplicate-keys

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/bin/dt-doc-validate", line 70, in <module>
ret = check_doc(f)
File "/usr/local/bin/dt-doc-validate", line 30, in check_doc

    print(filename + ":", exc.path[-1], exc.message, file=sys.stderr)

AttributeError: 'DuplicateKeyError' object has no attribute 'path' /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/net/can/renesas,rcar-can.yaml: ignoring, error parsing file
make: *** [Makefile:1398: dt_binding_check] Error 2

doc reference errors (make refcheckdocs):

See https://patchwork.ozlabs.org/patch/1583769

This check can fail if there are any dependencies. The base for a patch series is generally the most recent rc1.

If you already ran 'make dt_binding_check' and didn't see the above error(s), then make sure 'yamllint' is installed and dt-schema is up to date:

pip3 install dtschema --upgrade

Please check and re-submit.

author maintainer
#9 lore raw

Re: [PATCH net-next 4/4] dt-binding: can: rcar-can: include common CAN controller bindings

Quoted 16 lines · Rob Herring
Quoted 7 lines · Marc Kleine-Budde

Since commit

| 1f9234401ce0 ("dt-bindings: can: add can-controller.yaml")

there is a common CAN controller binding. Add this to the rcar-can binding.

Quoted 7 lines
Cc Yoshihiro Shimoda <[email protected]>
Cc lrich Hecht <[email protected]>
---
 .../devicetree/bindings/net/can/renesas,rcar-can.yaml          | 3 +++
 1 file changed, 3 insertions(+)
Quoted 2 lines

My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check' on your patch (DT_CHECKER_FLAGS is new in v5.13):

Good bot!

Quoted 2 lines

yamllint warnings/errors:
./Documentation/devicetree/bindings/net/can/renesas,rcar-can.yaml:102:1: [error] duplication of key "allOf" in mapping (key-duplicates)

Right, the renesas,rcar-can.yaml already contains a "allOf: $ref:
can-controller.yaml", I'll drop that patch.

regards,
Marc

Signature · 4 lines
Pengutronix e.K.                 | Marc Kleine-Budde           |
Embedded Linux                   | https://www.pengutronix.de  |
Vertretung West/Dortmund         | Phone: +49-231-2826-924     |
Amtsgericht Hildesheim, HRA 2686 | Fax:   +49-5121-206917-5555 |