kirkwood-openblocks_a6.dts 3.0 KB

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