kirkwood-openblocks_a6.dts 3.0 KB

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