Skip to content

Commit 8a73c77

Browse files
committed
Merge tag 'mmc-v5.16' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc
Pull MMC and MEMSTICK updates from Ulf Hansson: "MMC core: - Update maintainer and URL for the mmc-utils - Set default label for slot-gpio in case of no con-id - Convert MMC card DT bindings to a schema - Add optional host specific tuning support for eMMC HS400 - Add error handling of add_disk() MMC host: - mtk-sd: Add host specific tuning support for eMMC HS400 - mtk-sd: Make DMA handling more robust - dw_mmc: Prevent hangs for some data writes - dw_mmc: Move away from using the ->init_card() callback - mxs-mmc: Manage the regulator in the error path and in ->remove() - sdhci-cadence: Add support for the Microchip MPFS variant - sdhci-esdhc-imx: Add support for the NXP S32G2 variant - sdhci-of-arasan: Add support for the Intel Thunder Bay variant - sdhci-omap: Prepare to support more SoCs - sdhci-omap: Add support for omap3 and omap4 variants - sdhci-omap: Add support for power management - sdhci-omap: Add support for system wakeups - sdhci-msm: Add support for the msm8226 variant - sdhci-sprd: Verify that the DLL locks according to spec MEMSTICK: - Add error handling of add_disk() - A couple of small fixes and improvements" * tag 'mmc-v5.16' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc: (60 commits) docs: mmc: update maintainer name and URL mmc: dw_mmc: exynos: Fix spelling mistake "candiates" -> candidates MAINTAINERS: drop obsolete file pattern in SDHCI DRIVER section mmc: sdhci-esdhc-imx: add NXP S32G2 support dt-bindings: mmc: fsl-imx-esdhc: add NXP S32G2 support mmc: dw_mmc: Drop use of ->init_card() callback mmc: sdhci-omap: Fix build if CONFIG_PM_SLEEP is not set mmc: sdhci-omap: Remove forward declaration of sdhci_omap_context_save() memstick: r592: Fix a UAF bug when removing the driver mmc: mxs-mmc: disable regulator on error and in the remove function mmc: sdhci-omap: Configure optional wakeirq mmc: sdhci-omap: Allow SDIO card power off and enable aggressive PM mmc: sdhci-omap: Implement PM runtime functions mmc: sdhci-omap: Add omap_offset to support omap3 and earlier mmc: sdhci-omap: Handle voltages to add support omap4 dt-bindings: sdhci-omap: Update binding for legacy SoCs mmc: sdhci-pci: Remove dead code (rst_n_gpio et al) mmc: sdhci-pci: Remove dead code (cd_gpio, cd_irq et al) mmc: sdhci-pci: Remove dead code (struct sdhci_pci_data et al) mmc: sdhci: Remove unused prototype declaration in the header ...
2 parents 316b7ea + 348ecd6 commit 8a73c77

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+670
-410
lines changed

Documentation/devicetree/bindings/mmc/arasan,sdhci.yaml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,12 @@ properties:
8888
description:
8989
For this device it is strongly suggested to include
9090
arasan,soc-ctl-syscon.
91+
- items:
92+
- const: intel,thunderbay-sdhci-5.1 # Intel Thunder Bay eMMC PHY
93+
- const: arasan,sdhci-5.1
94+
description:
95+
For this device it is strongly suggested to include
96+
clock-output-names and '#clock-cells'.
9197

9298
reg:
9399
maxItems: 1
@@ -153,7 +159,6 @@ properties:
153159
The MIO bank number in which the command and data lines are configured.
154160

155161
dependencies:
156-
clock-output-names: [ '#clock-cells' ]
157162
'#clock-cells': [ clock-output-names ]
158163

159164
required:
@@ -301,3 +306,22 @@ examples:
301306
<&scmi_clk KEEM_BAY_PSS_SD0>;
302307
arasan,soc-ctl-syscon = <&sd0_phy_syscon>;
303308
};
309+
310+
- |
311+
#define EMMC_XIN_CLK
312+
#define EMMC_AXI_CLK
313+
#define TBH_PSS_EMMC_RST_N
314+
mmc@80420000 {
315+
compatible = "intel,thunderbay-sdhci-5.1", "arasan,sdhci-5.1";
316+
interrupts = <GIC_SPI 714 IRQ_TYPE_LEVEL_HIGH>;
317+
reg = <0x80420000 0x400>;
318+
clocks = <&scmi_clk EMMC_XIN_CLK>,
319+
<&scmi_clk EMMC_AXI_CLK>;
320+
clock-names = "clk_xin", "clk_ahb";
321+
phys = <&emmc_phy>;
322+
phy-names = "phy_arasan";
323+
assigned-clocks = <&scmi_clk EMMC_XIN_CLK>;
324+
clock-output-names = "emmc_cardclock";
325+
resets = <&rst_pss1 TBH_PSS_EMMC_RST_N>;
326+
#clock-cells = <0x0>;
327+
};

Documentation/devicetree/bindings/mmc/cdns,sdhci.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ properties:
1717
compatible:
1818
items:
1919
- enum:
20+
- microchip,mpfs-sd4hc
2021
- socionext,uniphier-sd4hc
2122
- const: cdns,sd4hc
2223

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ properties:
3434
- fsl,imx6ull-usdhc
3535
- fsl,imx7d-usdhc
3636
- fsl,imx7ulp-usdhc
37+
- nxp,s32g2-usdhc
3738
- items:
3839
- enum:
3940
- fsl,imx8mm-usdhc

Documentation/devicetree/bindings/mmc/mmc-card.txt

Lines changed: 0 additions & 30 deletions
This file was deleted.
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/mmc/mmc-card.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: MMC Card / eMMC Generic Device Tree Bindings
8+
9+
maintainers:
10+
- Ulf Hansson <[email protected]>
11+
12+
description: |
13+
This documents describes the devicetree bindings for a mmc-host controller
14+
child node describing a mmc-card / an eMMC.
15+
16+
properties:
17+
compatible:
18+
const: mmc-card
19+
20+
reg:
21+
const: 0
22+
23+
broken-hpi:
24+
$ref: /schemas/types.yaml#/definitions/flag
25+
description:
26+
Use this to indicate that the mmc-card has a broken hpi
27+
implementation, and that hpi should not be used.
28+
29+
required:
30+
- compatible
31+
- reg
32+
33+
additionalProperties: false
34+
35+
examples:
36+
- |
37+
mmc {
38+
#address-cells = <1>;
39+
#size-cells = <0>;
40+
41+
card@0 {
42+
compatible = "mmc-card";
43+
reg = <0>;
44+
broken-hpi;
45+
};
46+
};
47+
48+
...

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -333,12 +333,6 @@ patternProperties:
333333
subnode describes. A value of 0 denotes the memory SD
334334
function, values from 1 to 7 denote the SDIO functions.
335335

336-
broken-hpi:
337-
$ref: /schemas/types.yaml#/definitions/flag
338-
description:
339-
Use this to indicate that the mmc-card has a broken hpi
340-
implementation, and that hpi should not be used.
341-
342336
required:
343337
- reg
344338

Documentation/devicetree/bindings/mmc/mtk-sd.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,18 @@ properties:
119119
If present, HS400 command responses are sampled on rising edges.
120120
If not present, HS400 command responses are sampled on falling edges.
121121

122+
mediatek,hs400-ds-dly3:
123+
$ref: /schemas/types.yaml#/definitions/uint32
124+
description:
125+
Gear of the third delay line for DS for input data latch in data
126+
pad macro, there are 32 stages from 0 to 31.
127+
For different corner IC, the time is different about one step, it is
128+
about 100ps.
129+
The value is confirmed by doing scan and calibration to find a best
130+
value with corner IC and it is valid only for HS400 mode.
131+
minimum: 0
132+
maximum: 31
133+
122134
mediatek,latch-ck:
123135
$ref: /schemas/types.yaml#/definitions/uint32
124136
description:

Documentation/devicetree/bindings/mmc/sdhci-msm.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Required properties:
1313
string is added to support this change - "qcom,sdhci-msm-v5".
1414
full compatible strings with SoC and version:
1515
"qcom,apq8084-sdhci", "qcom,sdhci-msm-v4"
16+
"qcom,msm8226-sdhci", "qcom,sdhci-msm-v4"
1617
"qcom,msm8974-sdhci", "qcom,sdhci-msm-v4"
1718
"qcom,msm8916-sdhci", "qcom,sdhci-msm-v4"
1819
"qcom,msm8992-sdhci", "qcom,sdhci-msm-v4"

Documentation/devicetree/bindings/mmc/sdhci-omap.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ Refer to mmc.txt for standard MMC bindings.
55
For UHS devices which require tuning, the device tree should have a "cpu_thermal" node which maps to the appropriate thermal zone. This is used to get the temperature of the zone during tuning.
66

77
Required properties:
8-
- compatible: Should be "ti,dra7-sdhci" for DRA7 and DRA72 controllers
8+
- compatible: Should be "ti,omap2430-sdhci" for omap2430 controllers
9+
Should be "ti,omap3-sdhci" for omap3 controllers
10+
Should be "ti,omap4-sdhci" for omap4 and ti81 controllers
11+
Should be "ti,omap5-sdhci" for omap5 controllers
12+
Should be "ti,dra7-sdhci" for DRA7 and DRA72 controllers
913
Should be "ti,k2g-sdhci" for K2G
1014
Should be "ti,am335-sdhci" for am335x controllers
1115
Should be "ti,am437-sdhci" for am437x controllers
@@ -24,6 +28,9 @@ Optional properties:
2428
DMA specifiers listed in dmas. The string naming is to be "tx"
2529
and "rx" for TX and RX DMA requests, respectively.
2630

31+
Deprecated properties:
32+
- ti,non-removable: Compatible with the generic non-removable property
33+
2734
Example:
2835
mmc1: mmc@4809c000 {
2936
compatible = "ti,dra7-sdhci";

Documentation/driver-api/mmc/mmc-tools.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
MMC tools introduction
33
======================
44

5-
There is one MMC test tools called mmc-utils, which is maintained by Chris Ball,
5+
There is one MMC test tools called mmc-utils, which is maintained by Ulf Hansson,
66
you can find it at the below public git repository:
77

8-
https://git.kernel.org/cgit/linux/kernel/git/cjb/mmc-utils.git/
8+
https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git
99

1010
Functions
1111
=========

0 commit comments

Comments
 (0)