kirkwood-ns2-common.dtsi 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. /include/ "kirkwood.dtsi"
  2. /include/ "kirkwood-6281.dtsi"
  3. / {
  4. chosen {
  5. bootargs = "console=ttyS0,115200n8";
  6. };
  7. ocp@f1000000 {
  8. pinctrl: pinctrl@10000 {
  9. pinctrl-0 = < &pmx_spi &pmx_twsi0 &pmx_uart0
  10. &pmx_ns2_sata0 &pmx_ns2_sata1>;
  11. pinctrl-names = "default";
  12. pmx_ns2_sata0: pmx-ns2-sata0 {
  13. marvell,pins = "mpp21";
  14. marvell,function = "sata0";
  15. };
  16. pmx_ns2_sata1: pmx-ns2-sata1 {
  17. marvell,pins = "mpp20";
  18. marvell,function = "sata1";
  19. };
  20. };
  21. serial@12000 {
  22. clock-frequency = <166666667>;
  23. status = "okay";
  24. };
  25. spi@10600 {
  26. status = "okay";
  27. flash@0 {
  28. #address-cells = <1>;
  29. #size-cells = <1>;
  30. compatible = "mx25l4005a";
  31. reg = <0>;
  32. spi-max-frequency = <20000000>;
  33. mode = <0>;
  34. partition@0 {
  35. reg = <0x0 0x80000>;
  36. label = "u-boot";
  37. };
  38. };
  39. };
  40. i2c@11000 {
  41. status = "okay";
  42. eeprom@50 {
  43. compatible = "at,24c04";
  44. pagesize = <16>;
  45. reg = <0x50>;
  46. };
  47. };
  48. };
  49. gpio_keys {
  50. compatible = "gpio-keys";
  51. #address-cells = <1>;
  52. #size-cells = <0>;
  53. button@1 {
  54. label = "Power push button";
  55. linux,code = <116>;
  56. gpios = <&gpio1 0 0>;
  57. };
  58. };
  59. gpio-leds {
  60. compatible = "gpio-leds";
  61. red-fail {
  62. label = "ns2:red:fail";
  63. gpios = <&gpio0 12 0>;
  64. };
  65. };
  66. gpio_poweroff {
  67. compatible = "gpio-poweroff";
  68. gpios = <&gpio0 31 0>;
  69. };
  70. };