mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-15 07:51:35 +08:00
WIP: device tree MVP
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
# Copyright (c) 2021 IP-Logix Inc.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: Atmel SAM Family MDIO Driver node
|
||||
|
||||
compatible: "atmel,sam-mdio"
|
||||
|
||||
include: mdio-controller.yaml
|
||||
|
||||
properties:
|
||||
pinctrl-0:
|
||||
type: phandles
|
||||
required: false
|
||||
description: |
|
||||
PIO pin configuration for MDC, and MDIO signals.
|
||||
|
||||
For example the GMAC on SAME7x would be
|
||||
pinctrl-0 = <&pd8a_gmac_gmdc &pd9a_gmac_gmdio>;
|
||||
@@ -0,0 +1,27 @@
|
||||
# Copyright (c) 2021 IP-Logix Inc.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
# Common fields for MDIO controllers
|
||||
|
||||
include: base.yaml
|
||||
|
||||
bus: mdio
|
||||
|
||||
properties:
|
||||
label:
|
||||
required: true
|
||||
protocol:
|
||||
required: false
|
||||
type: string
|
||||
description: |
|
||||
MDIO bus framing protocol to use for communication. Most devices
|
||||
support clause 22.
|
||||
|
||||
- clause 22: IEEE802.3 clause 22 frame format
|
||||
- clause 45: IEEE802.3 clause 45 frame format
|
||||
- micrel SMI: Micrel Serial Management Interface frame format
|
||||
enum:
|
||||
- "clause 22"
|
||||
- "clause 45"
|
||||
- "micrel SMI"
|
||||
default: "clause 22"
|
||||
Reference in New Issue
Block a user