exynos5800-peach-pi.dts 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. /*
  2. * Google Peach Pi Rev 10+ board device tree source
  3. *
  4. * Copyright (c) 2014 Google, Inc
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. */
  10. /dts-v1/;
  11. #include <dt-bindings/input/input.h>
  12. #include <dt-bindings/gpio/gpio.h>
  13. #include "exynos5800.dtsi"
  14. / {
  15. model = "Google Peach Pi Rev 10+";
  16. compatible = "google,pi-rev16",
  17. "google,pi-rev15", "google,pi-rev14",
  18. "google,pi-rev13", "google,pi-rev12",
  19. "google,pi-rev11", "google,pi-rev10",
  20. "google,pi", "google,peach", "samsung,exynos5800",
  21. "samsung,exynos5";
  22. memory {
  23. reg = <0x20000000 0x80000000>;
  24. };
  25. fixed-rate-clocks {
  26. oscclk {
  27. compatible = "samsung,exynos5420-oscclk";
  28. clock-frequency = <24000000>;
  29. };
  30. };
  31. gpio-keys {
  32. compatible = "gpio-keys";
  33. pinctrl-names = "default";
  34. pinctrl-0 = <&power_key_irq>;
  35. power {
  36. label = "Power";
  37. gpios = <&gpx1 2 GPIO_ACTIVE_LOW>;
  38. linux,code = <KEY_POWER>;
  39. gpio-key,wakeup;
  40. };
  41. };
  42. backlight {
  43. compatible = "pwm-backlight";
  44. pwms = <&pwm 0 1000000 0>;
  45. brightness-levels = <0 100 500 1000 1500 2000 2500 2800>;
  46. default-brightness-level = <7>;
  47. pinctrl-0 = <&pwm0_out>;
  48. pinctrl-names = "default";
  49. };
  50. usb300_vbus_reg: regulator-usb300 {
  51. compatible = "regulator-fixed";
  52. regulator-name = "P5.0V_USB3CON0";
  53. regulator-min-microvolt = <5000000>;
  54. regulator-max-microvolt = <5000000>;
  55. gpio = <&gph0 0 0>;
  56. pinctrl-names = "default";
  57. pinctrl-0 = <&usb300_vbus_en>;
  58. enable-active-high;
  59. };
  60. usb301_vbus_reg: regulator-usb301 {
  61. compatible = "regulator-fixed";
  62. regulator-name = "P5.0V_USB3CON1";
  63. regulator-min-microvolt = <5000000>;
  64. regulator-max-microvolt = <5000000>;
  65. gpio = <&gph0 1 0>;
  66. pinctrl-names = "default";
  67. pinctrl-0 = <&usb301_vbus_en>;
  68. enable-active-high;
  69. };
  70. };
  71. &pinctrl_0 {
  72. tpm_irq: tpm-irq {
  73. samsung,pins = "gpx1-0";
  74. samsung,pin-function = <0>;
  75. samsung,pin-pud = <0>;
  76. samsung,pin-drv = <0>;
  77. };
  78. power_key_irq: power-key-irq {
  79. samsung,pins = "gpx1-2";
  80. samsung,pin-function = <0>;
  81. samsung,pin-pud = <0>;
  82. samsung,pin-drv = <0>;
  83. };
  84. dp_hpd_gpio: dp_hpd_gpio {
  85. samsung,pins = "gpx2-6";
  86. samsung,pin-function = <0>;
  87. samsung,pin-pud = <3>;
  88. samsung,pin-drv = <0>;
  89. };
  90. hdmi_hpd_irq: hdmi-hpd-irq {
  91. samsung,pins = "gpx3-7";
  92. samsung,pin-function = <0>;
  93. samsung,pin-pud = <1>;
  94. samsung,pin-drv = <0>;
  95. };
  96. };
  97. &pinctrl_3 {
  98. usb300_vbus_en: usb300-vbus-en {
  99. samsung,pins = "gph0-0";
  100. samsung,pin-function = <1>;
  101. samsung,pin-pud = <0>;
  102. samsung,pin-drv = <0>;
  103. };
  104. usb301_vbus_en: usb301-vbus-en {
  105. samsung,pins = "gph0-1";
  106. samsung,pin-function = <1>;
  107. samsung,pin-pud = <0>;
  108. samsung,pin-drv = <0>;
  109. };
  110. };
  111. &rtc {
  112. status = "okay";
  113. };
  114. &uart_3 {
  115. status = "okay";
  116. };
  117. &mmc_0 {
  118. status = "okay";
  119. num-slots = <1>;
  120. broken-cd;
  121. caps2-mmc-hs200-1_8v;
  122. supports-highspeed;
  123. non-removable;
  124. card-detect-delay = <200>;
  125. clock-frequency = <400000000>;
  126. samsung,dw-mshc-ciu-div = <3>;
  127. samsung,dw-mshc-sdr-timing = <0 4>;
  128. samsung,dw-mshc-ddr-timing = <0 2>;
  129. pinctrl-names = "default";
  130. pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_bus4 &sd0_bus8>;
  131. slot@0 {
  132. reg = <0>;
  133. bus-width = <8>;
  134. };
  135. };
  136. &mmc_2 {
  137. status = "okay";
  138. num-slots = <1>;
  139. supports-highspeed;
  140. card-detect-delay = <200>;
  141. clock-frequency = <400000000>;
  142. samsung,dw-mshc-ciu-div = <3>;
  143. samsung,dw-mshc-sdr-timing = <2 3>;
  144. samsung,dw-mshc-ddr-timing = <1 2>;
  145. pinctrl-names = "default";
  146. pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus4>;
  147. slot@0 {
  148. reg = <0>;
  149. bus-width = <4>;
  150. };
  151. };
  152. &dp {
  153. status = "okay";
  154. pinctrl-names = "default";
  155. pinctrl-0 = <&dp_hpd_gpio>;
  156. samsung,color-space = <0>;
  157. samsung,dynamic-range = <0>;
  158. samsung,ycbcr-coeff = <0>;
  159. samsung,color-depth = <1>;
  160. samsung,link-rate = <0x0a>;
  161. samsung,lane-count = <2>;
  162. samsung,hpd-gpio = <&gpx2 6 0>;
  163. display-timings {
  164. native-mode = <&timing1>;
  165. timing1: timing@1 {
  166. clock-frequency = <150660000>;
  167. hactive = <1920>;
  168. vactive = <1080>;
  169. hfront-porch = <60>;
  170. hback-porch = <172>;
  171. hsync-len = <80>;
  172. vback-porch = <25>;
  173. vfront-porch = <10>;
  174. vsync-len = <10>;
  175. };
  176. };
  177. };
  178. &fimd {
  179. status = "okay";
  180. samsung,invert-vclk;
  181. };
  182. &hsi2c_9 {
  183. status = "okay";
  184. clock-frequency = <400000>;
  185. tpm@20 {
  186. compatible = "infineon,slb9645tt";
  187. reg = <0x20>;
  188. /* Unused irq; but still need to configure the pins */
  189. pinctrl-names = "default";
  190. pinctrl-0 = <&tpm_irq>;
  191. };
  192. };
  193. &i2c_2 {
  194. status = "okay";
  195. samsung,i2c-sda-delay = <100>;
  196. samsung,i2c-max-bus-freq = <66000>;
  197. samsung,i2c-slave-addr = <0x50>;
  198. };
  199. &hdmi {
  200. status = "okay";
  201. hpd-gpio = <&gpx3 7 GPIO_ACTIVE_HIGH>;
  202. pinctrl-names = "default";
  203. pinctrl-0 = <&hdmi_hpd_irq>;
  204. ddc = <&i2c_2>;
  205. };
  206. &usbdrd_phy0 {
  207. vbus-supply = <&usb300_vbus_reg>;
  208. };
  209. &usbdrd_phy1 {
  210. vbus-supply = <&usb301_vbus_reg>;
  211. };
  212. /*
  213. * Use longest HW watchdog in SoC (32 seconds) since the hardware
  214. * watchdog provides no debugging information (compared to soft/hard
  215. * lockup detectors) and so should be last resort.
  216. */
  217. &watchdog {
  218. timeout-sec = <32>;
  219. };