kirkwood-ns2-common.dtsi 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. #include "kirkwood.dtsi"
  2. #include "kirkwood-6281.dtsi"
  3. / {
  4. chosen {
  5. bootargs = "console=ttyS0,115200n8";
  6. stdout-path = &uart0;
  7. };
  8. ocp@f1000000 {
  9. pinctrl: pin-controller@10000 {
  10. pmx_ns2_sata0: pmx-ns2-sata0 {
  11. marvell,pins = "mpp21";
  12. marvell,function = "sata0";
  13. };
  14. pmx_ns2_sata1: pmx-ns2-sata1 {
  15. marvell,pins = "mpp20";
  16. marvell,function = "sata1";
  17. };
  18. };
  19. serial@12000 {
  20. status = "okay";
  21. };
  22. spi@10600 {
  23. status = "okay";
  24. flash@0 {
  25. #address-cells = <1>;
  26. #size-cells = <1>;
  27. compatible = "mxicy,mx25l4005a";
  28. reg = <0>;
  29. spi-max-frequency = <20000000>;
  30. mode = <0>;
  31. partition@0 {
  32. reg = <0x0 0x80000>;
  33. label = "u-boot";
  34. };
  35. };
  36. };
  37. i2c@11000 {
  38. status = "okay";
  39. eeprom@50 {
  40. compatible = "atmel,24c04";
  41. pagesize = <16>;
  42. reg = <0x50>;
  43. };
  44. };
  45. };
  46. gpio_keys {
  47. compatible = "gpio-keys";
  48. #address-cells = <1>;
  49. #size-cells = <0>;
  50. button@1 {
  51. label = "Power push button";
  52. linux,code = <KEY_POWER>;
  53. gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>;
  54. };
  55. };
  56. gpio-leds {
  57. compatible = "gpio-leds";
  58. red-fail {
  59. label = "ns2:red:fail";
  60. gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
  61. };
  62. };
  63. gpio_poweroff {
  64. compatible = "gpio-poweroff";
  65. gpios = <&gpio0 31 GPIO_ACTIVE_HIGH>;
  66. };
  67. };
  68. &mdio {
  69. status = "okay";
  70. ethphy0: ethernet-phy {
  71. /* overwrite reg property in board file */
  72. };
  73. };
  74. &eth0 {
  75. status = "okay";
  76. ethernet0-port@0 {
  77. phy-handle = <&ethphy0>;
  78. };
  79. };