Unverified Commit 81311949 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!1974 CAN driver for phytium CPUs

Merge Pull Request from: @tianxiaoyou 
 
Can controller driver for phytium desktop and embedded SOC 
 
Link:https://gitee.com/openeuler/kernel/pulls/1974

 

Reviewed-by: default avatarXiongfeng Wang <wangxiongfeng2@huawei.com>
Reviewed-by: default avatarMao HongBo <maohongbo@phytium.com.cn>
Signed-off-by: default avatarZhang Changzhong <zhangchangzhong@huawei.com>
Acked-by: default avatarXie XiuQi <xiexiuqi@huawei.com>
parents 4d6cc958 db0908f0
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
+1 −0
Original line number Diff line number Diff line
@@ -158,6 +158,7 @@ source "drivers/net/can/ifi_canfd/Kconfig"
source "drivers/net/can/m_can/Kconfig"
source "drivers/net/can/mscan/Kconfig"
source "drivers/net/can/peak_canfd/Kconfig"
source "drivers/net/can/phytium/Kconfig"
source "drivers/net/can/rcar/Kconfig"
source "drivers/net/can/sja1000/Kconfig"
source "drivers/net/can/softing/Kconfig"
+1 −1
Original line number Diff line number Diff line
@@ -33,5 +33,5 @@ obj-$(CONFIG_CAN_SUN4I) += sun4i_can.o
obj-$(CONFIG_CAN_TI_HECC)	+= ti_hecc.o
obj-$(CONFIG_CAN_XILINXCAN)	+= xilinx_can.o
obj-$(CONFIG_PCH_CAN)		+= pch_can.o

obj-$(CONFIG_CAN_PHYTIUM)	+= phytium/
subdir-ccflags-$(CONFIG_CAN_DEBUG_DEVICES) += -DDEBUG
Loading