1# Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd. 2# SPDX-License-Identifier: Apache-2.0 3 4description: ESP32 SDHC controller slot 5 6compatible: "espressif,esp32-sdhc-slot" 7 8include: [sdhc.yaml, pinctrl-device.yaml] 9 10properties: 11 reg: 12 required: true 13 14 pinctrl-0: 15 required: true 16 17 pinctrl-names: 18 required: true 19 20 bus-width: 21 type: int 22 enum: 23 - 1 24 - 4 25 default: 4 26 description: SD bus width in bits 27 28 clk-pin: 29 type: int 30 description: | 31 Clock pin for ESP32 and SoC models with fixed pins for SDIO. 32 For devices with GPIO matrix support, configuration shall be done 33 using pin control (pinctrl-0 field). 34 35 cmd-pin: 36 type: int 37 description: | 38 Command pin for ESP32 and SoC models with fixed pins for SDIO. 39 For devices with GPIO matrix support, configuration shall be done 40 using pin control (pinctrl-0 field). 41 42 d0-pin: 43 type: int 44 description: | 45 Data 0 pin for ESP32 and SoC models with fixed pins for SDIO. 46 For devices with GPIO matrix support, configuration shall be done 47 using pin control (pinctrl-0 field). 48 49 d1-pin: 50 type: int 51 description: | 52 Data 1 pin for ESP32 and SoC models with fixed pins for SDIO. 53 For devices with GPIO matrix support, configuration shall be done 54 using pin control (pinctrl-0 field). 55 56 d2-pin: 57 type: int 58 description: | 59 Data 2 pin for ESP32 and SoC models with fixed pins for SDIO. 60 For devices with GPIO matrix support, configuration shall be done 61 using pin control (pinctrl-0 field). 62 63 d3-pin: 64 type: int 65 description: | 66 Data 3 pin for ESP32 and SoC models with fixed pins for SDIO. 67 For devices with GPIO matrix support, configuration shall be done 68 using pin control (pinctrl-0 field). 69 70 pwr-gpios: 71 type: phandle-array 72 description: | 73 Power pin 74 This is a configurable pin to deliver power supply to the SD card. 75 It is configured as a GPIO in order to execute power toggles and 76 reinitialize the SD slave when necessary. 77