Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3748930pxu; Mon, 30 Nov 2020 09:28:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJxe5IDCWwKociYmntWLwvHe4pqJTa6zFC27T46xb+4j7Q720hBFRTlfLCquEnP0eZZf/KiO X-Received: by 2002:a05:6402:2074:: with SMTP id bd20mr13030918edb.326.1606757327992; Mon, 30 Nov 2020 09:28:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606757327; cv=none; d=google.com; s=arc-20160816; b=jHvtGAe1JmTsIxX5BL2eN2Nh0mtOxG1yX6k3uucveXo6PB0qU/3UKnS34sxWZ/x0W9 XAgnMD6e5jblrm9+wBAJNd27CT0aFm4B/kUMDWMpgsXklWVe3m7a2PQhdc0fGAexq6iv f9oz8BvFbVYATZ/Kc4WdvszEWrm4NbftyVCL6LrgBF2E9icFAd/74BybsojQtyOvfacF DNfryv0/pELWE3m8STt5c7C+Xx+DB5T9EhyqneaelpgnAJdMSjTeRBpmlrhL/yPLWZfv bnEzW4woYHPodU+fODZdo2EmmIibspFEubF11I+vhlToxoaWvWlz0V2JL5qzFKWM6kE7 7hpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=HUd80TJAPN0HNUfyfM/cXlZWa0/zIVrHS2ar/oipCTA=; b=04WwFfGLEw8mVOV3wf/AR6jDwCB6CQ9x0Ien+9gdz7wLUzVMjzcuRLI6kf7b0smzbN zJMrtrcX86KSQk49NxoXwThYRWI34RwRvUqHW5VRt7QPuQTIlYeFiHphNpiyh4GYIkjZ /8EgQqcaazSvTj3kCG2GWdfa+jS0OWN3gvzXw0JR0lhut4lX6bkTfGOCdlfiXfyl8/vY QRUjiasqOqHI2zlb4tHk/pG+UaqCzrlRUdeV6NPeSO1ETGFbPosYBEWIYB7dVsJB9rI3 vXPSa750d1TfJA6UtUvg9JZChAkM2lNfUcXLrwRWkYGNoRXbO9vPieYbyl/+wrGuRsoa dN5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kali.org header.s=google header.b=cORfdEM6; 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=kali.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c22si4877703ejx.437.2020.11.30.09.28.25; Mon, 30 Nov 2020 09:28:47 -0800 (PST) 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=@kali.org header.s=google header.b=cORfdEM6; 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=kali.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387480AbgK3R0f (ORCPT + 99 others); Mon, 30 Nov 2020 12:26:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387405AbgK3R0f (ORCPT ); Mon, 30 Nov 2020 12:26:35 -0500 Received: from mail-oi1-x241.google.com (mail-oi1-x241.google.com [IPv6:2607:f8b0:4864:20::241]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 688D8C0613D4 for ; Mon, 30 Nov 2020 09:25:49 -0800 (PST) Received: by mail-oi1-x241.google.com with SMTP id o25so15004641oie.5 for ; Mon, 30 Nov 2020 09:25:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kali.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=HUd80TJAPN0HNUfyfM/cXlZWa0/zIVrHS2ar/oipCTA=; b=cORfdEM6mWVLRHnCBqW4tOax3URrJ09Zr1dd8Lm14bBFPkmy1/jM3FVqVsiptOtCru C/orLmR/loHRkh5nVBhk9J63TiGQ0ff+KzvjTkggpkQlTMDmbx5ZCD9iCLdpP/rIPTxX ekHJb1+4+T2Hf3SGN2cy69u8U5qPmqbmRjlSKbBSNVWiqc5WJETza0p+/CRYZ/JgIv3f HFgkJzQQc5L75zu/Mn/hNCNRQy6GZY466aVbCkEVlZ4/7QMtlmI3Lbn+cNxHaleKqvE1 HYVLSn9Hly3NNLTVOcszeA9M/Fax7QjF2NXK3jJq1cTVxujjlIybIIg+EZ3wkBNznAnw H1PA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=HUd80TJAPN0HNUfyfM/cXlZWa0/zIVrHS2ar/oipCTA=; b=k1Q0uNr8qOeBsrJBT3iEJFXXHdxGo7WisdI4HARpGMjA10iGObI2QuNUeg9hMMIcgK NCMSK23bG4qkbUhrsc2Gr5f+a/OhN5C5ks1iSHYMmhVvq1NYTytxBTwECB6ykN5cwMRQ vIdbwcJWDnwGxXOgPYvlS+ZT9x3Kj+DY48YW5Z9cCMriLlgRSWiGKEwrOKBE75UrUEE/ wT3YyzYk6BCflIFheyNlUGwp8PpL74Gb0BHCtpxX58brvM0fTemJP53GyjzSJZ9RsDtZ q4wK/Cm2Jx3ZFLvo99dWUO5stmgWBoj8InpcgaoC2TGIw2ze+MlDPEwBkcD+meAdsz2B X7rg== X-Gm-Message-State: AOAM531uX0FAAlwZ37GpehAFQCD1eGl32o3Ck3VuzkLFvAp2X5u/Beq3 t5o6VV9LeVmSWSN34bj1/Yk6pIlyyBqL6yo1GTA= X-Received: by 2002:a05:6808:562:: with SMTP id j2mr15682595oig.1.1606757148425; Mon, 30 Nov 2020 09:25:48 -0800 (PST) Received: from Steevs-MBP.hackershack.net (cpe-173-175-113-3.satx.res.rr.com. [173.175.113.3]) by smtp.gmail.com with ESMTPSA id s28sm9000438otr.4.2020.11.30.09.25.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 30 Nov 2020 09:25:47 -0800 (PST) Subject: Re: [PATCH] arm64: dts: qcom: c630: Polish i2c-hid devices To: Bjorn Andersson , Andy Gross , Shawn Guo Cc: Rob Herring , Vinod Koul , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20201130165924.319708-1-bjorn.andersson@linaro.org> From: Steev Klimaszewski Message-ID: <77abcac1-daf6-adbd-7d02-00cd9b4ddf99@kali.org> Date: Mon, 30 Nov 2020 11:25:45 -0600 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:78.0) Gecko/20100101 Thunderbird/78.4.3 MIME-Version: 1.0 In-Reply-To: <20201130165924.319708-1-bjorn.andersson@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/30/20 10:59 AM, Bjorn Andersson wrote: > The numbering of the i2c busses differs from ACPI and a number of typos > was made in the original patch. Further more the irq flags for the > various resources was not correct and i2c3 only has one of the two > client devices active in any one device. > > Also label the various devices, for easier comparison with the ACPI > tables. > > Fixes: 44acee207844 ("arm64: dts: qcom: Add Lenovo Yoga C630") > Signed-off-by: Bjorn Andersson > --- > .../boot/dts/qcom/sdm850-lenovo-yoga-c630.dts | 31 +++++++++++-------- > 1 file changed, 18 insertions(+), 13 deletions(-) > > diff --git a/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts b/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts > index 047ac9c16874..399aef2a0951 100644 > --- a/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts > +++ b/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts > @@ -264,23 +264,28 @@ &i2c3 { > status = "okay"; > clock-frequency = <400000>; > > - hid@15 { > + tsel: hid@15 { > compatible = "hid-over-i2c"; > reg = <0x15>; > hid-descr-addr = <0x1>; > > - interrupts-extended = <&tlmm 37 IRQ_TYPE_EDGE_RISING>; > + interrupts-extended = <&tlmm 37 IRQ_TYPE_LEVEL_HIGH>; > + > + pinctrl-names = "default"; > + pinctrl-0 = <&i2c3_hid_active>; > }; > > - hid@2c { > + tsc2: hid@2c { > compatible = "hid-over-i2c"; > reg = <0x2c>; > hid-descr-addr = <0x20>; > > - interrupts-extended = <&tlmm 37 IRQ_TYPE_EDGE_RISING>; > + interrupts-extended = <&tlmm 37 IRQ_TYPE_LEVEL_HIGH>; > > pinctrl-names = "default"; > - pinctrl-0 = <&i2c2_hid_active>; > + pinctrl-0 = <&i2c3_hid_active>; > + > + status = "disabled"; > }; > }; > > @@ -288,15 +293,15 @@ &i2c5 { > status = "okay"; > clock-frequency = <400000>; > > - hid@10 { > + tsc1: hid@10 { > compatible = "hid-over-i2c"; > reg = <0x10>; > hid-descr-addr = <0x1>; > > - interrupts-extended = <&tlmm 125 IRQ_TYPE_EDGE_FALLING>; > + interrupts-extended = <&tlmm 125 IRQ_TYPE_LEVEL_LOW>; > > pinctrl-names = "default"; > - pinctrl-0 = <&i2c6_hid_active>; > + pinctrl-0 = <&i2c5_hid_active>; > }; > }; > > @@ -304,7 +309,7 @@ &i2c11 { > status = "okay"; > clock-frequency = <400000>; > > - hid@5c { > + ecsh: hid@5c { > compatible = "hid-over-i2c"; > reg = <0x5c>; > hid-descr-addr = <0x1>; > @@ -312,7 +317,7 @@ hid@5c { > interrupts-extended = <&tlmm 92 IRQ_TYPE_LEVEL_LOW>; > > pinctrl-names = "default"; > - pinctrl-0 = <&i2c12_hid_active>; > + pinctrl-0 = <&i2c11_hid_active>; > }; > }; > > @@ -426,7 +431,7 @@ codec { > &tlmm { > gpio-reserved-ranges = <0 4>, <81 4>; > > - i2c2_hid_active: i2c2-hid-active { > + i2c3_hid_active: i2c2-hid-active { > pins = <37>; > function = "gpio"; > > @@ -435,7 +440,7 @@ i2c2_hid_active: i2c2-hid-active { > drive-strength = <2>; > }; > > - i2c6_hid_active: i2c6-hid-active { > + i2c5_hid_active: i2c5-hid-active { > pins = <125>; > function = "gpio"; > > @@ -444,7 +449,7 @@ i2c6_hid_active: i2c6-hid-active { > drive-strength = <2>; > }; > > - i2c12_hid_active: i2c12-hid-active { > + i2c11_hid_active: i2c11-hid-active { > pins = <92>; > function = "gpio"; > Tested-by: Steev Klimaszewski