kirkwood-ns2-common.dtsi 1.5 KB

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