xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/net/can/rockchip_canfd.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunRockchip CANFD controller Device Tree Bindings
2*4882a593Smuzhiyun---------------------------------------------------------
3*4882a593Smuzhiyun
4*4882a593SmuzhiyunRequired properties:
5*4882a593Smuzhiyun- compatible		: Should be:
6*4882a593Smuzhiyun			  - "rockchip,canfd-1.0" for CANFD controllers 1.0
7*4882a593Smuzhiyun			  - "rockchip,can-2.0" for RK3588 CAN controllers 2.0
8*4882a593Smuzhiyun			  - "rockchip,rk3568-can-2.0" for RK3568 CAN controllers 2.0
9*4882a593Smuzhiyun- reg			: Physical base address and size of the controller
10*4882a593Smuzhiyun			  registers map.
11*4882a593Smuzhiyun- interrupts		: Property with a value describing the interrupt
12*4882a593Smuzhiyun			  number.
13*4882a593Smuzhiyun- clock-names		: List of input clock names
14*4882a593Smuzhiyun			  - "can_clk", "pclk",
15*4882a593Smuzhiyun			  (See clock bindings for details).
16*4882a593Smuzhiyun- clocks		: Clock phandles (see clock bindings for details).
17*4882a593Smuzhiyun- resets : Must contain an entry for each entry in reset-names.
18*4882a593Smuzhiyun	   See ../reset/reset.txt for details.
19*4882a593Smuzhiyun- reset-names : List of input reset names
20*4882a593Smuzhiyun			  - "can", "can-apb".
21*4882a593Smuzhiyun
22*4882a593SmuzhiyunExample:
23*4882a593Smuzhiyun
24*4882a593SmuzhiyunFor Dts file:
25*4882a593Smuzhiyun	can0: can0@fe570000 {
26*4882a593Smuzhiyun		compatible = "rockchip,canfd-1.0";
27*4882a593Smuzhiyun		reg = <0x0 0xfe570000 0x0 0x1000>;
28*4882a593Smuzhiyun		interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
29*4882a593Smuzhiyun		clocks = <&cru CLK_CAN0>, <&cru PCLK_CAN0>;
30*4882a593Smuzhiyun		clock-names = "baudclk", "apb_pclk";
31*4882a593Smuzhiyun		resets = <&cru SRST_CAN0>, &cru SRST_P_CAN0>;
32*4882a593Smuzhiyun		reset-names = "can", "can-apb";
33*4882a593Smuzhiyun		status = "okay";
34*4882a593Smuzhiyun	};
35