JHR-N805R.dts 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. /dts-v1/;
  2. #include "rt3050.dtsi"
  3. / {
  4. compatible = "JHR-N805R", "ralink,rt3050-soc";
  5. model = "JCG JHR-N805R";
  6. gpio-leds {
  7. compatible = "gpio-leds";
  8. system {
  9. label = "jhr-n805r:blue:system";
  10. gpios = <&gpio0 9 1>;
  11. };
  12. };
  13. gpio-keys-polled {
  14. compatible = "gpio-keys-polled";
  15. #address-cells = <1>;
  16. #size-cells = <0>;
  17. poll-interval = <20>;
  18. reset {
  19. label = "reset";
  20. gpios = <&gpio0 10 1>;
  21. linux,code = <0x198>;
  22. };
  23. };
  24. };
  25. &pinctrl {
  26. state_default: pinctrl0 {
  27. gpio {
  28. ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
  29. ralink,function = "gpio";
  30. };
  31. };
  32. };
  33. &spi0 {
  34. status = "okay";
  35. m25p80@0 {
  36. #address-cells = <1>;
  37. #size-cells = <1>;
  38. compatible = "jedec,spi-nor";
  39. reg = <0>;
  40. linux,modalias = "m25p80", "mx25l3205d";
  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. };