[PATCH v3 1/3] dt-bindings: can: rockchip_canfd: add rk3576 CAN-FD controller

Elaine Zhang zhangqing at rock-chips.com
Wed May 21 23:32:30 PDT 2025


Add documentation for the rockchip rk3576 CAN-FD controller.

Signed-off-by: Elaine Zhang <zhangqing at rock-chips.com>
---
 .../net/can/rockchip,rk3576-canfd.yaml        | 82 +++++++++++++++++++
 1 file changed, 82 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/net/can/rockchip,rk3576-canfd.yaml

diff --git a/Documentation/devicetree/bindings/net/can/rockchip,rk3576-canfd.yaml b/Documentation/devicetree/bindings/net/can/rockchip,rk3576-canfd.yaml
new file mode 100644
index 000000000000..85caf6d19607
--- /dev/null
+++ b/Documentation/devicetree/bindings/net/can/rockchip,rk3576-canfd.yaml
@@ -0,0 +1,82 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/net/can/rockchip,rk3568v2-canfd.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title:
+  Rk3576 CAN-FD controller
+
+maintainers:
+  - Elaine Zhang <zhangqing at rock-chips.com>
+
+allOf:
+  - $ref: can-controller.yaml#
+
+properties:
+  compatible:
+    oneOf:
+      - const: rockchip,rk3576-canfd
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+  clocks:
+    maxItems: 2
+
+  clock-names:
+    items:
+      - const: baud
+      - const: pclk
+
+  resets:
+    maxItems: 2
+
+  reset-names:
+    items:
+      - const: core
+      - const: apb
+
+  dmas:
+    maxItems: 1
+
+  dma-names:
+    items:
+      - const: rx
+
+required:
+  - compatible
+  - reg
+  - interrupts
+  - clocks
+  - resets
+  - dmas
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/clock/rockchip,rk3576-cru.h>
+    #include <dt-bindings/interrupt-controller/arm-gic.h>
+    #include <dt-bindings/interrupt-controller/irq.h>
+
+    soc {
+        #address-cells = <2>;
+        #size-cells = <2>;
+
+        can0: can at 2ac00000 {
+            compatible = "rockchip,rk3576-canfd";
+	    reg = <0x0 0x2ac00000 0x0 0x1000>;
+	    interrupts = <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
+	    clocks = <&cru CLK_CAN0>, <&cru HCLK_CAN0>;
+	    clock-names = "baud", "pclk";
+	    resets = <&cru SRST_CAN0>, <&cru SRST_H_CAN0>;
+	    reset-names = "can", "can-apb";
+	    dmas = <&dmac0 20>;
+	    dma-names = "rx";
+	    status = "disabled";
+	};
+    };
-- 
2.34.1




More information about the Linux-rockchip mailing list