brcm63xx: register serial through device tree
[openwrt/staging/rmilecki.git] / target / linux / brcm63xx / dts / cpva502plus.dts
index 3ddc459836c11bd2144c82d97b2e113dbb09f6a8..6d8455e91c93fc3bbafb7b970ac5c11f31cc58ec 100644 (file)
@@ -10,6 +10,7 @@
 
        chosen {
                bootargs = "root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
+               stdout-path = "serial0:115200n8";
        };
 
        gpio-keys-polled {
@@ -21,7 +22,7 @@
 
                reset {
                        label = "reset";
-                       gpios = <&gpio1 4 1>;
+                       gpios = <&pinctrl 36 1>;
                        linux,code = <KEY_RESTART>;
                };
        };
 
                phone_green {
                        label = "CPVA502+:green:phone";
-                       gpios = <&gpio0 0 1>;
+                       gpios = <&pinctrl 0 1>;
                };
 
                link_amber {
                        label = "CPVA502+:amber:link";
-                       gpios = <&gpio0 5 1>;
+                       gpios = <&pinctrl 5 1>;
                };
        };
 };
                reg = <0x3f0000 0x010000>;
        };
 };
+
+&pinctrl {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_pci &pinctrl_ext_mii>;
+};
+
+&uart0 {
+       status = "ok";
+};