2
0

D105.dts 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. /dts-v1/;
  2. #include "rt3050.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. compatible = "huawei,d105", "ralink,rt3050-soc";
  7. model = "Huawei D105";
  8. cfi@1f000000 {
  9. compatible = "cfi-flash";
  10. reg = <0x1f000000 0x800000>;
  11. bank-width = <2>;
  12. device-width = <2>;
  13. #address-cells = <1>;
  14. #size-cells = <1>;
  15. partition@0 {
  16. label = "u-boot";
  17. reg = <0x0 0x30000>;
  18. read-only;
  19. };
  20. partition@30000 {
  21. label = "u-boot-env";
  22. reg = <0x30000 0x10000>;
  23. read-only;
  24. };
  25. factory: partition@40000 {
  26. label = "factory";
  27. reg = <0x40000 0x10000>;
  28. read-only;
  29. };
  30. partition@50000 {
  31. label = "firmware";
  32. reg = <0x50000 0x3b0000>;
  33. };
  34. };
  35. gpio-leds {
  36. compatible = "gpio-leds";
  37. power {
  38. label = "d105:red:power";
  39. gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
  40. };
  41. wps {
  42. label = "d105:green:usb";
  43. gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
  44. };
  45. };
  46. gpio-keys-polled {
  47. compatible = "gpio-keys-polled";
  48. #address-cells = <1>;
  49. #size-cells = <0>;
  50. poll-interval = <20>;
  51. reset {
  52. label = "reset";
  53. gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
  54. linux,code = <KEY_RESTART>;
  55. };
  56. };
  57. };
  58. &pinctrl {
  59. state_default: pinctrl0 {
  60. gpio {
  61. ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
  62. ralink,function = "gpio";
  63. };
  64. };
  65. };
  66. &ethernet {
  67. mtd-mac-address = <&factory 0x4>;
  68. };
  69. &esw {
  70. mediatek,portmap = <0x2f>;
  71. };
  72. &wmac {
  73. ralink,mtd-eeprom = <&factory 0>;
  74. };
  75. &otg {
  76. status = "okay";
  77. };