kirkwood-lsxl.dtsi 4.7 KB

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