2
0

ALL5003.dts 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. /dts-v1/;
  2. #include "rt5350.dtsi"
  3. / {
  4. compatible = "ALL5003", "ralink,rt5350-soc";
  5. model = "Allnet ALL5003";
  6. i2c-gpio {
  7. #address-cells = <1>;
  8. #size-cells = <0>;
  9. compatible = "i2c-gpio";
  10. gpios = <&gpio0 1 0 &gpio0 2 0>;
  11. i2c-gpio,delay-us = <10>;
  12. pcf0: iexp@38 {
  13. #gpio-cells = <2>;
  14. compatible = "inxp,pcf8574a";
  15. reg = <0x38>;
  16. gpio-controller;
  17. };
  18. hwmon@4b {
  19. compatible = "national,lm92";
  20. reg = <0x4b>;
  21. };
  22. };
  23. gpio-leds {
  24. compatible = "gpio-leds";
  25. ld1 {
  26. label = "all5003:green:ld1";
  27. gpios = <&pcf0 0 1>;
  28. };
  29. ld2 {
  30. label = "all5003:green:ld2";
  31. gpios = <&pcf0 1 1>;
  32. };
  33. };
  34. };
  35. &gpio0 {
  36. status = "okay";
  37. };
  38. &spi0 {
  39. status = "okay";
  40. m25p80@0 {
  41. #address-cells = <1>;
  42. #size-cells = <1>;
  43. compatible = "jedec,spi-nor";
  44. reg = <0>;
  45. spi-max-frequency = <10000000>;
  46. partition@0 {
  47. label = "u-boot";
  48. reg = <0x0 0x30000>;
  49. read-only;
  50. };
  51. partition@30000 {
  52. label = "u-boot-env";
  53. reg = <0x30000 0x10000>;
  54. read-only;
  55. };
  56. factory: partition@40000 {
  57. label = "factory";
  58. reg = <0x40000 0x10000>;
  59. read-only;
  60. };
  61. partition@50000 {
  62. label = "firmware";
  63. reg = <0x50000 0x1fb0000>;
  64. };
  65. };
  66. };
  67. &pinctrl {
  68. state_default: pinctrl0 {
  69. gpio {
  70. ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
  71. ralink,function = "gpio";
  72. };
  73. };
  74. };
  75. &ethernet {
  76. mtd-mac-address = <&factory 0x28>;
  77. };
  78. &esw {
  79. mediatek,portmap = <0x3f>;
  80. };
  81. &wmac {
  82. ralink,mtd-eeprom = <&factory 0>;
  83. };
  84. &ehci {
  85. status = "okay";
  86. };
  87. &ohci {
  88. status = "okay";
  89. };