aliases {
serial0 = &uart;
- led-status = &system;
+ led-boot = &led_wps;
+ led-failsafe = &led_wps;
+ led-running = &led_wps;
+ led-upgrade = &led_wps;
+ label-mac-device = ð0;
};
leds {
wlan {
label = "tp-link:green:wlan";
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
- default-state = "off";
linux,default-trigger = "phy0tpt";
};
lan {
label = "tp-link:green:lan";
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
- default-state = "off";
};
- system: wps {
+ led_wps: wps {
label = "tp-link:green:wps";
gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
- default-state = "off";
};
led3g {
label = "tp-link:green:3g";
gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
- default-state = "off";
trigger-sources = <&hub_port>;
linux,default-trigger = "usbport";
};
keys {
compatible = "gpio-keys";
- #address-cells = <1>;
- #size-cells = <0>;
- button0 {
+ reset {
label = "reset";
linux,code = <KEY_RESTART>;
gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
debounce-interval = <60>;
};
- button1 {
+ sw1 {
label = "sw1";
linux,input-type = <EV_SW>;
linux,code = <BTN_0>;
debounce-interval = <60>;
};
- button2 {
+ sw2 {
label = "sw2";
linux,input-type = <EV_SW>;
linux,code = <BTN_1>;
};
&usb {
+ #address-cells = <1>;
+ #size-cells = <0>;
dr_mode = "host";
vbus-supply = <®_usb_vbus>;
status = "okay";
};
&spi {
- num-chipselects = <1>;
status = "okay";
+ num-chipselects = <1>;
+
/* Spansion S25FL032PIF SPI flash */
- spiflash: s25sl032p@0 {
- #address-cells = <1>;
- #size-cells = <1>;
+ flash@0 {
compatible = "jedec,spi-nor";
- spi-max-frequency = <104000000>;
+ spi-max-frequency = <50000000>;
reg = <0>;
partitions {
};
partition@20000 {
+ compatible = "tplink,firmware";
label = "firmware";
reg = <0x020000 0x3c0000>;
};
};
};
-
ð0 {
status = "okay";
ð1 {
status = "okay";
+
compatible = "syscon", "simple-mfd";
};
&wmac {
status = "okay";
+
mtd-cal-data = <&art 0x1000>;
mtd-mac-address = <&uboot 0x1fc00>;
};