1// SPDX-License-Identifier: GPL-2.0-only 2 3/dts-v1/; 4 5#include "msm8916-pm8916.dtsi" 6 7#include <dt-bindings/gpio/gpio.h> 8#include <dt-bindings/input/input.h> 9#include <dt-bindings/leds/common.h> 10 11/ { 12 model = "GPLUS FL8005A"; 13 compatible = "gplus,fl8005a", "qcom,msm8916"; 14 chassis-type = "tablet"; 15 16 aliases { 17 serial0 = &blsp1_uart2; 18 }; 19 20 chosen { 21 stdout-path = "serial0"; 22 }; 23 24 flash-led-controller { 25 /* Actually qcom,leds-gpio-flash */ 26 compatible = "sgmicro,sgm3140"; 27 enable-gpios = <&msmgpio 31 GPIO_ACTIVE_HIGH>; 28 flash-gpios = <&msmgpio 32 GPIO_ACTIVE_HIGH>; 29 30 pinctrl-0 = <&camera_flash_default>; 31 pinctrl-names = "default"; 32 33 flash_led: led { 34 function = LED_FUNCTION_FLASH; 35 color = <LED_COLOR_ID_WHITE>; 36 flash-max-timeout-us = <250000>; 37 }; 38 }; 39 40 gpio-keys { 41 compatible = "gpio-keys"; 42 43 pinctrl-0 = <&gpio_keys_default>; 44 pinctrl-names = "default"; 45 46 button-volume-up { 47 label = "Volume Up"; 48 gpios = <&msmgpio 107 GPIO_ACTIVE_LOW>; 49 linux,code = <KEY_VOLUMEUP>; 50 }; 51 }; 52 53 gpio-leds { 54 compatible = "gpio-leds"; 55 56 pinctrl-0 = <&gpio_leds_default>; 57 pinctrl-names = "default"; 58 59 led-red { 60 function = LED_FUNCTION_CHARGING; 61 color = <LED_COLOR_ID_RED>; 62 gpios = <&msmgpio 117 GPIO_ACTIVE_HIGH>; 63 retain-state-suspended; 64 }; 65 66 led-green { 67 function = LED_FUNCTION_CHARGING; 68 color = <LED_COLOR_ID_GREEN>; 69 gpios = <&msmgpio 118 GPIO_ACTIVE_HIGH>; 70 retain-state-suspended; 71 }; 72 }; 73 74 usb_id: usb-id { 75 compatible = "linux,extcon-usb-gpio"; 76 id-gpio = <&msmgpio 110 GPIO_ACTIVE_HIGH>; 77 pinctrl-0 = <&usb_id_default>; 78 pinctrl-names = "default"; 79 }; 80}; 81 82&blsp_i2c5 { 83 status = "okay"; 84 85 touchscreen@38 { 86 /* Actually ft5402 */ 87 compatible = "edt,edt-ft5406"; 88 reg = <0x38>; 89 90 interrupt-parent = <&msmgpio>; 91 interrupts = <13 IRQ_TYPE_EDGE_FALLING>; 92 93 reset-gpios = <&msmgpio 12 GPIO_ACTIVE_LOW>; 94 95 vcc-supply = <&pm8916_l17>; 96 iovcc-supply = <&pm8916_l6>; 97 98 touchscreen-size-x = <800>; 99 touchscreen-size-y = <500>; 100 touchscreen-inverted-x; 101 touchscreen-swapped-x-y; 102 103 pinctrl-0 = <&touchscreen_default>; 104 pinctrl-names = "default"; 105 }; 106}; 107 108&blsp1_uart2 { 109 status = "okay"; 110}; 111 112&pm8916_resin { 113 linux,code = <KEY_VOLUMEDOWN>; 114 status = "okay"; 115}; 116 117&pm8916_vib { 118 status = "okay"; 119}; 120 121&sdhc_1 { 122 pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on>; 123 pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off>; 124 pinctrl-names = "default", "sleep"; 125 126 status = "okay"; 127}; 128 129&sdhc_2 { 130 pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on>; 131 pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off>; 132 pinctrl-names = "default", "sleep"; 133 134 cd-gpios = <&msmgpio 38 GPIO_ACTIVE_LOW>; 135 136 status = "okay"; 137}; 138 139&usb { 140 extcon = <&usb_id>, <&usb_id>; 141 status = "okay"; 142}; 143 144&usb_hs_phy { 145 extcon = <&usb_id>; 146}; 147 148&wcnss { 149 status = "okay"; 150}; 151 152&wcnss_iris { 153 compatible = "qcom,wcn3620"; 154}; 155 156&smd_rpm_regulators { 157 vdd_l1_l2_l3-supply = <&pm8916_s3>; 158 vdd_l4_l5_l6-supply = <&pm8916_s4>; 159 vdd_l7-supply = <&pm8916_s4>; 160 161 s3 { 162 regulator-min-microvolt = <1200000>; 163 regulator-max-microvolt = <1300000>; 164 }; 165 166 s4 { 167 regulator-min-microvolt = <1800000>; 168 regulator-max-microvolt = <2100000>; 169 }; 170 171 l1 { 172 regulator-min-microvolt = <1225000>; 173 regulator-max-microvolt = <1225000>; 174 }; 175 176 l2 { 177 regulator-min-microvolt = <1200000>; 178 regulator-max-microvolt = <1200000>; 179 }; 180 181 l4 { 182 regulator-min-microvolt = <2050000>; 183 regulator-max-microvolt = <2050000>; 184 }; 185 186 l5 { 187 regulator-min-microvolt = <1800000>; 188 regulator-max-microvolt = <1800000>; 189 }; 190 191 l6 { 192 regulator-min-microvolt = <1800000>; 193 regulator-max-microvolt = <1800000>; 194 }; 195 196 l7 { 197 regulator-min-microvolt = <1800000>; 198 regulator-max-microvolt = <1800000>; 199 }; 200 201 l8 { 202 regulator-min-microvolt = <2850000>; 203 regulator-max-microvolt = <2900000>; 204 }; 205 206 l9 { 207 regulator-min-microvolt = <3300000>; 208 regulator-max-microvolt = <3300000>; 209 }; 210 211 l10 { 212 regulator-min-microvolt = <2700000>; 213 regulator-max-microvolt = <2800000>; 214 }; 215 216 l11 { 217 regulator-min-microvolt = <1800000>; 218 regulator-max-microvolt = <2950000>; 219 regulator-system-load = <200000>; 220 regulator-allow-set-load; 221 }; 222 223 l12 { 224 regulator-min-microvolt = <1800000>; 225 regulator-max-microvolt = <2950000>; 226 }; 227 228 l13 { 229 regulator-min-microvolt = <3075000>; 230 regulator-max-microvolt = <3075000>; 231 }; 232 233 l14 { 234 regulator-min-microvolt = <1800000>; 235 regulator-max-microvolt = <3300000>; 236 }; 237 238 l15 { 239 regulator-min-microvolt = <1800000>; 240 regulator-max-microvolt = <3300000>; 241 }; 242 243 l16 { 244 regulator-min-microvolt = <1800000>; 245 regulator-max-microvolt = <3300000>; 246 }; 247 248 l17 { 249 regulator-min-microvolt = <2850000>; 250 regulator-max-microvolt = <2850000>; 251 }; 252 253 l18 { 254 regulator-min-microvolt = <2700000>; 255 regulator-max-microvolt = <2700000>; 256 }; 257}; 258 259&msmgpio { 260 camera_flash_default: camera-flash-default-state { 261 pins = "gpio31", "gpio32"; 262 function = "gpio"; 263 drive-strength = <2>; 264 bias-disable; 265 }; 266 267 gpio_keys_default: gpio-keys-default-state { 268 pins = "gpio107"; 269 function = "gpio"; 270 drive-strength = <2>; 271 bias-pull-up; 272 }; 273 274 gpio_leds_default: gpio-led-default-state { 275 pins = "gpio117", "gpio118"; 276 function = "gpio"; 277 drive-strength = <2>; 278 bias-disable; 279 }; 280 281 touchscreen_default: touchscreen-default-state { 282 reset-pins { 283 pins = "gpio12"; 284 function = "gpio"; 285 drive-strength = <2>; 286 bias-disable; 287 }; 288 289 touchscreen-pins { 290 pins = "gpio13"; 291 function = "gpio"; 292 drive-strength = <2>; 293 bias-pull-up; 294 }; 295 }; 296 297 usb_id_default: usb-id-default-state { 298 pins = "gpio110"; 299 function = "gpio"; 300 drive-strength = <8>; 301 bias-pull-up; 302 }; 303}; 304