drivers: esp32: SDHC implementation
Implementation of SDHC driver for ESP32 Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
This commit is contained in:
parent
b2ae36087b
commit
f4a6fd1f3f
9 changed files with 1881 additions and 0 deletions
76
dts/bindings/sdhc/espressif,esp32-sdhc-slot.yaml
Normal file
76
dts/bindings/sdhc/espressif,esp32-sdhc-slot.yaml
Normal file
|
@ -0,0 +1,76 @@
|
|||
# Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: Espressif ESP32 SDHC controller slot
|
||||
|
||||
compatible: "espressif,esp32-sdhc-slot"
|
||||
|
||||
include: [sdhc.yaml, pinctrl-device.yaml]
|
||||
|
||||
properties:
|
||||
reg:
|
||||
required: true
|
||||
|
||||
pinctrl-0:
|
||||
required: true
|
||||
|
||||
pinctrl-names:
|
||||
required: true
|
||||
|
||||
bus-width:
|
||||
type: int
|
||||
enum:
|
||||
- 1
|
||||
- 4
|
||||
default: 4
|
||||
description: SD bus width in bits
|
||||
|
||||
clk-pin:
|
||||
type: int
|
||||
description: |
|
||||
Clock pin for ESP32 and SoC models with fixed pins for SDIO.
|
||||
For devices with GPIO matrix support, configuration shall be done
|
||||
using pin control (pinctrl-0 field).
|
||||
|
||||
cmd-pin:
|
||||
type: int
|
||||
description: |
|
||||
Command pin for ESP32 and SoC models with fixed pins for SDIO.
|
||||
For devices with GPIO matrix support, configuration shall be done
|
||||
using pin control (pinctrl-0 field).
|
||||
|
||||
d0-pin:
|
||||
type: int
|
||||
description: |
|
||||
Data 0 pin for ESP32 and SoC models with fixed pins for SDIO.
|
||||
For devices with GPIO matrix support, configuration shall be done
|
||||
using pin control (pinctrl-0 field).
|
||||
|
||||
d1-pin:
|
||||
type: int
|
||||
description: |
|
||||
Data 1 pin for ESP32 and SoC models with fixed pins for SDIO.
|
||||
For devices with GPIO matrix support, configuration shall be done
|
||||
using pin control (pinctrl-0 field).
|
||||
|
||||
d2-pin:
|
||||
type: int
|
||||
description: |
|
||||
Data 2 pin for ESP32 and SoC models with fixed pins for SDIO.
|
||||
For devices with GPIO matrix support, configuration shall be done
|
||||
using pin control (pinctrl-0 field).
|
||||
|
||||
d3-pin:
|
||||
type: int
|
||||
description: |
|
||||
Data 3 pin for ESP32 and SoC models with fixed pins for SDIO.
|
||||
For devices with GPIO matrix support, configuration shall be done
|
||||
using pin control (pinctrl-0 field).
|
||||
|
||||
pwr-gpios:
|
||||
type: phandle-array
|
||||
description: |
|
||||
Power pin
|
||||
This is a configurable pin to deliver power supply to the SD card.
|
||||
It is configured as a GPIO in order to execute power toggles and
|
||||
reinitialize the SD slave when necessary.
|
15
dts/bindings/sdhc/espressif,esp32-sdhc.yaml
Normal file
15
dts/bindings/sdhc/espressif,esp32-sdhc.yaml
Normal file
|
@ -0,0 +1,15 @@
|
|||
# Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: Espressif ESP32 SDHC controller
|
||||
|
||||
compatible: "espressif,esp32-sdhc"
|
||||
|
||||
include: [base.yaml]
|
||||
|
||||
properties:
|
||||
reg:
|
||||
required: true
|
||||
|
||||
interrupts:
|
||||
required: true
|
Loading…
Add table
Add a link
Reference in a new issue