mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-14 00:01:36 +08:00
WIP: device tree MVP
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
description: Bosch m_can CAN-FD controller base
|
||||
|
||||
compatible: "bosch,m-can-base"
|
||||
|
||||
properties:
|
||||
std-filter-elements:
|
||||
type: int
|
||||
required: true
|
||||
|
||||
ext-filter-elements:
|
||||
type: int
|
||||
required: true
|
||||
|
||||
rx-fifo0-elements:
|
||||
type: int
|
||||
required: true
|
||||
|
||||
rx-fifo1-elements:
|
||||
type: int
|
||||
required: true
|
||||
|
||||
rx-buffer-elements:
|
||||
type: int
|
||||
required: true
|
||||
|
||||
tx-buffer-elements:
|
||||
type: int
|
||||
required: true
|
||||
@@ -0,0 +1,12 @@
|
||||
description: Bosch m_can CAN-FD controller
|
||||
|
||||
compatible: "bosch,m-can"
|
||||
|
||||
include: can-fd-controller.yaml
|
||||
|
||||
properties:
|
||||
reg:
|
||||
required: true
|
||||
|
||||
interrupts:
|
||||
required: true
|
||||
@@ -0,0 +1,36 @@
|
||||
# Common fields for CAN controllers
|
||||
|
||||
include: base.yaml
|
||||
|
||||
bus: can
|
||||
|
||||
properties:
|
||||
label:
|
||||
required: true
|
||||
bus-speed:
|
||||
type: int
|
||||
required: true
|
||||
description: bus speed in Baud/s
|
||||
sjw:
|
||||
type: int
|
||||
required: true
|
||||
description: Resynchronization jump width (ISO 11898-1)
|
||||
prop-seg:
|
||||
type: int
|
||||
required: false
|
||||
description: Time quantums of propagation segment (ISO 11898-1)
|
||||
phase-seg1:
|
||||
type: int
|
||||
required: false
|
||||
description: Time quantums of phase buffer 1 segment (ISO 11898-1)
|
||||
phase-seg2:
|
||||
type: int
|
||||
required: false
|
||||
description: Time quantums of phase buffer 2 segment (ISO 11898-1)
|
||||
sample-point:
|
||||
type: int
|
||||
required: false
|
||||
description: >
|
||||
Sample point in permille.
|
||||
This param is required if segments are not given.
|
||||
If the sample point is given, the segments are ignored.
|
||||
@@ -0,0 +1,14 @@
|
||||
# Copyright (c) 2018 Alexander Wachter
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
# Common fields for CAN devices
|
||||
|
||||
include: base.yaml
|
||||
|
||||
on-bus: can
|
||||
|
||||
properties:
|
||||
reg:
|
||||
required: true
|
||||
label:
|
||||
required: true
|
||||
@@ -0,0 +1,36 @@
|
||||
# Common fields for CAN-FD controllers
|
||||
|
||||
include: can-controller.yaml
|
||||
|
||||
properties:
|
||||
bus-speed-data:
|
||||
type: int
|
||||
required: true
|
||||
description: data phase bus speed in Baud/s
|
||||
sjw-data:
|
||||
type: int
|
||||
required: true
|
||||
description: Resynchronization jump width for the data phase. (ISO11898-1:2015)
|
||||
prop-seg-data:
|
||||
type: int
|
||||
required: false
|
||||
description: Time quantums of propagation segment for the data phase. (ISO11898-1:2015)
|
||||
phase-seg1-data:
|
||||
type: int
|
||||
required: false
|
||||
description: Time quantums of phase buffer 1 segment for the data phase. (ISO11898-1:2015)
|
||||
phase-seg2-data:
|
||||
type: int
|
||||
required: false
|
||||
description: Time quantums of phase buffer 2 segment for the data phase. (ISO11898-1:2015)
|
||||
sample-point-data:
|
||||
type: int
|
||||
required: false
|
||||
description: >
|
||||
Sample point in permille for the data phase.
|
||||
This param is required if segments are not given.
|
||||
If the sample point is given, the segments are ignored.
|
||||
tx-delay-comp-offset:
|
||||
type: int
|
||||
required: false
|
||||
default: 0
|
||||
@@ -0,0 +1,26 @@
|
||||
# Copyright (c) 2019 Karsten Koenig
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: MCP2515 SPI CAN controller
|
||||
|
||||
compatible: "microchip,mcp2515"
|
||||
|
||||
include: [spi-device.yaml, can-controller.yaml]
|
||||
|
||||
properties:
|
||||
osc-freq:
|
||||
type: int
|
||||
required: true
|
||||
description: Frequency of the external oscillator
|
||||
int-gpios:
|
||||
type: phandle-array
|
||||
required: true
|
||||
description: |
|
||||
Interrupt pin.
|
||||
|
||||
This pin signals active low when produced by the controller. The
|
||||
property value should ensure the flags properly describe the signal
|
||||
that is presented to the driver.
|
||||
reg:
|
||||
type: array
|
||||
required: true
|
||||
@@ -0,0 +1,23 @@
|
||||
# Copyright (c) 2019 Vestas Wind Systems A/S
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: NXP FlexCAN controller
|
||||
|
||||
compatible: "nxp,kinetis-flexcan"
|
||||
|
||||
include: can-controller.yaml
|
||||
|
||||
properties:
|
||||
reg:
|
||||
required: true
|
||||
|
||||
interrupts:
|
||||
required: true
|
||||
|
||||
clocks:
|
||||
required: true
|
||||
|
||||
clk-source:
|
||||
type: int
|
||||
required: true
|
||||
description: CAN engine clock source
|
||||
@@ -0,0 +1,15 @@
|
||||
description: Renesas R-Car CAN controller
|
||||
|
||||
compatible: "renesas,rcar-can"
|
||||
|
||||
include: can-controller.yaml
|
||||
|
||||
properties:
|
||||
reg:
|
||||
required: true
|
||||
|
||||
interrupts:
|
||||
required: true
|
||||
|
||||
clocks:
|
||||
required: true
|
||||
@@ -0,0 +1,26 @@
|
||||
description: STM32 CAN controller
|
||||
|
||||
compatible: "st,stm32-can"
|
||||
|
||||
include: [can-controller.yaml, pinctrl-device.yaml]
|
||||
|
||||
properties:
|
||||
reg:
|
||||
required: true
|
||||
|
||||
interrupts:
|
||||
required: true
|
||||
|
||||
clocks:
|
||||
required: true
|
||||
|
||||
pinctrl-0:
|
||||
required: true
|
||||
|
||||
pinctrl-names:
|
||||
required: true
|
||||
|
||||
master-can-reg:
|
||||
type: int
|
||||
required: false
|
||||
description: master can reg when different from current instance
|
||||
@@ -0,0 +1,5 @@
|
||||
description: Bosch m_can CAN-FD controller
|
||||
|
||||
compatible: "st,stm32-fdcan"
|
||||
|
||||
include: ["bosch,m-can.yaml", "pinctrl-device.yaml"]
|
||||
Reference in New Issue
Block a user