From patchwork Tue Nov 14 10:43:23 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: 13455123 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 24B2BC4332F for ; Tue, 14 Nov 2023 10:44:43 +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=Sc/ZgH4grKP754pDdeOkV0xXq0w7x7W3TDYATn64VKo=; b=vwTGN0Bsx1iqM/ JbsCZlKjJHs88n8KIsLtPnBA7bEVqlK+NZpdJaZ0lXIwSTUU5dDLkbvplAbpKd2DxDwh4zoAI38wt eFM+v8CfC2rjIYVj7IXDLFwD2acGShv03mVYMG6+iPefDUjOhbstgPzFiQjaDFn9zYFOZadyAbWLm rz+y2QZZGM7fcmDTnPYFGKPz+zSMYJK9V+QkIEYKnXIV7qrf2iOtUUG/UsF4FsbVI8nNrZBLBDJ/k UhWbIS4EQRm1eoWsFlkX2wIvE8iaWmt6/ffZUCWiygfBkdH/kgKQVkck0BatIOC3VF2+jmZ8QLus3 R574IeofetrXFtRL9Ffw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r2qu3-00FbJ6-1K; Tue, 14 Nov 2023 10:44:19 +0000 Received: from mail-oa1-x2e.google.com ([2001:4860:4864:20::2e]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r2qu0-00FbI8-1E for linux-arm-kernel@lists.infradead.org; Tue, 14 Nov 2023 10:44:17 +0000 Received: by mail-oa1-x2e.google.com with SMTP id 586e51a60fabf-1efabc436e4so3307731fac.1 for ; Tue, 14 Nov 2023 02:44:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1699958652; x=1700563452; 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=EtGo2PbI4VhfFCzLF5CTcHmhJXxS0YiF4GH0b4RYzjc=; b=hdvzgjnecqpZGq8FULs33AnAP0k5F+KPwy+b+/gFibZoGZjGSHvIPohC7oeteVl1GE 1UXVFLURx1mPiQ2057yQenWk2CcxIXhc+zm8U8oqliSx+wueGC7S0fhVdFCKJwAT5dDB 1zWE48ReDq8/+21MOMD9BttprF8CSDFfHX1o8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699958652; x=1700563452; 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=EtGo2PbI4VhfFCzLF5CTcHmhJXxS0YiF4GH0b4RYzjc=; b=iZdAgZ+j59ZahJi1vWPOE2Y+RHbsIwNK6uoEkxDWDqvs3mF2oIgD5vnV1cBlc5SF56 Q/RNEYPDlZNaPT6lJ4Vjgm0rO4jZw1ZUwJY9lDeKrlawVDJwAuMoG7lAh/2saXQX9AGg 81PGRrTYY09xe9HWdHxuR2Df/snw5APZQX812DvLhX90qhuMJVbVf9fV2WZD0PkndpDW 8jfLMX649jZ9zAuwY+iErEiJDjwqGq5Id0P/QG/2n27l92f9js/cS2rna/RBJcr/kCAq 8bmmRQWxQoO1bU74/IlQy9/UTnL7FITp73EyutmY6AJLG1Pc/utAfiOFYQjDLHhKy+fg YooQ== X-Gm-Message-State: AOJu0YzkO/kDHLDeTvWYBEkcGp2G/raujRnu2IDSjjPO04jmlU9S5avZ m/NnjGseDFaYACl9z8bNlaViuw== X-Google-Smtp-Source: AGHT+IHxmgUlMEBieMM61gtbnmLAhVuEAHgMl6ycbPU13IOxBVkaJ+NHHsqbyyZtI6i0GsUzVhD6Ig== X-Received: by 2002:a05:6870:81b:b0:1e9:b550:c05a with SMTP id fw27-20020a056870081b00b001e9b550c05amr12708195oab.53.1699958652536; Tue, 14 Nov 2023 02:44:12 -0800 (PST) Received: from treapking.tpe.corp.google.com ([2401:fa00:1:10:b51f:fb1c:5e29:cfc8]) by smtp.gmail.com with ESMTPSA id m4-20020aa78a04000000b006c33311965esm926136pfa.68.2023.11.14.02.44.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Nov 2023 02:44:12 -0800 (PST) From: Pin-yen Lin To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno Cc: Chen-Yu Tsai , devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Pin-yen Lin Subject: [PATCH] arm64: dts: mt8173: Add G2Touch touchscreen node Date: Tue, 14 Nov 2023 18:43:23 +0800 Message-ID: <20231114104353.1693966-1-treapking@chromium.org> X-Mailer: git-send-email 2.42.0.869.gea05f2083d-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231114_024416_794968_D88E234B X-CRM114-Status: GOOD ( 10.29 ) 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 --- 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..0d6dbc36c352 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>; }; + + touchscreen4: touchscreen@40 { + compatible = "hid-over-i2c"; + reg = <0x40>; + hid-descr-addr = <0x0001>; + interrupt-parent = <&pio>; + interrupts = <88 IRQ_TYPE_LEVEL_LOW>; + }; }; &i2c4 {