]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - arch/arm/boot/dts/overlays/sdio-1bit-overlay.dts
overlays: Add updated mmc1 alias to sdio overlays
[mirror_ubuntu-bionic-kernel.git] / arch / arm / boot / dts / overlays / sdio-1bit-overlay.dts
1 /dts-v1/;
2 /plugin/;
3
4 /* Enable 1-bit SDIO from MMC interface via GPIOs 22-25. Includes sdhost overlay. */
5
6 /{
7 compatible = "brcm,bcm2708";
8
9 fragment@0 {
10 target = <&mmc>;
11 __overlay__ {
12 status = "disabled";
13 };
14 };
15
16 fragment@1 {
17 target = <&soc>;
18 __overlay__ {
19 #address-cells = <1>;
20 #size-cells = <1>;
21
22 sdio_1bit: sdio@7e300000 {
23 compatible = "brcm,bcm2835-mmc",
24 "brcm,bcm2835-sdhci";
25 reg = <0x7e300000 0x100>;
26 interrupts = <2 30>;
27 clocks = <&clocks 28/*BCM2835_CLOCK_EMMC*/>;
28 dmas = <&dma 11>;
29 dma-names = "rx-tx";
30 brcm,overclock-50 = <0>;
31 status = "okay";
32 pinctrl-names = "default";
33 pinctrl-0 = <&sdio_1bit_pins>;
34 non-removable;
35 bus-width = <1>;
36 };
37 };
38 };
39
40 fragment@2 {
41 target = <&gpio>;
42 __overlay__ {
43 sdio_1bit_pins: sdio_1bit_pins {
44 brcm,pins = <22 23 24 25>;
45 brcm,function = <7>; /* ALT3 = SD1 */
46 brcm,pull = <0 2 2 2>;
47 };
48 };
49 };
50
51 fragment@3 {
52 target-path = "/aliases";
53 __overlay__ {
54 mmc1 = "/soc/sdio@7e300000";
55 };
56 };
57
58
59 __overrides__ {
60 poll_once = <&sdio_1bit>,"non-removable?";
61 sdio_overclock = <&sdio_1bit>,"brcm,overclock-50:0";
62 };
63 };