kirkwood-openblocks_a6.dts 3.1 KB

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