Advertisement
shivashanka908290

Untitled

Nov 26th, 2020
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.85 KB | None | 0 0
  1. /*
  2. * Copyright (c) 2014-2016, The Linux Foundation. All rights reserved.
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 and
  6. * only version 2 as published by the Free Software Foundation.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. */
  13.  
  14. /dts-v1/;
  15.  
  16. #include "apq8096-nanosom.dtsi"
  17. #include "apq8096-devkit-pins.dts"
  18.  
  19. / {
  20. model = "Mistral 820 Nano SoM Development Kit";
  21. compatible = "qcom,apq8096-nanosom";
  22.  
  23. gpio_keys {
  24. compatible = "gpio-keys";
  25. #address-cells = <1>;
  26. #size-cells = <0>;
  27. autorepeat;
  28.  
  29. pinctrl-names = "default";
  30. pinctrl-0 = <&volume_up_gpio &user_key_1 &user_key_2>;
  31.  
  32. button@0 {
  33. label = "Volume Up";
  34. linux,code = <KEY_VOLUMEUP>;
  35. gpios = <&pm8994_gpios 2 GPIO_ACTIVE_LOW>;
  36. };
  37.  
  38. button@1 {
  39. label = "User key 1";
  40. linux,code = <KEY_7>;
  41. gpios = <&msmgpio 127 GPIO_ACTIVE_LOW>;
  42. };
  43.  
  44. button@2 {
  45. label = "User key 2";
  46. linux,code = <KEY_8>;
  47. gpios = <&msmgpio 9 GPIO_ACTIVE_LOW>;
  48. };
  49.  
  50. };
  51.  
  52.  
  53. };
  54.  
  55. &spmi_bus {
  56. pmic@3 {
  57. pmi8994_haptics: qcom,haptic@c000 {
  58. status = "okay";
  59. };
  60. };
  61. };
  62.  
  63. &soc {
  64. blsp12_i2c: i2c@075ba000 {
  65. compatible = "qcom,i2c-qup-v2.2.1";
  66. reg = <0x075ba000 0x1000>;
  67. interrupts = <GIC_SPI 106 0>;
  68. clocks = <&gcc GCC_BLSP2_AHB_CLK>,
  69. <&gcc GCC_BLSP2_QUP6_I2C_APPS_CLK>;
  70. clock-names = "iface", "core";
  71. pinctrl-names = "default", "sleep";
  72. pinctrl-0 = <&blsp12_i2c_default>;
  73. pinctrl-1 = <&blsp12_i2c_sleep>;
  74. #address-cells = <1>;
  75. #size-cells = <0>;
  76. status = "okay";
  77.  
  78. tca9535: tca9535@20 {
  79. compatible = "ti,tca9535";
  80. reg = <0x20>;
  81. tca9535,invert = /bits/ 8 <0x00 0x00>;
  82. tca9535,output = /bits/ 8 <0xfe 0xff>;
  83. tca9535,config = /bits/ 8 <0xaa 0xff>;
  84. gpio-controller;
  85. #gpio-cells = <2>;
  86. status = "okay";
  87. };
  88. };
  89.  
  90. i2c@075b5000 {
  91. /* On High speed expansion */
  92. label = "HS-I2C2";
  93. status = "ok";
  94.  
  95. };
  96.  
  97.  
  98.  
  99.  
  100. mdss@900000 {
  101. vdd-supply = <&pm8994_l22>;
  102. status = "okay";
  103.  
  104. mdp@901000 {
  105. status = "okay";
  106. };
  107.  
  108. dsi@994000 {
  109. vddio-supply = <&pm8994_l14>;
  110. vdda-supply = <&pm8994_l2>;
  111. vcca-supply = <&pm8994_l28>;
  112. status = "okay";
  113.  
  114. panel@0 {
  115. reg = <0>;
  116. status = "okay";
  117. compatible = "raydium,rm68200";
  118. pinctrl-names = "default", "sleep";
  119. pinctrl-0 = <&reset_active &te_active &mdss_disp_bkl_active &lcd_pw_active &disp_bkl_active>;
  120. pinctrl-1 = <&te_suspend &mdss_disp_bkl_suspend &lcd_pw_suspend &disp_bkl_active>;
  121. reset-gpios = <&msmgpio 136 GPIO_ACTIVE_LOW>;
  122. power-supply = <&pm8994_l15>;
  123.  
  124. port {
  125. panel0_in: endpoint {
  126. remote-endpoint = <&dsi0_out>;
  127. };
  128. };
  129. };
  130.  
  131. ports {
  132. port@1 {
  133. endpoint {
  134. remote-endpoint = <&panel0_in>;
  135. data-lanes = <0 1 2 3>;
  136. };
  137. };
  138. };
  139. };
  140.  
  141. hdmi-phy@9a0600 {
  142. status = "okay";
  143.  
  144. vddio-supply = <&pm8994_l12>;
  145. vcca-supply = <&pm8994_l28>;
  146. #phy-cells = <0>;
  147. };
  148.  
  149. hdmi-tx@9a0000 {
  150. status = "okay";
  151.  
  152. pinctrl-names = "default", "sleep";
  153. pinctrl-0 = <&hdmi_hpd_active &hdmi_ddc_active>;
  154. pinctrl-1 = <&hdmi_hpd_suspend &hdmi_ddc_suspend>;
  155.  
  156. core-vdda-supply = <&pm8994_l12>;
  157. core-vcc-supply = <&pm8994_s4>;
  158. #sound-dai-cells = <1>;
  159. };
  160. };
  161.  
  162. blsp2_i2c1: i2c@07575000 {
  163. /* On Low speed expansion */
  164. label = "LS-I2C1";
  165. pinctrl-names = "default", "sleep";
  166. pinctrl-0 = <&blsp2_i2c_1_active>;
  167. pinctrl-1 = <&blsp2_i2c_1_sleep>;
  168. status = "ok";
  169.  
  170. goodix_ts@5d {
  171. status = "okay";
  172. compatible = "goodix,gt911";
  173. reg = <0x5d>;
  174. interrupt-parent = <&msmgpio>;
  175. interrupts = <125 0x2008>;
  176. pinctrl-names = "default";
  177. pinctrl-0 = <&ts_active>;
  178. irq-gpios = <&msmgpio 125 0x00>;
  179. reset-gpios = <&msmgpio 144 0x00>;
  180. };
  181. };
  182.  
  183. camera_vdddo_1v8: fixedregulator@0 {
  184. compatible = "regulator-fixed";
  185. regulator-name = "camera_vdddo";
  186. regulator-min-microvolt = <1800000>;
  187. regulator-max-microvolt = <1800000>;
  188. regulator-always-on;
  189. };
  190.  
  191. camera_vdda_2v8: fixedregulator@1 {
  192. compatible = "regulator-fixed";
  193. regulator-name = "camera_vdda";
  194. regulator-min-microvolt = <2800000>;
  195. regulator-max-microvolt = <2800000>;
  196. regulator-always-on;
  197. };
  198.  
  199. camera_vddd_1v5: fixedregulator@2 {
  200. compatible = "regulator-fixed";
  201. regulator-name = "camera_vddd";
  202. regulator-min-microvolt = <1500000>;
  203. regulator-max-microvolt = <1500000>;
  204. regulator-always-on;
  205. };
  206.  
  207. #if 1 //commented
  208. cci@a0c000 {
  209. status = "ok";
  210. camera_board@3c {
  211. compatible = "ovti,ov5645";
  212. reg = <0x3c>;
  213.  
  214. enable-gpios = <&tca9535 6 GPIO_ACTIVE_HIGH>;
  215. reset-gpios = <&msmgpio 135 GPIO_ACTIVE_LOW>;
  216. pinctrl-names = "default";
  217. pinctrl-0 = <&camera_primary_default>;
  218.  
  219. clocks = <&mmcc CAMSS_MCLK0_CLK>;
  220. clock-names = "xclk";
  221. //clock-frequency = <24000000>;
  222. clock-frequency = <24000000>;
  223.  
  224. vdddo-supply = <&camera_vdddo_1v8>;
  225. vdda-supply = <&camera_vdda_2v8>;
  226. vddd-supply = <&camera_vddd_1v5>;
  227.  
  228. status = "ok";
  229. port {
  230. ov5645_2_ep: endpoint {
  231. clock-lanes = <1>;
  232. data-lanes = <0>; //removed 2
  233. remote-endpoint = <&csiphy0_ep>;
  234. };
  235. };
  236. };
  237. };
  238. #endif
  239.  
  240. camss@a00000 {
  241. status = "ok";
  242.  
  243. ports {
  244. #address-cells = <1>;
  245. #size-cells = <0>;
  246. port@0 {
  247. reg = <0>;
  248. csiphy0_ep: endpoint {
  249. clock-lanes = <7>;
  250. data-lanes = <0 >;//1>;
  251. remote-endpoint = <&ov5645_2_ep>;
  252. status = "ok";
  253. };
  254. };
  255. };
  256. };
  257.  
  258.  
  259. usb@76f8800 {
  260. status = "okay";
  261.  
  262. dwc3@7600000 {
  263. dr_mode = "host";
  264. maximum-speed = "high-speed";
  265. };
  266. };
  267.  
  268.  
  269. };
  270.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement