Skip to content

Commit 42a57a4

Browse files
krzkpalmer-dabbelt
authored andcommitted
riscv: dts: microchip: drop duplicated MMC/SDHC node
Devicetree source is a description of hardware and hardware has only one block @20008000 which can be configured either as eMMC or SDHC. Having two node for different modes is an obscure, unusual and confusing way to configure it. Instead the board file is supposed to customize the block to its needs, e.g. to SDHC mode. This fixes dtbs_check warning: arch/riscv/boot/dts/microchip/microchip-mpfs-icicle-kit.dt.yaml: sdhc@20008000: $nodename:0: 'sdhc@20008000' does not match '^mmc(@.*)?$' Signed-off-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent fd86dd2 commit 42a57a4

File tree

2 files changed

+12
-28
lines changed

2 files changed

+12
-28
lines changed

arch/riscv/boot/dts/microchip/microchip-mpfs-icicle-kit.dts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,17 @@
5151
status = "okay";
5252
};
5353

54-
&sdcard {
54+
&mmc {
5555
status = "okay";
56+
57+
bus-width = <4>;
58+
disable-wp;
59+
cap-sd-highspeed;
60+
card-detect-delay = <200>;
61+
sd-uhs-sdr12;
62+
sd-uhs-sdr25;
63+
sd-uhs-sdr50;
64+
sd-uhs-sdr104;
5665
};
5766

5867
&emac0 {

arch/riscv/boot/dts/microchip/microchip-mpfs.dtsi

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -262,39 +262,14 @@
262262
status = "disabled";
263263
};
264264

265-
emmc: mmc@20008000 {
265+
/* Common node entry for emmc/sd */
266+
mmc: mmc@20008000 {
266267
compatible = "cdns,sd4hc";
267268
reg = <0x0 0x20008000 0x0 0x1000>;
268269
interrupt-parent = <&plic>;
269270
interrupts = <88 89>;
270271
pinctrl-names = "default";
271272
clocks = <&clkcfg 6>;
272-
bus-width = <4>;
273-
cap-mmc-highspeed;
274-
mmc-ddr-3_3v;
275-
max-frequency = <200000000>;
276-
non-removable;
277-
no-sd;
278-
no-sdio;
279-
voltage-ranges = <3300 3300>;
280-
status = "disabled";
281-
};
282-
283-
sdcard: sdhc@20008000 {
284-
compatible = "cdns,sd4hc";
285-
reg = <0x0 0x20008000 0x0 0x1000>;
286-
interrupt-parent = <&plic>;
287-
interrupts = <88>;
288-
pinctrl-names = "default";
289-
clocks = <&clkcfg 6>;
290-
bus-width = <4>;
291-
disable-wp;
292-
cap-sd-highspeed;
293-
card-detect-delay = <200>;
294-
sd-uhs-sdr12;
295-
sd-uhs-sdr25;
296-
sd-uhs-sdr50;
297-
sd-uhs-sdr104;
298273
max-frequency = <200000000>;
299274
status = "disabled";
300275
};

0 commit comments

Comments
 (0)