model = "Buffalo WZR-HP-G302H A1A0";
aliases {
- led-boot = &diag;
- led-failsafe = &diag;
- led-upgrade = &diag;
+ led-boot = &led_diag;
+ led-failsafe = &led_diag;
+ led-upgrade = &led_diag;
};
extosc: ref {
};
keys {
- compatible = "gpio-keys-polled";
- poll-interval = <20>;
+ compatible = "gpio-keys";
reset {
label = "reset";
debounce-interval = <60>;
};
- button_usb {
+ usb {
label = "usb";
linux,code = <BTN_2>;
gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
leds {
compatible = "gpio-leds";
- diag: diag {
+ led_diag: diag {
label = "buffalo:red:diag";
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
- default-state = "off";
};
};
usb {
label = "buffalo:blue:usb";
gpios = <&ath9k 4 GPIO_ACTIVE_LOW>;
- default-state = "off";
trigger-sources = <&hub_port>;
linux,default-trigger = "usbport";
};
wireless {
label = "buffalo:green:wireless";
gpios = <&ath9k 5 GPIO_ACTIVE_LOW>;
- default-state = "off";
linux,default-trigger = "phy0tpt";
};
security {
label = "buffalo:orange:security";
gpios = <&ath9k 6 GPIO_ACTIVE_LOW>;
- default-state = "off";
};
router {
label = "buffalo:green:router";
gpios = <&ath9k 7 GPIO_ACTIVE_LOW>;
- default-state = "off";
};
movie_engine_on {
label = "buffalo:blue:movie_engine_on";
gpios = <&ath9k 8 GPIO_ACTIVE_LOW>;
- default-state = "off";
};
movie_engine_off {
label = "buffalo:blue:movie_engine_off";
gpios = <&ath9k 9 GPIO_ACTIVE_LOW>;
- default-state = "off";
};
};
&spi {
status = "okay";
+
cs-gpios = <0>, <0>;
num-cs = <2>;