107-03-nsa325.patch 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. --- a/arch/arm/boot/dts/kirkwood-nsa325.dts
  2. +++ b/arch/arm/boot/dts/kirkwood-nsa325.dts
  3. @@ -15,6 +15,13 @@
  4. model = "ZyXEL NSA325";
  5. compatible = "zyxel,nsa325", "marvell,kirkwood-88f6282", "marvell,kirkwood";
  6. + aliases {
  7. + led-boot = &led_green_sys;
  8. + led-failsafe = &led_orange_sys;
  9. + led-running = &led_green_sys;
  10. + led-upgrade = &led_orange_sys;
  11. + };
  12. +
  13. memory {
  14. device_type = "memory";
  15. reg = <0x00000000 0x20000000>;
  16. @@ -162,17 +169,19 @@
  17. &pmx_led_hdd1_green &pmx_led_hdd1_red>;
  18. pinctrl-names = "default";
  19. - green-sys {
  20. + led_green_sys: green-sys {
  21. label = "nsa325:green:sys";
  22. gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>;
  23. + default-state = "on";
  24. };
  25. - orange-sys {
  26. + led_orange_sys: orange-sys {
  27. label = "nsa325:orange:sys";
  28. gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>;
  29. };
  30. green-hdd1 {
  31. label = "nsa325:green:hdd1";
  32. gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>;
  33. + linux,default-trigger = "ata1";
  34. };
  35. red-hdd1 {
  36. label = "nsa325:red:hdd1";
  37. @@ -181,6 +190,7 @@
  38. green-hdd2 {
  39. label = "nsa325:green:hdd2";
  40. gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
  41. + linux,default-trigger = "ata2";
  42. };
  43. red-hdd2 {
  44. label = "nsa325:red:hdd2";
  45. @@ -189,6 +199,7 @@
  46. green-usb {
  47. label = "nsa325:green:usb";
  48. gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>;
  49. + linux,default-trigger = "usb-host";
  50. };
  51. green-copy {
  52. label = "nsa325:green:copy";