From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A9B17C433F5 for ; Tue, 23 Nov 2021 17:58:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239461AbhKWSBj (ORCPT ); Tue, 23 Nov 2021 13:01:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238814AbhKWSBh (ORCPT ); Tue, 23 Nov 2021 13:01:37 -0500 Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C5D25C061574 for ; Tue, 23 Nov 2021 09:58:28 -0800 (PST) Received: by mail-pj1-x102b.google.com with SMTP id gb13-20020a17090b060d00b001a674e2c4a8so3567721pjb.4 for ; Tue, 23 Nov 2021 09:58:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=bbmQ71C4USib8g5VHZ5eqkApHXrc8RLia8DHNhFTyQU=; b=Cov85HUUN0KM4BeG3WFGXEAchQ2VXlVaepCqxKV045fK75ed/5eUpFh1nAvm2cQ7D0 KG+EDVGTIf6D0J+XG+Zj0bjRFDH313TxWVKq+nJoxrj1+wJz6rV92MBdKucxrMrPHGnu OV+x6rRmbsKjpNMeu18VxpnipBclEjIA9jOp0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=bbmQ71C4USib8g5VHZ5eqkApHXrc8RLia8DHNhFTyQU=; b=jhnOM1uUuNd0Rg3Es1j73zz2/HKTYM5LwRG0VG3+UNNgWLLN6246s42O3BI3fowIjS rLF8nSlJaYuxoV1ZKp+5cAXgcN4Rp5qm9cFV7aWynnWuegzyo4MMOfx1hrhdPezNg+D9 jvMLhWYJnVucbi7+xj3/NVfBUnj98E7oam/OGSqJDDhXnE/qjClyL/TeLsUC0u9TXecd eDj3w4HhISleAQIPZNCkE0ZLdKSewvXCKsxk2bkRgIb/69/Um6ThPimRK3njEM36aPcX mSugQLxPGLBmdEmez2YqqUyzCnABSN5rW7NvL38zyMVIULVlTjNVv4u8i+gVl/Kkdb1g 0k8w== X-Gm-Message-State: AOAM532wZh56jvTHCJvoCol0fogLJf85GvVUlbskuT7T1mhVpQXXevbe Qwlc7hBp8Y1I6SD8w9ERm8leZcRsha24sg== X-Google-Smtp-Source: ABdhPJw7fi+m3nrYztNvGziyYc7XGj+5DLWEPXnojuB8/xBvoE/zTBv3+WkUhVF9pVLzwAPbYfAvoQ== X-Received: by 2002:a17:90b:180d:: with SMTP id lw13mr5176744pjb.225.1637690308371; Tue, 23 Nov 2021 09:58:28 -0800 (PST) Received: from localhost ([2620:15c:202:201:5fa5:d920:9d68:9c16]) by smtp.gmail.com with UTF8SMTPSA id mu4sm2251712pjb.8.2021.11.23.09.58.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 23 Nov 2021 09:58:28 -0800 (PST) Date: Tue, 23 Nov 2021 09:58:26 -0800 From: Matthias Kaehlcke To: Rajendra Nayak Cc: agross@kernel.org, bjorn.andersson@linaro.org, robh+dt@kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, sboyd@codeaurora.org, dianders@chromium.org, kgodara@codeaurora.org Subject: Re: [PATCH 4/4] arm64: dts: qcom: sc7280-crd: Add Touchscreen and touchpad support Message-ID: References: <1637650813-16654-1-git-send-email-rnayak@codeaurora.org> <1637650813-16654-5-git-send-email-rnayak@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1637650813-16654-5-git-send-email-rnayak@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org On Tue, Nov 23, 2021 at 12:30:13PM +0530, Rajendra Nayak wrote: > From: Kshitiz Godara > > Add Touchscreen and touchpad hid-over-i2c node to which board(s)? > Signed-off-by: Kshitiz Godara > Signed-off-by: Rajendra Nayak > --- > arch/arm64/boot/dts/qcom/sc7280-crd.dts | 63 +++++++++++++++++++++++++++++++++ > 1 file changed, 63 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sc7280-crd.dts b/arch/arm64/boot/dts/qcom/sc7280-crd.dts > index 8c2aee6..bef3037 100644 > --- a/arch/arm64/boot/dts/qcom/sc7280-crd.dts > +++ b/arch/arm64/boot/dts/qcom/sc7280-crd.dts > @@ -23,6 +23,47 @@ > }; > }; > > +ap_tp_i2c: &i2c0 { > + status = "okay"; > + clock-frequency = <400000>; > + > + trackpad: trackpad@15 { > + compatible = "hid-over-i2c"; > + reg = <0x15>; > + pinctrl-names = "default"; > + pinctrl-0 = <&tp_int_odl>; > + > + interrupt-parent = <&tlmm>; > + interrupts = <7 IRQ_TYPE_EDGE_FALLING>; > + > + post-power-on-delay-ms = <20>; > + hid-descr-addr = <0x0001>; > + vdd-supply = <&vreg_l18b_1p8>; > + > + wakeup-source; > + }; > +}; > + > +ap_ts_pen_1v8: &i2c13 { > + status = "okay"; > + clock-frequency = <400000>; > + > + ap_ts: touchscreen@5c { > + compatible = "hid-over-i2c"; > + reg = <0x5C>; > + pinctrl-names = "default"; > + pinctrl-0 = <&ts_int_l>, <&ts_reset_l>; > + > + interrupt-parent = <&tlmm>; > + interrupts = <55 IRQ_TYPE_LEVEL_LOW>; > + > + post-power-on-delay-ms = <500>; > + hid-descr-addr = <0x0000>; > + > + vdd-supply = <&vreg_l19b_1p8>; > + }; > +}; > + > &nvme_pwren { > pins = "gpio51"; > }; > @@ -30,3 +71,25 @@ > &nvme_3v3_regulator { > gpio = <&tlmm 51 GPIO_ACTIVE_HIGH>; > }; > + > +&tlmm { > + tp_int_odl: tp-int-odl { > + pins = "gpio7"; > + function = "gpio"; > + input-enable; Not sure about this one, is the explicit 'input-enable' actually needed here? > + bias-disable; > + }; > + > + ts_int_l: ts-int-l { > + pins = "gpio55"; > + function = "gpio"; > + bias-pull-up; > + }; > + > + ts_reset_l: ts-reset-l { > + pins = "gpio54"; > + function = "gpio"; > + bias-disable; > + drive-strength = <2>; As per my comment on "[3/4] arm64: dts: qcom: sc7280: Define EC and H1 nodes" it seems setting the drive strength to 2 isn't necessary, since that's the default.