From patchwork Thu Jan 5 12:32:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikita Travkin X-Patchwork-Id: 39510 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp284761wrt; Thu, 5 Jan 2023 04:53:36 -0800 (PST) X-Google-Smtp-Source: AMrXdXvf6sBTlhkUoX5FYgP+FSntxePTRYhoAZAhr0r93WfbQDGJiIwPGbiIbygTNbpUhp7JW0GA X-Received: by 2002:aa7:8286:0:b0:57e:c106:d50c with SMTP id s6-20020aa78286000000b0057ec106d50cmr57180363pfm.17.1672923215908; Thu, 05 Jan 2023 04:53:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672923215; cv=none; d=google.com; s=arc-20160816; b=xwzopkyqY8Q4zAQzI2A2MbsKnMeaYulYdcfoLAt+te+B1NpXQXlFeEJ2C7pBOhjEwZ ffAooel9bJaUKl+uaOpB7hVkbrhb29USqP0iIkz81BscOYbmTrzihAK9i/c6Ah6+dhoU 20gIsUIQOsomb40cmocf2zYjhmTOglT7PVkI08TMuk7GP2VTj7rvR/a1ocMg9ikNDnXL JlAIE5U/t8yOxfmpSX8DScmtkUapnNA5Oee7tnIZ7Vht8LTcEmS+1fu3XGICSUkej8UE kzwuA0UE5qw0o6FnUW5QcT3+Ua7iM2FqKy9GwYFhYWSAVanA8o/koFY+z0HnecXfZ/6t EoLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=7mDQwgoszJ+Dmqs24Wq4j+/+Tkdj01NEsilECEdF+ZE=; b=rHTzWjMl5+//jXGh1xXhD7pkSCI1tJIcAdFPIhXm1D8C3ch6QaHKx2BpxsT0DMWux/ rAoyC9t5gqhN/GmSGMml1TR4xRMnfNBdO0GLRf6l/BX/anVSDLGOp8flzjNelpKlhb2v 7GPy7awWV92s3D3UzENIfoXieIZLTVNdopqSs28qvRK8RYmN7q+bt6xGjSbzMKNt/K95 IeCOEZ9CP64U8stb1IfqBLma0D3x/E9zO/i9BFjw6jvV72Z246jvL9xvJNV32D9IMr1k kHO7DD3d/kfFUuiO66JBPOGaMl6OQWEOrg4MvB+avlkNwAV3ZWxIjwLACEPvATf+8CJz 8IDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@trvn.ru header.s=mail header.b=JiWwwwdE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=trvn.ru Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 128-20020a621886000000b005786897552esi37097718pfy.33.2023.01.05.04.53.22; Thu, 05 Jan 2023 04:53:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@trvn.ru header.s=mail header.b=JiWwwwdE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=trvn.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233349AbjAEMvd (ORCPT + 99 others); Thu, 5 Jan 2023 07:51:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233214AbjAEMvY (ORCPT ); Thu, 5 Jan 2023 07:51:24 -0500 Received: from box.trvn.ru (box.trvn.ru [194.87.146.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 920214C71E; Thu, 5 Jan 2023 04:51:22 -0800 (PST) Received: from authenticated-user (box.trvn.ru [194.87.146.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by box.trvn.ru (Postfix) with ESMTPSA id 3B5D9420D7; Thu, 5 Jan 2023 17:33:59 +0500 (+05) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=trvn.ru; s=mail; t=1672922039; bh=XDs2gflTOLUlUTnTexb8dZ34bV0BRZklNYRXJ5foqD0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JiWwwwdEBMnAvotjd62WdrCZOa1HbPZOAuoDax58cUnfKW9q7K1o/7ePPS3n3LJtW vUe1FNimJJw8co3p2LVgkuuBvFRnvnkr1G4tVjQCU8HJROrDMal41rAo0bbkZjs0sS cnLPvC1LDWKD+DlktV2Busi7cApRn2deL0BwllpliKWdiGk6JxfcN9DEMaAiyTqfWJ uwQSWB+STdHX7Mtmh4g41iIO35R9hYznHzjgOe+7m3p2+ukYr1OEgXvSLqFLLTp6zB D6zdp12w8zDFGW3tv6ZFDKw4MYs1lvt7qcnsWHiZbRRb2U7h5DIacNBYhiA9o43U5v hn+HyDl2WP3xg== From: Nikita Travkin To: Andy Gross , Bjorn Andersson Cc: Rob Herring , Krzysztof Kozlowski , Konrad Dybcio , Siddharth Manthan , Jasper Korten , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Nikita Travkin Subject: [PATCH 5/8] arm64: dts: qcom: msm8916-samsung-gt510: Add touchscreen Date: Thu, 5 Jan 2023 17:32:37 +0500 Message-Id: <20230105123240.1089375-6-nikita@trvn.ru> In-Reply-To: <20230105123240.1089375-1-nikita@trvn.ru> References: <20230105123240.1089375-1-nikita@trvn.ru> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754187134051429766?= X-GMAIL-MSGID: =?utf-8?q?1754187134051429766?= From: Jasper Korten gt510 uses maXTouch mXT1664T3 touch controller. Add it and regulators that supply it. Signed-off-by: Jasper Korten Co-developed-by: Nikita Travkin Signed-off-by: Nikita Travkin --- .../boot/dts/qcom/msm8916-samsung-gt510.dts | 58 +++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916-samsung-gt510.dts b/arch/arm64/boot/dts/qcom/msm8916-samsung-gt510.dts index 44d527b3f1f6..6331166d9067 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-samsung-gt510.dts +++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-gt510.dts @@ -32,6 +32,29 @@ reg_motor_vdd: regulator-motor-vdd { pinctrl-names = "default"; }; + reg_tsp_1p8v: regulator-tsp-1p8v { + compatible = "regulator-fixed"; + regulator-name = "tsp_1p8v"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + + gpio = <&msmgpio 73 GPIO_ACTIVE_HIGH>; + enable-active-high; + + pinctrl-0 = <&tsp_en_default>; + pinctrl-names = "default"; + }; + + reg_tsp_3p3v: regulator-tsp-3p3v { + compatible = "regulator-fixed"; + regulator-name = "tsp_3p3v"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + + gpio = <&msmgpio 73 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + vibrator { compatible = "pwm-vibrator"; @@ -42,6 +65,25 @@ vibrator { }; }; +&blsp_i2c5 { + status = "okay"; + + touchscreen@4a { + compatible = "atmel,maxtouch"; + reg = <0x4a>; + interrupt-parent = <&msmgpio>; + interrupts = <13 IRQ_TYPE_LEVEL_LOW>; + + vdd-supply = <®_tsp_1p8v>; + vdda-supply = <®_tsp_3p3v>; + + reset-gpios = <&msmgpio 114 GPIO_ACTIVE_LOW>; + + pinctrl-0 = <&tsp_int_rst_default>; + pinctrl-names = "default"; + }; +}; + &msmgpio { motor_en_default: motor-en-default-state { pins = "gpio76"; @@ -55,4 +97,20 @@ motor_pwm_default: motor-pwm-default-state { pins = "gpio50"; function = "gcc_gp2_clk_a"; }; + + tsp_en_default: tsp-en-default-state { + pins = "gpio73"; + function = "gpio"; + + drive-strength = <2>; + bias-disable; + }; + + tsp_int_rst_default: tsp-int-rst-default-state { + pins = "gpio13", "gpio114"; + function = "gpio"; + + drive-strength = <2>; + bias-disable; + }; };