brcm63xx: register serial through device tree
[openwrt/staging/mkresin.git] / target / linux / brcm63xx / dts / nb6-ser-r0.dts
index c0182f33e124d1fef177d53a62eb2a7c41674a61..70d719e1e3a47e93f4431927934c6d2dae23f931 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 {
 
                service {
                        label = "service";
-                       gpios = <&gpio0 10 1>;
+                       gpios = <&pinctrl 10 1>;
                        linux,code = <BTN_0>;
                };
                wlan {
                        label = "wlan";
-                       gpios = <&gpio0 12 1>;
+                       gpios = <&pinctrl 12 1>;
                        linux,code = <KEY_WLAN>;
                };
                reset {
                        label = "reset";
-                       gpios = <&gpio0 24 1>;
+                       gpios = <&pinctrl 24 1>;
                        linux,code = <KEY_RESTART>;
                };
                wps {
                        label = "wps";
-                       gpios = <&gpio0 25 1>;
+                       gpios = <&pinctrl 25 1>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
        };
 
        switch {
                compatible = "realtek,rtl8367";
-               gpio-sda = <&gpio0 18 0>;
-               gpio-sck = <&gpio0 20 0>;
+               gpio-sda = <&pinctrl 18 0>;
+               gpio-sck = <&pinctrl 20 0>;
 
                realtek,extif0 = <1 5 1 1 1 1 1 1 2>;
        };
@@ -82,3 +83,7 @@
                };
        };
 };
+
+&uart0 {
+       status = "ok";
+};