mirror of
https://github.com/torvalds/linux.git
synced 2026-04-30 12:32:31 -04:00
Pull MMC updates from Ulf Hansson:
"MMC core:
- Remove redundant pm_runtime_mark_last_busy() calls
MMC host:
- Convert drivers to use devm_mmc_alloc_host()
- Remove redundant pm_runtime_mark_last_busy() calls
- renesas_sdhi:
- Add support for the RZ/T2H and RZ/N2H variants
- Fix incorrect auto retuning for an SDIO card
- rtsx_usb_sdmmc:
- Add 74 clocks in poweron flow
- Re-work the code in sd_set_power_mode()
- loongson2:
- Add driver for the Loongson-2K SD/SDIO controller
- Add support for the Loongson-2K2000 SD/SDIO/eMMC controller
- sdhci:
- Drop sdhci_free_host()/sdhci_pltfm_free() interface
- Remove the sdhci_free_host() and sdhci_pltfm_free() helpers
- sdhci-cadence: Add support for the Mobileye EyeQ controller
- sdhci-esdhc-imx:
- Optimize clock loopback selection
- Don't change pinctrl in suspend if wakeup source
- sdhci-msm:
- Add support for the Milos variant
- Add support for the qcs8300 variant
- Ensure SD card power isn't ON when card gets removed
- sdhci-of-k1: Disable HW busy detection"
* tag 'mmc-v6.17' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc: (102 commits)
mmc: loongson2: Unify the function prefixes for loongson2_mmc_pdata
mmc: loongson2: Fix error code in loongson2_mmc_resource_request()
dt-bindings: mmc: sdhci-msm: document the Milos SDHCI Controller
mmc: loongson2: prevent integer overflow in ret variable
mmc: Remove redundant pm_runtime_mark_last_busy() calls
mmc: sdhci-msm: Ensure SD card power isn't ON when card removed
dt-bindings: mmc: Add sdhci compatible for qcs8300
mmc: sdhci-cadence: use of_property_present
mmc: loongson2: Add Loongson-2K2000 SD/SDIO/eMMC controller driver
dt-bindings: mmc: loongson,ls2k0500-mmc: Add compatible for Loongson-2K2000
mmc: loongson2: Add Loongson-2K SD/SDIO controller driver
dt-bindings: mmc: Add Loongson-2K SD/SDIO/eMMC controller binding
mmc: Convert ternary operator to str_true_false() helper
dt-bindings: mmc: renesas,sdhi: Document RZ/T2H and RZ/N2H support
mmc: sdhci-cadence: add Mobileye eyeQ support
dt-bindings: mmc: cdns: add Mobileye EyeQ MMC/SDHCI controller
mmc: rtsx_usb_sdmmc: Fix clang -Wimplicit-fallthrough in sd_set_power_mode()
mmc: cb710-mmc: Convert ternary operator to str_plural() helper
mmc: rtsx_usb_sdmmc: Add 74 clocks in poweron flow
mmc: rtsx_usb_sdmmc: Re-work the code in sd_set_power_mode()
...
315 lines
8.9 KiB
YAML
315 lines
8.9 KiB
YAML
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/mmc/renesas,sdhi.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Renesas SDHI SD/MMC controller
|
|
|
|
maintainers:
|
|
- Wolfram Sang <wsa+renesas@sang-engineering.com>
|
|
|
|
properties:
|
|
compatible:
|
|
oneOf:
|
|
- enum:
|
|
- renesas,sdhi-mmc-r8a77470 # RZ/G1C
|
|
- renesas,sdhi-r7s72100 # RZ/A1H
|
|
- renesas,sdhi-r7s9210 # SH-Mobile AG5
|
|
- renesas,sdhi-r8a73a4 # R-Mobile APE6
|
|
- renesas,sdhi-r8a7740 # R-Mobile A1
|
|
- renesas,sdhi-r9a09g057 # RZ/V2H(P)
|
|
- renesas,sdhi-sh73a0 # R-Mobile APE6
|
|
- items:
|
|
- enum:
|
|
- renesas,sdhi-r8a7778 # R-Car M1
|
|
- renesas,sdhi-r8a7779 # R-Car H1
|
|
- const: renesas,rcar-gen1-sdhi # R-Car Gen1
|
|
- items:
|
|
- enum:
|
|
- renesas,sdhi-r8a7742 # RZ/G1H
|
|
- renesas,sdhi-r8a7743 # RZ/G1M
|
|
- renesas,sdhi-r8a7744 # RZ/G1N
|
|
- renesas,sdhi-r8a7745 # RZ/G1E
|
|
- renesas,sdhi-r8a77470 # RZ/G1C
|
|
- renesas,sdhi-r8a7790 # R-Car H2
|
|
- renesas,sdhi-r8a7791 # R-Car M2-W
|
|
- renesas,sdhi-r8a7792 # R-Car V2H
|
|
- renesas,sdhi-r8a7793 # R-Car M2-N
|
|
- renesas,sdhi-r8a7794 # R-Car E2
|
|
- const: renesas,rcar-gen2-sdhi # R-Car Gen2 and RZ/G1
|
|
- items:
|
|
- enum:
|
|
- renesas,sdhi-r8a774a1 # RZ/G2M
|
|
- renesas,sdhi-r8a774b1 # RZ/G2N
|
|
- renesas,sdhi-r8a774c0 # RZ/G2E
|
|
- renesas,sdhi-r8a774e1 # RZ/G2H
|
|
- renesas,sdhi-r8a7795 # R-Car H3
|
|
- renesas,sdhi-r8a7796 # R-Car M3-W
|
|
- renesas,sdhi-r8a77961 # R-Car M3-W+
|
|
- renesas,sdhi-r8a77965 # R-Car M3-N
|
|
- renesas,sdhi-r8a77970 # R-Car V3M
|
|
- renesas,sdhi-r8a77980 # R-Car V3H
|
|
- renesas,sdhi-r8a77990 # R-Car E3
|
|
- renesas,sdhi-r8a77995 # R-Car D3
|
|
- const: renesas,rcar-gen3-sdhi # R-Car Gen3 or RZ/G2
|
|
- items:
|
|
- enum:
|
|
- renesas,sdhi-r8a779a0 # R-Car V3U
|
|
- renesas,sdhi-r8a779f0 # R-Car S4-8
|
|
- renesas,sdhi-r8a779g0 # R-Car V4H
|
|
- renesas,sdhi-r8a779h0 # R-Car V4M
|
|
- const: renesas,rcar-gen4-sdhi # R-Car Gen4
|
|
- items:
|
|
- enum:
|
|
- renesas,sdhi-r9a07g043 # RZ/G2UL and RZ/Five
|
|
- renesas,sdhi-r9a07g044 # RZ/G2{L,LC}
|
|
- renesas,sdhi-r9a07g054 # RZ/V2L
|
|
- renesas,sdhi-r9a08g045 # RZ/G3S
|
|
- renesas,sdhi-r9a09g011 # RZ/V2M
|
|
- const: renesas,rzg2l-sdhi
|
|
- items:
|
|
- enum:
|
|
- renesas,sdhi-r9a09g047 # RZ/G3E
|
|
- renesas,sdhi-r9a09g056 # RZ/V2N
|
|
- renesas,sdhi-r9a09g077 # RZ/T2H
|
|
- renesas,sdhi-r9a09g087 # RZ/N2H
|
|
- const: renesas,sdhi-r9a09g057 # RZ/V2H(P)
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
interrupts:
|
|
minItems: 1
|
|
maxItems: 3
|
|
|
|
clocks:
|
|
minItems: 1
|
|
maxItems: 4
|
|
|
|
clock-names:
|
|
minItems: 1
|
|
maxItems: 4
|
|
|
|
dmas:
|
|
minItems: 4
|
|
maxItems: 4
|
|
|
|
dma-names:
|
|
minItems: 4
|
|
maxItems: 4
|
|
items:
|
|
enum:
|
|
- tx
|
|
- rx
|
|
|
|
iommus:
|
|
maxItems: 1
|
|
|
|
power-domains:
|
|
maxItems: 1
|
|
|
|
resets:
|
|
maxItems: 1
|
|
|
|
pinctrl-0:
|
|
minItems: 1
|
|
maxItems: 2
|
|
|
|
pinctrl-1:
|
|
maxItems: 1
|
|
|
|
pinctrl-names: true
|
|
|
|
max-frequency: true
|
|
|
|
allOf:
|
|
- $ref: mmc-controller.yaml
|
|
|
|
- if:
|
|
properties:
|
|
compatible:
|
|
contains:
|
|
enum:
|
|
- renesas,sdhi-r9a09g077
|
|
- renesas,sdhi-r9a09g087
|
|
then:
|
|
properties:
|
|
resets: false
|
|
clocks:
|
|
items:
|
|
- description: ACLK, IMCLK, SDHI channel bus and main clocks.
|
|
- description: CLK_HS, SDHI channel High speed clock.
|
|
clock-names:
|
|
items:
|
|
- const: aclk
|
|
- const: clkh
|
|
else:
|
|
if:
|
|
properties:
|
|
compatible:
|
|
contains:
|
|
enum:
|
|
- renesas,sdhi-r9a09g057
|
|
- renesas,rzg2l-sdhi
|
|
then:
|
|
properties:
|
|
clocks:
|
|
items:
|
|
- description: IMCLK, SDHI channel main clock1.
|
|
- description: CLK_HS, SDHI channel High speed clock which operates
|
|
4 times that of SDHI channel main clock1.
|
|
- description: IMCLK2, SDHI channel main clock2. When this clock is
|
|
turned off, external SD card detection cannot be
|
|
detected.
|
|
- description: ACLK, SDHI channel bus clock.
|
|
clock-names:
|
|
items:
|
|
- const: core
|
|
- const: clkh
|
|
- const: cd
|
|
- const: aclk
|
|
required:
|
|
- clock-names
|
|
- resets
|
|
else:
|
|
if:
|
|
properties:
|
|
compatible:
|
|
contains:
|
|
enum:
|
|
- renesas,rcar-gen2-sdhi
|
|
- renesas,rcar-gen3-sdhi
|
|
- renesas,rcar-gen4-sdhi
|
|
then:
|
|
properties:
|
|
clocks:
|
|
minItems: 1
|
|
maxItems: 3
|
|
clock-names:
|
|
minItems: 1
|
|
uniqueItems: true
|
|
items:
|
|
- const: core
|
|
- enum: [ clkh, cd ]
|
|
- const: cd
|
|
else:
|
|
properties:
|
|
clocks:
|
|
minItems: 1
|
|
maxItems: 2
|
|
clock-names:
|
|
minItems: 1
|
|
items:
|
|
- const: core
|
|
- const: cd
|
|
|
|
- if:
|
|
properties:
|
|
compatible:
|
|
contains:
|
|
const: renesas,sdhi-mmc-r8a77470
|
|
then:
|
|
properties:
|
|
pinctrl-names:
|
|
items:
|
|
- const: state_uhs
|
|
else:
|
|
properties:
|
|
pinctrl-names:
|
|
minItems: 1
|
|
items:
|
|
- const: default
|
|
- const: state_uhs
|
|
|
|
- if:
|
|
properties:
|
|
compatible:
|
|
contains:
|
|
enum:
|
|
- renesas,sdhi-r7s72100
|
|
- renesas,sdhi-r7s9210
|
|
then:
|
|
required:
|
|
- clock-names
|
|
description:
|
|
The internal card detection logic that exists in these controllers is
|
|
sectioned off to be run by a separate second clock source to allow
|
|
the main core clock to be turned off to save power.
|
|
|
|
- if:
|
|
properties:
|
|
compatible:
|
|
contains:
|
|
const: renesas,sdhi-r9a09g057
|
|
then:
|
|
properties:
|
|
vqmmc-regulator:
|
|
type: object
|
|
description: VQMMC SD regulator
|
|
$ref: /schemas/regulator/regulator.yaml#
|
|
unevaluatedProperties: false
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
- interrupts
|
|
- clocks
|
|
- power-domains
|
|
|
|
unevaluatedProperties: false
|
|
|
|
examples:
|
|
- |
|
|
#include <dt-bindings/clock/r8a7790-cpg-mssr.h>
|
|
#include <dt-bindings/interrupt-controller/arm-gic.h>
|
|
#include <dt-bindings/power/r8a7790-sysc.h>
|
|
|
|
sdhi0: mmc@ee100000 {
|
|
compatible = "renesas,sdhi-r8a7790", "renesas,rcar-gen2-sdhi";
|
|
reg = <0xee100000 0x328>;
|
|
interrupts = <GIC_SPI 165 IRQ_TYPE_LEVEL_HIGH>;
|
|
clocks = <&cpg CPG_MOD 314>;
|
|
dmas = <&dmac0 0xcd>, <&dmac0 0xce>, <&dmac1 0xcd>, <&dmac1 0xce>;
|
|
dma-names = "tx", "rx", "tx", "rx";
|
|
max-frequency = <195000000>;
|
|
power-domains = <&sysc R8A7790_PD_ALWAYS_ON>;
|
|
resets = <&cpg 314>;
|
|
};
|
|
|
|
sdhi1: mmc@ee120000 {
|
|
compatible = "renesas,sdhi-r8a7790", "renesas,rcar-gen2-sdhi";
|
|
reg = <0xee120000 0x328>;
|
|
interrupts = <GIC_SPI 166 IRQ_TYPE_LEVEL_HIGH>;
|
|
clocks = <&cpg CPG_MOD 313>;
|
|
dmas = <&dmac0 0xc9>, <&dmac0 0xca>, <&dmac1 0xc9>, <&dmac1 0xca>;
|
|
dma-names = "tx", "rx", "tx", "rx";
|
|
max-frequency = <195000000>;
|
|
power-domains = <&sysc R8A7790_PD_ALWAYS_ON>;
|
|
resets = <&cpg 313>;
|
|
};
|
|
|
|
sdhi2: mmc@ee140000 {
|
|
compatible = "renesas,sdhi-r8a7790", "renesas,rcar-gen2-sdhi";
|
|
reg = <0xee140000 0x100>;
|
|
interrupts = <GIC_SPI 167 IRQ_TYPE_LEVEL_HIGH>;
|
|
clocks = <&cpg CPG_MOD 312>;
|
|
dmas = <&dmac0 0xc1>, <&dmac0 0xc2>, <&dmac1 0xc1>, <&dmac1 0xc2>;
|
|
dma-names = "tx", "rx", "tx", "rx";
|
|
max-frequency = <97500000>;
|
|
power-domains = <&sysc R8A7790_PD_ALWAYS_ON>;
|
|
resets = <&cpg 312>;
|
|
};
|
|
|
|
sdhi3: mmc@ee160000 {
|
|
compatible = "renesas,sdhi-r8a7790", "renesas,rcar-gen2-sdhi";
|
|
reg = <0xee160000 0x100>;
|
|
interrupts = <GIC_SPI 168 IRQ_TYPE_LEVEL_HIGH>;
|
|
clocks = <&cpg CPG_MOD 311>;
|
|
dmas = <&dmac0 0xd3>, <&dmac0 0xd4>, <&dmac1 0xd3>, <&dmac1 0xd4>;
|
|
dma-names = "tx", "rx", "tx", "rx";
|
|
max-frequency = <97500000>;
|
|
power-domains = <&sysc R8A7790_PD_ALWAYS_ON>;
|
|
resets = <&cpg 311>;
|
|
};
|