UR-336UN.dts 1.4 KB

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