kirkwood-lsxl.dtsi 4.2 KB

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