blob: a4791752508b4d6ba479a50ef19263649cbfc4b0 [file] [log] [blame]
Kaushal Kumard9b746b2017-09-19 18:19:31 +05301/*
Tanvi Aggarwal974e4e62018-02-07 16:48:09 +05302 * Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
Kaushal Kumard9b746b2017-09-19 18:19:31 +05303 *
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/plugin/;
16
17#include <dt-bindings/clock/qcom,gcc-sdm845.h>
18#include <dt-bindings/clock/qcom,camcc-sdm845.h>
19#include <dt-bindings/clock/qcom,dispcc-sdm845.h>
20#include <dt-bindings/clock/qcom,rpmh.h>
21#include <dt-bindings/interrupt-controller/arm-gic.h>
22
23#include "sdm670-cdp.dtsi"
Rohit kumar560e34e2017-10-18 10:11:56 +053024#include "sdm670-audio-overlay.dtsi"
Kaushal Kumard9b746b2017-09-19 18:19:31 +053025
26/ {
27 model = "Qualcomm Technologies, Inc. QCS605 PM660 + PM660L CDP";
28 compatible = "qcom,qcs605-cdp", "qcom,qcs605", "qcom,cdp";
29 qcom,msm-id = <347 0x0>;
30 qcom,board-id = <1 0>;
31 qcom,pmic-id = <0x0001001b 0x0101011a 0x0 0x0>,
32 <0x0001001b 0x0102001a 0x0 0x0>,
33 <0x0001001b 0x0201011a 0x0 0x0>;
34};
Tanvi Aggarwal974e4e62018-02-07 16:48:09 +053035
36&cam_cci {
37 /delete-node/ qcom,cam-sensor@1;
38 qcom,cam-sensor@1 {
39 cell-index = <1>;
40 compatible = "qcom,cam-sensor";
41 reg = <0x1>;
42 csiphy-sd-index = <1>;
43 sensor-position-roll = <90>;
44 sensor-position-pitch = <0>;
45 sensor-position-yaw = <180>;
46 eeprom-src = <&eeprom_rear_aux>;
47 cam_vio-supply = <&camera_vio_ldo>;
48 cam_vana-supply = <&camera_vana_ldo>;
Tanvi Aggarwalcf0b0572018-02-19 15:16:33 +053049 cam_vdig-supply = <&camera_rear_ldo>;
Tanvi Aggarwal974e4e62018-02-07 16:48:09 +053050 cam_clk-supply = <&titan_top_gdsc>;
51 regulator-names = "cam_vdig", "cam_vio", "cam_vana",
52 "cam_clk";
53 rgltr-cntrl-support;
54 rgltr-min-voltage = <1352000 1800000 2850000 0>;
55 rgltr-max-voltage = <1352000 1800000 2850000 0>;
56 rgltr-load-current = <105000 0 80000 0>;
57 gpio-no-mux = <0>;
58 pinctrl-names = "cam_default", "cam_suspend";
59 pinctrl-0 = <&cam_sensor_mclk0_active
60 &cam_sensor_rear2_active>;
61 pinctrl-1 = <&cam_sensor_mclk0_suspend
62 &cam_sensor_rear2_suspend>;
63 gpios = <&tlmm 13 0>,
64 <&tlmm 28 0>;
65 gpio-reset = <1>;
66 gpio-req-tbl-num = <0 1>;
67 gpio-req-tbl-flags = <1 0>;
68 gpio-req-tbl-label = "CAMIF_MCLK0",
69 "CAM_RESET1";
70 sensor-mode = <0>;
71 cci-master = <1>;
72 status = "ok";
73 clocks = <&clock_camcc CAM_CC_MCLK0_CLK>;
74 clock-names = "cam_clk";
75 clock-cntl-level = "turbo";
76 clock-rates = <24000000>;
77 };
78};