Skip to content

Commit

Permalink
BCM270X_DT: Tidy up mmc, sdhost, sdio overlays
Browse files Browse the repository at this point in the history
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 <phil@raspberrypi.org>
  • Loading branch information
Phil Elwell authored and popcornmix committed Jul 13, 2017
1 parent 80b801a commit 715cf23
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
1 change: 1 addition & 0 deletions arch/arm/boot/dts/overlays/mmc-overlay.dts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
mmc_pins: mmc_pins {
brcm,pins = <48 49 50 51 52 53>;
brcm,function = <7>; /* alt3 */
brcm,pull = <0 2 2 2 2 2>;
};
};
};
Expand Down
1 change: 0 additions & 1 deletion arch/arm/boot/dts/overlays/sdhost-overlay.dts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
frag0: __overlay__ {
brcm,overclock-50 = <0>;
brcm,pio-limit = <1>;
brcm,debug-flags = <0>;
status = "okay";
};
};
Expand Down
11 changes: 6 additions & 5 deletions arch/arm/boot/dts/overlays/sdio-1bit-overlay.dts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
/* Enable 1-bit SDIO from MMC interface via GPIOs 22-25. Includes sdhost overlay. */
/dts-v1/;
/plugin/;

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

/{
compatible = "brcm,bcm2708";

fragment@3 {
fragment@0 {
target = <&mmc>;
sdio_mmc: __overlay__ {
compatible = "brcm,bcm2835-mmc";
Expand All @@ -18,12 +19,12 @@
};
};

fragment@4 {
fragment@1 {
target = <&gpio>;
__overlay__ {
sdio_pins: sdio_pins {
brcm,pins = <22 23 24 25>;
brcm,function = <7 7 7 7>; /* ALT3 = SD1 */
brcm,function = <7>; /* ALT3 = SD1 */
brcm,pull = <0 2 2 2>;
};
};
Expand Down
11 changes: 6 additions & 5 deletions arch/arm/boot/dts/overlays/sdio-overlay.dts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
/* Enable SDIO from MMC interface via GPIOs 22-27. Includes sdhost overlay. */
/dts-v1/;
/plugin/;

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

/{
compatible = "brcm,bcm2708";

fragment@3 {
fragment@0 {
target = <&mmc>;
sdio_mmc: __overlay__ {
pinctrl-names = "default";
Expand All @@ -17,12 +18,12 @@
};
};

fragment@4 {
fragment@1 {
target = <&gpio>;
__overlay__ {
sdio_pins: sdio_pins {
brcm,pins = <22 23 24 25 26 27>;
brcm,function = <7 7 7 7 7 7>; /* ALT3 = SD1 */
brcm,function = <7>; /* ALT3 = SD1 */
brcm,pull = <0 2 2 2 2 2>;
};
};
Expand Down

0 comments on commit 715cf23

Please sign in to comment.