kirkwood-nsa3x0-common.dtsi 2.8 KB

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