o2d.dtsi 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. // SPDX-License-Identifier: GPL-2.0-or-later
  2. /*
  3. * O2D base Device Tree Source
  4. *
  5. * Copyright (C) 2012 DENX Software Engineering
  6. * Anatolij Gustschin <[email protected]>
  7. */
  8. /include/ "mpc5200b.dtsi"
  9. &gpt0 {
  10. gpio-controller;
  11. fsl,has-wdt;
  12. fsl,wdt-on-boot = <0>;
  13. };
  14. &gpt1 { gpio-controller; };
  15. / {
  16. model = "ifm,o2d";
  17. compatible = "ifm,o2d";
  18. memory@0 {
  19. reg = <0x00000000 0x04000000>; // 64MB
  20. };
  21. soc5200@f0000000 {
  22. rtc@800 {
  23. status = "disabled";
  24. };
  25. psc@2000 { // PSC1
  26. compatible = "fsl,mpc5200b-psc-spi","fsl,mpc5200-psc-spi";
  27. #address-cells = <1>;
  28. #size-cells = <0>;
  29. cell-index = <0>;
  30. };
  31. psc@2200 { // PSC2
  32. status = "disabled";
  33. };
  34. psc@2400 { // PSC3
  35. status = "disabled";
  36. };
  37. psc@2600 { // PSC4
  38. compatible = "fsl,mpc5200b-psc-uart","fsl,mpc5200-psc-uart";
  39. };
  40. psc@2800 { // PSC5
  41. compatible = "fsl,mpc5200b-psc-uart","fsl,mpc5200-psc-uart";
  42. };
  43. psc@2c00 { // PSC6
  44. status = "disabled";
  45. };
  46. ethernet@3000 {
  47. phy-handle = <&phy0>;
  48. };
  49. mdio@3000 {
  50. phy0: ethernet-phy@0 {
  51. reg = <0>;
  52. };
  53. };
  54. };
  55. localbus {
  56. ranges = <0 0 0xff000000 0x01000000
  57. 3 0 0xe3000000 0x00100000>;
  58. // flash device at LocalPlus Bus CS0
  59. flash@0,0 {
  60. compatible = "cfi-flash";
  61. reg = <0 0 0x01000000>;
  62. bank-width = <1>;
  63. device-width = <2>;
  64. #size-cells = <1>;
  65. #address-cells = <1>;
  66. no-unaligned-direct-access;
  67. /* common layout for all machines */
  68. partition@0 {
  69. label = "u-boot";
  70. reg = <0x00000000 0x00040000>;
  71. read-only;
  72. };
  73. partition@40000 {
  74. label = "env";
  75. reg = <0x00040000 0x00020000>;
  76. read-only;
  77. };
  78. };
  79. csi@3,0 {
  80. compatible = "ifm,o2d-csi";
  81. reg = <3 0 0x00100000>;
  82. ifm,csi-clk-handle = <&gpt7>;
  83. gpios = <&gpio_simple 23 0 /* imag_capture */
  84. &gpio_simple 26 0 /* imag_reset */
  85. &gpio_simple 29 0>; /* imag_master_en */
  86. interrupts = <1 1 2>; /* IRQ1, edge falling */
  87. ifm,csi-addr-bus-width = <24>;
  88. ifm,csi-data-bus-width = <8>;
  89. ifm,csi-wait-cycles = <0>;
  90. };
  91. };
  92. };