| 1 |
// SPDX-License-Identifier: GPL-2.0 |
| 2 |
/* Copyright (c) 2019, Jeffrey Hugo. All rights reserved. */ |
| 3 |
|
| 4 |
/dts-v1/; |
| 5 |
|
| 6 |
#include <dt-bindings/pinctrl/qcom,pmic-gpio.h> |
| 7 |
#include "msm8998-clamshell.dtsi" |
| 8 |
|
| 9 |
/ { |
| 10 |
model = "Lenovo Miix 630"; |
| 11 |
compatible = "lenovo,miix-630", "qcom,msm8998"; |
| 12 |
chassis-type = "convertible"; |
| 13 |
|
| 14 |
gpio-keys { |
| 15 |
compatible = "gpio-keys"; |
| 16 |
autorepeat; |
| 17 |
|
| 18 |
pinctrl-0 = <&vol_up_pin_a>; |
| 19 |
pinctrl-names = "default"; |
| 20 |
|
| 21 |
key-vol-up { |
| 22 |
label = "Volume Up"; |
| 23 |
gpios = <&pm8998_gpios 6 GPIO_ACTIVE_LOW>; |
| 24 |
linux,code = <KEY_VOLUMEUP>; |
| 25 |
debounce-interval = <15>; |
| 26 |
linux,can-disable; |
| 27 |
}; |
| 28 |
}; |
| 29 |
}; |
| 30 |
|
| 31 |
&blsp1_i2c5 { |
| 32 |
clock-frequency = <400000>; |
| 33 |
status = "okay"; |
| 34 |
|
| 35 |
touchscreen@10 { |
| 36 |
compatible = "hid-over-i2c"; |
| 37 |
reg = <0x10>; |
| 38 |
hid-descr-addr = <0x1>; |
| 39 |
|
| 40 |
interrupts-extended = <&tlmm 125 IRQ_TYPE_LEVEL_LOW>; |
| 41 |
|
| 42 |
pinctrl-0 = <&i2c5_hid_active>; |
| 43 |
pinctrl-names = "default"; |
| 44 |
}; |
| 45 |
}; |
| 46 |
|
| 47 |
&blsp1_i2c6 { |
| 48 |
status = "okay"; |
| 49 |
|
| 50 |
keyboard@3a { |
| 51 |
compatible = "hid-over-i2c"; |
| 52 |
reg = <0x3a>; |
| 53 |
pinctrl-names = "default"; |
| 54 |
pinctrl-0 = <&touchpad>; |
| 55 |
|
| 56 |
interrupt-parent = <&tlmm>; |
| 57 |
interrupts = <121 IRQ_TYPE_LEVEL_LOW>; |
| 58 |
|
| 59 |
hid-descr-addr = <0x0001>; |
| 60 |
}; |
| 61 |
}; |
| 62 |
|
| 63 |
&pm8998_gpios { |
| 64 |
vol_up_pin_a: vol-up-active-state { |
| 65 |
pins = "gpio6"; |
| 66 |
function = "normal"; |
| 67 |
input-enable; |
| 68 |
bias-pull-up; |
| 69 |
qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>; |
| 70 |
}; |
| 71 |
}; |
| 72 |
|
| 73 |
&remoteproc_adsp { |
| 74 |
firmware-name = "qcom/msm8998/LENOVO/81F1/qcadsp8998.mbn"; |
| 75 |
|
| 76 |
status = "okay"; |
| 77 |
}; |
| 78 |
|
| 79 |
&remoteproc_mss { |
| 80 |
firmware-name = "qcom/msm8998/LENOVO/81F1/qcdsp1v28998.mbn", |
| 81 |
"qcom/msm8998/LENOVO/81F1/qcdsp28998.mbn"; |
| 82 |
}; |
| 83 |
|
| 84 |
&remoteproc_slpi { |
| 85 |
firmware-name = "qcom/msm8998/LENOVO/81F1/qcslpi8998.mbn"; |
| 86 |
|
| 87 |
status = "okay"; |
| 88 |
}; |
| 89 |
|
| 90 |
&sdhc2 { |
| 91 |
cd-gpios = <&tlmm 95 GPIO_ACTIVE_HIGH>; |
| 92 |
}; |
| 93 |
|
| 94 |
&tlmm { |
| 95 |
i2c5_hid_active: i2c5-hid-active-state { |
| 96 |
pins = "gpio125"; |
| 97 |
function = "gpio"; |
| 98 |
bias-pull-up; |
| 99 |
drive-strength = <2>; |
| 100 |
}; |
| 101 |
}; |
| 102 |
|
| 103 |
&venus { |
| 104 |
firmware-name = "qcom/msm8998/LENOVO/81F1/qcvss8998.mbn"; |
| 105 |
|
| 106 |
status = "okay"; |
| 107 |
}; |
| 108 |
|
| 109 |
&wifi { |
| 110 |
qcom,calibration-variant = "Lenovo_Miix630"; |
| 111 |
}; |