HLKRM04.dts 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. /dts-v1/;
  2. #include "rt5350.dtsi"
  3. / {
  4. compatible = "HLKRM04", "ralink,rt5350-soc";
  5. model = "HILINK HLK-RM04";
  6. memory@0 {
  7. device_type = "memory";
  8. reg = <0x0 0x1000000>;
  9. };
  10. chosen {
  11. bootargs = "console=ttyS1,57600";
  12. };
  13. gpio-export {
  14. compatible = "gpio-export";
  15. #size-cells = <0>;
  16. /* I2C */
  17. gpio1 {
  18. /* I2C_I2C_SD */
  19. gpio-export,name = "hlk-rm04:gpio0";
  20. gpio-export,direction_may_change = <1>;
  21. gpios = <&gpio0 1 0>;
  22. };
  23. gpio2 {
  24. /* I2C_I2C_SCLK */
  25. gpio-export,name = "hlk-rm04:gpio1";
  26. gpio-export,direction_may_change = <1>;
  27. gpios = <&gpio0 2 0>;
  28. };
  29. };
  30. gpio-keys-polled {
  31. compatible = "gpio-keys-polled";
  32. #address-cells = <1>;
  33. #size-cells = <0>;
  34. poll-interval = <20>;
  35. reset {
  36. label = "reset";
  37. gpios = <&gpio0 0 1>;
  38. linux,code = <0x198>;
  39. };
  40. wps {
  41. label = "wps";
  42. gpios = <&gpio0 14 1>;
  43. linux,code = <0x211>;
  44. };
  45. };
  46. };
  47. &uart {
  48. status = "okay";
  49. };
  50. &spi0 {
  51. status = "okay";
  52. m25p80@0 {
  53. #address-cells = <1>;
  54. #size-cells = <1>;
  55. compatible = "jedec,spi-nor";
  56. reg = <0>;
  57. linux,modalias = "m25p80", "s25fl064k";
  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. };