1
0

JHR-N805R.dts 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. /dts-v1/;
  2. #include "rt3050.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "JHR-N805R", "ralink,rt3050-soc";
  6. model = "JCG JHR-N805R";
  7. gpio-leds {
  8. compatible = "gpio-leds";
  9. system {
  10. label = "jhr-n805r:blue:system";
  11. gpios = <&gpio0 9 1>;
  12. };
  13. };
  14. gpio-keys-polled {
  15. compatible = "gpio-keys-polled";
  16. #address-cells = <1>;
  17. #size-cells = <0>;
  18. poll-interval = <20>;
  19. reset {
  20. label = "reset";
  21. gpios = <&gpio0 10 1>;
  22. linux,code = <KEY_RESTART>;
  23. };
  24. };
  25. };
  26. &pinctrl {
  27. state_default: pinctrl0 {
  28. gpio {
  29. ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
  30. ralink,function = "gpio";
  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. spi-max-frequency = <10000000>;
  42. partition@0 {
  43. label = "u-boot";
  44. reg = <0x0 0x30000>;
  45. read-only;
  46. };
  47. partition@30000 {
  48. label = "u-boot-env";
  49. reg = <0x30000 0x10000>;
  50. read-only;
  51. };
  52. factory: partition@40000 {
  53. label = "factory";
  54. reg = <0x40000 0x10000>;
  55. read-only;
  56. };
  57. partition@50000 {
  58. label = "firmware";
  59. reg = <0x50000 0x3b0000>;
  60. };
  61. };
  62. };
  63. &ethernet {
  64. mtd-mac-address = <&factory 0x2e>;
  65. };
  66. &esw {
  67. mediatek,portmap = <0x3e>;
  68. };
  69. &wmac {
  70. ralink,mtd-eeprom = <&factory 0>;
  71. };