Skip to content

Commit f7f86e8

Browse files
Sowjanya KomatineniUlf Hansson
authored andcommitted
dt-bindings: mmc: tegra: Add tmclk for Tegra210 and later
commit b5a84ec ("mmc: tegra: Add Tegra210 support") Tegra210 and later uses separate SDMMC_LEGACY_TM clock for data timeout. So, this patch adds "tmclk" to Tegra sdhci clock property in the device tree binding. Fixes: b5a84ec ("mmc: tegra: Add Tegra210 support") Cc: stable <stable@vger.kernel.org> # 5.4 Reviewed-by: Jon Hunter <jonathanh@nvidia.com> Signed-off-by: Sowjanya Komatineni <skomatineni@nvidia.com> Link: https://lore.kernel.org/r/1598548861-32373-4-git-send-email-skomatineni@nvidia.com Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
1 parent 391d89d commit f7f86e8

1 file changed

Lines changed: 29 additions & 3 deletions

File tree

Documentation/devicetree/bindings/mmc/nvidia,tegra20-sdhci.txt

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,15 @@ Required properties:
1515
- "nvidia,tegra210-sdhci": for Tegra210
1616
- "nvidia,tegra186-sdhci": for Tegra186
1717
- "nvidia,tegra194-sdhci": for Tegra194
18-
- clocks : Must contain one entry, for the module clock.
19-
See ../clocks/clock-bindings.txt for details.
18+
- clocks: For Tegra210, Tegra186 and Tegra194 must contain two entries.
19+
One for the module clock and one for the timeout clock.
20+
For all other Tegra devices, must contain a single entry for
21+
the module clock. See ../clocks/clock-bindings.txt for details.
22+
- clock-names: For Tegra210, Tegra186 and Tegra194 must contain the
23+
strings 'sdhci' and 'tmclk' to represent the module and
24+
the timeout clocks, respectively.
25+
For all other Tegra devices must contain the string 'sdhci'
26+
to represent the module clock.
2027
- resets : Must contain an entry for each entry in reset-names.
2128
See ../reset/reset.txt for details.
2229
- reset-names : Must include the following entries:
@@ -99,7 +106,7 @@ Optional properties for Tegra210, Tegra186 and Tegra194:
99106

100107
Example:
101108
sdhci@700b0000 {
102-
compatible = "nvidia,tegra210-sdhci", "nvidia,tegra124-sdhci";
109+
compatible = "nvidia,tegra124-sdhci";
103110
reg = <0x0 0x700b0000 0x0 0x200>;
104111
interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
105112
clocks = <&tegra_car TEGRA210_CLK_SDMMC1>;
@@ -115,3 +122,22 @@ sdhci@700b0000 {
115122
nvidia,pad-autocal-pull-down-offset-1v8 = <0x7b>;
116123
status = "disabled";
117124
};
125+
126+
sdhci@700b0000 {
127+
compatible = "nvidia,tegra210-sdhci";
128+
reg = <0x0 0x700b0000 0x0 0x200>;
129+
interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
130+
clocks = <&tegra_car TEGRA210_CLK_SDMMC1>,
131+
<&tegra_car TEGRA210_CLK_SDMMC_LEGACY>;
132+
clock-names = "sdhci", "tmclk";
133+
resets = <&tegra_car 14>;
134+
reset-names = "sdhci";
135+
pinctrl-names = "sdmmc-3v3", "sdmmc-1v8";
136+
pinctrl-0 = <&sdmmc1_3v3>;
137+
pinctrl-1 = <&sdmmc1_1v8>;
138+
nvidia,pad-autocal-pull-up-offset-3v3 = <0x00>;
139+
nvidia,pad-autocal-pull-down-offset-3v3 = <0x7d>;
140+
nvidia,pad-autocal-pull-up-offset-1v8 = <0x7b>;
141+
nvidia,pad-autocal-pull-down-offset-1v8 = <0x7b>;
142+
status = "disabled";
143+
};

0 commit comments

Comments
 (0)