mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-16 03:31:35 +08:00
WIP: device tree MVP
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
# Copyright (c) 2019, NXP
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
# Specifies the MMC/SDHC module
|
||||
|
||||
include: base.yaml
|
||||
@@ -0,0 +1,48 @@
|
||||
# Copyright (c) 2019, NXP
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: NXP i.MXRT USDHC module
|
||||
|
||||
compatible: "nxp,imx-usdhc"
|
||||
|
||||
include: mmc.yaml
|
||||
|
||||
properties:
|
||||
clocks:
|
||||
required: true
|
||||
|
||||
pwr-gpios:
|
||||
type: phandle-array
|
||||
required: false
|
||||
description: |
|
||||
Power pin
|
||||
This pin defaults to active high when consumed by the SD card. The
|
||||
property value should ensure the flags properly describe the signal
|
||||
that is presented to the driver.
|
||||
|
||||
cd-gpios:
|
||||
type: phandle-array
|
||||
required: false
|
||||
description: |
|
||||
Detect pin
|
||||
This pin defaults to active low when produced by the SD card. The
|
||||
property value should ensure the flags properly describe the signal
|
||||
that is presented to the driver.
|
||||
|
||||
no-1-8-v:
|
||||
type: boolean
|
||||
required: false
|
||||
description: |
|
||||
When the external SD card circuit does not support 1.8V, add this
|
||||
property to disable 1.8v card voltage of SD card controller.
|
||||
|
||||
detect-dat3:
|
||||
type: boolean
|
||||
required: false
|
||||
description: |
|
||||
Enable the host to detect an SD card via the DAT3 line of the SD card
|
||||
connection. Requires the board to define a function to pull DAT3 low or
|
||||
high using pullup/pulldown resistors.
|
||||
|
||||
label:
|
||||
required: true
|
||||
@@ -0,0 +1,31 @@
|
||||
description: stm32 sdmmc disk access
|
||||
|
||||
compatible: "st,stm32-sdmmc"
|
||||
|
||||
include: [mmc.yaml, pinctrl-device.yaml]
|
||||
|
||||
properties:
|
||||
clocks:
|
||||
required: true
|
||||
|
||||
label:
|
||||
required: true
|
||||
|
||||
reg:
|
||||
required: true
|
||||
|
||||
pinctrl-0:
|
||||
required: true
|
||||
|
||||
pinctrl-names:
|
||||
required: true
|
||||
|
||||
cd-gpios:
|
||||
type: phandle-array
|
||||
required: false
|
||||
description: Card Detect pin
|
||||
|
||||
pwr-gpios:
|
||||
type: phandle-array
|
||||
required: false
|
||||
description: Power pin
|
||||
@@ -0,0 +1,8 @@
|
||||
# Copyright (c) 2018 Google LLC.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: MMC/SD/SDIO slot connected via SPI
|
||||
|
||||
compatible: "zephyr,mmc-spi-slot"
|
||||
|
||||
include: spi-device.yaml
|
||||
Reference in New Issue
Block a user