DCS-930L-B1.dts 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. /dts-v1/;
  2. #include "rt5350.dtsi"
  3. / {
  4. compatible = "DCS-930L-B1", "ralink,rt5350-soc";
  5. model = "D-Link DCS-930L B1";
  6. gpio-leds {
  7. compatible = "gpio-leds";
  8. power {
  9. label = "dcs-930l-b1:red:power";
  10. gpios = <&gpio0 17 1>;
  11. };
  12. wps {
  13. label = "dcs-930l-b1:blue:wps";
  14. gpios = <&gpio0 19 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. wps {
  28. label = "wps";
  29. gpios = <&gpio0 20 1>;
  30. linux,code = <0x211>;
  31. };
  32. };
  33. };
  34. &spi0 {
  35. status = "okay";
  36. m25p80@0 {
  37. #address-cells = <1>;
  38. #size-cells = <1>;
  39. compatible = "jedec,spi-nor";
  40. reg = <0>;
  41. linux,modalias = "m25p80", "s25fl064k";
  42. spi-max-frequency = <10000000>;
  43. partition@0 {
  44. label = "u-boot";
  45. reg = <0x0 0x30000>;
  46. read-only;
  47. };
  48. partition@30000 {
  49. label = "u-boot-env";
  50. reg = <0x30000 0x10000>;
  51. read-only;
  52. };
  53. factory: partition@40000 {
  54. label = "factory";
  55. reg = <0x40000 0x10000>;
  56. read-only;
  57. };
  58. partition@50000 {
  59. label = "firmware";
  60. reg = <0x50000 0x3b0000>;
  61. };
  62. };
  63. };
  64. &pinctrl {
  65. state_default: pinctrl0 {
  66. gpio {
  67. ralink,group = "i2c", "jtag", "uartf", "led";
  68. ralink,function = "gpio";
  69. };
  70. };
  71. };
  72. &ethernet {
  73. mtd-mac-address = <&factory 0x4>;
  74. };
  75. &esw {
  76. mediatek,portmap = <0x2f>;
  77. };
  78. &wmac {
  79. ralink,mtd-eeprom = <&factory 0>;
  80. };
  81. &ehci {
  82. status = "okay";
  83. };
  84. &ohci {
  85. status = "okay";
  86. };