kirkwood-t5325.dts 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. /*
  2. * Device Tree file for HP t5325 Thin Client"
  3. *
  4. * Copyright (C) 2014
  5. *
  6. * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  7. * Andrew Lunn <andrew@lunn.ch>
  8. *
  9. * This file is licensed under the terms of the GNU General Public
  10. * License version 2. This program is licensed "as is" without any
  11. * warranty of any kind, whether express or implied.
  12. */
  13. /dts-v1/;
  14. #include "kirkwood.dtsi"
  15. #include "kirkwood-6281.dtsi"
  16. / {
  17. model = "HP t5325 Thin Client";
  18. compatible = "hp,t5325", "marvell,kirkwood-88f6281", "marvell,kirkwood";
  19. memory {
  20. device_type = "memory";
  21. reg = <0x00000000 0x20000000>;
  22. };
  23. chosen {
  24. bootargs = "console=ttyS0,115200n8";
  25. stdout-path = &uart0;
  26. };
  27. mbus {
  28. pcie-controller {
  29. status = "okay";
  30. pcie@1,0 {
  31. status = "okay";
  32. };
  33. };
  34. };
  35. ocp@f1000000 {
  36. pinctrl: pin-controller@10000 {
  37. pinctrl-0 = <&pmx_i2s &pmx_sysrst>;
  38. pinctrl-names = "default";
  39. pmx_button_power: pmx-button_power {
  40. marvell,pins = "mpp45";
  41. marvell,function = "gpio";
  42. };
  43. pmx_power_off: pmx-power-off {
  44. marvell,pins = "mpp48";
  45. marvell,function = "gpio";
  46. };
  47. pmx_led: pmx-led {
  48. marvell,pins = "mpp21";
  49. marvell,function = "gpio";
  50. };
  51. pmx_usb_sata_power_enable: pmx-usb-sata-power-enable {
  52. marvell,pins = "mpp44";
  53. marvell,function = "gpio";
  54. };
  55. pmx_spi: pmx-spi {
  56. marvell,pins = "mpp1", "mpp2", "mpp3", "mpp7";
  57. marvell,function = "spi";
  58. };
  59. pmx_sysrst: pmx-sysrst {
  60. marvell,pins = "mpp6";
  61. marvell,function = "sysrst";
  62. };
  63. pmx_i2s: pmx-i2s {
  64. marvell,pins = "mpp39", "mpp40", "mpp41", "mpp42",
  65. "mpp43";
  66. marvell,function = "audio";
  67. };
  68. };
  69. spi@10600 {
  70. status = "okay";
  71. flash@0 {
  72. #address-cells = <1>;
  73. #size-cells = <1>;
  74. compatible = "st,m25p80";
  75. spi-max-frequency = <86000000>;
  76. reg = <0>;
  77. mode = <0>;
  78. partition@0 {
  79. reg = <0x0 0x80000>;
  80. label = "u-boot";
  81. };
  82. partition@1 {
  83. reg = <0x80000 0x40000>;
  84. label = "SSD firmware";
  85. };
  86. partition@2 {
  87. reg = <0xc0000 0x10000>;
  88. label = "u-boot env";
  89. };
  90. partition@3 {
  91. reg = <0xd0000 0x10000>;
  92. label = "permanent u-boot env";
  93. };
  94. partition@4 {
  95. reg = <0xd0000 0x10000>;
  96. label = "permanent u-boot env";
  97. };
  98. };
  99. };
  100. i2c@11000 {
  101. status = "okay";
  102. alc5621: alc5621@1a {
  103. compatible = "realtek,alc5621";
  104. reg = <0x1a>;
  105. #sound-dai-cells = <0>;
  106. add-ctrl = <0x3700>;
  107. jack-det-ctrl = <0x4810>;
  108. };
  109. };
  110. serial@12000 {
  111. status = "okay";
  112. };
  113. sata@80000 {
  114. status = "okay";
  115. nr-ports = <2>;
  116. };
  117. audio: audio-controller@a0000 {
  118. status = "okay";
  119. };
  120. };
  121. regulators {
  122. compatible = "simple-bus";
  123. #address-cells = <1>;
  124. #size-cells = <0>;
  125. pinctrl-0 = <&pmx_usb_sata_power_enable>;
  126. pinctrl-names = "default";
  127. usb_power: regulator@1 {
  128. compatible = "regulator-fixed";
  129. reg = <1>;
  130. regulator-name = "USB-SATA Power";
  131. regulator-min-microvolt = <5000000>;
  132. regulator-max-microvolt = <5000000>;
  133. enable-active-high;
  134. regulator-always-on;
  135. regulator-boot-on;
  136. gpio = <&gpio1 12 GPIO_ACTIVE_HIGH>;
  137. };
  138. };
  139. gpio_keys {
  140. compatible = "gpio-keys";
  141. #address-cells = <1>;
  142. #size-cells = <0>;
  143. pinctrl-0 = <&pmx_button_power>;
  144. pinctrl-names = "default";
  145. button@1 {
  146. label = "Power Button";
  147. linux,code = <KEY_POWER>;
  148. gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>;
  149. };
  150. };
  151. gpio_poweroff {
  152. compatible = "gpio-poweroff";
  153. pinctrl-0 = <&pmx_power_off>;
  154. pinctrl-names = "default";
  155. gpios = <&gpio1 17 GPIO_ACTIVE_HIGH>;
  156. };
  157. sound {
  158. compatible = "simple-audio-card";
  159. simple-audio-card,format = "i2s";
  160. simple-audio-card,routing =
  161. "Headphone Jack", "HPL",
  162. "Headphone Jack", "HPR",
  163. "Speaker", "SPKOUT",
  164. "Speaker", "SPKOUTN",
  165. "MIC1", "Mic Jack",
  166. "MIC2", "Mic Jack";
  167. simple-audio-card,widgets =
  168. "Headphone", "Headphone Jack",
  169. "Speaker", "Speaker",
  170. "Microphone", "Mic Jack";
  171. simple-audio-card,mclk-fs = <256>;
  172. simple-audio-card,cpu {
  173. sound-dai = <&audio>;
  174. };
  175. simple-audio-card,codec {
  176. sound-dai = <&alc5621>;
  177. };
  178. };
  179. };
  180. &mdio {
  181. status = "okay";
  182. ethphy0: ethernet-phy {
  183. device_type = "ethernet-phy";
  184. reg = <8>;
  185. };
  186. };
  187. &eth0 {
  188. status = "okay";
  189. ethernet0-port@0 {
  190. phy-handle = <&ethphy0>;
  191. };
  192. };