Commit d3c718d3 authored by Chen Siyu's avatar Chen Siyu
Browse files

can: add phytium can driver document

phytium inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I7WGOQ


CVE: NA

----------------------------------

add phytium can driver document

Signed-off-by: default avatarChen Baozi <chenbaozi@phytium.com.cn>
Signed-off-by: default avatarChen Siyu <chensiyu1321@phytium.com.cn>
parent ae08f272
Loading
Loading
Loading
Loading
+55 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/net/can/phytium,can.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Phytium CAN Controller

maintainers:
  - Chen Baozi <chenbaozi@phytium.com.cn>

allOf:
  - $ref: /schemas/net/can/phytium/phytium,can.yaml#

properties:
  compatible:
    oneOf:
      - item:
          -const: phytium,can
          - const: phytium,canfd

  reg:
    minItems: 1
    items:
      - description: Should contain CANFD controller registers location and length

  interrupts:
    maxItems: 1

  clocks:
    minItems: 1
    items:
      - description: CLocks used by the controller

  clock-names:
    items:
      - const: can_clk

required:
  - compatible
  - reg
  - interrupts

examples:
  - |
	 can0: can@2800a000{
		 compatible = "phytium,canfd";
		 reg = <0x0 0x2800a000 0x0 0x1000>;
		 interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
		 clocks = <&sysclk_600mhz>;
		 clock-names = "can_clk";
		 tx-fifo-depth = <64>;
		 rx-fifo-depth = <64>;
	 };
...
+55 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/net/can/phytium,can.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Phytium CAN Controller

maintainers:
  - Chen Baozi <chenbaozi@phytium.com.cn>

allOf:
  - $ref: /schemas/net/can/phytium/phytium,can.yaml#

properties:
  compatible:
    oneOf:
      - item:
          -const: phytium,can
          - const: phytium,canfd

  reg:
    minItems: 1
    items:
      - description: Should contain CANFD controller registers location and length

  interrupts:
    maxItems: 1

  clocks:
    minItems: 1
    items:
      - description: CLocks used by the controller

  clock-names:
    items:
      - const: can_clk

required:
  - compatible
  - reg
  - interrupts

examples:
  - |
	 can0: can@2800a000{
		 compatible = "phytium,canfd";
		 reg = <0x0 0x2800a000 0x0 0x1000>;
		 interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
		 clocks = <&sysclk_600mhz>;
		 clock-names = "can_clk";
		 tx-fifo-depth = <64>;
		 rx-fifo-depth = <64>;
	 };
...
+1 −0
Original line number Diff line number Diff line
@@ -292,6 +292,7 @@ parade Parade Technologies Inc.
pericom	Pericom Technology Inc.
pervasive	Pervasive Displays, Inc.
phytec	PHYTEC Messtechnik GmbH
phytium	Phytium Technology Co., Ltd.
picochip	Picochip Ltd
pine64	Pine64
pixcir  PIXCIR MICROELECTRONICS Co., Ltd