kirkwood-nsa3x0-common.dtsi 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. #include "kirkwood.dtsi"
  2. #include "kirkwood-6281.dtsi"
  3. / {
  4. model = "ZyXEL NSA310";
  5. ocp@f1000000 {
  6. pinctrl: pin-controller@10000 {
  7. pmx_usb_power: pmx-usb-power {
  8. marvell,pins = "mpp21";
  9. marvell,function = "gpio";
  10. };
  11. pmx_pwr_off: pmx-pwr-off {
  12. marvell,pins = "mpp48";
  13. marvell,function = "gpio";
  14. };
  15. pmx_btn_reset: pmx-btn-reset {
  16. marvell,pins = "mpp36";
  17. marvell,function = "gpio";
  18. };
  19. pmx_btn_copy: pmx-btn-copy {
  20. marvell,pins = "mpp37";
  21. marvell,function = "gpio";
  22. };
  23. pmx_btn_power: pmx-btn-power {
  24. marvell,pins = "mpp46";
  25. marvell,function = "gpio";
  26. };
  27. pmx_led_copy_green: pmx-led-copy-green {
  28. marvell,pins = "mpp39";
  29. marvell,function = "gpio";
  30. };
  31. pmx_led_copy_red: pmx-led-copy-red {
  32. marvell,pins = "mpp40";
  33. marvell,function = "gpio";
  34. };
  35. };
  36. serial@12000 {
  37. status = "ok";
  38. };
  39. sata@80000 {
  40. status = "okay";
  41. nr-ports = <2>;
  42. };
  43. };
  44. gpio_poweroff {
  45. compatible = "gpio-poweroff";
  46. pinctrl-0 = <&pmx_pwr_off>;
  47. pinctrl-names = "default";
  48. gpios = <&gpio1 16 GPIO_ACTIVE_HIGH>;
  49. };
  50. gpio_keys {
  51. compatible = "gpio-keys";
  52. #address-cells = <1>;
  53. #size-cells = <0>;
  54. pinctrl-0 = <&pmx_btn_reset &pmx_btn_copy &pmx_btn_power>;
  55. pinctrl-names = "default";
  56. power {
  57. label = "Power Button";
  58. linux,code = <KEY_POWER>;
  59. gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
  60. };
  61. copy {
  62. label = "Copy Button";
  63. linux,code = <KEY_COPY>;
  64. gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
  65. };
  66. reset {
  67. label = "Reset Button";
  68. linux,code = <KEY_RESTART>;
  69. gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
  70. };
  71. };
  72. regulators {
  73. compatible = "simple-bus";
  74. #address-cells = <1>;
  75. #size-cells = <0>;
  76. pinctrl-0 = <&pmx_usb_power>;
  77. pinctrl-names = "default";
  78. usb0_power: regulator@1 {
  79. compatible = "regulator-fixed";
  80. reg = <1>;
  81. regulator-name = "USB Power";
  82. regulator-min-microvolt = <5000000>;
  83. regulator-max-microvolt = <5000000>;
  84. regulator-always-on;
  85. regulator-boot-on;
  86. gpio = <&gpio0 21 GPIO_ACTIVE_HIGH>;
  87. };
  88. };
  89. };
  90. &nand {
  91. status = "okay";
  92. chip-delay = <35>;
  93. partition@0 {
  94. label = "uboot";
  95. reg = <0x0000000 0x0100000>;
  96. read-only;
  97. };
  98. partition@100000 {
  99. label = "uboot_env";
  100. reg = <0x0100000 0x0080000>;
  101. };
  102. partition@180000 {
  103. label = "key_store";
  104. reg = <0x0180000 0x0080000>;
  105. };
  106. partition@200000 {
  107. label = "info";
  108. reg = <0x0200000 0x0080000>;
  109. };
  110. partition@280000 {
  111. label = "etc";
  112. reg = <0x0280000 0x0a00000>;
  113. };
  114. partition@c80000 {
  115. label = "kernel_1";
  116. reg = <0x0c80000 0x0a00000>;
  117. };
  118. partition@1680000 {
  119. label = "rootfs1";
  120. reg = <0x1680000 0x2fc0000>;
  121. };
  122. partition@4640000 {
  123. label = "kernel_2";
  124. reg = <0x4640000 0x0a00000>;
  125. };
  126. partition@5040000 {
  127. label = "rootfs2";
  128. reg = <0x5040000 0x2fc0000>;
  129. };
  130. };
  131. &pciec {
  132. status = "okay";
  133. };
  134. &pcie0 {
  135. status = "okay";
  136. };