117 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/net/can/bosch,c_can.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Bosch C_CAN/D_CAN controller8 9description: Bosch C_CAN/D_CAN controller for CAN bus10 11maintainers:12 - Dario Binacchi <dariobin@libero.it>13 14allOf:15 - $ref: can-controller.yaml#16 17properties:18 compatible:19 oneOf:20 - enum:21 - bosch,c_can22 - bosch,d_can23 - ti,dra7-d_can24 - ti,am3352-d_can25 - items:26 - enum:27 - ti,am4372-d_can28 - const: ti,am3352-d_can29 30 reg:31 maxItems: 132 33 interrupts:34 minItems: 135 maxItems: 436 37 power-domains:38 description: |39 Should contain a phandle to a PM domain provider node and an args40 specifier containing the DCAN device id value. It's mandatory for41 Keystone 2 66AK2G SoCs only.42 maxItems: 143 44 clocks:45 description: |46 CAN functional clock phandle.47 maxItems: 148 49 clock-names:50 maxItems: 151 52 syscon-raminit:53 description: |54 Handle to system control region that contains the RAMINIT register,55 register offset to the RAMINIT register and the CAN instance number (056 offset).57 $ref: /schemas/types.yaml#/definitions/phandle-array58 items:59 - items:60 - description: The phandle to the system control region.61 - description: The register offset.62 - description: The CAN instance number.63 64 resets:65 maxItems: 166 67required:68 - compatible69 - reg70 - interrupts71 - clocks72 73if:74 properties:75 compatible:76 contains:77 enum:78 - bosch,d_can79 80then:81 properties:82 interrupts:83 items:84 - description: Error and status IRQ85 - description: Message object IRQ86 - description: RAM ECC correctable error IRQ87 - description: RAM ECC non-correctable error IRQ88 89else:90 properties:91 interrupts:92 items:93 - description: Error and status IRQ94 95additionalProperties: false96 97examples:98 - |99 #include <dt-bindings/reset/altr,rst-mgr.h>100 101 can@ffc00000 {102 compatible = "bosch,d_can";103 reg = <0xffc00000 0x1000>;104 interrupts = <0 131 4>, <0 132 4>, <0 133 4>, <0 134 4>;105 clocks = <&can0_clk>;106 resets = <&rst CAN0_RESET>;107 };108 - |109 can@0 {110 compatible = "ti,am3352-d_can";111 reg = <0x0 0x2000>;112 clocks = <&dcan1_fck>;113 clock-names = "fck";114 syscon-raminit = <&scm_conf 0x644 1>;115 interrupts = <55>;116 };117