/dts-v1/;
-/include/ "bcm6328.dtsi"
+#include "bcm6328.dtsi"
+
+#include <dt-bindings/input/input.h>
/ {
model = "Sagem F@ST2704V2";
compatible = "sagem,f@st2704v2", "brcm,bcm6328";
+
+ chosen {
+ bootargs = "root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
+ };
+
+ gpio-keys-polled {
+ compatible = "gpio-keys-polled";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ poll-interval = <20>;
+ debounce-interval = <60>;
+
+ rfkill {
+ label = "rfkill";
+ gpios = <&pinctrl 15 1>;
+ linux,code = <KEY_WLAN>;
+ };
+ reset {
+ label = "reset";
+ gpios = <&pinctrl 23 1>;
+ linux,code = <KEY_RESTART>;
+ };
+ wps {
+ label = "wps";
+ gpios = <&pinctrl 24 1>;
+ linux,code = <KEY_WPS_BUTTON>;
+ };
+ };
+};
+
+&leds0 {
+ status = "ok";
+
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_leds>;
+
+ usb_green@1 {
+ reg = <1>;
+ active-low;
+ label = "F@ST2704V2:green:usb";
+ };
+ inet_red@2 {
+ reg = <2>;
+ active-low;
+ label = "F@ST2704V2:red:inet";
+ };
+ dsl_green@3 {
+ reg = <3>;
+ active-low;
+ label = "F@ST2704V2:green:dsl";
+ };
+ power_green@4 {
+ reg = <4>;
+ active-low;
+ label = "F@ST2704V2:green:power";
+ default-state = "on";
+ };
+ power_red@5 {
+ reg = <5>;
+ active-low;
+ label = "F@ST2704V2:red:power";
+ };
+ wps_green@10 {
+ reg = <10>;
+ active-low;
+ label = "F@ST2704V2:green:wps";
+ };
+ inet_green@11 {
+ reg = <11>;
+ active-low;
+ label = "F@ST2704V2:green:inet";
+ };
+};
+
+&pinctrl {
+ pinctrl_leds: leds {
+ function = "led";
+ pins = "gpio1", "gpio2", "gpio3", "gpio4", "gpio5", "gpio10", "gpio11";
+ };
};