HLKRM04.dts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. /dts-v1/;
  2. #include "rt5350.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "HLKRM04", "ralink,rt5350-soc";
  6. model = "HILINK HLK-RM04";
  7. memory@0 {
  8. device_type = "memory";
  9. reg = <0x0 0x1000000>;
  10. };
  11. chosen {
  12. bootargs = "console=ttyS1,57600";
  13. };
  14. gpio-export {
  15. compatible = "gpio-export";
  16. #size-cells = <0>;
  17. /* I2C */
  18. gpio1 {
  19. /* I2C_I2C_SD */
  20. gpio-export,name = "hlk-rm04:gpio0";
  21. gpio-export,direction_may_change = <1>;
  22. gpios = <&gpio0 1 0>;
  23. };
  24. gpio2 {
  25. /* I2C_I2C_SCLK */
  26. gpio-export,name = "hlk-rm04:gpio1";
  27. gpio-export,direction_may_change = <1>;
  28. gpios = <&gpio0 2 0>;
  29. };
  30. };
  31. gpio-keys-polled {
  32. compatible = "gpio-keys-polled";
  33. #address-cells = <1>;
  34. #size-cells = <0>;
  35. poll-interval = <20>;
  36. reset {
  37. label = "reset";
  38. gpios = <&gpio0 0 1>;
  39. linux,code = <KEY_RESTART>;
  40. };
  41. wps {
  42. label = "wps";
  43. gpios = <&gpio0 14 1>;
  44. linux,code = <KEY_WPS_BUTTON>;
  45. };
  46. };
  47. };
  48. &uart {
  49. status = "okay";
  50. };
  51. &spi0 {
  52. status = "okay";
  53. m25p80@0 {
  54. #address-cells = <1>;
  55. #size-cells = <1>;
  56. compatible = "jedec,spi-nor";
  57. reg = <0>;
  58. linux,modalias = "m25p80", "s25fl064k";
  59. spi-max-frequency = <10000000>;
  60. partition@0 {
  61. label = "u-boot";
  62. reg = <0x0 0x30000>;
  63. read-only;
  64. };
  65. partition@30000 {
  66. label = "u-boot-env";
  67. reg = <0x30000 0x10000>;
  68. read-only;
  69. };
  70. factory: partition@40000 {
  71. label = "factory";
  72. reg = <0x40000 0x10000>;
  73. read-only;
  74. };
  75. partition@50000 {
  76. label = "firmware";
  77. reg = <0x50000 0x3b0000>;
  78. };
  79. };
  80. };
  81. &pinctrl {
  82. state_default: pinctrl0 {
  83. gpio {
  84. ralink,group = "i2c", "jtag";
  85. ralink,function = "gpio";
  86. };
  87. uartf_gpio {
  88. ralink,group = "uartf";
  89. ralink,function = "gpio uartf";
  90. };
  91. };
  92. };
  93. &ethernet {
  94. mtd-mac-address = <&factory 0x4>;
  95. };
  96. &wmac {
  97. ralink,mtd-eeprom = <&factory 0>;
  98. };
  99. &ehci {
  100. status = "okay";
  101. };
  102. &ohci {
  103. status = "okay";
  104. };