Rockchip designware mobile storage host controller
Schema identifier ($id): "http://devicetree.org/schemas/mmc/rockchip-dw-mshc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Rockchip uses the Synopsys designware mobile storage host controller to interface a SoC with storage medium such as eMMC or SD/MMC cards. This file documents the combined properties for the core Synopsys dw mshc controller that are not already included in the synopsys-dw-mshc-common.yaml file and the Rockchip specific extensions.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):synopsys-dw-mshc-common.yaml#
Maintainers (maintainers): "Heiko Stuebner <heiko@sntech.de>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"rockchip,rk2928-dw-mshc"
Rule 2
Exact value (
const):"rockchip,rk3288-dw-mshc"
Rule 3
Array item rules (
items)Item 1
Allowed values (
enum):"rockchip,px30-dw-mshc","rockchip,rk1808-dw-mshc","rockchip,rk3036-dw-mshc","rockchip,rk3128-dw-mshc","rockchip,rk3228-dw-mshc","rockchip,rk3308-dw-mshc","rockchip,rk3328-dw-mshc","rockchip,rk3368-dw-mshc","rockchip,rk3399-dw-mshc","rockchip,rk3506-dw-mshc","rockchip,rk3528-dw-mshc","rockchip,rk3562-dw-mshc","rockchip,rk3568-dw-mshc","rockchip,rk3588-dw-mshc","rockchip,rv1108-dw-mshc","rockchip,rv1126-dw-mshc"Item 2
Exact value (
const):"rockchip,rk3288-dw-mshc"
Rule 4
Exact value (
const):"rockchip,rk3576-dw-mshc"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 4
Handle to "biu" and "ciu" clocks for the bus interface unit clock and the card interface unit clock. If "ciu-drive" and "ciu-sample" are specified in clock-names, it should also contain handles to these clocks.
clock-names — required here #
Minimum number of items (minItems): 2
Array item rules (items) #
Item 1
Exact value (
const):"biu"
Item 2
Exact value (
const):"ciu"
Item 3
Exact value (
const):"ciu-drive"
Item 4
Exact value (
const):"ciu-sample"
Apart from the clock-names "biu" and "ciu" two more clocks "ciu-drive" and "ciu-sample" are supported. They are used to control the clock phases, "ciu-sample" is required for tuning high speed modes.
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
rockchip,default-sample-phase — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 360
Default value (default): 0
The default phase to set "ciu-sample" at probing, low speeds or in case where all phases work at tuning time. If not specified 0 deg will be used.
rockchip,desired-num-phases — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 360
Default value (default): 360
The desired number of times that the host execute tuning when needed. If not specified, the host will do tuning for 360 times, namely tuning for each degree.
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/rk3288-cru.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
sdmmc: mmc@ff0c0000 {
compatible = "rockchip,rk3288-dw-mshc";
reg = <0xff0c0000 0x4000>;
interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>,
<&cru SCLK_SDMMC_DRV>, <&cru SCLK_SDMMC_SAMPLE>;
clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
resets = <&cru SRST_MMC0>;
reset-names = "reset";
fifo-depth = <0x100>;
max-frequency = <150000000>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Line 22: Everything else is described in the common file
Line 26: for Rockchip RK2928 and before RK3288
Line 28: for Rockchip RK3288
Line 49: for Rockchip RK3576 with phase tuning inside the controller