3G150B.dts 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. /dts-v1/;
  2. #include "rt5350.dtsi"
  3. / {
  4. compatible = "3G150B", "ralink,rt5350-soc";
  5. model = "Tenda 3G150B";
  6. gpio-leds {
  7. compatible = "gpio-leds";
  8. ap {
  9. label = "3g150b:blue:ap";
  10. gpios = <&gpio0 7 1>;
  11. };
  12. 3g {
  13. label = "3g150b:blue:3g";
  14. gpios = <&gpio0 14 1>;
  15. };
  16. };
  17. gpio-keys-polled {
  18. compatible = "gpio-keys-polled";
  19. #address-cells = <1>;
  20. #size-cells = <0>;
  21. poll-interval = <20>;
  22. reset {
  23. label = "reset";
  24. gpios = <&gpio0 0 1>;
  25. linux,code = <0x198>;
  26. };
  27. };
  28. gpio_export {
  29. compatible = "gpio-export";
  30. #size-cells = <0>;
  31. usb {
  32. gpio-export,name = "usb";
  33. gpio-export,output = <1>;
  34. gpios = <&gpio0 13 0>;
  35. };
  36. };
  37. };
  38. &spi0 {
  39. status = "okay";
  40. m25p80@0 {
  41. #address-cells = <1>;
  42. #size-cells = <1>;
  43. compatible = "jedec,spi-nor";
  44. reg = <0>;
  45. linux,modalias = "m25p80", "s25fl064k";
  46. spi-max-frequency = <10000000>;
  47. partition@0 {
  48. label = "u-boot";
  49. reg = <0x0 0x30000>;
  50. read-only;
  51. };
  52. partition@30000 {
  53. label = "u-boot-env";
  54. reg = <0x30000 0x10000>;
  55. read-only;
  56. };
  57. factory: partition@40000 {
  58. label = "factory";
  59. reg = <0x40000 0x10000>;
  60. read-only;
  61. };
  62. partition@50000 {
  63. label = "firmware";
  64. reg = <0x50000 0x3b0000>;
  65. };
  66. };
  67. };
  68. &gpio1 {
  69. status = "okay";
  70. };
  71. &pinctrl {
  72. state_default: pinctrl0 {
  73. gpio {
  74. ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf", "led";
  75. ralink,function = "gpio";
  76. };
  77. };
  78. };
  79. &ethernet {
  80. mtd-mac-address = <&factory 0x4>;
  81. };
  82. &esw {
  83. mediatek,portmap = <0x2f>;
  84. };
  85. &wmac {
  86. ralink,mtd-eeprom = <&factory 0>;
  87. ralink,led-polarity = <1>;
  88. };
  89. &ehci {
  90. status = "okay";
  91. };
  92. &ohci {
  93. status = "okay";
  94. };