2
0

UR-336UN.dts 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. /dts-v1/;
  2. #include "rt3050.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "UR-336UN", "ralink,rt3052-soc";
  6. model = "UPVEL UR-336UN";
  7. cfi@1f000000 {
  8. compatible = "cfi-flash";
  9. reg = <0x1f000000 0x800000>;
  10. bank-width = <2>;
  11. device-width = <2>;
  12. #address-cells = <1>;
  13. #size-cells = <1>;
  14. };
  15. gpio-leds {
  16. compatible = "gpio-leds";
  17. 3g {
  18. label = "ur-336un:green:3g";
  19. gpios = <&gpio0 9 1>;
  20. };
  21. gateway {
  22. label = "ur-336un:green:gateway";
  23. gpios = <&gpio0 11 1>;
  24. };
  25. ap {
  26. label = "ur-336un:green:ap";
  27. gpios = <&gpio0 12 1>;
  28. };
  29. wps {
  30. label = "ur-336un:green:wps";
  31. gpios = <&gpio0 14 1>;
  32. };
  33. station {
  34. label = "ur-336un:green:station";
  35. gpios = <&gpio0 13 1>;
  36. };
  37. };
  38. gpio-keys-polled {
  39. compatible = "gpio-keys-polled";
  40. #address-cells = <1>;
  41. #size-cells = <0>;
  42. poll-interval = <20>;
  43. reset_wps {
  44. label = "reset_wps";
  45. gpios = <&gpio0 10 1>;
  46. linux,code = <KEY_RESTART>;
  47. };
  48. mode {
  49. label = "mode";
  50. gpios = <&gpio0 7 1>;
  51. linux,code = <BTN_0>;
  52. };
  53. };
  54. };
  55. &pinctrl {
  56. state_default: pinctrl0 {
  57. gpio {
  58. ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
  59. ralink,function = "gpio";
  60. };
  61. };
  62. };
  63. /* FIXME: no partitions defined */
  64. /*&ethernet {
  65. mtd-mac-address = <&factory 0x4004>;
  66. };
  67. */
  68. &esw {
  69. mediatek,portmap = <0x2f>;
  70. };
  71. /* FIXME: no partitions defined */
  72. /*&wmac {
  73. ralink,mtd-eeprom = <&factory 0>;
  74. };
  75. */
  76. &otg {
  77. status = "okay";
  78. };