gemini-wbd222.dts 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Device Tree file for Wiliboard WBD-222
  4. */
  5. /dts-v1/;
  6. #include "gemini.dtsi"
  7. #include <dt-bindings/input/input.h>
  8. / {
  9. model = "Wiliboard WBD-222";
  10. compatible = "wiliboard,wbd222", "cortina,gemini";
  11. #address-cells = <1>;
  12. #size-cells = <1>;
  13. memory@0 { /* 128 MB */
  14. device_type = "memory";
  15. reg = <0x00000000 0x8000000>;
  16. };
  17. chosen {
  18. bootargs = "console=ttyS0,115200n8";
  19. stdout-path = &uart0;
  20. };
  21. gpio_keys {
  22. compatible = "gpio-keys";
  23. button-setup {
  24. debounce-interval = <100>;
  25. wakeup-source;
  26. linux,code = <KEY_SETUP>;
  27. label = "reset";
  28. /* Conflict with ICE */
  29. gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
  30. };
  31. };
  32. leds {
  33. compatible = "gpio-leds";
  34. led-red-l3 {
  35. label = "wbd111:red:L3";
  36. /* Conflict with TVC and extended parallel flash */
  37. gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
  38. default-state = "off";
  39. };
  40. led-green-l4 {
  41. label = "wbd111:green:L4";
  42. /* Conflict with TVC and extended parallel flash */
  43. gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
  44. default-state = "off";
  45. };
  46. led-red-l4 {
  47. label = "wbd111:red:L4";
  48. /* Conflict with TVC and extended parallel flash */
  49. gpios = <&gpio0 3 GPIO_ACTIVE_HIGH>;
  50. default-state = "off";
  51. };
  52. led-green-l3 {
  53. label = "wbd111:green:L3";
  54. /* Conflict with TVC and extended parallel flash */
  55. gpios = <&gpio0 5 GPIO_ACTIVE_HIGH>;
  56. default-state = "on";
  57. linux,default-trigger = "heartbeat";
  58. };
  59. };
  60. mdio0: mdio {
  61. compatible = "virtual,mdio-gpio";
  62. gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>, /* MDC */
  63. <&gpio0 21 GPIO_ACTIVE_HIGH>; /* MDIO */
  64. #address-cells = <1>;
  65. #size-cells = <0>;
  66. phy0: ethernet-phy@1 {
  67. reg = <1>;
  68. device_type = "ethernet-phy";
  69. };
  70. phy1: ethernet-phy@3 {
  71. reg = <3>;
  72. device_type = "ethernet-phy";
  73. };
  74. };
  75. soc {
  76. flash@30000000 {
  77. status = "okay";
  78. /* 8MB of flash */
  79. reg = <0x30000000 0x00800000>;
  80. partition@0 {
  81. label = "RedBoot";
  82. reg = <0x00000000 0x00020000>;
  83. read-only;
  84. };
  85. partition@20000 {
  86. label = "kernel";
  87. reg = <0x00020000 0x00100000>;
  88. };
  89. partition@120000 {
  90. label = "rootfs";
  91. reg = <0x00120000 0x006a0000>;
  92. };
  93. partition@7c0000 {
  94. label = "VCTL";
  95. reg = <0x007c0000 0x00010000>;
  96. read-only;
  97. };
  98. partition@7d0000 {
  99. label = "cfg";
  100. reg = <0x007d0000 0x00010000>;
  101. read-only;
  102. };
  103. partition@7e0000 {
  104. label = "FIS";
  105. reg = <0x007e0000 0x00010000>;
  106. read-only;
  107. };
  108. };
  109. syscon: syscon@40000000 {
  110. pinctrl {
  111. /*
  112. * gpio0agrp cover line 0-4
  113. * gpio0bgrp cover line 5
  114. */
  115. gpio0_default_pins: pinctrl-gpio0 {
  116. mux {
  117. function = "gpio0";
  118. groups = "gpio0agrp",
  119. "gpio0bgrp";
  120. };
  121. };
  122. pinctrl-gmii {
  123. /* This platform use both the ethernet ports */
  124. mux {
  125. function = "gmii";
  126. groups = "gmii_gmac0_grp", "gmii_gmac1_grp";
  127. };
  128. };
  129. };
  130. };
  131. gpio0: gpio@4d000000 {
  132. pinctrl-names = "default";
  133. pinctrl-0 = <&gpio0_default_pins>;
  134. };
  135. pci@50000000 {
  136. status = "okay";
  137. };
  138. ethernet@60000000 {
  139. status = "okay";
  140. ethernet-port@0 {
  141. phy-mode = "rgmii";
  142. phy-handle = <&phy0>;
  143. };
  144. ethernet-port@1 {
  145. phy-mode = "rgmii";
  146. phy-handle = <&phy1>;
  147. };
  148. };
  149. usb@68000000 {
  150. status = "okay";
  151. };
  152. usb@69000000 {
  153. status = "okay";
  154. };
  155. };
  156. };