Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp3742348pxb; Tue, 7 Sep 2021 06:43:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJqCsPe9wbA5jveGUS/mEKXzWz4UrBhOBLhyI8Xvw8h0bZO1hbRcCCjHhLbKaybRHQAXFo X-Received: by 2002:a17:906:748e:: with SMTP id e14mr18928620ejl.152.1631022184927; Tue, 07 Sep 2021 06:43:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631022184; cv=none; d=google.com; s=arc-20160816; b=QV9f8F2m440lexpwG/JZsYur/OSA8JkgWZWVkebKtg11D7dOWUKKGsnEzFxVemDoTP Vpu5U3frz2MsaVT2n/ChBC6+H4EuugUut3BTK9lj7CfcuWL5FlAXQF9y6IG7sajLo1w8 OoSOIZ+z2xSOFjSUk0ytnhAQ5RiQMCS8G0CX62VkFaxTE9joiE8qrOaF57pjbVQ1qYQd jXpyW79Xlak1RdF8DhOwKLxPTmxPCY+bjUK2PRpqBFuaelJrwJloqjUIu7b8xvKEAMU7 6aRtt25Bu1gMKOLVOn2Z/px1IkOhi/F78LkKktPAABSRD0zPhkEU7oyE5ti4uelaq5gv IbTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=tMumHBaWGIIP5/UTpugCpS42axBla0cVzMUMpjZ5AD0=; b=rTZu1d0oODQPERU+ZpKr2++Yw5skg1isUY9N1U6+eYFRGck7TPbDoqizEPK3S5Kv3X 5fYAvtSYjgOBIHLPijjImXdpkzlNalkXvMjqsk9LBwp8qEeSg/g3vcAwmFvfBFV0qyWZ OVR0XPvfumsrQ+D+I4qTrmU0MpFiNCV8gYV+989pCBpnfyPYHqEXJ1QP6gQI51SqnKOi 4kSfCpo1FiGiYzBsl5aYET9c8bBqI+45S/w3dcOv92GFlerP9vbdG2wM/JbbvCMg72K2 ch3toHE/JOYks9n55x3gACJbTWinGowcCBvuRTxe/2i9B5AkgeQgIrLu3O7FCOEDCBmz YJlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SXfjyILw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ay2si11349649edb.204.2021.09.07.06.42.40; Tue, 07 Sep 2021 06:43:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SXfjyILw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344791AbhIGNli (ORCPT + 99 others); Tue, 7 Sep 2021 09:41:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344772AbhIGNld (ORCPT ); Tue, 7 Sep 2021 09:41:33 -0400 Received: from mail-ot1-x329.google.com (mail-ot1-x329.google.com [IPv6:2607:f8b0:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69006C0613C1 for ; Tue, 7 Sep 2021 06:40:27 -0700 (PDT) Received: by mail-ot1-x329.google.com with SMTP id a20-20020a0568300b9400b0051b8ca82dfcso12792657otv.3 for ; Tue, 07 Sep 2021 06:40:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=tMumHBaWGIIP5/UTpugCpS42axBla0cVzMUMpjZ5AD0=; b=SXfjyILwl81VSd/R/Pe4V6mbwbI/bQEIrsTVYoEwW8h3hzmchLYgO+bgCz2BJ5kqIm DGPeGoHuepSvw964fbbrpWofGKXriqpvwbLUdSEd3nohHR41WXw5Kc61XnpYdjx6cHUa OCHCwKuCLztkbklCXiafZK69RXYEGhYZy2FAa8BTDdE14QBPqVi8r1Eno6uzZOavQtsM iXeN3NTH5NnkFBSBc4pLpyeYOXTf6Yc6ZFhRS/XZAyR5M1cvdH6uPtbu1+Yu1EwA8v9y cTxJ0YR4KcIVhSvyjb9lBvLV/RnonIIhCjA18C4/6jE59bsbkSNRJoZX+Mnky6dlEAr1 /HWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=tMumHBaWGIIP5/UTpugCpS42axBla0cVzMUMpjZ5AD0=; b=Z2ND8JEsaDFbGys3LxJ0R5lli1WSOnAtR3s9soTUM7QCs7K2Dp4URtCxm+qwPy0BLa QErJiKFVlZmCX35tGxqrBJBBWFQmCw74NpbZQ6nDwUDmP0u2b1DIo+tJq0uV+ItKfcMl o+m4642e3AgGs7L1X99hat8qrg2c/EaTwC0LmZSZsk9TxBGKGm3tiiLv41uu4zq4uFLU tINCGw92IA3SsZJxSB3/LNnoQjeE80C0FxKrCtTcdGX2l1sOmOrAIOJzKlBFpAW0uBDd ZfU6EgnYO4cpxxiU1LoY+/gPvlein1rQHXEBjJILYgsF0Fpdd6xT4WCEzK2nUVY+8dpR N6ZQ== X-Gm-Message-State: AOAM533BJnJzsvXzhEzIiyPLO41NXaCDWlwYMmQ4G5/cEhmqwwSXKoJk spb2a7IazqoTZjSqyXVODAN3Zg== X-Received: by 2002:a05:6830:214c:: with SMTP id r12mr15496176otd.200.1631022026614; Tue, 07 Sep 2021 06:40:26 -0700 (PDT) Received: from ripper (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id u27sm2452042otj.6.2021.09.07.06.40.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Sep 2021 06:40:26 -0700 (PDT) Date: Tue, 7 Sep 2021 06:41:26 -0700 From: Bjorn Andersson To: AngeloGioacchino Del Regno Cc: agross@kernel.org, robh+dt@kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, konrad.dybcio@somainline.org, marijn.suijten@somainline.org, martin.botka@somainline.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, paul.bouchara@somainline.org Subject: Re: [PATCH 2/7] arm64: dts: qcom: msm8998-xperia: Add RMI4 touchscreen support Message-ID: References: <20210903180924.1006044-1-angelogioacchino.delregno@somainline.org> <20210903180924.1006044-2-angelogioacchino.delregno@somainline.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210903180924.1006044-2-angelogioacchino.delregno@somainline.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri 03 Sep 11:09 PDT 2021, AngeloGioacchino Del Regno wrote: > All of the devices in the Sony Yoshino platform are using a Synaptics > RMI4-compatible touch IC with identical pins and supplies: enable the > I2C-5 bus and add the rmi4-i2c node along with the required pin > configurations. > > Signed-off-by: AngeloGioacchino Del Regno > Reviewed-by: Marijn Suijten > --- > .../dts/qcom/msm8998-sony-xperia-yoshino.dtsi | 60 +++++++++++++++++++ > 1 file changed, 60 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/msm8998-sony-xperia-yoshino.dtsi b/arch/arm64/boot/dts/qcom/msm8998-sony-xperia-yoshino.dtsi > index b07cbc759807..2fe53e4675d5 100644 > --- a/arch/arm64/boot/dts/qcom/msm8998-sony-xperia-yoshino.dtsi > +++ b/arch/arm64/boot/dts/qcom/msm8998-sony-xperia-yoshino.dtsi > @@ -30,6 +30,15 @@ board_vbat: vbat-regulator { > regulator-boot-on; > }; > > + touch_vddio_vreg: touch-vddio-vreg { > + compatible = "regulator-fixed"; > + regulator-name = "touch_vddio_vreg"; > + startup-delay-us = <10000>; > + gpio = <&tlmm 133 GPIO_ACTIVE_HIGH>; > + pinctrl-names = "default"; > + pinctrl-0 = <&ts_vddio_en>; > + }; > + > vph_pwr: vph-pwr-regulator { > compatible = "regulator-fixed"; > regulator-name = "vph_pwr"; > @@ -134,6 +143,42 @@ ramoops@ffc00000 { > }; > }; > > +&blsp1_i2c5 { > + status = "okay"; > + clock-frequency = <355000>; > + > + touchscreen: synaptics-rmi4-i2c@2c { "touchscreen" sounds like a better "generic name" for the node. Haven't checked the following patches yet, do you need the label? Regards, Bjorn > + compatible = "syna,rmi4-i2c"; > + reg = <0x2c>; > + #address-cells = <1>; > + #size-cells = <0>; > + interrupts-extended = <&tlmm 125 IRQ_TYPE_EDGE_FALLING>; > + > + pinctrl-names = "default"; > + pinctrl-0 = <&ts_int_n>; > + > + vdd-supply = <&vreg_l28_3p0>; > + vio-supply = <&touch_vddio_vreg>; > + > + syna,reset-delay-ms = <220>; > + syna,startup-delay-ms = <1000>; > + > + rmi4-f01@1 { > + reg = <0x01>; > + syna,nosleep-mode = <1>; > + }; > + > + rmi4-f11@11 { > + reg = <0x11>; > + syna,sensor-type = <1>; > + }; > + }; > +}; > + > +&blsp1_i2c5_sleep { > + bias-disable; > +}; > + > &blsp2_uart1 { > status = "okay"; > }; > @@ -448,6 +493,21 @@ hall_sensor0_default: acc-cover-open { > drive-strength = <2>; > input-enable; > }; > + > + ts_int_n: ts-int-n { > + pins = "gpio125"; > + function = "gpio"; > + drive-strength = <8>; > + bias-pull-up; > + }; > + > + ts_vddio_en: ts-vddio-en-default { > + pins = "gpio133"; > + function = "gpio"; > + bias-disable; > + drive-strength = <2>; > + output-low; > + }; > }; > > /* > -- > 2.32.0 >