o2d.dtsi 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. /*
  2. * O2D base Device Tree Source
  3. *
  4. * Copyright (C) 2012 DENX Software Engineering
  5. * Anatolij Gustschin <agust@denx.de>
  6. *
  7. * This program is free software; you can redistribute it and/or modify it
  8. * under the terms of the GNU General Public License as published by the
  9. * Free Software Foundation; either version 2 of the License, or (at your
  10. * option) any later version.
  11. */
  12. /include/ "mpc5200b.dtsi"
  13. / {
  14. model = "ifm,o2d";
  15. compatible = "ifm,o2d";
  16. memory {
  17. reg = <0x00000000 0x04000000>; // 64MB
  18. };
  19. soc5200@f0000000 {
  20. gpio_simple: gpio@b00 {
  21. };
  22. timer@600 { // General Purpose Timer
  23. #gpio-cells = <2>;
  24. gpio-controller;
  25. fsl,has-wdt;
  26. fsl,wdt-on-boot = <0>;
  27. };
  28. timer@610 {
  29. #gpio-cells = <2>;
  30. gpio-controller;
  31. };
  32. timer7: timer@670 {
  33. };
  34. rtc@800 {
  35. status = "disabled";
  36. };
  37. psc@2000 { // PSC1
  38. compatible = "fsl,mpc5200b-psc-spi","fsl,mpc5200-psc-spi";
  39. #address-cells = <1>;
  40. #size-cells = <0>;
  41. cell-index = <0>;
  42. spidev@0 {
  43. compatible = "spidev";
  44. spi-max-frequency = <250000>;
  45. reg = <0>;
  46. };
  47. };
  48. psc@2200 { // PSC2
  49. status = "disabled";
  50. };
  51. psc@2400 { // PSC3
  52. status = "disabled";
  53. };
  54. psc@2600 { // PSC4
  55. compatible = "fsl,mpc5200b-psc-uart","fsl,mpc5200-psc-uart";
  56. };
  57. psc@2800 { // PSC5
  58. compatible = "fsl,mpc5200b-psc-uart","fsl,mpc5200-psc-uart";
  59. };
  60. psc@2c00 { // PSC6
  61. status = "disabled";
  62. };
  63. ethernet@3000 {
  64. phy-handle = <&phy0>;
  65. };
  66. mdio@3000 {
  67. phy0: ethernet-phy@0 {
  68. reg = <0>;
  69. };
  70. };
  71. sclpc@3c00 {
  72. compatible = "fsl,mpc5200-lpbfifo";
  73. reg = <0x3c00 0x60>;
  74. interrupts = <3 23 0>;
  75. };
  76. };
  77. localbus {
  78. ranges = <0 0 0xff000000 0x01000000
  79. 3 0 0xe3000000 0x00100000>;
  80. // flash device at LocalPlus Bus CS0
  81. flash@0,0 {
  82. compatible = "cfi-flash";
  83. reg = <0 0 0x01000000>;
  84. bank-width = <1>;
  85. device-width = <2>;
  86. #size-cells = <1>;
  87. #address-cells = <1>;
  88. no-unaligned-direct-access;
  89. /* common layout for all machines */
  90. partition@0 {
  91. label = "u-boot";
  92. reg = <0x00000000 0x00040000>;
  93. read-only;
  94. };
  95. partition@40000 {
  96. label = "env";
  97. reg = <0x00040000 0x00020000>;
  98. read-only;
  99. };
  100. };
  101. csi@3,0 {
  102. compatible = "ifm,o2d-csi";
  103. reg = <3 0 0x00100000>;
  104. ifm,csi-clk-handle = <&timer7>;
  105. gpios = <&gpio_simple 23 0 /* imag_capture */
  106. &gpio_simple 26 0 /* imag_reset */
  107. &gpio_simple 29 0>; /* imag_master_en */
  108. interrupts = <1 1 2>; /* IRQ1, edge falling */
  109. ifm,csi-addr-bus-width = <24>;
  110. ifm,csi-data-bus-width = <8>;
  111. ifm,csi-wait-cycles = <0>;
  112. };
  113. };
  114. };