* [RESEND PATCH v8 1/4] dt-bindings: can: rockchip_canfd: add rk3576 CAN controller
@ 2025-11-11 8:05 Elaine Zhang
2025-11-11 9:26 ` Krzysztof Kozlowski
0 siblings, 1 reply; 6+ messages in thread
From: Elaine Zhang @ 2025-11-11 8:05 UTC (permalink / raw)
To: zhangqing, mkl, kernel, mailhol.vincent, robh, krzk+dt, conor+dt,
heiko, cl
Cc: linux-can, linux-arm-kernel, linux-rockchip, linux-kernel,
devicetree
Add documentation for the rockchip rk3576 CAN controller.
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
---
.../net/can/rockchip,rk3568v2-canfd.yaml | 52 +++++++++++++++++--
1 file changed, 48 insertions(+), 4 deletions(-)
diff --git a/Documentation/devicetree/bindings/net/can/rockchip,rk3568v2-canfd.yaml b/Documentation/devicetree/bindings/net/can/rockchip,rk3568v2-canfd.yaml
index a077c0330013..30782218728e 100644
--- a/Documentation/devicetree/bindings/net/can/rockchip,rk3568v2-canfd.yaml
+++ b/Documentation/devicetree/bindings/net/can/rockchip,rk3568v2-canfd.yaml
@@ -10,13 +10,12 @@ title:
maintainers:
- Marc Kleine-Budde <mkl@pengutronix.de>
-allOf:
- - $ref: can-controller.yaml#
-
properties:
compatible:
oneOf:
- - const: rockchip,rk3568v2-canfd
+ - enum:
+ - rockchip,rk3568v2-canfd
+ - rockchip,rk3576-can
- items:
- const: rockchip,rk3568v3-canfd
- const: rockchip,rk3568v2-canfd
@@ -43,6 +42,33 @@ properties:
- const: core
- const: apb
+ dmas:
+ maxItems: 1
+
+ dma-names:
+ items:
+ - const: rx
+
+allOf:
+ - $ref: can-controller.yaml#
+ - if:
+ properties:
+ compatible:
+ contains:
+ const: rockchip,rk3576-can
+ then:
+ properties:
+ dmas:
+ minItems: 1
+ maxItems: 1
+ dma-names:
+ minItems: 1
+ maxItems: 1
+ else:
+ properties:
+ dmas: false
+ dma-names: false
+
required:
- compatible
- reg
@@ -72,3 +98,21 @@ examples:
reset-names = "core", "apb";
};
};
+
+ - |
+ soc {
+ #address-cells = <2>;
+ #size-cells = <2>;
+
+ can@2ac00000 {
+ compatible = "rockchip,rk3576-can";
+ reg = <0x0 0x2ac00000 0x0 0x1000>;
+ interrupts = <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&cru CLK_CAN0>, <&cru PCLK_CAN0>;
+ clock-names = "baud", "pclk";
+ resets = <&cru SRST_CAN0>, <&cru SRST_P_CAN0>;
+ reset-names = "core", "apb";
+ dmas = <&dmac0 20>;
+ dma-names = "rx";
+ };
+ };
--
2.34.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [RESEND PATCH v8 1/4] dt-bindings: can: rockchip_canfd: add rk3576 CAN controller
2025-11-11 8:05 [RESEND PATCH v8 1/4] dt-bindings: can: rockchip_canfd: add rk3576 CAN controller Elaine Zhang
@ 2025-11-11 9:26 ` Krzysztof Kozlowski
0 siblings, 0 replies; 6+ messages in thread
From: Krzysztof Kozlowski @ 2025-11-11 9:26 UTC (permalink / raw)
To: Elaine Zhang, mkl, kernel, mailhol.vincent, robh, krzk+dt,
conor+dt, heiko, cl
Cc: linux-can, linux-arm-kernel, linux-rockchip, linux-kernel,
devicetree
On 11/11/2025 09:05, Elaine Zhang wrote:
> Add documentation for the rockchip rk3576 CAN controller.
>
> Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
> ---
> .../net/can/rockchip,rk3568v2-canfd.yaml | 52 +++++++++++++++++--
> 1 file changed, 48 insertions(+), 4 deletions(-)
Your threading is completely broken. I don't see any other patches here.
That's v8, resend and still not correct :(
>
> diff --git a/Documentation/devicetree/bindings/net/can/rockchip,rk3568v2-canfd.yaml b/Documentation/devicetree/bindings/net/can/rockchip,rk3568v2-canfd.yaml
> index a077c0330013..30782218728e 100644
> --- a/Documentation/devicetree/bindings/net/can/rockchip,rk3568v2-canfd.yaml
> +++ b/Documentation/devicetree/bindings/net/can/rockchip,rk3568v2-canfd.yaml
> @@ -10,13 +10,12 @@ title:
> maintainers:
> - Marc Kleine-Budde <mkl@pengutronix.de>
>
> -allOf:
> - - $ref: can-controller.yaml#
> -
> properties:
> compatible:
> oneOf:
> - - const: rockchip,rk3568v2-canfd
> + - enum:
> + - rockchip,rk3568v2-canfd
> + - rockchip,rk3576-can
> - items:
> - const: rockchip,rk3568v3-canfd
> - const: rockchip,rk3568v2-canfd
> @@ -43,6 +42,33 @@ properties:
> - const: core
> - const: apb
>
> + dmas:
> + maxItems: 1
> +
> + dma-names:
> + items:
> + - const: rx
> +
> +allOf:
> + - $ref: can-controller.yaml#
> + - if:
> + properties:
> + compatible:
> + contains:
> + const: rockchip,rk3576-can
> + then:
> + properties:
> + dmas:
> + minItems: 1
> + maxItems: 1
> + dma-names:
> + minItems: 1
> + maxItems: 1
Drop both, no need to duplicate what is in top level.
> + else:
> + properties:
> + dmas: false
> + dma-names: false
> +
> required:
> - compatible
> - reg
> @@ -72,3 +98,21 @@ examples:
> reset-names = "core", "apb";
> };
> };
> +
> + - |
> + soc {
> + #address-cells = <2>;
> + #size-cells = <2>;
> +
> + can@2ac00000 {
Difference in one property usually does not justify new example.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 6+ messages in thread
* [RESEND PATCH v8 1/4] dt-bindings: can: rockchip_canfd: add rk3576 CAN controller
2025-11-12 1:59 [RESEND PATCH v8 0/4] rockchip: add can for RK3576 Soc Elaine Zhang
@ 2025-11-12 1:59 ` Elaine Zhang
2025-11-12 8:53 ` Marc Kleine-Budde
2025-11-12 19:04 ` Conor Dooley
0 siblings, 2 replies; 6+ messages in thread
From: Elaine Zhang @ 2025-11-12 1:59 UTC (permalink / raw)
To: zhangqing, mkl, kernel, mailhol.vincent, robh, krzk+dt, conor+dt,
heiko, cl
Cc: linux-can, linux-arm-kernel, linux-rockchip, linux-kernel,
devicetree
Add documentation for the rockchip rk3576 CAN controller.
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
---
.../bindings/net/can/rockchip,rk3568v2-canfd.yaml | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
diff --git a/Documentation/devicetree/bindings/net/can/rockchip,rk3568v2-canfd.yaml b/Documentation/devicetree/bindings/net/can/rockchip,rk3568v2-canfd.yaml
index a077c0330013..22e10494e7d1 100644
--- a/Documentation/devicetree/bindings/net/can/rockchip,rk3568v2-canfd.yaml
+++ b/Documentation/devicetree/bindings/net/can/rockchip,rk3568v2-canfd.yaml
@@ -10,13 +10,12 @@ title:
maintainers:
- Marc Kleine-Budde <mkl@pengutronix.de>
-allOf:
- - $ref: can-controller.yaml#
-
properties:
compatible:
oneOf:
- - const: rockchip,rk3568v2-canfd
+ - enum:
+ - rockchip,rk3568v2-canfd
+ - rockchip,rk3576-can
- items:
- const: rockchip,rk3568v3-canfd
- const: rockchip,rk3568v2-canfd
@@ -43,6 +42,13 @@ properties:
- const: core
- const: apb
+ dmas:
+ maxItems: 1
+
+ dma-names:
+ items:
+ - const: rx
+
required:
- compatible
- reg
--
2.34.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [RESEND PATCH v8 1/4] dt-bindings: can: rockchip_canfd: add rk3576 CAN controller
2025-11-12 1:59 ` [RESEND PATCH v8 1/4] dt-bindings: can: rockchip_canfd: add rk3576 CAN controller Elaine Zhang
@ 2025-11-12 8:53 ` Marc Kleine-Budde
2025-11-12 10:06 ` zhangqing
2025-11-12 19:04 ` Conor Dooley
1 sibling, 1 reply; 6+ messages in thread
From: Marc Kleine-Budde @ 2025-11-12 8:53 UTC (permalink / raw)
To: Elaine Zhang
Cc: kernel, mailhol.vincent, robh, krzk+dt, conor+dt, heiko, cl,
linux-can, linux-arm-kernel, linux-rockchip, linux-kernel,
devicetree
[-- Attachment #1: Type: text/plain, Size: 1659 bytes --]
On 12.11.2025 09:59:37, Elaine Zhang wrote:
> Add documentation for the rockchip rk3576 CAN controller.
>
> Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
> ---
> .../bindings/net/can/rockchip,rk3568v2-canfd.yaml | 14 ++++++++++----
> 1 file changed, 10 insertions(+), 4 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/net/can/rockchip,rk3568v2-canfd.yaml b/Documentation/devicetree/bindings/net/can/rockchip,rk3568v2-canfd.yaml
> index a077c0330013..22e10494e7d1 100644
> --- a/Documentation/devicetree/bindings/net/can/rockchip,rk3568v2-canfd.yaml
> +++ b/Documentation/devicetree/bindings/net/can/rockchip,rk3568v2-canfd.yaml
> @@ -10,13 +10,12 @@ title:
> maintainers:
> - Marc Kleine-Budde <mkl@pengutronix.de>
>
> -allOf:
> - - $ref: can-controller.yaml#
> -
What happened to the allOf?
> properties:
> compatible:
> oneOf:
> - - const: rockchip,rk3568v2-canfd
> + - enum:
> + - rockchip,rk3568v2-canfd
> + - rockchip,rk3576-can
> - items:
> - const: rockchip,rk3568v3-canfd
> - const: rockchip,rk3568v2-canfd
> @@ -43,6 +42,13 @@ properties:
> - const: core
> - const: apb
>
> + dmas:
> + maxItems: 1
> +
> + dma-names:
> + items:
> + - const: rx
> +
> required:
> - compatible
> - reg
regards,
Marc
--
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 |
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [RESEND PATCH v8 1/4] dt-bindings: can: rockchip_canfd: add rk3576 CAN controller
2025-11-12 8:53 ` Marc Kleine-Budde
@ 2025-11-12 10:06 ` zhangqing
0 siblings, 0 replies; 6+ messages in thread
From: zhangqing @ 2025-11-12 10:06 UTC (permalink / raw)
To: Marc Kleine-Budde
Cc: kernel, mailhol.vincent, robh, krzk+dt, conor+dt, heiko, cl,
linux-can, linux-arm-kernel, linux-rockchip, linux-kernel,
devicetree
在 2025/11/12 16:53, Marc Kleine-Budde 写道:
> On 12.11.2025 09:59:37, Elaine Zhang wrote:
>> Add documentation for the rockchip rk3576 CAN controller.
>>
>> Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
>> ---
>> .../bindings/net/can/rockchip,rk3568v2-canfd.yaml | 14 ++++++++++----
>> 1 file changed, 10 insertions(+), 4 deletions(-)
>>
>> diff --git a/Documentation/devicetree/bindings/net/can/rockchip,rk3568v2-canfd.yaml b/Documentation/devicetree/bindings/net/can/rockchip,rk3568v2-canfd.yaml
>> index a077c0330013..22e10494e7d1 100644
>> --- a/Documentation/devicetree/bindings/net/can/rockchip,rk3568v2-canfd.yaml
>> +++ b/Documentation/devicetree/bindings/net/can/rockchip,rk3568v2-canfd.yaml
>> @@ -10,13 +10,12 @@ title:
>> maintainers:
>> - Marc Kleine-Budde <mkl@pengutronix.de>
>>
>> -allOf:
>> - - $ref: can-controller.yaml#
>> -
> What happened to the allOf?
This is a misoperation and will be corrected in version V9.
To speed up the review of the current version, V9 will also remove dma.
>
>> properties:
>> compatible:
>> oneOf:
>> - - const: rockchip,rk3568v2-canfd
>> + - enum:
>> + - rockchip,rk3568v2-canfd
>> + - rockchip,rk3576-can
>> - items:
>> - const: rockchip,rk3568v3-canfd
>> - const: rockchip,rk3568v2-canfd
>> @@ -43,6 +42,13 @@ properties:
>> - const: core
>> - const: apb
>>
>> + dmas:
>> + maxItems: 1
>> +
>> + dma-names:
>> + items:
>> + - const: rx
>> +
>> required:
>> - compatible
>> - reg
> regards,
> Marc
>
--
张晴
瑞芯微电子股份有限公司
Rockchip Electronics Co.,Ltd
地址:福建省福州市铜盘路软件大道89号软件园A区21号楼
Add:No.21 Building, A District, No.89 Software Boulevard Fuzhou, Fujian 350003, P.R.China
Tel:+86-0591-83991906-8601
邮编:350003
E-mail:elaine.zhang@rock-chips.com
****************************************************************************
保密提示:本邮件及其附件含有机密信息,仅发送给本邮件所指特定收件人。若非该特定收件人,请勿复制、使用或披露本邮件的任何内容。若误收本邮件,请从系统中永久性删除本邮件及所有附件,并以回复邮件或其他方式即刻告知发件人。福州瑞芯微电子有限公司拥有本邮件信息的著作权及解释权,禁止任何未经授权许可的侵权行为。
IMPORTANT NOTICE: This email is from Fuzhou Rockchip Electronics Co., Ltd .The contents of this email and any attachments may contain information that is privileged, confidential and/or exempt from disclosure under applicable law and relevant NDA. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information is STRICTLY PROHIBITED. Please immediately contact the sender as soon as possible and destroy the material in its entirety in any format. Thank you.
****************************************************************************
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [RESEND PATCH v8 1/4] dt-bindings: can: rockchip_canfd: add rk3576 CAN controller
2025-11-12 1:59 ` [RESEND PATCH v8 1/4] dt-bindings: can: rockchip_canfd: add rk3576 CAN controller Elaine Zhang
2025-11-12 8:53 ` Marc Kleine-Budde
@ 2025-11-12 19:04 ` Conor Dooley
1 sibling, 0 replies; 6+ messages in thread
From: Conor Dooley @ 2025-11-12 19:04 UTC (permalink / raw)
To: Elaine Zhang
Cc: mkl, kernel, mailhol.vincent, robh, krzk+dt, conor+dt, heiko, cl,
linux-can, linux-arm-kernel, linux-rockchip, linux-kernel,
devicetree
[-- Attachment #1: Type: text/plain, Size: 932 bytes --]
On Wed, Nov 12, 2025 at 09:59:37AM +0800, Elaine Zhang wrote:
> Add documentation for the rockchip rk3576 CAN controller.
>
> Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
> ---
> .../bindings/net/can/rockchip,rk3568v2-canfd.yaml | 14 ++++++++++----
> 1 file changed, 10 insertions(+), 4 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/net/can/rockchip,rk3568v2-canfd.yaml b/Documentation/devicetree/bindings/net/can/rockchip,rk3568v2-canfd.yaml
> index a077c0330013..22e10494e7d1 100644
> --- a/Documentation/devicetree/bindings/net/can/rockchip,rk3568v2-canfd.yaml
> +++ b/Documentation/devicetree/bindings/net/can/rockchip,rk3568v2-canfd.yaml
> @@ -10,13 +10,12 @@ title:
> maintainers:
> - Marc Kleine-Budde <mkl@pengutronix.de>
>
> -allOf:
> - - $ref: can-controller.yaml#
Since in the other mail it was stated that this was removed in error
pw-bot: changes-requested
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2025-11-12 19:04 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-11 8:05 [RESEND PATCH v8 1/4] dt-bindings: can: rockchip_canfd: add rk3576 CAN controller Elaine Zhang
2025-11-11 9:26 ` Krzysztof Kozlowski
-- strict thread matches above, loose matches on Subject: below --
2025-11-12 1:59 [RESEND PATCH v8 0/4] rockchip: add can for RK3576 Soc Elaine Zhang
2025-11-12 1:59 ` [RESEND PATCH v8 1/4] dt-bindings: can: rockchip_canfd: add rk3576 CAN controller Elaine Zhang
2025-11-12 8:53 ` Marc Kleine-Budde
2025-11-12 10:06 ` zhangqing
2025-11-12 19:04 ` Conor Dooley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).