dts/sdhc: support mmc dts and usdhc dts

1) dts/bindings/mmc/mmc.yaml: specifies common mmc.

2) dts/bindings/mmc/nxp,imx-usdhc.yaml: specifies
   nxp usdhc module which inherits mmc.

3) dts/arm/nxp/nxp_rt.dtsi: usdhc support on RT chip.

4) boards/arm/mimxrt1050_evk/mimxrt1050_evk.dts:
   usdhc slot support on mimxrt1050_evk board.

Signed-off-by: Jun Yang <jun.yang@nxp.com>
This commit is contained in:
Jun Yang 2019-07-03 21:07:18 -07:00 committed by Maureen Helm
commit 46106ece25
5 changed files with 84 additions and 0 deletions

View file

@ -122,3 +122,9 @@ arduino_serial: &uart3 {};
&usbd1 {
status = "okay";
};
&usdhc1 {
status = "okay";
pwr-gpios = <&gpio1 5 0>;
cd-gpios = <&gpio2 28 0>;
};

View file

@ -22,3 +22,4 @@ supported:
- hwinfo
- usb_device
- counter
- sdhc

View file

@ -370,6 +370,24 @@
status = "disabled";
label = "USBD_2";
};
usdhc1: usdhc@402c0000 {
compatible = "nxp,imx-usdhc";
reg = <0x402c0000 0x4000>;
status = "disabled";
interrupts = <110 0>;
clocks = <&ccm IMX_CCM_USDHC1_CLK 0 0>;
label = "USDHC_1";
};
usdhc2: usdhc@402c4000 {
compatible = "nxp,imx-usdhc";
reg = <0x402c4000 0x4000>;
status = "disabled";
interrupts = <111 0>;
clocks = <&ccm IMX_CCM_USDHC2_CLK 0 0>;
label = "USDHC_2";
};
};
};

22
dts/bindings/mmc/mmc.yaml Normal file
View file

@ -0,0 +1,22 @@
#
# Copyright (c) 2019, NXP
#
# SPDX-License-Identifier: Apache-2.0
#
---
title: MMC/SDHC module
version: 0.1
description: >
This binding specifies the MMC/SDHC module.
inherits:
!include base.yaml
properties:
clocks:
type: array
category: optional
description: Clock gate information
generation: define
...

View file

@ -0,0 +1,37 @@
#
# Copyright (c) 2019, NXP
#
# SPDX-License-Identifier: Apache-2.0
#
---
title: NXP i.MXRT USDHC module
version: 0.1
description: >
This binding specifies the NXP i.MXRT USDHC module.
inherits:
!include mmc.yaml
properties:
compatible:
constraint: "nxp,imx-usdhc"
clocks:
category: required
pwr-gpios:
type: compound
category: optional
description: Power pin
generation: define
cd-gpios:
type: compound
category: optional
description: Detect pin
generation: define
label:
category: required
...