kirkwood-ns2-common.dtsi 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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. status = "okay";
  23. };
  24. spi@10600 {
  25. status = "okay";
  26. flash@0 {
  27. #address-cells = <1>;
  28. #size-cells = <1>;
  29. compatible = "mx25l4005a";
  30. reg = <0>;
  31. spi-max-frequency = <20000000>;
  32. mode = <0>;
  33. partition@0 {
  34. reg = <0x0 0x80000>;
  35. label = "u-boot";
  36. };
  37. };
  38. };
  39. i2c@11000 {
  40. status = "okay";
  41. eeprom@50 {
  42. compatible = "at,24c04";
  43. pagesize = <16>;
  44. reg = <0x50>;
  45. };
  46. };
  47. };
  48. gpio_keys {
  49. compatible = "gpio-keys";
  50. #address-cells = <1>;
  51. #size-cells = <0>;
  52. button@1 {
  53. label = "Power push button";
  54. linux,code = <116>;
  55. gpios = <&gpio1 0 0>;
  56. };
  57. };
  58. gpio-leds {
  59. compatible = "gpio-leds";
  60. red-fail {
  61. label = "ns2:red:fail";
  62. gpios = <&gpio0 12 0>;
  63. };
  64. };
  65. gpio_poweroff {
  66. compatible = "gpio-poweroff";
  67. gpios = <&gpio0 31 0>;
  68. };
  69. };