Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding bcm2835-sdhost driver, and an overlay to enable it
BCM2835 has two SD card interfaces. This driver uses the other one.
- Loading branch information
1 parent
c8ffccd
commit d441bcb
Showing
7 changed files
with
1,740 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
/dts-v1/; | ||
/plugin/; | ||
|
||
/{ | ||
compatible = "brcm,bcm2708"; | ||
|
||
fragment@0 { | ||
target = <&soc>; | ||
__overlay__ { | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
|
||
sdhost: sdhost@7e202000 { | ||
compatible = "brcm,bcm2835-sdhost"; | ||
reg = <0x7e202000 0x100>; | ||
interrupts = <2 24>; | ||
clocks = <&clk_sdhost>; | ||
dmas = <&dma 13>, | ||
<&dma 13>; | ||
dma-names = "tx", "rx"; | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&sdhost_pins>; | ||
status = "okay"; | ||
}; | ||
|
||
clocks { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
clk_sdhost: clock@3 { | ||
compatible = "fixed-clock"; | ||
reg = <0>; | ||
#clock-cells = <0>; | ||
clock-output-names = "sdhost"; | ||
clock-frequency = <250000000>; | ||
}; | ||
}; | ||
}; | ||
}; | ||
|
||
fragment@1 { | ||
target = <&gpio>; | ||
__overlay__ { | ||
sdhost_pins: sdhost_pins { | ||
brcm,pins = <48 49 50 51 52 53>; | ||
brcm,function = <4>; /* alt0 */ | ||
}; | ||
}; | ||
}; | ||
|
||
fragment@2 { | ||
target = <&mmc>; | ||
__overlay__ { | ||
/* Find a way to disable the other driver */ | ||
compatible = ""; | ||
status = "disabled"; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
d441bcb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
depends on MACH_BCM2708 || MACH_BCM2709 || ARCH_BCM2835
would be nice.