1# Copyright (c) 2022, NXP
2# SPDX-License-Identifier: Apache-2.0
3
4description: NXP imx USDHC controller
5
6compatible: "nxp,imx-usdhc"
7
8include: [sdhc.yaml, pinctrl-device.yaml]
9
10properties:
11  reg:
12    required: true
13
14  data-timeout:
15    type: int
16    default: 0xF
17    description: |
18      Data timeout, as multiple of the SD clock. See DTOCV field of USDHC
19
20  read-watermark:
21    type: int
22    default: 0x80
23    description: |
24      Number of words used as read watermark level in FIFO queue for USDHC
25
26  write-watermark:
27    type: int
28    default: 0x80
29    description: |
30      Number of words used as write watermark level in FIFO queue for USDHC
31
32  max_current_330:
33    type: int
34    default: 0
35    description: |
36      Max drive current in mA at 3.3V. A value of zero indicates no maximum
37      is specified by the driver.
38  clocks:
39    required: true
40
41  pwr-gpios:
42    type: phandle-array
43    description: |
44      Power pin
45      This pin defaults to active high when consumed by the SD card. The
46      property value should ensure the flags properly describe the signal
47      that is presented to the driver.
48
49  cd-gpios:
50    type: phandle-array
51    description: |
52      Detect pin
53      This pin defaults to active low when produced by the SD card. The
54      property value should ensure the flags properly describe the signal
55      that is presented to the driver.
56
57  no-1-8-v:
58    type: boolean
59    description: |
60      When the external SD card circuit does not support 1.8V, add this
61      property to disable 1.8v card voltage of SD card controller.
62
63  detect-dat3:
64    type: boolean
65    description: |
66      Enable the host to detect an SD card via the DAT3 line of the SD card
67      connection. Requires the board to define a function to pull DAT3 low or
68      high using pullup/pulldown resistors.
69