exynos4412-galaxy-s3.dtsi 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Samsung's Exynos4412 based Galaxy S3 board device tree source
  4. *
  5. * Copyright (c) 2013 Samsung Electronics Co., Ltd.
  6. * http://www.samsung.com
  7. */
  8. /dts-v1/;
  9. #include <dt-bindings/leds/common.h>
  10. #include "exynos4412-midas.dtsi"
  11. / {
  12. aliases {
  13. i2c9 = &i2c_ak8975;
  14. i2c10 = &i2c_cm36651;
  15. };
  16. led-controller {
  17. compatible = "skyworks,aat1290";
  18. flen-gpios = <&gpj1 1 GPIO_ACTIVE_HIGH>;
  19. enset-gpios = <&gpj1 2 GPIO_ACTIVE_HIGH>;
  20. pinctrl-names = "default", "host", "isp";
  21. pinctrl-0 = <&camera_flash_host>;
  22. pinctrl-1 = <&camera_flash_host>;
  23. pinctrl-2 = <&camera_flash_isp>;
  24. led {
  25. function = LED_FUNCTION_FLASH;
  26. color = <LED_COLOR_ID_WHITE>;
  27. led-max-microamp = <520833>;
  28. flash-max-microamp = <1012500>;
  29. flash-max-timeout-us = <1940000>;
  30. };
  31. };
  32. lcd_vdd3_reg: voltage-regulator-10 {
  33. compatible = "regulator-fixed";
  34. regulator-name = "LCD_VDD_2.2V";
  35. regulator-min-microvolt = <2200000>;
  36. regulator-max-microvolt = <2200000>;
  37. gpio = <&gpc0 1 GPIO_ACTIVE_HIGH>;
  38. enable-active-high;
  39. };
  40. ps_als_reg: voltage-regulator-11 {
  41. compatible = "regulator-fixed";
  42. regulator-name = "LED_A_3.0V";
  43. regulator-min-microvolt = <3000000>;
  44. regulator-max-microvolt = <3000000>;
  45. gpio = <&gpj0 5 GPIO_ACTIVE_HIGH>;
  46. enable-active-high;
  47. };
  48. i2c_ak8975: i2c-gpio-0 {
  49. compatible = "i2c-gpio";
  50. sda-gpios = <&gpy2 4 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
  51. scl-gpios = <&gpy2 5 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
  52. i2c-gpio,delay-us = <2>;
  53. #address-cells = <1>;
  54. #size-cells = <0>;
  55. magnetometer@c {
  56. compatible = "asahi-kasei,ak8975";
  57. reg = <0x0c>;
  58. gpios = <&gpj0 7 GPIO_ACTIVE_HIGH>;
  59. };
  60. };
  61. i2c_cm36651: i2c-gpio-2 {
  62. compatible = "i2c-gpio";
  63. sda-gpios = <&gpf0 0 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
  64. scl-gpios = <&gpf0 1 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
  65. i2c-gpio,delay-us = <2>;
  66. #address-cells = <1>;
  67. #size-cells = <0>;
  68. light-sensor@18 {
  69. compatible = "capella,cm36651";
  70. reg = <0x18>;
  71. interrupt-parent = <&gpx0>;
  72. interrupts = <2 IRQ_TYPE_EDGE_FALLING>;
  73. vled-supply = <&ps_als_reg>;
  74. };
  75. };
  76. };
  77. &buck9_reg {
  78. maxim,ena-gpios = <&gpm0 3 GPIO_ACTIVE_HIGH>;
  79. };
  80. &cam_af_reg {
  81. gpio = <&gpm0 4 GPIO_ACTIVE_HIGH>;
  82. status = "okay";
  83. };
  84. &cam_io_reg {
  85. gpio = <&gpm0 2 GPIO_ACTIVE_HIGH>;
  86. status = "okay";
  87. };
  88. &dsi_0 {
  89. status = "okay";
  90. panel@0 {
  91. compatible = "samsung,s6e8aa0";
  92. reg = <0>;
  93. vdd3-supply = <&lcd_vdd3_reg>;
  94. vci-supply = <&ldo25_reg>;
  95. reset-gpios = <&gpf2 1 GPIO_ACTIVE_HIGH>;
  96. power-on-delay = <50>;
  97. reset-delay = <100>;
  98. init-delay = <100>;
  99. flip-horizontal;
  100. flip-vertical;
  101. panel-width-mm = <58>;
  102. panel-height-mm = <103>;
  103. display-timings {
  104. timing-0 {
  105. clock-frequency = <57153600>;
  106. hactive = <720>;
  107. vactive = <1280>;
  108. hfront-porch = <5>;
  109. hback-porch = <5>;
  110. hsync-len = <5>;
  111. vfront-porch = <13>;
  112. vback-porch = <1>;
  113. vsync-len = <2>;
  114. };
  115. };
  116. };
  117. };
  118. &i2c_3 {
  119. touchscreen@48 {
  120. compatible = "melfas,mms114";
  121. reg = <0x48>;
  122. interrupt-parent = <&gpm2>;
  123. interrupts = <3 IRQ_TYPE_EDGE_FALLING>;
  124. touchscreen-size-x = <720>;
  125. touchscreen-size-y = <1280>;
  126. avdd-supply = <&ldo23_reg>;
  127. vdd-supply = <&ldo24_reg>;
  128. };
  129. };
  130. &ldo25_reg {
  131. regulator-name = "LCD_VCC_3.3V";
  132. regulator-min-microvolt = <2800000>;
  133. regulator-max-microvolt = <2800000>;
  134. };
  135. &pinctrl_0 {
  136. camera_flash_host: camera-flash-host-pins {
  137. samsung,pins = "gpj1-0";
  138. samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
  139. samsung,pin-val = <0>;
  140. };
  141. camera_flash_isp: camera-flash-isp-pins {
  142. samsung,pins = "gpj1-0";
  143. samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
  144. samsung,pin-val = <1>;
  145. };
  146. };
  147. &s5c73m3 {
  148. standby-gpios = <&gpm0 1 GPIO_ACTIVE_LOW>; /* ISP_STANDBY */
  149. vdda-supply = <&ldo17_reg>;
  150. status = "okay";
  151. };
  152. &sound {
  153. samsung,audio-routing =
  154. "HP", "HPOUT1L",
  155. "HP", "HPOUT1R",
  156. "SPK", "SPKOUTLN",
  157. "SPK", "SPKOUTLP",
  158. "SPK", "SPKOUTRN",
  159. "SPK", "SPKOUTRP",
  160. "RCV", "HPOUT2N",
  161. "RCV", "HPOUT2P",
  162. "HDMI", "LINEOUT1N",
  163. "HDMI", "LINEOUT1P",
  164. "LINE", "LINEOUT2N",
  165. "LINE", "LINEOUT2P",
  166. "IN1LP", "MICBIAS1",
  167. "IN1LN", "MICBIAS1",
  168. "Main Mic", "MICBIAS1",
  169. "IN1RP", "Sub Mic",
  170. "IN1RN", "Sub Mic",
  171. "IN2LP:VXRN", "MICBIAS2",
  172. "Headset Mic", "MICBIAS2",
  173. "IN2RN", "FM In",
  174. "IN2RP:VXRP", "FM In";
  175. };
  176. &submic_bias_reg {
  177. gpio = <&gpf2 0 GPIO_ACTIVE_HIGH>;
  178. enable-active-high;
  179. };
  180. &touchkey_reg {
  181. gpio = <&gpm0 0 GPIO_ACTIVE_HIGH>;
  182. status = "okay";
  183. };