o2d.dtsi 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  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. };
  72. localbus {
  73. ranges = <0 0 0xff000000 0x01000000
  74. 3 0 0xe3000000 0x00100000>;
  75. // flash device at LocalPlus Bus CS0
  76. flash@0,0 {
  77. compatible = "cfi-flash";
  78. reg = <0 0 0x01000000>;
  79. bank-width = <1>;
  80. device-width = <2>;
  81. #size-cells = <1>;
  82. #address-cells = <1>;
  83. no-unaligned-direct-access;
  84. /* common layout for all machines */
  85. partition@0 {
  86. label = "u-boot";
  87. reg = <0x00000000 0x00040000>;
  88. read-only;
  89. };
  90. partition@40000 {
  91. label = "env";
  92. reg = <0x00040000 0x00020000>;
  93. read-only;
  94. };
  95. };
  96. csi@3,0 {
  97. compatible = "ifm,o2d-csi";
  98. reg = <3 0 0x00100000>;
  99. ifm,csi-clk-handle = <&timer7>;
  100. gpios = <&gpio_simple 23 0 /* imag_capture */
  101. &gpio_simple 26 0 /* imag_reset */
  102. &gpio_simple 29 0>; /* imag_master_en */
  103. interrupts = <1 1 2>; /* IRQ1, edge falling */
  104. ifm,csi-addr-bus-width = <24>;
  105. ifm,csi-data-bus-width = <8>;
  106. ifm,csi-wait-cycles = <0>;
  107. };
  108. };
  109. };