msm8916-samsung-j5.dts 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /dts-v1/;
  3. #include "msm8916-pm8916.dtsi"
  4. #include <dt-bindings/gpio/gpio.h>
  5. / {
  6. model = "Samsung Galaxy J5 (2015)";
  7. compatible = "samsung,j5", "qcom,msm8916";
  8. chassis-type = "handset";
  9. aliases {
  10. serial0 = &blsp1_uart2;
  11. };
  12. chosen {
  13. stdout-path = "serial0";
  14. };
  15. reserved-memory {
  16. /* Additional memory used by Samsung firmware modifications */
  17. tz-apps@85500000 {
  18. reg = <0x0 0x85500000 0x0 0xb00000>;
  19. no-map;
  20. };
  21. };
  22. gpio-keys {
  23. compatible = "gpio-keys";
  24. pinctrl-names = "default";
  25. pinctrl-0 = <&gpio_keys_default>;
  26. label = "GPIO Buttons";
  27. button-volume-up {
  28. label = "Volume Up";
  29. gpios = <&msmgpio 107 GPIO_ACTIVE_LOW>;
  30. linux,code = <KEY_VOLUMEUP>;
  31. };
  32. button-home {
  33. label = "Home Key";
  34. gpios = <&msmgpio 109 GPIO_ACTIVE_LOW>;
  35. linux,code = <KEY_HOMEPAGE>;
  36. };
  37. };
  38. };
  39. &blsp1_uart2 {
  40. status = "okay";
  41. };
  42. &pm8916_resin {
  43. status = "okay";
  44. linux,code = <KEY_VOLUMEDOWN>;
  45. };
  46. /* FIXME: Replace with SM5703 MUIC when driver is available */
  47. &pm8916_usbin {
  48. status = "okay";
  49. };
  50. &pronto {
  51. status = "okay";
  52. };
  53. &sdhc_1 {
  54. status = "okay";
  55. pinctrl-names = "default", "sleep";
  56. pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on>;
  57. pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off>;
  58. };
  59. &sdhc_2 {
  60. status = "okay";
  61. pinctrl-names = "default", "sleep";
  62. pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on>;
  63. pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &sdc2_cd_off>;
  64. cd-gpios = <&msmgpio 38 GPIO_ACTIVE_LOW>;
  65. };
  66. &usb {
  67. status = "okay";
  68. dr_mode = "peripheral";
  69. extcon = <&pm8916_usbin>;
  70. };
  71. &usb_hs_phy {
  72. extcon = <&pm8916_usbin>;
  73. qcom,init-seq = /bits/ 8 <0x1 0x19 0x2 0x0b>;
  74. };
  75. &smd_rpm_regulators {
  76. vdd_l1_l2_l3-supply = <&pm8916_s3>;
  77. vdd_l4_l5_l6-supply = <&pm8916_s4>;
  78. vdd_l7-supply = <&pm8916_s4>;
  79. s3 {
  80. regulator-min-microvolt = <1200000>;
  81. regulator-max-microvolt = <1300000>;
  82. };
  83. s4 {
  84. regulator-min-microvolt = <1800000>;
  85. regulator-max-microvolt = <2100000>;
  86. };
  87. l1 {
  88. regulator-min-microvolt = <1225000>;
  89. regulator-max-microvolt = <1225000>;
  90. };
  91. l2 {
  92. regulator-min-microvolt = <1200000>;
  93. regulator-max-microvolt = <1200000>;
  94. };
  95. l4 {
  96. regulator-min-microvolt = <2050000>;
  97. regulator-max-microvolt = <2050000>;
  98. };
  99. l5 {
  100. regulator-min-microvolt = <1800000>;
  101. regulator-max-microvolt = <1800000>;
  102. };
  103. l6 {
  104. regulator-min-microvolt = <1800000>;
  105. regulator-max-microvolt = <1800000>;
  106. };
  107. l7 {
  108. regulator-min-microvolt = <1800000>;
  109. regulator-max-microvolt = <1800000>;
  110. };
  111. l8 {
  112. regulator-min-microvolt = <2850000>;
  113. regulator-max-microvolt = <2900000>;
  114. };
  115. l9 {
  116. regulator-min-microvolt = <3300000>;
  117. regulator-max-microvolt = <3300000>;
  118. };
  119. l10 {
  120. regulator-min-microvolt = <2700000>;
  121. regulator-max-microvolt = <2800000>;
  122. };
  123. l11 {
  124. regulator-min-microvolt = <1800000>;
  125. regulator-max-microvolt = <2950000>;
  126. regulator-allow-set-load;
  127. regulator-system-load = <200000>;
  128. };
  129. l12 {
  130. regulator-min-microvolt = <1800000>;
  131. regulator-max-microvolt = <2950000>;
  132. };
  133. l13 {
  134. regulator-min-microvolt = <3075000>;
  135. regulator-max-microvolt = <3075000>;
  136. };
  137. l14 {
  138. regulator-min-microvolt = <1800000>;
  139. regulator-max-microvolt = <3300000>;
  140. };
  141. l15 {
  142. regulator-min-microvolt = <1800000>;
  143. regulator-max-microvolt = <3300000>;
  144. };
  145. l16 {
  146. regulator-min-microvolt = <1800000>;
  147. regulator-max-microvolt = <3300000>;
  148. };
  149. l17 {
  150. regulator-min-microvolt = <3000000>;
  151. regulator-max-microvolt = <3000000>;
  152. };
  153. l18 {
  154. regulator-min-microvolt = <2700000>;
  155. regulator-max-microvolt = <2700000>;
  156. };
  157. };
  158. &msmgpio {
  159. gpio_keys_default: gpio-keys-default {
  160. pins = "gpio107", "gpio109";
  161. function = "gpio";
  162. drive-strength = <2>;
  163. bias-pull-up;
  164. };
  165. };