Re: [PATCH v7 1/4] dt-bindings: can: rockchip_canfd: add rk3576 CAN-FD controller
From: Rob Herring <robh@kernel.org>
Date: 2025-09-22 20:55:24
Also in:
linux-can, linux-devicetree, linux-rockchip, lkml
On Mon, Sep 22, 2025 at 03:15:40PM +0800, Elaine Zhang wrote:
quoted hunk ↗ jump to hunk
Add documentation for the rockchip rk3576 CAN-FD controller. Signed-off-by: Elaine Zhang <redacted> --- .../net/can/rockchip,rk3568v2-canfd.yaml | 47 +++++++++++++++++-- 1 file changed, 44 insertions(+), 3 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..74b1a502f0b7 100644 --- a/Documentation/devicetree/bindings/net/can/rockchip,rk3568v2-canfd.yaml +++ b/Documentation/devicetree/bindings/net/can/rockchip,rk3568v2-canfd.yaml@@ -10,13 +10,11 @@ title: maintainers: - Marc Kleine-Budde <mkl@pengutronix.de> -allOf: - - $ref: can-controller.yaml# - properties: compatible: oneOf: - const: rockchip,rk3568v2-canfd + - const: rockchip,rk3576-canfd
Combine these 2 into an enum.
quoted hunk ↗ jump to hunk
- items: - const: rockchip,rk3568v3-canfd - const: rockchip,rk3568v2-canfd@@ -43,6 +41,31 @@ 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-canfd + required: + - compatible + then: + required: + - dmas + - dma-names + else: + properties: + dmas: false + dma-names: false + required: - compatible - reg@@ -72,3 +95,21 @@ examples: reset-names = "core", "apb"; }; }; + + - | + soc { + #address-cells = <2>; + #size-cells = <2>; + + can@2ac00000 { + compatible = "rockchip,rk3576-canfd"; + 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