kirkwood-lsxl.dtsi 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. /include/ "kirkwood.dtsi"
  2. /include/ "kirkwood-6281.dtsi"
  3. / {
  4. chosen {
  5. bootargs = "console=ttyS0,115200n8 earlyprintk";
  6. };
  7. ocp@f1000000 {
  8. pinctrl: pinctrl@10000 {
  9. pinctrl-0 = < &pmx_power_hdd &pmx_usb_vbus
  10. &pmx_fan_low &pmx_fan_high
  11. &pmx_led_function_red &pmx_led_alarm
  12. &pmx_led_info &pmx_led_power
  13. &pmx_fan_lock &pmx_button_function
  14. &pmx_power_switch &pmx_power_auto_switch
  15. &pmx_led_function_blue >;
  16. pinctrl-names = "default";
  17. pmx_power_hdd: pmx-power-hdd {
  18. marvell,pins = "mpp10";
  19. marvell,function = "gpo";
  20. };
  21. pmx_usb_vbus: pmx-usb-vbus {
  22. marvell,pins = "mpp11";
  23. marvell,function = "gpio";
  24. };
  25. pmx_fan_high: pmx-fan-high {
  26. marvell,pins = "mpp18";
  27. marvell,function = "gpo";
  28. };
  29. pmx_fan_low: pmx-fan-low {
  30. marvell,pins = "mpp19";
  31. marvell,function = "gpo";
  32. };
  33. pmx_led_function_blue: pmx-led-function-blue {
  34. marvell,pins = "mpp36";
  35. marvell,function = "gpio";
  36. };
  37. pmx_led_alarm: pmx-led-alarm {
  38. marvell,pins = "mpp37";
  39. marvell,function = "gpio";
  40. };
  41. pmx_led_info: pmx-led-info {
  42. marvell,pins = "mpp38";
  43. marvell,function = "gpio";
  44. };
  45. pmx_led_power: pmx-led-power {
  46. marvell,pins = "mpp39";
  47. marvell,function = "gpio";
  48. };
  49. pmx_fan_lock: pmx-fan-lock {
  50. marvell,pins = "mpp40";
  51. marvell,function = "gpio";
  52. };
  53. pmx_button_function: pmx-button-function {
  54. marvell,pins = "mpp41";
  55. marvell,function = "gpio";
  56. };
  57. pmx_power_switch: pmx-power-switch {
  58. marvell,pins = "mpp42";
  59. marvell,function = "gpio";
  60. };
  61. pmx_power_auto_switch: pmx-power-auto-switch {
  62. marvell,pins = "mpp43";
  63. marvell,function = "gpio";
  64. };
  65. pmx_led_function_red: pmx-led-function_red {
  66. marvell,pins = "mpp48";
  67. marvell,function = "gpio";
  68. };
  69. };
  70. sata@80000 {
  71. status = "okay";
  72. nr-ports = <1>;
  73. };
  74. spi@10600 {
  75. status = "okay";
  76. m25p40@0 {
  77. #address-cells = <1>;
  78. #size-cells = <1>;
  79. compatible = "m25p40";
  80. reg = <0>;
  81. spi-max-frequency = <25000000>;
  82. mode = <0>;
  83. partition@0 {
  84. reg = <0x0 0x60000>;
  85. label = "uboot";
  86. read-only;
  87. };
  88. partition@60000 {
  89. reg = <0x60000 0x10000>;
  90. label = "dtb";
  91. read-only;
  92. };
  93. partition@70000 {
  94. reg = <0x70000 0x10000>;
  95. label = "uboot_env";
  96. };
  97. };
  98. };
  99. };
  100. gpio_keys {
  101. compatible = "gpio-keys";
  102. #address-cells = <1>;
  103. #size-cells = <0>;
  104. button@1 {
  105. label = "Function Button";
  106. linux,code = <357>;
  107. gpios = <&gpio1 9 1>;
  108. };
  109. button@2 {
  110. label = "Power-on Switch";
  111. linux,code = <0>;
  112. linux,input-type = <5>;
  113. gpios = <&gpio1 10 1>;
  114. };
  115. button@3 {
  116. label = "Power-auto Switch";
  117. linux,code = <1>;
  118. linux,input-type = <5>;
  119. gpios = <&gpio1 11 1>;
  120. };
  121. };
  122. gpio_leds {
  123. compatible = "gpio-leds";
  124. led@1 {
  125. label = "lsxl:blue:func";
  126. gpios = <&gpio1 4 1>;
  127. };
  128. led@2 {
  129. label = "lsxl:red:alarm";
  130. gpios = <&gpio1 5 1>;
  131. };
  132. led@3 {
  133. label = "lsxl:amber:info";
  134. gpios = <&gpio1 6 1>;
  135. };
  136. led@4 {
  137. label = "lsxl:blue:power";
  138. gpios = <&gpio1 7 1>;
  139. linux,default-trigger = "default-on";
  140. };
  141. led@5 {
  142. label = "lsxl:red:func";
  143. gpios = <&gpio1 16 1>;
  144. };
  145. };
  146. gpio_fan {
  147. compatible = "gpio-fan";
  148. gpios = <&gpio0 19 1
  149. &gpio0 18 1>;
  150. gpio-fan,speed-map = <0 3
  151. 1500 2
  152. 3250 1
  153. 5000 0>;
  154. alarm-gpios = <&gpio1 8 0>;
  155. };
  156. regulators {
  157. compatible = "simple-bus";
  158. #address-cells = <1>;
  159. #size-cells = <0>;
  160. usb_power: regulator@1 {
  161. compatible = "regulator-fixed";
  162. reg = <1>;
  163. regulator-name = "USB Power";
  164. regulator-min-microvolt = <5000000>;
  165. regulator-max-microvolt = <5000000>;
  166. enable-active-high;
  167. regulator-always-on;
  168. regulator-boot-on;
  169. gpio = <&gpio0 11 0>;
  170. };
  171. hdd_power: regulator@2 {
  172. compatible = "regulator-fixed";
  173. reg = <2>;
  174. regulator-name = "HDD Power";
  175. regulator-min-microvolt = <5000000>;
  176. regulator-max-microvolt = <5000000>;
  177. enable-active-high;
  178. regulator-always-on;
  179. regulator-boot-on;
  180. gpio = <&gpio0 10 0>;
  181. };
  182. };
  183. };