moxart-uc7112lx.dts 1.9 KB

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