~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/arm64/boot/dts/qcom/msm8916-wingtech-wt865x8.dtsi

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 // SPDX-License-Identifier: GPL-2.0-only
  2 
  3 #include "msm8916-pm8916.dtsi"
  4 #include "msm8916-modem-qdsp6.dtsi"
  5 
  6 #include <dt-bindings/gpio/gpio.h>
  7 #include <dt-bindings/pinctrl/qcom,pmic-mpp.h>
  8 
  9 / {
 10         aliases {
 11                 mmc0 = &sdhc_1; /* eMMC */
 12                 mmc1 = &sdhc_2; /* SD card */
 13                 serial0 = &blsp_uart2;
 14         };
 15 
 16         chosen {
 17                 stdout-path = "serial0";
 18         };
 19 
 20         headphones_switch: audio-switch {
 21                 compatible = "simple-audio-amplifier";
 22 
 23                 pinctrl-0 = <&headphones_switch_default>;
 24                 pinctrl-names = "default";
 25 
 26                 enable-gpios = <&tlmm 120 GPIO_ACTIVE_HIGH>;
 27                 sound-name-prefix = "Headphones Switch";
 28         };
 29 
 30         backlight: backlight {
 31                 compatible = "pwm-backlight";
 32                 pwms = <&pm8916_pwm 0 100000>;
 33 
 34                 brightness-levels = <0 255>;
 35                 num-interpolated-steps = <255>;
 36                 default-brightness-level = <255>;
 37         };
 38 
 39         battery: battery {
 40                 compatible = "simple-battery";
 41                 voltage-min-design-microvolt = <3400000>;
 42                 voltage-max-design-microvolt = <4350000>;
 43                 energy-full-design-microwatt-hours = <8740000>;
 44                 charge-full-design-microamp-hours = <2300000>;
 45 
 46                 ocv-capacity-celsius = <25>;
 47                 ocv-capacity-table-0 = <4328000 100>, <4266000 95>, <4208000 90>,
 48                         <4154000 85>, <4102000 80>, <4062000 75>, <3992000 70>,
 49                         <3960000 65>, <3914000 60>, <3870000 55>, <3840000 50>,
 50                         <3818000 45>, <3800000 40>, <3784000 35>, <3770000 30>,
 51                         <3756000 25>, <3736000 20>, <3714000 16>, <3696000 13>,
 52                         <3690000 11>, <3689000 10>, <3688000 9>, <3686000 8>,
 53                         <3682000 7>, <3670000 6>, <3639000 5>, <3592000 4>,
 54                         <3530000 3>, <3448000 2>, <3320000 1>, <3000000 0>;
 55         };
 56 
 57         gpio-keys {
 58                 compatible = "gpio-keys";
 59 
 60                 pinctrl-0 = <&gpio_keys_default>;
 61                 pinctrl-names = "default";
 62 
 63                 label = "GPIO Buttons";
 64 
 65                 volume-up-button {
 66                         label = "Volume Up";
 67                         gpios = <&tlmm 107 GPIO_ACTIVE_LOW>;
 68                         linux,code = <KEY_VOLUMEUP>;
 69                 };
 70         };
 71 };
 72 
 73 &blsp_i2c5 {
 74         status = "okay";
 75 
 76         touchscreen@38 {
 77                 compatible = "edt,edt-ft5306";
 78                 reg = <0x38>;
 79 
 80                 interrupts-extended = <&tlmm 13 IRQ_TYPE_EDGE_FALLING>;
 81 
 82                 vcc-supply = <&pm8916_l17>;
 83                 iovcc-supply = <&pm8916_l6>;
 84 
 85                 reset-gpios = <&tlmm 12 GPIO_ACTIVE_LOW>;
 86 
 87                 touchscreen-size-x = <720>;
 88                 touchscreen-size-y = <1280>;
 89 
 90                 pinctrl-0 = <&touchscreen_default>;
 91                 pinctrl-names = "default";
 92         };
 93 };
 94 
 95 &blsp_uart2 {
 96         status = "okay";
 97 };
 98 
 99 &mpss_mem {
100         reg = <0x0 0x86800000 0x0 0x5500000>;
101 };
102 
103 &pm8916_bms {
104         monitored-battery = <&battery>;
105         status = "okay";
106 };
107 
108 &pm8916_codec {
109         qcom,micbias-lvl = <2800>;
110         qcom,mbhc-vthreshold-low = <75 150 237 450 500>;
111         qcom,mbhc-vthreshold-high = <75 150 237 450 500>;
112         qcom,hphl-jack-type-normally-open;
113 };
114 
115 &pm8916_pwm {
116         pinctrl-0 = <&pwm_out>;
117         pinctrl-names = "default";
118         status = "okay";
119 };
120 
121 &pm8916_resin {
122         linux,code = <KEY_VOLUMEDOWN>;
123         status = "okay";
124 };
125 
126 &pm8916_rpm_regulators {
127         pm8916_l17: l17 {
128                 regulator-min-microvolt = <2850000>;
129                 regulator-max-microvolt = <2850000>;
130         };
131 };
132 
133 &pm8916_vib {
134         status = "okay";
135 };
136 
137 &sdhc_1 {
138         status = "okay";
139 };
140 
141 &sdhc_2 {
142         pinctrl-0 = <&sdc2_default>;
143         pinctrl-1 = <&sdc2_sleep>;
144         pinctrl-names = "default", "sleep";
145 
146         non-removable;
147 
148         status = "okay";
149 };
150 
151 &usb {
152         status = "okay";
153 };
154 
155 &venus {
156         status = "okay";
157 };
158 
159 &venus_mem {
160         status = "okay";
161 };
162 
163 &wcnss {
164         status = "okay";
165 };
166 
167 &wcnss_iris {
168         compatible = "qcom,wcn3620";
169 };
170 
171 &wcnss_mem {
172         status = "okay";
173 };
174 
175 &tlmm {
176         gpio_keys_default: gpio-keys-default-state {
177                 pins = "gpio107";
178                 function = "gpio";
179                 drive-strength = <2>;
180                 bias-pull-up;
181         };
182 
183         headphones_switch_default: headphones-switch-default-state {
184                 pins = "gpio120";
185                 function = "gpio";
186                 drive-strength = <2>;
187                 bias-disable;
188         };
189 
190         touchscreen_default: touchscreen-default-state {
191                 touchscreen-pins {
192                         pins = "gpio13";
193                         function = "gpio";
194                         drive-strength = <2>;
195                         bias-pull-up;
196                 };
197 
198                 reset-pins {
199                         pins = "gpio12";
200                         function = "gpio";
201                         drive-strength = <2>;
202                         bias-disable;
203                 };
204         };
205 };
206 
207 &pm8916_mpps {
208         pwm_out: mpp4-state {
209                 pins = "mpp4";
210                 function = "digital";
211                 power-source = <PM8916_MPP_VPH>;
212                 output-low;
213                 qcom,dtest = <1>;
214         };
215 };

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php