Skip to content

Commit 0163c88

Browse files
committed
Merge tag 'mmc-v6.15' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc
Pull MMC updates from Ulf Hansson: "MMC host: - atmel-mci: Convert DT bindings to json schema - dw_mmc: Add support for the Exynos7870 variant - dw_mmc-rockchip: Add support for the RK3562/3528 variants - omap: Fix potential memory leak in the probe error path - renesas_sdhi: Add support for RZ/G3E variants - sdhci: Disable SD card clock before changing parameters - sdhci-esdhc-imx: Add support for the i.MX94 variant - sdhci-of-dwcmshc: Add support for the RK3562/RK3528 variants - sdhci-omap: Disable aggressive PM for eMMC/SD-cards - sdhci-pci-core: Wait for VDD to settle on card power off - sdhci-pxav3: Fix busy-signalling by using MMC_CAP_NEED_RSP_BUSY - sunxi-mmc: Add support for the A523 variant MEMSTICK: - rtsx_usb_ms: Fix potential use-after-free during remove" * tag 'mmc-v6.15' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc: (27 commits) mmc: core: Remove redundant null check mmc: host: Wait for Vdd to settle on card power off mmc: omap: Fix memory leak in mmc_omap_new_slot memstick: rtsx_usb_ms: Fix slab-use-after-free in rtsx_usb_ms_drv_remove mmc: renesas_sdhi: fix error code in renesas_sdhi_probe() mmc: sdhci-pxav3: set NEED_RSP_BUSY capability mmc: sdhci-omap: Disable MMC_CAP_AGGRESSIVE_PM for eMMC/SD tty: mmc: sdio: use bool for cts and remove parentheses dt-bindings: mmc: sunxi: add compatible strings for Allwinner A523 dt-bindings: mmc: sunxi: Simplify compatible string listing dt-bindings: mmc: sdhci-of-dwcmhsc: Add compatible string for RK3528 dt-bindings: mmc: rockchip-dw-mshc: Add compatible string for RK3528 mmc: renesas_sdhi: Add support for RZ/G3E SoC dt-bindings: mmc: renesas,sdhi: Document RZ/G3E support dt-bindings: mmc: rockchip-dw-mshc: Add support for rk3562 dt-bindings: mmc: Add support for rk3562 eMMC mmc: core: Trim trailing whitespace from card product names dt-bindings: mmc: atmel,hsmci: Convert to json schema dt-bindings: mmc: mmc-slot: Make compatible property optional dt-bindings: mmc: fsl-imx-esdhc: Add i.MX94 support ...
2 parents 5143840 + c48e13e commit 0163c88

30 files changed

+508
-184
lines changed

Documentation/devicetree/bindings/mmc/allwinner,sun4i-a10-mmc.yaml

Lines changed: 17 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -30,38 +30,34 @@ properties:
3030
- const: allwinner,sun50i-a100-emmc
3131
- const: allwinner,sun50i-a100-mmc
3232
- items:
33-
- const: allwinner,sun8i-a83t-mmc
33+
- enum:
34+
- allwinner,sun8i-a83t-mmc
35+
- allwinner,suniv-f1c100s-mmc
3436
- const: allwinner,sun7i-a20-mmc
3537
- items:
36-
- const: allwinner,sun8i-r40-emmc
38+
- enum:
39+
- allwinner,sun8i-r40-emmc
40+
- allwinner,sun50i-h5-emmc
41+
- allwinner,sun50i-h6-emmc
3742
- const: allwinner,sun50i-a64-emmc
3843
- items:
39-
- const: allwinner,sun8i-r40-mmc
44+
- enum:
45+
- allwinner,sun8i-r40-mmc
46+
- allwinner,sun50i-h5-mmc
47+
- allwinner,sun50i-h6-mmc
4048
- const: allwinner,sun50i-a64-mmc
4149
- items:
42-
- const: allwinner,sun50i-h5-emmc
43-
- const: allwinner,sun50i-a64-emmc
44-
- items:
45-
- const: allwinner,sun50i-h5-mmc
46-
- const: allwinner,sun50i-a64-mmc
47-
- items:
48-
- const: allwinner,sun50i-h6-emmc
49-
- const: allwinner,sun50i-a64-emmc
50-
- items:
51-
- const: allwinner,sun50i-h6-mmc
52-
- const: allwinner,sun50i-a64-mmc
53-
- items:
54-
- const: allwinner,sun20i-d1-emmc
55-
- const: allwinner,sun50i-a100-emmc
56-
- items:
57-
- const: allwinner,sun50i-h616-emmc
50+
- enum:
51+
- allwinner,sun20i-d1-emmc
52+
- allwinner,sun50i-h616-emmc
53+
- allwinner,sun55i-a523-emmc
5854
- const: allwinner,sun50i-a100-emmc
5955
- items:
6056
- const: allwinner,sun50i-h616-mmc
6157
- const: allwinner,sun50i-a100-mmc
6258
- items:
63-
- const: allwinner,suniv-f1c100s-mmc
64-
- const: allwinner,sun7i-a20-mmc
59+
- const: allwinner,sun55i-a523-mmc
60+
- const: allwinner,sun20i-d1-mmc
6561

6662
reg:
6763
maxItems: 1

Documentation/devicetree/bindings/mmc/amlogic,meson-mx-sdio.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ patternProperties:
6060
bus-width:
6161
enum: [1, 4]
6262

63+
required:
64+
- compatible
65+
6366
unevaluatedProperties: false
6467

6568
required:
Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/mmc/atmel,hsmci.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Atmel High-Speed MultiMedia Card Interface (HSMCI)
8+
9+
description:
10+
The Atmel HSMCI controller provides an interface for MMC, SD, and SDIO memory
11+
cards.
12+
13+
maintainers:
14+
- Nicolas Ferre <nicolas.ferre@microchip.com>
15+
- Aubin Constans <aubin.constans@microchip.com>
16+
17+
allOf:
18+
- $ref: mmc-controller.yaml
19+
20+
properties:
21+
compatible:
22+
const: atmel,hsmci
23+
24+
reg:
25+
maxItems: 1
26+
27+
interrupts:
28+
maxItems: 1
29+
30+
dmas:
31+
maxItems: 1
32+
33+
dma-names:
34+
const: rxtx
35+
36+
clocks:
37+
maxItems: 1
38+
39+
clock-names:
40+
const: mci_clk
41+
42+
"#address-cells":
43+
const: 1
44+
description: Used for slot IDs.
45+
46+
"#size-cells":
47+
const: 0
48+
49+
patternProperties:
50+
"slot@[0-2]$":
51+
$ref: mmc-slot.yaml
52+
description: A slot node representing an MMC, SD, or SDIO slot.
53+
54+
properties:
55+
reg:
56+
enum: [0, 1]
57+
58+
required:
59+
- reg
60+
- bus-width
61+
62+
unevaluatedProperties: false
63+
64+
required:
65+
- compatible
66+
- reg
67+
- interrupts
68+
- clocks
69+
- clock-names
70+
- "#address-cells"
71+
- "#size-cells"
72+
73+
anyOf:
74+
- required:
75+
- slot@0
76+
- required:
77+
- slot@1
78+
79+
unevaluatedProperties: false
80+
81+
examples:
82+
- |
83+
#include <dt-bindings/interrupt-controller/irq.h>
84+
#include <dt-bindings/clock/at91.h>
85+
mmc@f0008000 {
86+
compatible = "atmel,hsmci";
87+
reg = <0xf0008000 0x600>;
88+
interrupts = <12 IRQ_TYPE_LEVEL_HIGH>;
89+
clocks = <&mci0_clk>;
90+
clock-names = "mci_clk";
91+
#address-cells = <1>;
92+
#size-cells = <0>;
93+
94+
slot@0 {
95+
reg = <0>;
96+
bus-width = <4>;
97+
cd-gpios = <&pioD 15 0>;
98+
cd-inverted;
99+
};
100+
101+
slot@1 {
102+
reg = <1>;
103+
bus-width = <4>;
104+
};
105+
};
106+
...

Documentation/devicetree/bindings/mmc/atmel-hsmci.txt

Lines changed: 0 additions & 73 deletions
This file was deleted.

Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ properties:
5757
- fsl,imx8mp-usdhc
5858
- fsl,imx8ulp-usdhc
5959
- fsl,imx93-usdhc
60+
- fsl,imx94-usdhc
6061
- fsl,imx95-usdhc
6162
- const: fsl,imx8mm-usdhc
6263
- items:

Documentation/devicetree/bindings/mmc/mmc-controller.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ properties:
2424
$nodename:
2525
pattern: "^mmc(@.*)?$"
2626

27-
unevaluatedProperties: true
27+
additionalProperties: true
2828

2929
examples:
3030
- |

Documentation/devicetree/bindings/mmc/mmc-slot.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ properties:
2929
maxItems: 1
3030

3131
required:
32-
- compatible
3332
- reg
3433

3534
unevaluatedProperties: false

Documentation/devicetree/bindings/mmc/renesas,sdhi.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ properties:
6868
- renesas,sdhi-r9a08g045 # RZ/G3S
6969
- renesas,sdhi-r9a09g011 # RZ/V2M
7070
- const: renesas,rzg2l-sdhi
71+
- items:
72+
- const: renesas,sdhi-r9a09g047 # RZ/G3E
73+
- const: renesas,sdhi-r9a09g057 # RZ/V2H(P)
7174

7275
reg:
7376
maxItems: 1
@@ -211,6 +214,19 @@ allOf:
211214
sectioned off to be run by a separate second clock source to allow
212215
the main core clock to be turned off to save power.
213216

217+
- if:
218+
properties:
219+
compatible:
220+
contains:
221+
const: renesas,sdhi-r9a09g057
222+
then:
223+
properties:
224+
vqmmc-regulator:
225+
type: object
226+
description: VQMMC SD regulator
227+
$ref: /schemas/regulator/regulator.yaml#
228+
unevaluatedProperties: false
229+
214230
required:
215231
- compatible
216232
- reg

Documentation/devicetree/bindings/mmc/rockchip-dw-mshc.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ properties:
3838
- rockchip,rk3328-dw-mshc
3939
- rockchip,rk3368-dw-mshc
4040
- rockchip,rk3399-dw-mshc
41+
- rockchip,rk3528-dw-mshc
42+
- rockchip,rk3562-dw-mshc
4143
- rockchip,rk3568-dw-mshc
4244
- rockchip,rk3588-dw-mshc
4345
- rockchip,rv1108-dw-mshc

Documentation/devicetree/bindings/mmc/samsung,exynos-dw-mshc.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ properties:
2424
- samsung,exynos5420-dw-mshc-smu
2525
- samsung,exynos7-dw-mshc
2626
- samsung,exynos7-dw-mshc-smu
27+
- samsung,exynos7870-dw-mshc
28+
- samsung,exynos7870-dw-mshc-smu
2729
- items:
2830
- enum:
2931
- samsung,exynos5433-dw-mshc-smu

0 commit comments

Comments
 (0)