UR-336UN.dts 1.4 KB

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