Skip to content

Commit de776fe

Browse files
author
Phil Elwell
committed
BCM270X_DT: Tidy up mmc, sdhost, sdio overlays
The mmc, sdhost, sdio and sdio-1bit overlays had a few anachronisms and oddities which were overdue for fixing. The new versions should be functionally equivalent. Signed-off-by: Phil Elwell <[email protected]>
1 parent 2f2836b commit de776fe

File tree

4 files changed

+13
-11
lines changed

4 files changed

+13
-11
lines changed

arch/arm/boot/dts/overlays/mmc-overlay.dts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
mmc_pins: mmc_pins {
2222
brcm,pins = <48 49 50 51 52 53>;
2323
brcm,function = <7>; /* alt3 */
24+
brcm.pull = <0 2 2 2 2 2>;
2425
};
2526
};
2627
};

arch/arm/boot/dts/overlays/sdhost-overlay.dts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
frag0: __overlay__ {
1212
brcm,overclock-50 = <0>;
1313
brcm,pio-limit = <1>;
14-
brcm,debug-flags = <0>;
1514
status = "okay";
1615
};
1716
};

arch/arm/boot/dts/overlays/sdio-1bit-overlay.dts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
/* Enable 1-bit SDIO from MMC interface via GPIOs 22-25. Includes sdhost overlay. */
1+
/dts-v1/;
2+
/plugin/;
23

3-
/include/ "sdhost-overlay.dts"
4+
/* Enable 1-bit SDIO from MMC interface via GPIOs 22-25. Includes sdhost overlay. */
45

56
/{
67
compatible = "brcm,bcm2708";
78

8-
fragment@3 {
9+
fragment@0 {
910
target = <&mmc>;
1011
sdio_mmc: __overlay__ {
1112
compatible = "brcm,bcm2835-mmc";
@@ -18,12 +19,12 @@
1819
};
1920
};
2021

21-
fragment@4 {
22+
fragment@1 {
2223
target = <&gpio>;
2324
__overlay__ {
2425
sdio_pins: sdio_pins {
2526
brcm,pins = <22 23 24 25>;
26-
brcm,function = <7 7 7 7>; /* ALT3 = SD1 */
27+
brcm,function = <7>; /* ALT3 = SD1 */
2728
brcm,pull = <0 2 2 2>;
2829
};
2930
};

arch/arm/boot/dts/overlays/sdio-overlay.dts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
/* Enable SDIO from MMC interface via GPIOs 22-27. Includes sdhost overlay. */
1+
/dts-v1/;
2+
/plugin/;
23

3-
/include/ "sdhost-overlay.dts"
4+
/* Enable SDIO from MMC interface via GPIOs 22-27. Includes sdhost overlay. */
45

56
/{
67
compatible = "brcm,bcm2708";
78

8-
fragment@3 {
9+
fragment@0 {
910
target = <&mmc>;
1011
sdio_mmc: __overlay__ {
1112
pinctrl-names = "default";
@@ -17,12 +18,12 @@
1718
};
1819
};
1920

20-
fragment@4 {
21+
fragment@1 {
2122
target = <&gpio>;
2223
__overlay__ {
2324
sdio_pins: sdio_pins {
2425
brcm,pins = <22 23 24 25 26 27>;
25-
brcm,function = <7 7 7 7 7 7>; /* ALT3 = SD1 */
26+
brcm,function = <7>; /* ALT3 = SD1 */
2627
brcm,pull = <0 2 2 2 2 2>;
2728
};
2829
};

0 commit comments

Comments
 (0)