kirkwood-openblocks_a6.dts 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. /dts-v1/;
  2. #include "kirkwood.dtsi"
  3. #include "kirkwood-6282.dtsi"
  4. / {
  5. model = "Plat'Home OpenBlocksA6";
  6. compatible = "plathome,openblocks-a6", "marvell,kirkwood-88f6283", "marvell,kirkwood";
  7. memory {
  8. device_type = "memory";
  9. reg = <0x00000000 0x20000000>;
  10. };
  11. chosen {
  12. bootargs = "console=ttyS0,115200n8 earlyprintk";
  13. stdout-path = &uart0;
  14. };
  15. ocp@f1000000 {
  16. serial@12000 {
  17. status = "okay";
  18. };
  19. serial@12100 {
  20. status = "okay";
  21. };
  22. sata@80000 {
  23. nr-ports = <1>;
  24. status = "okay";
  25. };
  26. i2c@11100 {
  27. status = "okay";
  28. s35390a: s35390a@30 {
  29. compatible = "sii,s35390a";
  30. reg = <0x30>;
  31. };
  32. };
  33. pinctrl: pin-controller@10000 {
  34. pinctrl-0 = <&pmx_dip_switches &pmx_gpio_header>;
  35. pinctrl-names = "default";
  36. pmx_uart0: pmx-uart0 {
  37. marvell,pins = "mpp10", "mpp11", "mpp15",
  38. "mpp16";
  39. marvell,function = "uart0";
  40. };
  41. pmx_uart1: pmx-uart1 {
  42. marvell,pins = "mpp13", "mpp14", "mpp8",
  43. "mpp9";
  44. marvell,function = "uart1";
  45. };
  46. pmx_sysrst: pmx-sysrst {
  47. marvell,pins = "mpp6";
  48. marvell,function = "sysrst";
  49. };
  50. pmx_dip_switches: pmx-dip-switches {
  51. marvell,pins = "mpp20", "mpp21", "mpp22", "mpp23";
  52. marvell,function = "gpio";
  53. };
  54. pmx_gpio_header: pmx-gpio-header {
  55. marvell,pins = "mpp24", "mpp25", "mpp26", "mpp27",
  56. "mpp28", "mpp29", "mpp30", "mpp31";
  57. marvell,function = "gpio";
  58. };
  59. pmx_gpio_init: pmx-init {
  60. marvell,pins = "mpp38";
  61. marvell,function = "gpio";
  62. };
  63. pmx_usb_oc: pmx-usb-oc {
  64. marvell,pins = "mpp39";
  65. marvell,function = "gpio";
  66. };
  67. pmx_leds: pmx-leds {
  68. marvell,pins = "mpp41", "mpp42", "mpp43";
  69. marvell,function = "gpio";
  70. };
  71. };
  72. };
  73. gpio-leds {
  74. compatible = "gpio-leds";
  75. pinctrl-0 = <&pmx_leds>;
  76. pinctrl-names = "default";
  77. led-red {
  78. label = "obsa6:red:stat";
  79. gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
  80. };
  81. led-green {
  82. label = "obsa6:green:stat";
  83. gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
  84. };
  85. led-yellow {
  86. label = "obsa6:yellow:stat";
  87. gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
  88. };
  89. };
  90. gpio_keys {
  91. compatible = "gpio-keys";
  92. pinctrl-0 = <&pmx_gpio_init>;
  93. pinctrl-names = "default";
  94. #address-cells = <1>;
  95. #size-cells = <0>;
  96. button@1 {
  97. label = "Init Button";
  98. linux,code = <KEY_POWER>;
  99. gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
  100. };
  101. };
  102. };
  103. &nand {
  104. chip-delay = <25>;
  105. status = "okay";
  106. partition@0 {
  107. label = "uboot";
  108. reg = <0x0 0x90000>;
  109. };
  110. partition@90000 {
  111. label = "env";
  112. reg = <0x90000 0x44000>;
  113. };
  114. partition@d4000 {
  115. label = "test";
  116. reg = <0xd4000 0x24000>;
  117. };
  118. partition@f4000 {
  119. label = "conf";
  120. reg = <0xf4000 0x400000>;
  121. };
  122. partition@4f4000 {
  123. label = "linux";
  124. reg = <0x4f4000 0x1d20000>;
  125. };
  126. partition@2214000 {
  127. label = "user";
  128. reg = <0x2214000 0x1dec000>;
  129. };
  130. };
  131. &mdio {
  132. status = "okay";
  133. ethphy0: ethernet-phy@0 {
  134. reg = <0>;
  135. };
  136. };
  137. &eth0 {
  138. status = "okay";
  139. ethernet0-port@0 {
  140. phy-handle = <&ethphy0>;
  141. };
  142. };