kirkwood-openblocks_a7.dts 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Device Tree file for OpenBlocks A7 board
  4. *
  5. * Copyright (C) 2013 Free Electrons
  6. *
  7. * Thomas Petazzoni <[email protected]>
  8. *
  9. */
  10. /dts-v1/;
  11. #include "kirkwood.dtsi"
  12. #include "kirkwood-6282.dtsi"
  13. / {
  14. model = "Plat'Home OpenBlocksA7";
  15. compatible = "plathome,openblocks-a7", "marvell,kirkwood-88f6283", "marvell,kirkwood";
  16. memory {
  17. device_type = "memory";
  18. reg = <0x00000000 0x40000000>; /* 1 GB */
  19. };
  20. chosen {
  21. bootargs = "console=ttyS0,115200n8 earlyprintk";
  22. stdout-path = &uart0;
  23. };
  24. ocp@f1000000 {
  25. serial@12000 {
  26. status = "okay";
  27. };
  28. serial@12100 {
  29. status = "okay";
  30. };
  31. sata@80000 {
  32. nr-ports = <1>;
  33. status = "okay";
  34. };
  35. i2c@11100 {
  36. status = "okay";
  37. s24c02: s24c02@50 {
  38. compatible = "atmel,24c02";
  39. reg = <0x50>;
  40. };
  41. };
  42. pinctrl: pin-controller@10000 {
  43. pinctrl-0 = <&pmx_dip_switches &pmx_gpio_header
  44. &pmx_gpio_header_gpo>;
  45. pinctrl-names = "default";
  46. pmx_uart0: pmx-uart0 {
  47. marvell,pins = "mpp10", "mpp11", "mpp15",
  48. "mpp16";
  49. marvell,function = "uart0";
  50. };
  51. pmx_uart1: pmx-uart1 {
  52. marvell,pins = "mpp13", "mpp14", "mpp8",
  53. "mpp9";
  54. marvell,function = "uart1";
  55. };
  56. pmx_sysrst: pmx-sysrst {
  57. marvell,pins = "mpp6";
  58. marvell,function = "sysrst";
  59. };
  60. pmx_dip_switches: pmx-dip-switches {
  61. marvell,pins = "mpp44", "mpp45", "mpp46", "mpp47";
  62. marvell,function = "gpio";
  63. };
  64. /*
  65. * Accessible on connector J202. The MPP
  66. * listed below are pin 1-7, pin 8 is unused,
  67. * pin 9 is external reset input and pin 10 is
  68. * ground.
  69. */
  70. pmx_gpio_header: pmx-gpio-header {
  71. marvell,pins = "mpp17", "mpp29", "mpp28",
  72. "mpp35", "mpp34", "mpp40";
  73. marvell,function = "gpio";
  74. };
  75. pmx_gpio_header_gpo: pxm-gpio-header-gpo {
  76. marvell,pins = "mpp7";
  77. marvell,function = "gpo";
  78. };
  79. pmx_gpio_init: pmx-init {
  80. marvell,pins = "mpp38";
  81. marvell,function = "gpio";
  82. };
  83. pmx_usb_oc: pmx-usb-oc {
  84. marvell,pins = "mpp39";
  85. marvell,function = "gpio";
  86. };
  87. pmx_leds: pmx-leds {
  88. marvell,pins = "mpp41", "mpp42", "mpp43";
  89. marvell,function = "gpio";
  90. };
  91. };
  92. };
  93. gpio-leds {
  94. compatible = "gpio-leds";
  95. pinctrl-0 = <&pmx_leds>;
  96. pinctrl-names = "default";
  97. led-red {
  98. label = "obsa7:red:stat";
  99. gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
  100. };
  101. led-green {
  102. label = "obsa7:green:stat";
  103. gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
  104. };
  105. led-yellow {
  106. label = "obsa7:yellow:stat";
  107. gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
  108. };
  109. };
  110. gpio_keys {
  111. compatible = "gpio-keys";
  112. pinctrl-0 = <&pmx_gpio_init>;
  113. pinctrl-names = "default";
  114. #address-cells = <1>;
  115. #size-cells = <0>;
  116. button {
  117. label = "Init Button";
  118. linux,code = <KEY_POWER>;
  119. gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
  120. };
  121. };
  122. };
  123. &nand {
  124. chip-delay = <25>;
  125. status = "okay";
  126. partition@0 {
  127. label = "uboot";
  128. reg = <0x0 0x1c0000>;
  129. };
  130. partition@1c0000 {
  131. label = "env";
  132. reg = <0x1c0000 0x2c0000>;
  133. };
  134. partition@480000 {
  135. label = "test";
  136. reg = <0x480000 0x160000>;
  137. };
  138. partition@5e0000 {
  139. label = "conf";
  140. reg = <0x5e0000 0x540000>;
  141. };
  142. partition@b20000 {
  143. label = "linux";
  144. reg = <0xb20000 0x3d40000>;
  145. };
  146. partition@4860000 {
  147. label = "user";
  148. reg = <0x4860000 0xb7a0000>;
  149. };
  150. };
  151. &mdio {
  152. status = "okay";
  153. ethphy0: ethernet-phy@0 {
  154. reg = <0>;
  155. };
  156. ethphy1: ethernet-phy@1 {
  157. reg = <1>;
  158. };
  159. };
  160. &eth0 {
  161. status = "okay";
  162. ethernet0-port@0 {
  163. phy-handle = <&ethphy0>;
  164. };
  165. };
  166. &eth1 {
  167. status = "okay";
  168. ethernet1-port@0 {
  169. phy-handle = <&ethphy1>;
  170. };
  171. };