dt-bindings: can: mpfs: document resets
PATCH v2 1/1 dt-bindings: can: mpfs: document resets
From: Conor Dooley <[email protected]>
The CAN cores on Polarfire SoC both have a reset. The platform firmware brings both cores out of reset, but the linux driver must use them during normal operation. The resets should have been made required, but this is one of the things that can happen when the binding is written without driver support.
---
This is the second mistake in this binding, both spotted because of the driver being written (although this one sat downstream for a while for w/e reason). I wish I could say that I'd send the driver soon, but I am busy upstreaming things I wrote and therefore understand at the moment, so a driver that I'd have to go understand and review before sending is low priority, sorry!
v2: update the example too...
--- .../devicetree/bindings/net/can/microchip,mpfs-can.yaml | 5 +++++ 1 file changed, 5 insertions(+)
Documentation/devicetree/bindings/net/can/microchip,mpfs-can.yaml +5 -0
@@ -32,11 +32,15 @@ properties: - description: AHB peripheral clock - description: CAN bus clock + resets: + maxItems: 1 + required: - compatible - reg - interrupts - clocks + - resets additionalProperties: false
@@ -46,6 +50,7 @@ examples: compatible = "microchip,mpfs-can"; reg = <0x2010c000 0x1000>; clocks = <&clkcfg 17>, <&clkcfg 37>; + resets = <&clkcfg 17>; interrupt-parent = <&plic>; interrupts = <56>; };
Signature · 1 line
2.51.0
Marc Kleine-Budde
maintainerHello,
can I get a review from the DT people?
regards,
Marc
Quoted 63 lines · Conor Dooley
From: Conor Dooley <[email protected]>
The CAN cores on Polarfire SoC both have a reset. The platform firmware brings both cores out of reset, but the linux driver must use them during normal operation. The resets should have been made required, but this is one of the things that can happen when the binding is written without driver support.
Fixes c878d518d7b6 ("dt-bindings: can: mpfs: document the mpfs CAN controller")Signed-off-by Conor Dooley <[email protected]>---
This is the second mistake in this binding, both spotted because of the driver being written (although this one sat downstream for a while for w/e reason). I wish I could say that I'd send the driver soon, but I am busy upstreaming things I wrote and therefore understand at the moment, so a driver that I'd have to go understand and review before sending is low priority, sorry!v2: update the example too...
CC Conor Dooley <[email protected]>CC Daire McNamara <[email protected]>CC Marc Kleine-Budde <[email protected]>CC Vincent Mailhol <[email protected]>CC Rob Herring <[email protected]>CC Krzysztof Kozlowski <[email protected]>--- .../devicetree/bindings/net/can/microchip,mpfs-can.yaml | 5 +++++ 1 file changed, 5 insertions(+)Documentation/devicetree/bindings/net/can/microchip,mpfs-can.yaml +5
-1@@ -32,11 +32,15 @@ properties: - description: AHB peripheral clock - description: CAN bus clock + resets: + maxItems: 1 + required: - compatible - reg - interrupts - clocks + - resets additionalProperties: false@@ -46,6 +50,7 @@ examples: compatible = "microchip,mpfs-can"; reg = <0x2010c000 0x1000>; clocks = <&clkcfg 17>, <&clkcfg 37>; + resets = <&clkcfg 17>; interrupt-parent = <&plic>; interrupts = <56>; }; --
Quoted 4 lines
2.51.0
--
Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de |
Vertretung Nürnberg | Phone: +49-5121-206917-129 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-9 |
Quoted 3 lines · Marc Kleine-Budde
Hello,
can I get a review from the DT people?
We don't always review each other patches, so you kind of have DT review already. I can review, but I just did not plan to review this... less work needed...
Quoted 74 lines
regards,
MarcQuoted 63 lines · Conor Dooley
From: Conor Dooley <[email protected]>
The CAN cores on Polarfire SoC both have a reset. The platform firmware brings both cores out of reset, but the linux driver must use them during normal operation. The resets should have been made required, but this is one of the things that can happen when the binding is written without driver support.
Fixes c878d518d7b6 ("dt-bindings: can: mpfs: document the mpfs CAN controller")Signed-off-by Conor Dooley <[email protected]>---
This is the second mistake in this binding, both spotted because of the driver being written (although this one sat downstream for a while for w/e reason). I wish I could say that I'd send the driver soon, but I am busy upstreaming things I wrote and therefore understand at the moment, so a driver that I'd have to go understand and review before sending is low priority, sorry!v2: update the example too...
CC Conor Dooley <[email protected]>CC Daire McNamara <[email protected]>CC Marc Kleine-Budde <[email protected]>CC Vincent Mailhol <[email protected]>CC Rob Herring <[email protected]>CC Krzysztof Kozlowski <[email protected]>--- .../devicetree/bindings/net/can/microchip,mpfs-can.yaml | 5 +++++ 1 file changed, 5 insertions(+)Documentation/devicetree/bindings/net/can/microchip,mpfs-can.yaml +5
-1@@ -32,11 +32,15 @@ properties: - description: AHB peripheral clock - description: CAN bus clock + resets: + maxItems: 1 + required: - compatible - reg - interrupts - clocks + - resets additionalProperties: false@@ -46,6 +50,7 @@ examples: compatible = "microchip,mpfs-can"; reg = <0x2010c000 0x1000>; clocks = <&clkcfg 17>, <&clkcfg 37>; + resets = <&clkcfg 17>; interrupt-parent = <&plic>; interrupts = <56>; }; --Quoted 4 lines
2.51.0
--
Quoted 4 lines
Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de |Vertretung Nürnberg | Phone: +49-5121-206917-129 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-9 |
Best regards,
Krzysztof
Marc Kleine-Budde
maintainerQuoted 8 lines · Krzysztof Kozlowski
Quoted 3 lines · Marc Kleine-Budde
Hello,
can I get a review from the DT people?
We don't always review each other patches, so you kind of have DT review already. I can review, but I just did not plan to review this... less work needed...
Thanks for the quick reply and review.
regards,
Marc
Signature · 4 lines
Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung Nürnberg | Phone: +49-5121-206917-129 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-9 |
Quoted 8 lines · Krzysztof Kozlowski
Quoted 3 lines · Marc Kleine-Budde
Hello,
can I get a review from the DT people?
We don't always review each other patches, so you kind of have DT review already. I can review, but I just did not plan to review this... less work needed...
I think it was a pretty reasonable ask here, because the v1 had a problem.
Quoted 11 lines · Conor Dooley
From: Conor Dooley <[email protected]>
The CAN cores on Polarfire SoC both have a reset. The platform firmware brings both cores out of reset, but the linux driver must use them during normal operation. The resets should have been made required, but this is one of the things that can happen when the binding is written without driver support.
Fixes c878d518d7b6 ("dt-bindings: can: mpfs: document the mpfs CAN controller")Signed-off-by Conor Dooley <[email protected]>---
FWIW, if you insist:
Best regards,
Krzysztof