ox820-stg212.dts 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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. #include <dt-bindings/input/input.h>
  11. / {
  12. model = "MitraStar Technology Corp. STG-212";
  13. chosen {
  14. bootargs = "console=ttyS0,115200n8 earlyprintk=serial mem=128M";
  15. };
  16. uart@44200000 {
  17. status = "okay";
  18. };
  19. sata@45900000 {
  20. status = "okay";
  21. };
  22. ethernet@40400000 {
  23. status = "okay";
  24. };
  25. ehci@40200100 {
  26. status = "okay";
  27. };
  28. gpio-keys-polled {
  29. compatible = "gpio-keys-polled";
  30. #address-cells = <1>;
  31. #size-cells = <0>;
  32. poll-interval = <100>;
  33. reset {
  34. label = "reset";
  35. gpios = <&GPIOB 11 1>;
  36. linux,code = <KEY_RESTART>;
  37. };
  38. copy {
  39. label = "copy";
  40. gpios = <&GPIOB 13 1>;
  41. linux,code = <KEY_COPY>;
  42. };
  43. };
  44. gpio-leds {
  45. compatible = "gpio-leds";
  46. status {
  47. label = "zyxel:blue:status";
  48. gpios = <&GPIOB 5 0>;
  49. };
  50. status2 {
  51. label = "zyxel:red:status";
  52. gpios = <&GPIOB 6 1>;
  53. };
  54. copy {
  55. label = "zyxel:orange:copy";
  56. gpios = <&GPIOB 8 1>;
  57. };
  58. };
  59. i2c-gpio {
  60. compatible = "i2c-gpio";
  61. gpios = <&GPIOB 9 0 &GPIOB 10 0>;
  62. i2c-gpio,delay-us = <10>;
  63. };
  64. };
  65. &nandc {
  66. status = "okay";
  67. nand@0 {
  68. reg = <0>;
  69. #address-cells = <1>;
  70. #size-cells = <1>;
  71. nand-ecc-mode = "soft";
  72. nand-ecc-algo = "hamming";
  73. partition@0 {
  74. label = "boot";
  75. reg = <0x00000000 0x00e00000>;
  76. read-only;
  77. };
  78. partition@e00000 {
  79. label = "ubi";
  80. reg = <0x00e00000 0x07200000>;
  81. };
  82. };
  83. };