kirkwood-ns2mini.dts 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. /* This machine is embedded in the first LaCie CloudBox product. */
  7. model = "LaCie Network Space Mini v2";
  8. compatible = "lacie,netspace_mini_v2", "marvell,kirkwood-88f6192", "marvell,kirkwood";
  9. memory {
  10. device_type = "memory";
  11. reg = <0x00000000 0x8000000>;
  12. };
  13. ocp@f1000000 {
  14. sata@80000 {
  15. pinctrl-0 = <&pmx_ns2_sata0>;
  16. pinctrl-names = "default";
  17. status = "okay";
  18. nr-ports = <1>;
  19. };
  20. };
  21. gpio_fan {
  22. compatible = "gpio-fan";
  23. gpios = <&gpio0 22 GPIO_ACTIVE_LOW
  24. &gpio0 7 GPIO_ACTIVE_LOW
  25. &gpio1 1 GPIO_ACTIVE_LOW
  26. &gpio0 23 GPIO_ACTIVE_LOW>;
  27. gpio-fan,speed-map =
  28. < 0 0
  29. 3000 15
  30. 3180 14
  31. 4140 13
  32. 4570 12
  33. 6760 11
  34. 7140 10
  35. 7980 9
  36. 9200 8>;
  37. alarm-gpios = <&gpio0 25 GPIO_ACTIVE_LOW>;
  38. };
  39. ns2-leds {
  40. compatible = "lacie,ns2-leds";
  41. blue-sata {
  42. label = "ns2:blue:sata";
  43. slow-gpio = <&gpio0 29 0>;
  44. cmd-gpio = <&gpio0 30 0>;
  45. modes-map = <NS_V2_LED_OFF 1 0
  46. NS_V2_LED_ON 0 1
  47. NS_V2_LED_ON 1 1
  48. NS_V2_LED_SATA 0 0>;
  49. };
  50. };
  51. };
  52. &ethphy0 { reg = <0>; };