ARM: dts: kirkwood: fix SD slot default configuration for OpenRD
authorAaro Koskinen <aaro.koskinen@iki.fi>
Tue, 12 Jan 2016 20:07:33 +0000 (22:07 +0200)
committerGregory CLEMENT <gregory.clement@free-electrons.com>
Tue, 9 Feb 2016 10:00:22 +0000 (11:00 +0100)
The SD card slot was enabled by default with legacy booting.
It does not work anymore with DT boot. Fix by providing GPIO configuration
that matches the old default.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
arch/arm/boot/dts/kirkwood-openrd.dtsi

index 2a3dafdab09aaef5aa2326a5cd7e654e5e4784ea..f65b7273bb0aa792203c938f0871965c448826e6 100644 (file)
                        status = "okay";
                        cd-gpios = <&gpio0 29 9>;
                };
+               gpio@10140 {
+                       p2 {
+                               gpio-hog;
+                               gpios = <2 GPIO_ACTIVE_HIGH>;
+                               output-high; /* Select SD by default */
+                               line-name = "SelUARTorSD";
+                       };
+               };
        };
 };