From patchwork Wed Nov 15 04:35:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pin-yen Lin X-Patchwork-Id: 13456214 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3F77BC07548 for ; Wed, 15 Nov 2023 04:35:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=zcpMycu2dFimujwWVeyHhNz5Fwsegb5XWM0yHXxjwso=; b=NWPg01Rjvm17gt x/lHgVxsa0OwjBNFYpRzu1LiYJjMIEYFCOV+cBchnirUYky5pUofBJMG8Iew9bxeWXL21QY56onwK 3+m1U5LFS4mrm3XMtAjocsr6zBuaJ6Y47erIOQNttlo27A6xb3G4H5Rpm9Cickni9DPy3JLGrLrrB 11mj58omsgCNOO6W2qIi8rm3DmPIE+JnW6LfSVxB+XV21M7Cu02haL0KihB4FbqL1FHYq0r3nl//i BOQV7X0UXpDiMwjM0AbSI6KswEz0+1HzVnTXEcYle8SuBb0ebEUKDfejfjiFHGZCnYLhHOARAI4iz aGrCeOwVZWrb8WjQ6olQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r37cZ-00HS8M-2Z; Wed, 15 Nov 2023 04:35:23 +0000 Received: from mail-pj1-x102e.google.com ([2607:f8b0:4864:20::102e]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r37cV-00HS7P-2k for linux-arm-kernel@lists.infradead.org; Wed, 15 Nov 2023 04:35:21 +0000 Received: by mail-pj1-x102e.google.com with SMTP id 98e67ed59e1d1-27ff7fe7fbcso127337a91.1 for ; Tue, 14 Nov 2023 20:35:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1700022919; x=1700627719; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=JKE2Z3rIdCP16EvnaCbTQcF6cETDsiXZjgYQFVaGzsY=; b=bVZRwW/on0qyDANL/q3nrjOfzOScExwRxh2clEwjNiFnl+mOW1MHz8JfU93N6VnGEV GZcGhNCGu9RIZRHLvN1DJsXSUB+Dl7sAhjA7ZFZwrRIyvI897FcitYSQMhISUCNcap7H zxUpOHp1/OtHIOBQTCbx2cAD9ug85DJg7iGMc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700022919; x=1700627719; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=JKE2Z3rIdCP16EvnaCbTQcF6cETDsiXZjgYQFVaGzsY=; b=lLrLkZPnUHjVkEAMObW7eLoqZr1yUOvkaTzw825oa+uQkHNAkGJcW/D63+lkFMjGhG PbqyHsZyQtEljbefiNPcwzkLQv5PsbassE0sytKQK7F1etODVQVYYRlVtbLK5kooWlzo xHd1rOl9DrGe04JkD4k7yPy8RVuCJtk732tPVfvnW3deT3TXIk94Wt3/g60J1ui8scVf GHnbjeUjfD0nMQy9tXBG1IyzV6aSZ8e7+hRJ4neRJn6803rCwNylxdtcgOZp/Bsyg+hW c6QggOtOFqWk8Hq0dPHyAItHLVpU5OE8qhDxtoxnFUAV6zkbSi7byfL32kIljxohivUH nBuQ== X-Gm-Message-State: AOJu0Yydpkhg0YdxWY9/oNw+W5Iee0dzeuZ8ZBzTTE1m/WJQRYV0KEbS PVmvop9W72jqrWh258frU2x16g== X-Google-Smtp-Source: AGHT+IHPWARszrcyKURojq7sjdFRg5WZJqBWm7TVHsyJF6yVoEHDN9wnAQBKnHHZ3jWQAFQoYBIT5Q== X-Received: by 2002:a17:90b:1c0c:b0:27f:fce3:2266 with SMTP id oc12-20020a17090b1c0c00b0027ffce32266mr11651424pjb.24.1700022918786; Tue, 14 Nov 2023 20:35:18 -0800 (PST) Received: from treapking.tpe.corp.google.com ([2401:fa00:1:10:b51f:fb1c:5e29:cfc8]) by smtp.gmail.com with ESMTPSA id gp16-20020a17090adf1000b00280cd4fbd83sm7879425pjb.55.2023.11.14.20.35.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Nov 2023 20:35:18 -0800 (PST) From: Pin-yen Lin To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno Cc: linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Chen-Yu Tsai , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Pin-yen Lin Subject: [PATCH v2] arm64: dts: mt8173: Add G2Touch touchscreen node Date: Wed, 15 Nov 2023 12:35:01 +0800 Message-ID: <20231115043511.2670477-1-treapking@chromium.org> X-Mailer: git-send-email 2.43.0.rc0.421.g78406f8d94-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231114_203519_961907_78DCD010 X-CRM114-Status: GOOD ( 11.05 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Lenovo Ideapad C330 Chromebook (MTK) uses G2Touch touchscreen as a second source component. Signed-off-by: Pin-yen Lin Reviewed-by: Chen-Yu Tsai --- Changes in v2: - Remove the label for the node arch/arm64/boot/dts/mediatek/mt8173-elm-hana.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173-elm-hana.dtsi b/arch/arm64/boot/dts/mediatek/mt8173-elm-hana.dtsi index bdcd35cecad9..8836ac3c4233 100644 --- a/arch/arm64/boot/dts/mediatek/mt8173-elm-hana.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8173-elm-hana.dtsi @@ -29,6 +29,14 @@ touchscreen3: touchscreen@20 { interrupt-parent = <&pio>; interrupts = <88 IRQ_TYPE_LEVEL_LOW>; }; + + touchscreen@40 { + compatible = "hid-over-i2c"; + reg = <0x40>; + hid-descr-addr = <0x0001>; + interrupt-parent = <&pio>; + interrupts = <88 IRQ_TYPE_LEVEL_LOW>; + }; }; &i2c4 {