HLKRM04.dts 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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. palmbus@10000000 {
  14. uart@500 {
  15. status = "okay";
  16. };
  17. spi@b00 {
  18. status = "okay";
  19. m25p80@0 {
  20. #address-cells = <1>;
  21. #size-cells = <1>;
  22. compatible = "gd25q64";
  23. reg = <0 0>;
  24. linux,modalias = "m25p80", "s25fl064k";
  25. spi-max-frequency = <10000000>;
  26. partition@0 {
  27. label = "u-boot";
  28. reg = <0x0 0x30000>;
  29. read-only;
  30. };
  31. partition@30000 {
  32. label = "u-boot-env";
  33. reg = <0x30000 0x10000>;
  34. read-only;
  35. };
  36. factory: partition@40000 {
  37. label = "factory";
  38. reg = <0x40000 0x10000>;
  39. read-only;
  40. };
  41. partition@50000 {
  42. label = "firmware";
  43. reg = <0x50000 0x3b0000>;
  44. };
  45. };
  46. };
  47. };
  48. pinctrl {
  49. state_default: pinctrl0 {
  50. gpio {
  51. ralink,group = "jtag";
  52. ralink,function = "gpio";
  53. };
  54. };
  55. };
  56. ethernet@10100000 {
  57. mtd-mac-address = <&factory 0x4>;
  58. };
  59. wmac@10180000 {
  60. ralink,mtd-eeprom = <&factory 0>;
  61. };
  62. ehci@101c0000 {
  63. status = "okay";
  64. };
  65. ohci@101c1000 {
  66. status = "okay";
  67. };
  68. gpio-keys-polled {
  69. compatible = "gpio-keys-polled";
  70. #address-cells = <1>;
  71. #size-cells = <0>;
  72. poll-interval = <20>;
  73. wps {
  74. label = "reset";
  75. gpios = <&gpio0 14 1>;
  76. linux,code = <0x198>;
  77. };
  78. };
  79. gpio-leds {
  80. compatible = "gpio-leds";
  81. power {
  82. label = "hlk-rm04:red:power";
  83. gpios = <&gpio0 0 1>;
  84. };
  85. };
  86. };