ci20.dts 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /dts-v1/;
  3. #include "jz4780.dtsi"
  4. / {
  5. compatible = "img,ci20", "ingenic,jz4780";
  6. aliases {
  7. serial0 = &uart0;
  8. serial1 = &uart1;
  9. serial3 = &uart3;
  10. serial4 = &uart4;
  11. };
  12. chosen {
  13. stdout-path = "serial4:115200n8";
  14. };
  15. memory {
  16. device_type = "memory";
  17. reg = <0x0 0x10000000
  18. 0x30000000 0x30000000>;
  19. };
  20. };
  21. &ext {
  22. clock-frequency = <48000000>;
  23. };
  24. &uart0 {
  25. status = "okay";
  26. };
  27. &uart1 {
  28. status = "okay";
  29. };
  30. &uart3 {
  31. status = "okay";
  32. };
  33. &uart4 {
  34. status = "okay";
  35. };
  36. &nemc {
  37. status = "okay";
  38. nandc: nand-controller@1 {
  39. compatible = "ingenic,jz4780-nand";
  40. reg = <1 0 0x1000000>;
  41. #address-cells = <1>;
  42. #size-cells = <0>;
  43. ingenic,bch-controller = <&bch>;
  44. ingenic,nemc-tAS = <10>;
  45. ingenic,nemc-tAH = <5>;
  46. ingenic,nemc-tBP = <10>;
  47. ingenic,nemc-tAW = <15>;
  48. ingenic,nemc-tSTRV = <100>;
  49. nand@1 {
  50. reg = <1>;
  51. nand-ecc-step-size = <1024>;
  52. nand-ecc-strength = <24>;
  53. nand-ecc-mode = "hw";
  54. nand-on-flash-bbt;
  55. partitions {
  56. compatible = "fixed-partitions";
  57. #address-cells = <2>;
  58. #size-cells = <2>;
  59. partition@0 {
  60. label = "u-boot-spl";
  61. reg = <0x0 0x0 0x0 0x800000>;
  62. };
  63. partition@0x800000 {
  64. label = "u-boot";
  65. reg = <0x0 0x800000 0x0 0x200000>;
  66. };
  67. partition@0xa00000 {
  68. label = "u-boot-env";
  69. reg = <0x0 0xa00000 0x0 0x200000>;
  70. };
  71. partition@0xc00000 {
  72. label = "boot";
  73. reg = <0x0 0xc00000 0x0 0x4000000>;
  74. };
  75. partition@0x8c00000 {
  76. label = "system";
  77. reg = <0x0 0x4c00000 0x1 0xfb400000>;
  78. };
  79. };
  80. };
  81. };
  82. };
  83. &bch {
  84. status = "okay";
  85. };
  86. &mmc0 {
  87. bus-width = <4>;
  88. max-frequency = <50000000>;
  89. status = "okay";
  90. };
  91. &mmc1 {
  92. bus-width = <4>;
  93. max-frequency = <50000000>;
  94. status = "okay";
  95. };