gemini-wbd111.dts 3.0 KB

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