1
0

HLKRM04.dts 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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. spi-max-frequency = <10000000>;
  59. partition@0 {
  60. label = "u-boot";
  61. reg = <0x0 0x30000>;
  62. read-only;
  63. };
  64. partition@30000 {
  65. label = "u-boot-env";
  66. reg = <0x30000 0x10000>;
  67. read-only;
  68. };
  69. factory: partition@40000 {
  70. label = "factory";
  71. reg = <0x40000 0x10000>;
  72. read-only;
  73. };
  74. partition@50000 {
  75. label = "firmware";
  76. reg = <0x50000 0x3b0000>;
  77. };
  78. };
  79. };
  80. &pinctrl {
  81. state_default: pinctrl0 {
  82. gpio {
  83. ralink,group = "i2c", "jtag";
  84. ralink,function = "gpio";
  85. };
  86. uartf_gpio {
  87. ralink,group = "uartf";
  88. ralink,function = "gpio uartf";
  89. };
  90. };
  91. };
  92. &ethernet {
  93. mtd-mac-address = <&factory 0x4>;
  94. };
  95. &wmac {
  96. ralink,mtd-eeprom = <&factory 0>;
  97. };
  98. &ehci {
  99. status = "okay";
  100. };
  101. &ohci {
  102. status = "okay";
  103. };