o2d.dtsi 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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. &gpt0 {
  14. gpio-controller;
  15. fsl,has-wdt;
  16. fsl,wdt-on-boot = <0>;
  17. };
  18. &gpt1 { gpio-controller; };
  19. / {
  20. model = "ifm,o2d";
  21. compatible = "ifm,o2d";
  22. memory {
  23. reg = <0x00000000 0x04000000>; // 64MB
  24. };
  25. soc5200@f0000000 {
  26. rtc@800 {
  27. status = "disabled";
  28. };
  29. psc@2000 { // PSC1
  30. compatible = "fsl,mpc5200b-psc-spi","fsl,mpc5200-psc-spi";
  31. #address-cells = <1>;
  32. #size-cells = <0>;
  33. cell-index = <0>;
  34. spidev@0 {
  35. compatible = "spidev";
  36. spi-max-frequency = <250000>;
  37. reg = <0>;
  38. };
  39. };
  40. psc@2200 { // PSC2
  41. status = "disabled";
  42. };
  43. psc@2400 { // PSC3
  44. status = "disabled";
  45. };
  46. psc@2600 { // PSC4
  47. compatible = "fsl,mpc5200b-psc-uart","fsl,mpc5200-psc-uart";
  48. };
  49. psc@2800 { // PSC5
  50. compatible = "fsl,mpc5200b-psc-uart","fsl,mpc5200-psc-uart";
  51. };
  52. psc@2c00 { // PSC6
  53. status = "disabled";
  54. };
  55. ethernet@3000 {
  56. phy-handle = <&phy0>;
  57. };
  58. mdio@3000 {
  59. phy0: ethernet-phy@0 {
  60. reg = <0>;
  61. };
  62. };
  63. };
  64. localbus {
  65. ranges = <0 0 0xff000000 0x01000000
  66. 3 0 0xe3000000 0x00100000>;
  67. // flash device at LocalPlus Bus CS0
  68. flash@0,0 {
  69. compatible = "cfi-flash";
  70. reg = <0 0 0x01000000>;
  71. bank-width = <1>;
  72. device-width = <2>;
  73. #size-cells = <1>;
  74. #address-cells = <1>;
  75. no-unaligned-direct-access;
  76. /* common layout for all machines */
  77. partition@0 {
  78. label = "u-boot";
  79. reg = <0x00000000 0x00040000>;
  80. read-only;
  81. };
  82. partition@40000 {
  83. label = "env";
  84. reg = <0x00040000 0x00020000>;
  85. read-only;
  86. };
  87. };
  88. csi@3,0 {
  89. compatible = "ifm,o2d-csi";
  90. reg = <3 0 0x00100000>;
  91. ifm,csi-clk-handle = <&gpt7>;
  92. gpios = <&gpio_simple 23 0 /* imag_capture */
  93. &gpio_simple 26 0 /* imag_reset */
  94. &gpio_simple 29 0>; /* imag_master_en */
  95. interrupts = <1 1 2>; /* IRQ1, edge falling */
  96. ifm,csi-addr-bus-width = <24>;
  97. ifm,csi-data-bus-width = <8>;
  98. ifm,csi-wait-cycles = <0>;
  99. };
  100. };
  101. };