* [PATCH] arm64: dts: qcom: msm8996-xiaomi-scorpio: Add touchkey controller
@ 2021-11-04 10:49 Yassine Oudjana
2021-11-20 23:55 ` (subset) " Bjorn Andersson
0 siblings, 1 reply; 2+ messages in thread
From: Yassine Oudjana @ 2021-11-04 10:49 UTC (permalink / raw)
To: Andy Gross, Bjorn Andersson, Rob Herring
Cc: Yassine Oudjana, linux-arm-msm, devicetree, phone-devel,
linux-kernel, ~postmarketos/upstreaming
Add a node and pin states for Cypress StreetFighter touchkey
controller.
Signed-off-by: Yassine Oudjana <y.oudjana@protonmail.com>
---
.../boot/dts/qcom/msm8996-xiaomi-scorpio.dts | 28 +++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/msm8996-xiaomi-scorpio.dts b/arch/arm64/boot/dts/qcom/msm8996-xiaomi-scorpio.dts
index e5b8402b1ed6..27a45ddbb5bd 100644
--- a/arch/arm64/boot/dts/qcom/msm8996-xiaomi-scorpio.dts
+++ b/arch/arm64/boot/dts/qcom/msm8996-xiaomi-scorpio.dts
@@ -60,6 +60,20 @@ &adsp_pil {
};
&blsp2_i2c6 {
+ touchkey: touchkey@28 {
+ compatible = "cypress,sf3155";
+ reg = <0x28>;
+ interrupt-parent = <&tlmm>;
+ interrupts = <77 IRQ_TYPE_EDGE_FALLING>;
+ avdd-supply = <&vreg_l6a_1p8>;
+ vdd-supply = <&vdd_3v2_tp>;
+ linux,keycodes = <KEY_BACK KEY_MENU>;
+
+ pinctrl-names = "default", "sleep";
+ pinctrl-0 = <&touchkey_default>;
+ pinctrl-1 = <&touchkey_sleep>;
+ };
+
touchscreen: atmel-mxt-ts@4a {
compatible = "atmel,maxtouch";
reg = <0x4a>;
@@ -416,6 +430,20 @@ &tlmm {
"RFFE1_DATA", /* GPIO_148 */
"RFFE1_CLK"; /* GPIO_149 */
+ touchkey_default: touchkey_default {
+ pins = "gpio77";
+ function = "gpio";
+ drive-strength = <16>;
+ bias-pull-up;
+ };
+
+ touchkey_sleep: touchkey_sleep {
+ pins = "gpio77";
+ function = "gpio";
+ drive-strength = <2>;
+ bias-disable;
+ };
+
touchscreen_default: touchscreen_default {
pins = "gpio75", "gpio125";
function = "gpio";
--
2.33.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: (subset) [PATCH] arm64: dts: qcom: msm8996-xiaomi-scorpio: Add touchkey controller
2021-11-04 10:49 [PATCH] arm64: dts: qcom: msm8996-xiaomi-scorpio: Add touchkey controller Yassine Oudjana
@ 2021-11-20 23:55 ` Bjorn Andersson
0 siblings, 0 replies; 2+ messages in thread
From: Bjorn Andersson @ 2021-11-20 23:55 UTC (permalink / raw)
To: Rob Herring, Yassine Oudjana, Andy Gross
Cc: linux-arm-msm, ~postmarketos/upstreaming, linux-kernel,
devicetree, phone-devel
On Thu, 04 Nov 2021 10:49:58 +0000, Yassine Oudjana wrote:
> Add a node and pin states for Cypress StreetFighter touchkey
> controller.
>
>
Applied, thanks!
[1/1] arm64: dts: qcom: msm8996-xiaomi-scorpio: Add touchkey controller
commit: 25fdaae63a6927efad2f6c0428622712f0eb20dd
Best regards,
--
Bjorn Andersson <bjorn.andersson@linaro.org>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-11-20 23:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-04 10:49 [PATCH] arm64: dts: qcom: msm8996-xiaomi-scorpio: Add touchkey controller Yassine Oudjana
2021-11-20 23:55 ` (subset) " Bjorn Andersson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).