kmtepr2.dts 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * ABB PGGA TEPR2 Device Tree Source
  4. *
  5. * Copyright (C) 2020 Heiko Schocher <hs@denx.de>
  6. *
  7. */
  8. /dts-v1/;
  9. #include "km8321.dtsi"
  10. / {
  11. model = "KMTEPR2";
  12. compatible = "ABB,kmpbec8321";
  13. #address-cells = <1>;
  14. #size-cells = <1>;
  15. aliases {
  16. ethernet0 = &enet_piggy2;
  17. serial0 = &serial0;
  18. };
  19. };
  20. &i2c0 {
  21. mux@70 {
  22. compatible = "nxp,pca9547";
  23. reg = <0x70>;
  24. #address-cells = <1>;
  25. #size-cells = <0>;
  26. i2c@1 {
  27. reg = <1>;
  28. #address-cells = <1>;
  29. #size-cells = <0>;
  30. /* Inventory EEPROM of the unit itself */
  31. ivm@50 {
  32. label = "MAIN_CTRL";
  33. compatible = "dummy";
  34. reg = <0x50>;
  35. };
  36. };
  37. i2c@2 {
  38. reg = <2>;
  39. #address-cells = <1>;
  40. #size-cells = <0>;
  41. /* Temperature sensors */
  42. temp@49 {
  43. label = "board";
  44. compatible = "national,lm75";
  45. reg = <0x49>;
  46. };
  47. temp@4a {
  48. label = "power";
  49. compatible = "national,lm75";
  50. reg = <0x4a>;
  51. };
  52. };
  53. };
  54. };
  55. &par_io {
  56. /* UCC5 as HDLC controller for ICN */
  57. pio_ucc5: ucc_pin@04 {
  58. pio-map = <
  59. /* port pin dir open_drain assignment has_irq */
  60. 2 0 1 0 2 0 /* TxD0 */
  61. 2 8 2 0 2 0 /* RxD0 */
  62. 2 29 2 0 2 0 /* CTS */
  63. 3 30 2 0 1 0 /* ICN CLK */
  64. >;
  65. };
  66. /* UCC4 Piggy Ethernet */
  67. pio_ucc4: ucc_pin@03 {
  68. pio-map = <
  69. /* port pin dir open_drain assignment has_irq */
  70. 3 4 3 0 2 0 /* MDIO */
  71. 3 5 1 0 2 0 /* MDC */
  72. 1 18 1 0 1 0 /* TxD0 */
  73. 1 19 1 0 1 0 /* TxD1 */
  74. 1 22 2 0 1 0 /* RxD0 */
  75. 1 23 2 0 1 0 /* RxD1 */
  76. 1 26 2 0 1 0 /* RX_ER */
  77. 1 28 2 0 1 0 /* RX_DV */
  78. 1 30 1 0 1 0 /* TX_EN */
  79. 1 31 2 0 1 0 /* CRS */
  80. 3 10 2 0 3 0 /* UCC4_RMII_CLK (CLK17) */
  81. >;
  82. };
  83. pio_spi: spi_pin@01 {
  84. pio-map = <
  85. /*
  86. *port pin dir open_drain assignment has_irq
  87. * SPI_MOSI (PD0, bi, f3)
  88. */
  89. 3 0 3 0 1 0
  90. /* SPI_MISO (PD1, bi, f3) */
  91. 3 1 3 0 1 0
  92. /* SPI_CLK (PD2, bi, f3) */
  93. 3 2 3 0 1 0
  94. >;
  95. };
  96. };
  97. &localbus {
  98. ranges = <0 0 0xf0000000 0x04000000 /* LB 0 Flash (boot) */
  99. 1 0 0xe8000000 0x01000000 /* LB 1 PRIO1 and Piggy */
  100. 2 0 0xa0000000 0x10000000 /* LB 2 NVSRAM */
  101. 3 0 0xb0000000 0x10000000>; /* LB 3 TEP2 */
  102. flash@0,0 {
  103. compatible = "cfi-flash";
  104. reg = <0 0x00000000 0x04000000>;
  105. bank-width = <2>;
  106. #address-cells = <1>;
  107. #size-cells = <1>;
  108. use-advanced-sector-protection;
  109. partition@0 { /* 768KB */
  110. label = "u-boot";
  111. reg = <0 0xC0000>;
  112. };
  113. partition@c0000 { /* 128KB */
  114. label = "env";
  115. reg = <0xc0000 0x20000>;
  116. };
  117. partition@e0000 { /* 128KB */
  118. label = "envred";
  119. reg = <0xe0000 0x20000>;
  120. };
  121. partition@100000 { /* 64512KB */
  122. label = "ubi0";
  123. reg = <0x100000 0x3F00000>;
  124. };
  125. };
  126. };