moxart-uc7112lx.dts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. /* moxart-uc7112lx.dts - Device Tree file for MOXA UC-7112-LX
  2. *
  3. * Copyright (C) 2013 Jonas Jensen <jonas.jensen@gmail.com>
  4. *
  5. * Licensed under GPLv2 or later.
  6. */
  7. /dts-v1/;
  8. #include "moxart.dtsi"
  9. / {
  10. model = "MOXA UC-7112-LX";
  11. compatible = "moxa,moxart-uc-7112-lx", "moxa,moxart";
  12. memory {
  13. device_type = "memory";
  14. reg = <0x0 0x2000000>;
  15. };
  16. clocks {
  17. ref12: ref12M {
  18. compatible = "fixed-clock";
  19. #clock-cells = <0>;
  20. clock-frequency = <12000000>;
  21. };
  22. };
  23. flash@80000000,0 {
  24. compatible = "numonyx,js28f128", "cfi-flash";
  25. reg = <0x80000000 0x1000000>;
  26. bank-width = <2>;
  27. #address-cells = <1>;
  28. #size-cells = <1>;
  29. partition@0 {
  30. label = "bootloader";
  31. reg = <0x0 0x40000>;
  32. };
  33. partition@40000 {
  34. label = "linux kernel";
  35. reg = <0x40000 0x1C0000>;
  36. };
  37. partition@200000 {
  38. label = "root filesystem";
  39. reg = <0x200000 0x800000>;
  40. };
  41. partition@a00000 {
  42. label = "user filesystem";
  43. reg = <0xa00000 0x600000>;
  44. };
  45. };
  46. leds {
  47. compatible = "gpio-leds";
  48. user-led {
  49. label = "ready-led";
  50. gpios = <&gpio 27 0x1>;
  51. default-state = "on";
  52. linux,default-trigger = "default-on";
  53. };
  54. };
  55. gpio_keys_polled {
  56. compatible = "gpio-keys-polled";
  57. #address-cells = <1>;
  58. #size-cells = <0>;
  59. poll-interval = <500>;
  60. button@25 {
  61. label = "GPIO Reset";
  62. linux,code = <116>;
  63. gpios = <&gpio 25 1>;
  64. };
  65. };
  66. chosen {
  67. bootargs = "console=ttyS0,115200n8 earlyprintk root=/dev/mmcblk0p1 rw rootwait";
  68. };
  69. };
  70. &clk_pll {
  71. clocks = <&ref12>;
  72. };
  73. &sdhci {
  74. status = "okay";
  75. };
  76. &mdio0 {
  77. status = "okay";
  78. ethphy0: ethernet-phy@1 {
  79. device_type = "ethernet-phy";
  80. compatible = "moxa,moxart-rtl8201cp", "ethernet-phy-ieee802.3-c22";
  81. reg = <1>;
  82. };
  83. };
  84. &mdio1 {
  85. status = "okay";
  86. ethphy1: ethernet-phy@1 {
  87. device_type = "ethernet-phy";
  88. compatible = "moxa,moxart-rtl8201cp", "ethernet-phy-ieee802.3-c22";
  89. reg = <1>;
  90. };
  91. };
  92. &mac0 {
  93. status = "okay";
  94. };
  95. &mac1 {
  96. status = "okay";
  97. };
  98. &uart0 {
  99. status = "okay";
  100. };