From patchwork Tue Mar 28 07:33:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Javier Martinez Canillas X-Patchwork-Id: 13190633 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 68C96C76196 for ; Tue, 28 Mar 2023 07:34:57 +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:References:In-Reply-To: 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: List-Owner; bh=R9kIpmsOB7dz4iRzM/d2MmXVbKs717ABa+AeiAPKb/E=; b=EREIyFd+xgTaXP aS16JoEsMBaXelWmzunMOQie/TrrrbWb4gdCIMdCngZeY0opxZD8qoRliZZRVBo3COHwg3bC6occf iAU4VZECW08IsklI5irgkpcJkWNonWdC6Sfl8tThZP2J4sbhNwAeS+DEgxalt1enDK6siRDLGe0jF cEgY02OT+uwmEHno7+dfZIPIMGb5OyYVc7sIRhJSRMWVXTJsEC2AfkZDdO5BFGmlmC965FBxb4KXe UIEvxb+65vknNjh9YetzDgGzR8GK4VBhbEWCLS4CefrBtjLTkFvzJ1lLkVurJ6tAROEKe2vC+tfX0 ma0zRMnbmfIj5Km/w4Hw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1ph3px-00DSQ8-1x; Tue, 28 Mar 2023 07:33:45 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1ph3pZ-00DSG3-2J for linux-arm-kernel@lists.infradead.org; Tue, 28 Mar 2023 07:33:23 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1679988800; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nNdM7KSyRgCrr4mbIGjnmBDUe48JVTbvN2evKlFTHYo=; b=f41Ho/HE/6AR+eNMByiUdffxM3nSOt/4aKn9kGWPk8ZMOgfkeVsYAmS2XoMfed9/pZTrmE 085ZFHGYmeE+4PSCs0AOqLjG1szVU/rLcllJBEIqykHRjZFfw8b71c7e0OreFMqFnnmUZH x8ZqXmIeM8VtQhaQ3xgYG917FfqynT4= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-634-xi8M2mZfMaaDBqZ_1bs19A-1; Tue, 28 Mar 2023 03:33:19 -0400 X-MC-Unique: xi8M2mZfMaaDBqZ_1bs19A-1 Received: by mail-wm1-f69.google.com with SMTP id bg32-20020a05600c3ca000b003ef6ff45106so2339512wmb.4 for ; Tue, 28 Mar 2023 00:33:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679988798; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nNdM7KSyRgCrr4mbIGjnmBDUe48JVTbvN2evKlFTHYo=; b=mGuCTuwQyjBPxr+65gFKChLxmSjPkYc2j4DEtF2hz6Kl0ZVMo57mWbcr020fXTILkq iM7uEu/j8+cWKzp//SILvpX3JDQCaROPloWCFgLZKExNQkiwDDvLx5taVNwQdG9CN0Rn GWk6MFXCWJIST7ciai+QOlrUciQ9UP/BSWJdLhCQdXFmpGcdIkRMlODIGj45SWn124tX m9FAHG9HH9rEWZce3Y/HujGYlejdTFMIRcb84cZ9IH3psjjiwRbcLwQPfRWzxktbsbGh NsQSuBFPHFZN4PwOdtJv1cuFlc6Hwn8oUYXnzmGPTy37BHsRGKYrVP9dcPJZZjbYTKVb C9iA== X-Gm-Message-State: AO0yUKVF/t04YyAGWIAntuRomN12jPqEuG6FUejJ4F5xJv0UV49AT41S HA6z5Z8VTetmt+mRctSK/5cGilfB1NzJcLrc3ZpECJeKB012Fgvc6b+SD7aw8W160aDcsE+LXPG SVYVluxbEOKE8NyygwaV0jLEXXA/01QBgxAM= X-Received: by 2002:a05:600c:c6:b0:3ef:df3:1693 with SMTP id u6-20020a05600c00c600b003ef0df31693mr11393758wmm.32.1679988798070; Tue, 28 Mar 2023 00:33:18 -0700 (PDT) X-Google-Smtp-Source: AK7set98gCyXpnG4Ha5cE59btAVfSKxfqXI1RJYKrRZnSKKWGrx+Oi6U2VNaI7A9EVKO8nI+cTTlEQ== X-Received: by 2002:a05:600c:c6:b0:3ef:df3:1693 with SMTP id u6-20020a05600c00c600b003ef0df31693mr11393735wmm.32.1679988797783; Tue, 28 Mar 2023 00:33:17 -0700 (PDT) Received: from minerva.home (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id j6-20020a05600c190600b003ef6bc71cccsm7527075wmq.27.2023.03.28.00.33.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Mar 2023 00:33:17 -0700 (PDT) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Cc: Peter Robinson , Tom , Robert Mader , Laurent Pinchart , Martijn Braam , Ondrej Jirman , Jacopo Mondi , =?utf-8?q?Kamil_Trzci=C5=84sk?= =?utf-8?q?i?= , Javier Martinez Canillas , Caleb Connolly , Heiko Stuebner , Jarrah Gosbell , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org Subject: [PATCH v3 2/2] arm64: dts: rk3399-pinephone-pro: Add touchscreen support Date: Tue, 28 Mar 2023 09:33:09 +0200 Message-Id: <20230328073309.1743112-3-javierm@redhat.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230328073309.1743112-1-javierm@redhat.com> References: <20230328073309.1743112-1-javierm@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230328_003321_825053_286BBD39 X-CRM114-Status: GOOD ( 13.07 ) 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 From: Martijn Braam The phone has a Goodix GT1158 touchscreen, add a DT node for it. Signed-off-by: Martijn Braam Co-developed-by: Kamil Trzciński Signed-off-by: Kamil Trzciński Co-developed-by: Ondrej Jirman Signed-off-by: Ondrej Jirman Signed-off-by: Javier Martinez Canillas --- Changes in v3: - Use the correct "goodix,gt1158" compatible string (Ondrej Jirman). - Remove "poweroff-in-suspend" not supported in mainline (Ondrej Jirman). .../dts/rockchip/rk3399-pinephone-pro.dts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts b/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts index 539b36e8bff5..475ba78acc09 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts @@ -367,6 +367,25 @@ regulator-state-mem { }; }; +&i2c3 { + i2c-scl-rising-time-ns = <450>; + i2c-scl-falling-time-ns = <15>; + status = "okay"; + + touchscreen@14 { + compatible = "goodix,gt1158"; + reg = <0x14>; + interrupt-parent = <&gpio3>; + interrupts = ; + irq-gpios = <&gpio3 RK_PB5 GPIO_ACTIVE_HIGH>; + reset-gpios = <&gpio3 RK_PB4 GPIO_ACTIVE_HIGH>; + AVDD28-supply = <&vcc3v0_touch>; + VDDIO-supply = <&vcc3v0_touch>; + touchscreen-size-x = <720>; + touchscreen-size-y = <1440>; + }; +}; + &cluster0_opp { opp04 { status = "disabled";