model = "Buffalo WZR-HP-AG300H/WZR-600DHP";
aliases {
- led-boot = &diag;
- led-failsafe = &diag;
- led-upgrade = &diag;
+ led-boot = &led_diag;
+ led-failsafe = &led_diag;
+ led-upgrade = &led_diag;
};
chosen {
clock-frequency = <40000000>;
};
- gpio-leds {
+ leds {
compatible = "gpio-leds";
- diag: diag {
+ led_diag: diag {
label = "buffalo:red:diag";
gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
- default-state = "off";
};
};
ath9k-leds {
- // those leds are indeed attached to the wifi chips
-
compatible = "gpio-leds";
+
band2g_a {
label = "buffalo:amber:band2g";
gpios = <&ath9k0 1 GPIO_ACTIVE_LOW>;
- default-state = "off";
};
usb {
label = "buffalo:green:usb";
gpios = <&ath9k0 3 GPIO_ACTIVE_LOW>;
- default-state = "off";
- trigger-sources = <&usb_ochi_port>, <&usb_echi_port>;
+ trigger-sources = <&usb_ohci_port>, <&usb_ehci_port>;
linux,default-trigger = "usbport";
};
band2g_g {
label = "buffalo:green:band2g";
gpios = <&ath9k0 5 GPIO_ACTIVE_LOW>;
- default-state = "off";
linux,default-trigger = "phy0tpt";
};
band5g_g {
label = "buffalo:green:band5g";
gpios = <&ath9k1 1 GPIO_ACTIVE_LOW>;
- default-state = "off";
linux,default-trigger = "phy1tpt";
};
router {
label = "buffalo:green:router";
gpios = <&ath9k1 3 GPIO_ACTIVE_LOW>;
- default-state = "off";
};
movie_engine {
label = "buffalo:blue:movie_engine";
gpios = <&ath9k1 4 GPIO_ACTIVE_LOW>;
- default-state = "off";
};
band5g_a {
label = "buffalo:amber:band5g";
gpios = <&ath9k1 5 GPIO_ACTIVE_LOW>;
- default-state = "off";
};
};
- gpio-keys-polled {
- compatible = "gpio-keys-polled";
- poll-interval = <20>;
+ keys {
+ compatible = "gpio-keys";
reset {
linux,code = <KEY_RESTART>;
};
partition@60000 {
+ compatible = "denx,uimage";
label = "firmware";
reg = <0x0060000 0x1f90000>;
};
#size-cells = <0>;
status = "okay";
- usb_ochi_port: port@1 {
+ usb_ohci_port: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
#size-cells = <0>;
status = "okay";
- usb_echi_port: port@1 {
+ usb_ehci_port: port@1 {
reg = <1>;
#trigger-source-cells = <0>;
};
&spi {
status = "okay";
+
num-cs = <2>;
cs-gpios = <0>, <0>;
flash0: flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
- spi-max-frequency = <104000000>;
+ spi-max-frequency = <50000000>;
m25p,fast-read;
};
flash1: flash@1 {
compatible = "jedec,spi-nor";
reg = <1>;
- spi-max-frequency = <104000000>;
+ spi-max-frequency = <50000000>;
m25p,fast-read;
};
};