mirror of
https://github.com/torvalds/linux.git
synced 2024-12-30 14:52:05 +00:00
9e1c96ed82
Card detect for sdhci on Cubox is connected to the wrong pin (sdio1_cd instead of sdio0_cd). With support for cd-gpios and pinctrl add the corresponding properties to DT for Cubox. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Jason Cooper <jason@lakedaemon.net>
63 lines
1.0 KiB
Plaintext
63 lines
1.0 KiB
Plaintext
/dts-v1/;
|
|
|
|
/include/ "dove.dtsi"
|
|
|
|
/ {
|
|
model = "SolidRun CuBox";
|
|
compatible = "solidrun,cubox", "marvell,dove";
|
|
|
|
memory {
|
|
device_type = "memory";
|
|
reg = <0x00000000 0x40000000>;
|
|
};
|
|
|
|
chosen {
|
|
bootargs = "console=ttyS0,115200n8 earlyprintk";
|
|
};
|
|
|
|
leds {
|
|
compatible = "gpio-leds";
|
|
power {
|
|
label = "Power";
|
|
gpios = <&gpio0 18 1>;
|
|
linux,default-trigger = "default-on";
|
|
};
|
|
};
|
|
};
|
|
|
|
&uart0 { status = "okay"; };
|
|
&sata0 { status = "okay"; };
|
|
&i2c0 { status = "okay"; };
|
|
|
|
&sdio0 {
|
|
status = "okay";
|
|
/* sdio0 card detect is connected to wrong pin on CuBox */
|
|
cd-gpios = <&gpio0 12 1>;
|
|
};
|
|
|
|
&spi0 {
|
|
status = "okay";
|
|
|
|
/* spi0.0: 4M Flash Winbond W25Q32BV */
|
|
spi-flash@0 {
|
|
compatible = "st,w25q32";
|
|
spi-max-frequency = <20000000>;
|
|
reg = <0>;
|
|
};
|
|
};
|
|
|
|
&pinctrl {
|
|
pinctrl-0 = <&pmx_gpio_12 &pmx_gpio_18>;
|
|
pinctrl-names = "default";
|
|
|
|
pmx_gpio_12: pmx-gpio-12 {
|
|
marvell,pins = "mpp12";
|
|
marvell,function = "gpio";
|
|
};
|
|
|
|
pmx_gpio_18: pmx-gpio-18 {
|
|
marvell,pins = "mpp18";
|
|
marvell,function = "gpio";
|
|
};
|
|
};
|