gemini-ssi1328.dts 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Copyright (C) 2021 Corentin Labbe <[email protected]>
  4. * Device Tree file for SSI 1328
  5. */
  6. /dts-v1/;
  7. #include "gemini.dtsi"
  8. / {
  9. model = "SSI 1328";
  10. compatible = "ssi,1328", "cortina,gemini";
  11. #address-cells = <1>;
  12. #size-cells = <1>;
  13. memory@0 {
  14. /* 128 MB */
  15. device_type = "memory";
  16. reg = <0x00000000 0x8000000>;
  17. };
  18. aliases {
  19. mdio-gpio0 = &mdio0;
  20. };
  21. chosen {
  22. bootargs = "console=ttyS0,19200n8 initrd=0x900000,9M";
  23. stdout-path = &uart0;
  24. };
  25. mdio0: mdio {
  26. compatible = "virtual,mdio-gpio";
  27. gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>, /* MDC */
  28. <&gpio0 21 GPIO_ACTIVE_HIGH>; /* MDIO */
  29. #address-cells = <1>;
  30. #size-cells = <0>;
  31. /* LAN Marvell 88E1118 */
  32. phy0: ethernet-phy@1 {
  33. reg = <1>;
  34. device_type = "ethernet-phy";
  35. };
  36. /* WAN ICPlus IP101A */
  37. phy1: ethernet-phy@2 {
  38. reg = <2>;
  39. device_type = "ethernet-phy";
  40. };
  41. };
  42. };
  43. &ethernet {
  44. status = "okay";
  45. ethernet-port@0 {
  46. phy-mode = "rgmii";
  47. phy-handle = <&phy0>;
  48. };
  49. ethernet-port@1 {
  50. phy-mode = "rgmii";
  51. phy-handle = <&phy1>;
  52. };
  53. };
  54. &flash {
  55. status = "okay";
  56. /* 32MB of flash */
  57. reg = <0x30000000 0x03200000>;
  58. pinctrl-names = "enabled", "disabled";
  59. pinctrl-0 = <&pflash_default_pins>;
  60. pinctrl-1 = <&pflash_disabled_pins>;
  61. partitions {
  62. compatible = "redboot-fis";
  63. /* Eraseblock at 0xfe0000 */
  64. fis-index-block = <0x7F>;
  65. };
  66. };
  67. &gpio0 {
  68. pinctrl-names = "default";
  69. pinctrl-0 = <&gpio0_default_pins>;
  70. };
  71. &ide0 {
  72. status = "okay";
  73. };
  74. &ide1 {
  75. status = "okay";
  76. };
  77. &sata {
  78. cortina,gemini-ata-muxmode = <0>;
  79. cortina,gemini-enable-sata-bridge;
  80. status = "okay";
  81. };
  82. &syscon {
  83. pinctrl {
  84. /*
  85. * gpio0agrp cover line 0-4
  86. * gpio0bgrp cover line 5
  87. */
  88. gpio0_default_pins: pinctrl-gpio0 {
  89. mux {
  90. function = "gpio0";
  91. groups = "gpio0agrp", "gpio0bgrp";
  92. };
  93. };
  94. pflash_disabled_pins: pinctrl-pflash-disabled {
  95. mux {
  96. function = "gpio0";
  97. groups = "gpio0ggrp", "gpio0igrp", "gpio0jgrp",
  98. "gpio0kgrp";
  99. };
  100. };
  101. pinctrl-gmii {
  102. /* This platform use both the ethernet ports */
  103. mux {
  104. function = "gmii";
  105. groups = "gmii_gmac0_grp", "gmii_gmac1_grp";
  106. };
  107. };
  108. };
  109. };
  110. &usb0 {
  111. status = "okay";
  112. };
  113. &usb1 {
  114. status = "okay";
  115. };