kirkwood-ns2max.dts 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. // SPDX-License-Identifier: GPL-2.0
  2. /dts-v1/;
  3. #include <dt-bindings/leds/leds-ns2.h>
  4. #include "kirkwood-ns2-common.dtsi"
  5. / {
  6. model = "LaCie Network Space Max v2";
  7. compatible = "lacie,netspace_max_v2", "marvell,kirkwood-88f6281", "marvell,kirkwood";
  8. memory {
  9. device_type = "memory";
  10. reg = <0x00000000 0x10000000>;
  11. };
  12. ocp@f1000000 {
  13. sata@80000 {
  14. pinctrl-0 = <&pmx_ns2_sata0 &pmx_ns2_sata1>;
  15. pinctrl-names = "default";
  16. status = "okay";
  17. nr-ports = <2>;
  18. };
  19. };
  20. gpio_fan {
  21. compatible = "gpio-fan";
  22. gpios = <&gpio0 22 GPIO_ACTIVE_LOW
  23. &gpio0 7 GPIO_ACTIVE_LOW
  24. &gpio1 1 GPIO_ACTIVE_LOW
  25. &gpio0 23 GPIO_ACTIVE_LOW>;
  26. gpio-fan,speed-map =
  27. < 0 0
  28. 1500 15
  29. 1700 14
  30. 1800 13
  31. 2100 12
  32. 3100 11
  33. 3300 10
  34. 4300 9
  35. 5500 8>;
  36. alarm-gpios = <&gpio0 25 GPIO_ACTIVE_LOW>;
  37. };
  38. ns2-leds {
  39. compatible = "lacie,ns2-leds";
  40. blue-sata {
  41. label = "ns2:blue:sata";
  42. slow-gpio = <&gpio0 29 0>;
  43. cmd-gpio = <&gpio0 30 0>;
  44. modes-map = <NS_V2_LED_OFF 1 0
  45. NS_V2_LED_ON 0 1
  46. NS_V2_LED_ON 1 1
  47. NS_V2_LED_SATA 0 0>;
  48. };
  49. };
  50. };
  51. &ethphy0 { reg = <8>; };