ox820-stg212.dts 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. /*
  2. * Copyright (C) 2013 OpenWrt.org
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. */
  8. /dts-v1/;
  9. #include "ox820.dtsi"
  10. / {
  11. model = "MitraStar Technology Corp. STG-212";
  12. chosen {
  13. bootargs = "console=ttyS0,115200n8 earlyprintk=serial";
  14. };
  15. uart@44200000 {
  16. status = "okay";
  17. };
  18. sata@45900000 {
  19. status = "okay";
  20. };
  21. nand@41000000 {
  22. status = "okay";
  23. partition@0 {
  24. label = "boot";
  25. reg = <0x00000000 0x00e00000>;
  26. /*read-only;*/
  27. };
  28. partition@e00000 {
  29. label = "ubi";
  30. reg = <0x00e00000 0x07200000>;
  31. };
  32. };
  33. ethernet@40400000 {
  34. status = "okay";
  35. };
  36. ehci@40200100 {
  37. status = "okay";
  38. };
  39. gpio-keys-polled {
  40. compatible = "gpio-keys-polled";
  41. #address-cells = <1>;
  42. #size-cells = <0>;
  43. poll-interval = <100>;
  44. reset {
  45. label = "reset";
  46. gpios = <&GPIOB 11 1>;
  47. linux,code = <0x198>;
  48. };
  49. copy {
  50. label = "copy";
  51. gpios = <&GPIOB 13 1>;
  52. linux,code = <0x85>;
  53. };
  54. };
  55. gpio-leds {
  56. compatible = "gpio-leds";
  57. status {
  58. label = "zyxel:blue:status";
  59. gpios = <&GPIOB 5 0>;
  60. };
  61. status2 {
  62. label = "zyxel:red:status";
  63. gpios = <&GPIOB 6 1>;
  64. };
  65. copy {
  66. label = "zyxel:orange:copy";
  67. gpios = <&GPIOB 8 1>;
  68. };
  69. };
  70. i2c-gpio {
  71. compatible = "i2c-gpio";
  72. gpios = <&GPIOB 9 0 &GPIOB 10 0>;
  73. i2c-gpio,delay-us = <10>;
  74. };
  75. };