blob: 1ac661d57012183ca3c4801afad4854478e5de04 [file] [log] [blame]
Channagoud Kadabi44da4952017-03-20 20:35:56 -07001/* Copyright (c) 2017, The Linux Foundation. All rights reserved.
2 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 */
Harry Yang67111662017-04-05 15:14:52 -070012
Harry Yang801aa2e2017-04-10 17:59:05 -070013#include "smb1355.dtsi"
Kyle Yan16860532017-05-05 15:38:47 -070014#include <dt-bindings/gpio/gpio.h>
Harry Yang801aa2e2017-04-10 17:59:05 -070015
Harry Yang67111662017-04-05 15:14:52 -070016/{
17 qrd_batterydata: qcom,battery-data {
18 qcom,batt-id-range-pct = <15>;
19 #include "fg-gen3-batterydata-itech-3000mah.dtsi"
20 #include "fg-gen3-batterydata-ascent-3450mah.dtsi"
21 };
Girish Mahadevanb8f9deb2017-05-08 14:14:46 -060022
23 aliases {
24 serial0 = &qupv3_se9_2uart;
25 spi0 = &qupv3_se8_spi;
26 i2c0 = &qupv3_se10_i2c;
27 i2c1 = &qupv3_se3_i2c;
28 hsuart0 = &qupv3_se6_4uart;
29 };
30};
31
32&qupv3_se9_2uart {
33 status = "ok";
34};
35
36&qupv3_se8_spi {
37 status = "ok";
38};
39
40&qupv3_se3_i2c {
41 status = "ok";
42};
43
44&qupv3_se10_i2c {
45 status = "ok";
46};
47
48&qupv3_se6_4uart {
49 status = "ok";
Harry Yang67111662017-04-05 15:14:52 -070050};
51
52&pmi8998_fg {
53 qcom,battery-data = <&qrd_batterydata>;
54};
Xiaoyu Ye73702122017-04-07 17:55:01 -070055
Harry Yang801aa2e2017-04-10 17:59:05 -070056&smb1355_charger {
57 status = "ok";
58};
59
Ram Chandrasekar316c3932017-04-25 12:48:55 -060060&mdss_mdp {
61 #cooling-cells = <2>;
62};
63
Xiaoyu Ye73702122017-04-07 17:55:01 -070064&soc {
65 sound-tavil {
66 qcom,wsa-max-devs = <1>;
67 qcom,wsa-devs = <&wsa881x_0211>, <&wsa881x_0213>;
68 qcom,wsa-aux-dev-prefix = "SpkrRight", "SpkrRight";
69 };
70};
Kyle Yan16860532017-05-05 15:38:47 -070071
72&ufsphy_mem {
73 compatible = "qcom,ufs-phy-qmp-v3";
74
75 vdda-phy-supply = <&pm8998_l1>; /* 0.88v */
76 vdda-pll-supply = <&pm8998_l26>; /* 1.2v */
77 vdda-phy-max-microamp = <62900>;
78 vdda-pll-max-microamp = <18300>;
79
80 status = "ok";
81};
82
83&ufshc_mem {
84 vdd-hba-supply = <&ufs_phy_gdsc>;
85 vdd-hba-fixed-regulator;
86 vcc-supply = <&pm8998_l20>;
87 vccq2-supply = <&pm8998_s4>;
88 vcc-max-microamp = <600000>;
89 vccq2-max-microamp = <600000>;
90
91 qcom,vddp-ref-clk-supply = <&pm8998_l2>;
92 qcom,vddp-ref-clk-max-microamp = <100>;
93
94 status = "ok";
95};
96
97&ufsphy_card {
98 compatible = "qcom,ufs-phy-qmp-v3";
99
100 vdda-phy-supply = <&pm8998_l1>; /* 0.88v */
101 vdda-pll-supply = <&pm8998_l26>; /* 1.2v */
102 vdda-phy-max-microamp = <62900>;
103 vdda-pll-max-microamp = <18300>;
104
105 status = "ok";
106};
107
108&ufshc_card {
109 vdd-hba-supply = <&ufs_card_gdsc>;
110 vdd-hba-fixed-regulator;
111 vcc-supply = <&pm8998_l21>;
112 vccq2-supply = <&pm8998_s4>;
113 vcc-max-microamp = <300000>;
114 vccq2-max-microamp = <300000>;
115
116 qcom,vddp-ref-clk-supply = <&pm8998_l2>;
117 qcom,vddp-ref-clk-max-microamp = <100>;
118
119 status = "ok";
120};
Shashank Babu Chinta Venkatab4e499f2017-05-01 11:39:57 -0700121
122&labibb {
123 status = "ok";
124 qcom,qpnp-labibb-mode = "lcd";
125};
126
127&pmi8998_wled {
128 status = "okay";
129 qcom,led-strings-list = [01 02];
130};
131
132&mdss_mdp {
Dhaval Patel7556ced2017-02-10 19:53:10 -0800133 connectors = <&sde_rscc &sde_wb &dsi_sharp_4k_dsc_video_display>;
Shashank Babu Chinta Venkatab4e499f2017-05-01 11:39:57 -0700134};
135
136&dsi_sharp_4k_dsc_video {
137 qcom,panel-supply-entries = <&dsi_panel_pwr_supply>;
138 qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled";
139 qcom,mdss-dsi-bl-min-level = <1>;
140 qcom,mdss-dsi-bl-max-level = <4095>;
141 qcom,mdss-dsi-panel-mode-gpio-state = "dual_port";
142 qcom,panel-mode-gpio = <&tlmm 52 0>;
143 qcom,platform-te-gpio = <&tlmm 10 0>;
144 qcom,platform-reset-gpio = <&tlmm 6 0>;
145};
146
147&dsi_sharp_4k_dsc_video_display {
148 qcom,dsi-display-active;
149};