|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
| 2 | + |
| 3 | +/dts-v1/; |
| 4 | + |
| 5 | +#include "msm8916-pm8916.dtsi" |
| 6 | +#include <dt-bindings/gpio/gpio.h> |
| 7 | +#include <dt-bindings/input/input.h> |
| 8 | + |
| 9 | +/ { |
| 10 | + model = "Wiko Pulp 4G"; |
| 11 | + compatible = "wiko,chuppito", "qcom,msm8916"; |
| 12 | + chassis-type = "handset"; |
| 13 | + |
| 14 | + aliases { |
| 15 | + mmc0 = &sdhc_1; /* eMMC */ |
| 16 | + mmc1 = &sdhc_2; /* SD card */ |
| 17 | + serial0 = &blsp_uart2; |
| 18 | + }; |
| 19 | + |
| 20 | + chosen { |
| 21 | + stdout-path = "serial0"; |
| 22 | + }; |
| 23 | + |
| 24 | + gpio-keys { |
| 25 | + compatible = "gpio-keys"; |
| 26 | + pinctrl-0 = <&gpio_keys_default>; |
| 27 | + pinctrl-names = "default"; |
| 28 | + label = "GPIO Buttons"; |
| 29 | + |
| 30 | + button-volume-up { |
| 31 | + label = "Volume up"; |
| 32 | + gpios = <&tlmm 107 GPIO_ACTIVE_LOW>; |
| 33 | + linux,code = <KEY_VOLUMEUP>; |
| 34 | + }; |
| 35 | + }; |
| 36 | + |
| 37 | + usb_id: usb-id { |
| 38 | + compatible = "linux,extcon-usb-gpio"; |
| 39 | + id-gpios = <&tlmm 110 GPIO_ACTIVE_HIGH>; |
| 40 | + pinctrl-0 = <&usb_id_default>; |
| 41 | + pinctrl-names = "default"; |
| 42 | + }; |
| 43 | +}; |
| 44 | + |
| 45 | +&blsp_uart2 { |
| 46 | + status = "okay"; |
| 47 | +}; |
| 48 | + |
| 49 | +// make sure gcc is probed with display disabled. |
| 50 | +&gcc { |
| 51 | + clocks = <&xo_board>, <&sleep_clk>, <0>, <0>, <0>, <0>, <0>; |
| 52 | +}; |
| 53 | + |
| 54 | +&pm8916_resin { |
| 55 | + linux,code = <KEY_VOLUMEDOWN>; |
| 56 | + status = "okay"; |
| 57 | +}; |
| 58 | + |
| 59 | +&sdhc_1 { |
| 60 | + status = "okay"; |
| 61 | +}; |
| 62 | + |
| 63 | +&sdhc_2 { |
| 64 | + pinctrl-0 = <&sdc2_default>, <&sdc2_cd_default>; |
| 65 | + pinctrl-1 = <&sdc2_sleep>, <&sdc2_cd_default>; |
| 66 | + pinctrl-names = "default", "sleep"; |
| 67 | + cd_gpios = <&tlmm 38 GPIO_ACTIVE_HIGH>; |
| 68 | + status = "okay"; |
| 69 | +}; |
| 70 | + |
| 71 | +&usb { |
| 72 | + extcon = <&usb_id>, <&usb_id>; |
| 73 | + status = "okay"; |
| 74 | +}; |
| 75 | + |
| 76 | +&usb_hs_phy { |
| 77 | + extcon = <&usb_id>; |
| 78 | +}; |
| 79 | + |
| 80 | +&wcnss { |
| 81 | + status = "okay"; |
| 82 | +}; |
| 83 | + |
| 84 | +&wcnss_iris { |
| 85 | + compatible = "qcom,wcn3620"; |
| 86 | +}; |
| 87 | + |
| 88 | +&wcnss_mem { |
| 89 | + status = "okay"; |
| 90 | +}; |
| 91 | + |
| 92 | +&tlmm { |
| 93 | + gpio_keys_default: gpio-keys-default-state { |
| 94 | + pins = "gpio107"; |
| 95 | + function = "gpio"; |
| 96 | + drive-strength = <2>; |
| 97 | + bias-pull-up; |
| 98 | + }; |
| 99 | + |
| 100 | + usb_id_default: usb-id-default-state { |
| 101 | + pins = "gpio110"; |
| 102 | + function = "gpio"; |
| 103 | + drive-strength = <8>; |
| 104 | + bias-pull-up; |
| 105 | + }; |
| 106 | + |
| 107 | + sdc2_cd_default: sdc2-cd-default-state { |
| 108 | + pins = "gpio38"; |
| 109 | + function = "gpio"; |
| 110 | + drive-strength = <2>; |
| 111 | + bias-disable; |
| 112 | + }; |
| 113 | +}; |
0 commit comments