IP2202.dts 1.5 KB

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