kirkwood-d2net.dts 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * Device Tree file for d2 Network v2
  3. *
  4. * Copyright (C) 2014 Simon Guinot <simon.guinot@sequanux.org>
  5. *
  6. * This file is licensed under the terms of the GNU General Public
  7. * License version 2. This program is licensed "as is" without any
  8. * warranty of any kind, whether express or implied.
  9. */
  10. /dts-v1/;
  11. #include <dt-bindings/leds/leds-ns2.h>
  12. #include "kirkwood-netxbig.dtsi"
  13. / {
  14. model = "LaCie d2 Network v2";
  15. compatible = "lacie,d2net_v2", "lacie,netxbig", "marvell,kirkwood-88f6281", "marvell,kirkwood";
  16. memory {
  17. device_type = "memory";
  18. reg = <0x00000000 0x10000000>;
  19. };
  20. ns2-leds {
  21. compatible = "lacie,ns2-leds";
  22. blue-sata {
  23. label = "d2net_v2:blue:sata";
  24. slow-gpio = <&gpio0 29 GPIO_ACTIVE_HIGH>;
  25. cmd-gpio = <&gpio0 30 GPIO_ACTIVE_HIGH>;
  26. modes-map = <NS_V2_LED_OFF 1 0
  27. NS_V2_LED_ON 0 1
  28. NS_V2_LED_ON 1 1
  29. NS_V2_LED_SATA 0 0>;
  30. };
  31. };
  32. gpio-leds {
  33. compatible = "gpio-leds";
  34. red-fail {
  35. label = "d2net_v2:red:fail";
  36. gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
  37. };
  38. };
  39. };